nsg-ethz / autopower

A software suite to conveniently collect, gather, and display power measurement from networking hardware.
MIT License
2 stars 1 forks source link

Auto-starting measurement and IPv6 #18

Open romain-jacob opened 1 month ago

romain-jacob commented 1 month ago

During one test, one Pis used an IPv6 address to register on the server and that same PI didn't start measuring once connected to the power meter. Starting measurements from the GUI worked fine though...

Not sure if that's related, but there may be something missing in the IPv6 branch of the code. I'll take note of this and investigate later (or not...)

UsualSpec commented 1 month ago

I don’t think it’s related to IPv6. More likely it’s a concurrency bug or the pi could not start the measurement due to some error with the power meter. There is a timeout in startMeasurement()

https://github.com/nsg-ethz/autopower/blob/1911af784f3ebd97050e28a316931f3fd56d8f28/client/client.cc#L358

https://github.com/nsg-ethz/autopower/blob/1911af784f3ebd97050e28a316931f3fd56d8f28/client/client.cc#L390

you can check the syslog of the device in question and search if the respective error message came up.