Open SamR1 opened 8 years ago
In receive.py, the command serialArduino.readline() is too long to respond, it can take up to 5 minutes !
serialArduino.readline()
example (time between "1." and "2.") :
debian@citizenwatt:/opt/citizenwatt$ python3 receive.py ==> starting receive.py -> 1. 2016-09-04 20:26:12.422082 -> 2. 2016-09-04 20:29:20.071882 -> 3. 2016-09-04 20:29:20.072829 -> 1. 2016-09-04 20:29:22.075305 -> 2. 2016-09-04 20:30:10.495330 -> 3. 2016-09-04 20:30:10.496585 -> 1. 2016-09-04 20:30:12.497574 -> 2. 2016-09-04 20:31:26.230854 -> 3. 2016-09-04 20:31:26.232057 -> 1. 2016-09-04 20:31:28.234504 -> 2. 2016-09-04 20:32:33.561907 -> 3. 2016-09-04 20:32:33.563101 -> 1. 2016-09-04 20:32:35.565513 -> 2. 2016-09-04 20:37:36.500316 -> 3. 2016-09-04 20:37:36.501544
Note : same issue between a Raspberry Pi and a CitizenWatt sensor (connected through nRF24)
In receive.py, the command
serialArduino.readline()
is too long to respond, it can take up to 5 minutes !example (time between "1." and "2.") :