What is the current speed you are using for the serial ports? There is also a transmit buffer inside the serial port transmitter in the BBB. If you are putting streaming character data into the transmit buffer faster than the serial port can send it, you can also lose data.
One way to fix this is to set the serial port to a higher speed, on both ends. I think the BBB and most PCs are well behaved up to 256000 bits per second. --- Graham == On Friday, April 21, 2017 at 5:10:16 PM UTC-5, Charles Steinkuehler wrote: > > On 4/21/2017 11:18 AM, David Howlett wrote: > > I have spent about two days tracking down an issue in one of my > machines. I am > > streaming pressure readings from an i2c pressure sensor to a PC at high > speed. I > > have reduced the problem to a small test case. To replicate the fault I > connect > > the beaglebone black to a PC, connect to it with serial over the micro > USB port, > > login and launch a command that streams data fast. On the PC run a > program that > > collects the streamed data more slowly than it is being created. > > This is expected behavior unless you are using hardware flow control > or something like XON/XOFF to throttle the Tx side. > > Otherwise, if you transmit data faster than a receiver can process it, > you will loose data. > > ...looks like you need a faster PC! ;-) > > -- > Charles Steinkuehler > [email protected] <javascript:> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b192eeac-ae39-4cfb-9c1d-b717247186da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
