Hi, I'm trying to make requests at the maximum speed that the bus allows me using the python library. At first I saw that it took 1.5 seconds to make 7 data requests when in other applications each request was resolved in 15 ms. I discovered that there was a time.sleep(0.1) in the _readThread function and when I removed it I went down to 300 ms. But I would like to go down more. Can you give me any more recommendations to increase speed? Thank you.
Hi, This sleep is becauseā¦
Hi,
This sleep is because some of the USB to serial port controllers return right away if there is no data available on the serial port. This will cause the CPU to be 100%.
You can remove the sleep if you want to, but it might cause problems with other serial port controllers.
I'll check if the delay can be changed from 100ms to 10ms.
BR,
Mikko