So, I wouldn't normally put this in a bug tracker, but I don't see a support email group.
I am using pyserial very successfully in Windows. It works very well for my needs. I am running some experiments with a microcontroller and need to read 4 bytes and send 3 bytes once every 2 milli-seconds. No problem on Windows. It doesn't work well in Linux. I can't yet get the hard data to show explicitly that this is the problem, but it only runs correctly in Linux if I give it 5-10 milli-seconds to complete the serial transaction (as opposed to the 2 milli-second time interval in windows). There is very little going on during this time besides serial communication. The microcontroller code does not change from running the tests in Windows to Linux. I am using a buad rate of 115200, so I think the transmission time is quite reasonable. I have been poking around trying to time the execution and it seems like reading the 4 bytes from the microcontroller is the problem.
What can be done to make serial communication faster in Linux?
Log in to post a comment.