Go to advanced search

by bgreat
Sat Jan 12, 2013 2:38 pm
Forum: Python
Topic: Basic Coding Help
Replies: 12
Views: 1369

Re: Basic Coding Help

Yep. That is it... ;) One key to developing your programming skills to carefully read the messages from the computer. Then see if you can "spot the difference". In the original code, it is easy to see the carry over from the previous statement with a function "set..." to the variable definition usin...
by bgreat
Sat Jan 12, 2013 2:30 pm
Forum: Beginners
Topic: ADC Problem
Replies: 3
Views: 613

Re: ADC Problem

Simple question, are you running your application as root using 'sudo' ? Try 'sudo your_program'. I would have expected a 'permission denied' error if you were not running as root, but just checking.

Enjoy!
Bill
by bgreat
Sat Jan 12, 2013 2:26 pm
Forum: Troubleshooting
Topic: Two new R-pi's without wired network.
Replies: 11
Views: 1503

Re: Two new R-pi's without wired network.

Silly question, but have you confirmed the network cable works with a different device? For example, a laptop? Also, I believe the Raspberry Pi does not have an autosensing Ethernet capability, so you need to be certain you have the proper Ethernet cable configuration. It must be a "straight" cable ...
by bgreat
Sat Jan 12, 2013 2:12 pm
Forum: Beginners
Topic: ssh & WiPi
Replies: 2
Views: 613

Re: ssh & WiPi

What distribution are you using for your SD image? Is ssh enabled on the Raspberry Pi? You can test from the Pi by trying 'ssh 127.0.0.1' to connect from the Raspberry Pi to itself on the localhost loopback interface. If this works, try connecting using the IP address assigned to the network adapter...
by bgreat
Fri Jan 11, 2013 4:37 pm
Forum: Troubleshooting
Topic: edimax ew-7811un reboots pi
Replies: 2
Views: 557

Re: edimax ew-7811un reboots pi

Try plugging the it into a powered hub and not directly to the Raspberry Pi. It sounds like it is drawing too much power, causing a power drop and reset.

Enjoy!
Bill
by bgreat
Thu Jan 10, 2013 8:15 pm
Forum: Python
Topic: Basic Coding Help
Replies: 12
Views: 1369

Re: Basic Coding Help

Read the error carefully and look at your code... Can you find the definition for the variable 'windowSize'? Read your '__init__' very carefully and you will spot the error.

Enjoy!
Bill
by bgreat
Thu Jan 10, 2013 7:42 pm
Forum: Python
Topic: Basic Coding Help
Replies: 12
Views: 1369

Re: Basic Coding Help

The only part that I notice immediately is your declaration and use of '__init__'. Note that there should be two underscore characters on either side of 'init'. This gives: import sys from PySide.QtGui import * class MyWindow(QWidget): def __init__(self): super(MyWindow,self).__init__() self.setWind...
by bgreat
Thu Jan 10, 2013 1:42 pm
Forum: General discussion
Topic: Cash Register COM Port and HDMI-DVI
Replies: 4
Views: 6623

Re: Cash Register COM Port and HDMI-DVI

The largest hurdle I see is the need for Raspberry Pi cash register software that is compatible with the hardware you want to interface. Most of cash register systems I have seen with video displays are running on x86 computers and have Windows based software packages. The Raspberry Pi is based on a...
by bgreat
Thu Jan 10, 2013 1:30 pm
Forum: Python
Topic: Problem with the line.split command
Replies: 6
Views: 5138

Re: Problem with the line.split command

The error message is telling you exactly the location and issue. k=line.strip.split() AttributeError: 'builtin_function_or_method' object has no attribute 'split' There is no member attribute called "split" for line. There is a "split()" function. The line should read: k=line.strip().split() A good ...
by bgreat
Thu Jan 10, 2013 1:53 am
Forum: Python
Topic: Basic Coding Help
Replies: 12
Views: 1369

Re: Basic Coding Help

Please post your code inside a "code" block so the indenting is visible. To post code, use the "Code" button and put your code between the tags.

With this
[­code]your code here[­/code]

You get this

Code: Select all

your code here
Enjoy!
Bill
by bgreat
Wed Jan 09, 2013 2:10 pm
Forum: Troubleshooting
Topic: SSH Woes
Replies: 22
Views: 5363

Re: SSH Woes

Now that you report no errors on the interface, I would not expect the half duplex to help. Have you tried forcing 100 Mbit?

Enjoy!
Bill
by bgreat
Wed Jan 09, 2013 1:53 pm
Forum: Networking and servers
Topic: NAT busting security router... for the Cloud!
Replies: 3
Views: 2175

Re: NAT busting security router... for the Cloud!

MonTI Pi-thon! I love it! :D

I have two servers currently hosted externally. I have been wanting to do exactly what you describe for ease of use purposes. This evening is now booked for some serious OpenVPN work.

Enjoy!
Bill
by bgreat
Wed Jan 09, 2013 1:17 pm
Forum: Troubleshooting
Topic: SSH Woes
Replies: 22
Views: 5363

Re: SSH Woes

If you are using a 100/1000 network switch, I would be investigating the 10 Mbit connection rate. This would seem to indicate you are connected to a 10 Mbit network hub. Coupled with the TX and RX errors, I would suspect the network connection. If you are connected to a 10 Mbit hub, or as an experim...
by bgreat
Wed Jan 09, 2013 12:58 pm
Forum: Python
Topic: Problem with the line.split command
Replies: 6
Views: 5138

Re: Problem with the line.split command

I would recommend printing the content of "line" after "ser.readline().rstrip()" to verify the input content is always what you are expecting. Knowing the input will allow you to debug this.

Enjoy!
Bill
by bgreat
Wed Jan 09, 2013 3:56 am
Forum: Automation, sensing and robotics
Topic: Pi, 1.8″ TFT, RF Receiver and Temperature Sensor
Replies: 2
Views: 1308

Re: Pi, 1.8″ TFT, RF Receiver and Temperature Sensor

Looked at the code on your blog. GPIO 17 is normally low and switched high, so I guess my second choice for the switch connection is correct.

I may build something similar myself. Thanks for sharing.

Enjoy,
Bill
by bgreat
Wed Jan 09, 2013 3:49 am
Forum: Automation, sensing and robotics
Topic: Pi, 1.8″ TFT, RF Receiver and Temperature Sensor
Replies: 2
Views: 1308

Re: Pi, 1.8″ TFT, RF Receiver and Temperature Sensor

Looks interesting. What is the RF being used for? I think there may be an error on your wiring diagram. I think the RF module output is connected to 3V3 and depressing the switch as shown will short 3V3 to GND. :o Possibly the 10K should be a pullup connected between 3V3 and GPIO 17, the switch, and...
by bgreat
Wed Jan 09, 2013 3:27 am
Forum: Troubleshooting
Topic: SSH Woes
Replies: 22
Views: 5363

Re: SSH Woes

I use two Pi's exclusively via SSH with minimal lag and no hang issues. One is connected via wireless adapter and the other is hard wired via the onboard Ethernet port. My first thought for any issue similar to this is to verify the processor load via top or uptime to confirm no task is causing you ...
by bgreat
Wed Jan 09, 2013 3:15 am
Forum: Python
Topic: Problem with using while loop in python
Replies: 2
Views: 2146

Re: Problem with using while loop in python

Ok. I created a mysql database called acc on my Pi. Then I tested the code with the following changes: 1. I changed the "while True" loop to a "for i in range(0,10)" loop so the code would not loop forever 2. I added a conn.close() as the last line of the script 3. I multiply the constant a,b,c valu...
by bgreat
Wed Jan 09, 2013 2:30 am
Forum: Python
Topic: Problem with using while loop in python
Replies: 2
Views: 2146

Re: Problem with using while loop in python

Please enclose your source within a "code" block to make it readable. To use a code block, select the "Code" button above the edit window and place your source between the tags. This will preserve the formatting, particularly important for confirming python indentation... It will look like this Is t...
by bgreat
Wed Jan 09, 2013 2:17 am
Forum: Python
Topic: How to make symbold in LCD
Replies: 17
Views: 5944

Re: How to make symbold in LCD

The link you provided shows an inverse character set. The default capability for a character LCD is support for 8 custom characters. The characters are displayed using character codes 00 through 07. To define the bit pattern for the characters you must update the CGRAM locations for the characters. ...
by bgreat
Wed Jan 09, 2013 1:53 am
Forum: Beginners
Topic: dev/ttyS0 over internet
Replies: 8
Views: 2636

Re: dev/ttyS0 over internet

socat was my other choice. I actually use it for a control app that expects a serial port for communication.

Glad you found a solution that can work for you.

Enjoy!
Bill
by bgreat
Tue Jan 08, 2013 9:53 pm
Forum: Beginners
Topic: dev/ttyS0 over internet
Replies: 8
Views: 2636

Re: dev/ttyS0 over internet

Are you trying to make the Windows computer see the serial port on the Pi as a Windows USB device? I do not know of any software to do this specifically. It is possible to redirect the Pi serial port to a network port using netcat. This would allow the Windows system to connect to the network port a...
by bgreat
Mon Jan 07, 2013 5:22 pm
Forum: Python
Topic: Python script as service/autorun
Replies: 4
Views: 18905

Re: Python script as service/autorun

Not certain of how you are starting your application, but the simplest solution is to run it in the background. If you are doing: python myscript.py Instead, do: python myscript.py & The '&' at the end of a command runs it as a background process, returning control to the terminal. If you want to ca...
by bgreat
Mon Jan 07, 2013 3:04 pm
Forum: Troubleshooting
Topic: Can ping but not do more with a network
Replies: 13
Views: 2379

Re: Can ping but not do more with a network

Hello! It is good to see that you discovered a way to configure the network for your static IP address. Even though this will work, it is not the preferred or compatible way of configuring the network interfaces. The network configuration for the interfaces is in the /etc/network/interfaces file. An...
by bgreat
Sun Jan 06, 2013 4:23 pm
Forum: Other projects
Topic: Pi with Sony Bloggie Touch MHS-TS20
Replies: 1
Views: 543

Re: Pi with Sony Bloggie Touch MHS-TS20

The Bloggie Touch HDMI is output only. There are no video inputs. So, it will not work as a display.

Enjoy!
Bill

Go to advanced search