Skip to content Skip to sidebar Skip to footer

Serial Data Transmission Input-output Delay With Raspberry Pi

The Goal: Drive several servo/RC motors wireless from one pi to another pi. In essence, I want to build a RC remote control using a pi, with a second pion the receiver end. Now I

Solution 1:

First, I'm not sure the ser.write() is an async call. If this is using the pySerial library, the docs say that it is a blocking call.

Perhaps try:

...
ser.write(sData)
ser.flush()    # Force the 'send'print sData
...

Also, your ldata might be easier to populate like so:

lData = [iCount % 100, iCount % 10000, ...etc]

Also, setting a write timeout might help (but I don't think so).

Post a Comment for "Serial Data Transmission Input-output Delay With Raspberry Pi"