I need to do some Raspberry Pi3 contact operations at a specific time. For example, I send several bytes via uart, then I need to wait about 5 ms and send the next part of the bytes again, but I noticed that if I do time.sleep(0.005)
or, for example, wiringpi.delay(5)
from time to time, this sleep / delay has some kind of interrupt and does not take 5 ms, but, for example, 10 ms. All this is irregular, and I do not know how to catch this problem. Some ideas how to do this always 5 ms?
source
share