waterrower-ble icon indicating copy to clipboard operation
waterrower-ble copied to clipboard

waterrower-ble not working offline

Open avakano1 opened this issue 6 years ago • 2 comments

First thing first: great work @olympum

I managed to make it work with iPhones via BLE, as a headless unit, using 2 services, one with ble and one with usb options.

There are several crashing situations that I managed to circumvent by using "Supervisor" on the processes.

There is only one critical issue: it does not work if RPI is not connected to internet when starting the ble service. It crashes here: "self.client.addMembership('224.0.0.1');

If I start the processes connected, and disconnect later, all is good.

I managed to avoid crashing by adding an internal IP like this: self.client.addMembership('224.0.0.1', '127.0.0.1'); //(no more DNS lookup) But the process still does not work correctly, because it does not read anything from port '5007' when not connected, and I get '0' values as output.

I tried everything, but can't seem to make it work when RPI is not connected to Wifi or LAN.

I think it's a "dgram" issue, but I can't find a solution. If anyone has any ideas on how to fix this, please chip in.

avakano1 avatar Jun 19 '18 11:06 avakano1

If you ping 224.0.0.1 from a terminal, when the RPi has no Internet route, do you still see the other device(s) in your network?

olympum avatar Jun 20 '18 03:06 olympum

Hi Olympum, Thanks for replying. Nope, the IP is not reachable with Waterrower connected and no network.

avakano1 avatar Jun 22 '18 04:06 avakano1