[python-uk] Pyserial on Raspberry Pi returning just "\x00" ie NULL characters

2012-07-02 Thread Michael
Hi, Probably a little off topic, but posting here in the hope that someone else has tried connecting a Rasp Pi to an arduino using the arduino's built in usbserial device. (ie like you would with a "normal" linux box). Ignoring all the app details, if I have a piece of code that's like this: im

Re: [python-uk] Pyserial on Raspberry Pi returning just "\x00" ie NULL characters

2012-07-02 Thread John Pinner
Hello Michael, On 2 July 2012 13:45, Michael wrote: > Hi, > > > Probably a little off topic, but posting here in the hope that someone > else has tried connecting a Rasp Pi to an arduino using the arduino's > built in usbserial device. (ie like you would with a "normal" linux > box). > > Ignoring

Re: [python-uk] Pyserial on Raspberry Pi returning just "\x00" ie NULL characters

2012-07-02 Thread Stephen Emslie
I've found strace to be a really valuable tool in debugging arduino serial communication. Not sure what your problem is, but perhaps inspecting the serial connection like this could help: strace -e trace=read,open,write -p That should print out all read, write, and open calls from your proce

Re: [python-uk] Pyserial on Raspberry Pi returning just "\x00" ie NULL characters

2012-07-02 Thread Michael
On 2 July 2012 14:15, Stephen Emslie wrote: > I've found strace to be a really valuable tool in debugging arduino serial > communication. Not sure what your problem is, but perhaps inspecting the > serial connection like this could help: > > strace -e trace=read,open,write -p > > That should