Closed compujunk closed 3 years ago
Could you give it a try specifiying BS444 as the scale model in the file BS440.ini ? The BS444 uses public adressing (where random adressing would cause your "unable to connect" issue. Also the later models start the clock at 1/1/2010 (instead of standard unix timestamp).
still timeouts with BS444 as scale model
Sat, 24 Apr 2021 21:21:35 INFO scan Starting BLE scan
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 7A:72:F3:FC:72:42 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 4D:93:9C:61:8E:A6 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 51:B9:4D:95:77:75 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 73:9C:4B:DA:5A:C5 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 61:4B:40:59:48:BB (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered DC:66:1F:AE:C1:F5 (013197F5C1AE1F66DC)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 71:52:2F:BD:46:17 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Discovered 74:38:DD:5C:4F:B9 (None)
Sat, 24 Apr 2021 21:21:45 INFO scan Found 8 BLE devices
Sat, 24 Apr 2021 21:21:45 INFO connect Connecting to DC:66:1F:AE:C1:F5 with timeout=8
Sat, 24 Apr 2021 21:21:53 ERROR connect Timed out connecting to DC:66:1F:AE:C1:F5 after 8 seconds.
Sat, 24 Apr 2021 21:21:53 INFO connect Connecting to DC:66:1F:AE:C1:F5 with timeout=8
Sat, 24 Apr 2021 21:22:01 ERROR connect Timed out connecting to DC:66:1F:AE:C1:F5 after 8 seconds.
Sat, 24 Apr 2021 21:22:01 INFO connect Connecting to DC:66:1F:AE:C1:F5 with timeout=8
Sat, 24 Apr 2021 21:22:09 ERROR connect Timed out connecting to DC:66:1F:AE:C1:F5 after 8 seconds.
Sat, 24 Apr 2021 21:22:09 INFO scan Starting BLE scan
Sat, 24 Apr 2021 21:22:10 ERROR scan BLE adapter requires reset after a scan as root- call adapter.reset()
Sat, 24 Apr 2021 21:22:15 INFO scan Starting BLE scan
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered DC:66:1F:AE:C1:F5 (013197F5C1AE1F66DC)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 73:9C:4B:DA:5A:C5 (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 7A:72:F3:FC:72:42 (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 61:4B:40:59:48:BB (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 51:B9:4D:95:77:75 (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 4D:93:9C:61:8E:A6 (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Discovered 71:E1:C9:20:5E:B2 (None)
Sat, 24 Apr 2021 21:22:25 INFO scan Found 7 BLE devices
Got the Pi close enough to the scale? Discovery works at large distance, connecting needs it to be at max 1..2 m Are you able to connect to it using gattool from the commandline manually? (is not easy as the scale is only connectable right after processing the measurement). The code uses these gatttool commands in background.
at first it did but now suddenly I don't see anymore. Tomorrow I will reinstall everything and see if it works again if that works I will try BS444 again. I'll let you know if it works then or if I'm still having issues.
i have reinstalled everything but it still doesn't work. now i read somewhere else that the bluetooth of the Pi3 + is not very stable so i'm going to try it first with a BT dongle but i have to purchase it first. I will come back to this later
I have a BS445 which according to the medisana support page is the same as the BS440 but that probably means its operation.
When I run BS440.py and put on the scale I get the following in my log file:
I run it on a Pi 3+ so with built-in bluetooth