| View previous topic :: View next topic |
| Author |
Message |
froomzer
Joined: 23 May 2006 Posts: 148
|
| Does anyone have experience with pySerial? |
| |
|
|
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| A little |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| 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. |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| What do you mean by "chop off"? |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
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. |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Normally if part of a message is garbled, but the rest isn't, then there is a low-level problem (noise, shorts, etc.) |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| froomzer, what OS? |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
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 |
| |
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
| S/handshaking/flow control/ :^) |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Hmm, sorry I don't have any specific hints off the top of my head |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|