We're loosing serial bytes from PC to phone
laforge at gnumonks.org
Sun Mar 21 15:10:15 UTC 2010
On Sun, Mar 21, 2010 at 11:04:53AM +0100, Erik Ekman wrote:
> > Any ideas? It's really strange and I don't really know what else to do.
> > I'm quite sure our binaries contain multiple successive null-bytes and
> > their download is working great...
> I had similar problems when developing an app in C that communicated
> with a GPS. I lost incoming bytes now and then (probably the same
> pattern as you see). Because of this and other reasons I switched to
> Python and pySerial which worked perfectly fine. I did never
> understand what happened either, I also tried to get as raw mode as
Have you ever bothered to strace the python process in order to
determine which termios settings it uses on the serial port? after all,
the python jit will use the same system calls like any C program.
- Harald Welte <laforge at gnumonks.org> http://laforge.gnumonks.org/
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
More information about the baseband-devel