| View previous topic :: View next topic |
| Author |
Message |
froomzer Enthusiastic Coder
Joined: 23 May 2006 Posts: 148
| |
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
froomzer Enthusiastic Coder
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.
Reply with quote
|
| |
|
|
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
froomzer Enthusiastic Coder
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.
Reply with quote
|
| |
|
|
Peter Pitt Enthusiastic Coder
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.)
Reply with quote
|
| |
|
|
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
froomzer Enthusiastic Coder
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
Reply with quote
|
| |
|
|
jomanda Enthusiastic Coder
Joined: 19 May 2006 Posts: 70 Location: Germany
| |
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
Hmm, sorry I don't have any specific hints off the top of my head
Reply with quote
|
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|