On Sun, Sep 28, 2014 at 05:32:26PM +0800, m.v gautam wrote:
> Hi,
> I am trying out serial communication between raspberry pi and atmega 32 using
> pyserial module . I have tried serial communication between two atmega and it
> is working.
> But when I try it rpi and atmega I get blank lines as o
On Mon, Sep 29, 2014 at 12:58:09PM +0100, Alan Gauld wrote:
[...]
> How do you know that val is not a blank line?
> Remember that a blank line is not necessarily empty, it might be full of
> unprintable characters.
>
> Try this instead:
>
> while True:
> print "try"
> val = ser.read(10
On 28/09/14 10:32, m.v gautam wrote:
import serial
ser = serial.Serial('/dev/ttyAMA0',38400,timeout = 10)
while True:
print "try"
val = ser.read(10)
print val
There is a blank line being printed every time in place of val.
How do you know that val is not a blank l
Hi,
I am trying out serial communication between raspberry pi and atmega 32 using
pyserial module . I have tried serial communication between two atmega and it
is working.
But when I try it rpi and atmega I get blank lines as output. My python code is
import serial
ser = serial.Serial('/dev/tty