DAISEE / CitizenWatt-Base-PINE64

Code running on the base of CitizenWatt project.
http://daisee.cc
GNU General Public License v3.0
1 stars 1 forks source link

Too long communication between Arduino and Pine64 #2

Open SamR1 opened 8 years ago

SamR1 commented 8 years ago

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.") :

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
SamR1 commented 7 years ago

Note : same issue between a Raspberry Pi and a CitizenWatt sensor (connected through nRF24)