SoftwareDefinedBuildings / smap

smap - Simple Measurement and Actuation Profile
Other
30 stars 36 forks source link

Eagle driver stops #10

Closed gtfierro closed 9 years ago

gtfierro commented 9 years ago

The driver for the rainforest eagle will sometimes refuse to give data; probably blocking on a socket read. Restarting the driver seems to fix the problem, but only temporarily (see the gaps at http://ciee.cal-sdb.org/plot?onkvvrreCa8ThWRhz)

stevedh commented 9 years ago

Might want to toss a socket.settimeout in there -- that should cause any blocking ops to error out rather than hanging. Also, right now exceptions inside of a periodicSequentialCall will cause the call to stop being called, so that whole read business needs to be wrapped in a try/except block to avoid that happening.

gtfierro commented 9 years ago

Thanks for the suggestion! Seems to be fixed now.