web hosting and development forums
Web Design and Development Forums Archive


Index - Python programming forum

pySerial


Post reply

Does anyone have experience with pySerial?
A little
excellent -- i'm communicating with a PIC (8-bit microcrontroller, not that it matters). sending information (characters) via .write() works well, but receiving tens to chop off some data. I dont really have an idea where to start looking for a mistake.
What do you mean by "chop off"?
Peter Pitt, ie. i know the received message should be 10 characters long but i receive only x and the often the last received character is garbled. received messsages are chopped even if i use readlines() with a timeout. connecting to the PIC via 'screen /dev/tty.serial <parameters>' works perfectly.
Normally if part of a message is garbled, but the rest isn't, then there is a low-level problem (noise, shorts, etc.)
froomzer, what OS?
Ikopar, well, Fink (ie linux) on OSX Peter Pitt, i thought of that, but connected to the same machine using screen works -- so i rule out non-software problems
S/handshaking/flow control/ :^)
Hmm, sorry I don't have any specific hints off the top of my head
jomanda, yes, that is the most obvious. but i cant set much more than connection speed, parity, flow control and handshaking... hm... Peter Pitt, thanks anyways




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com