Open najaB76 opened 2 years ago
Sounds like the characteristics of the SmartSolar changed or it didn't pair successful (What I do not believe from your bluetoothctl log). Was there an update of the SmartSolar recently? Which Version is it? On which commit you are using this repository?
Hello.
Rather annoyingly, I have now locked myself out of the Raspberry Pi temporarily.
Circling back around to this. The version is 1.59.
It has started connecting again, but when I run victron.py in debug mode there are unrecognised values all over:
[DEBUG ] (2022-07-28 14:17:56,854) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b'\x08\x03\x19\xec X \x8d\xed\xff\xff\xff\xff\xff\xff\xec\xed\xff\xff\xff': 'unknown command (in var len) 0x8a in dict_keys([140, 141, 142, 125, 143, 188, 189, 187, 239, 240, 246])'
[DEBUG ] (2022-07-28 14:17:56,856) victron_bluetooth.py::279 UNRECOGNIZED DATA: smartsolar1: unknown single packet: value:b'\xff\xff\xff>\xec\xff\xff\xff\xff\xff\xff\x8c\xed\xff\xff\xff\xff\xff\xff' - value_origin:b'\xff\xff\xff>\xec\xff\xff\xff\xff\xff\xff\x8c\xed\xff\xff\xff\xff\xff\xff'
[DEBUG ] (2022-07-28 14:17:56,899) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b'\x08\x03\x19\xed\x8fB\xdb\x01\x08\x03\x19\xed\x8cD\x8c\xb9\x00\x00\x08\x03': 'unknown command (in var len) 0x8a in dict_keys([140, 141, 142, 125, 143, 188, 189, 187, 239, 240, 246])'
[DEBUG ] (2022-07-28 14:17:56,903) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b'\x19\xec\x8aB<\x05\x08\x03\x19\xed\xbcDp\x0b\x02\x00\x08\x03\x19\xed': 'unknown command (in var len) 0x8a in dict_keys([140, 141, 142, 125, 143, 188, 189, 187, 239, 240, 246])'
[DEBUG ] (2022-07-28 14:17:56,905) victron_bluetooth.py::279 UNRECOGNIZED DATA: smartsolar1: unknown single packet: value:b'\xbbB\xc8J' - value_origin:b'\xbbB\xc8J'
[DEBUG ] (2022-07-28 14:17:56,908) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b"\x08\x03\x19 'Dp\x0b\x02\x00": 538510088
[DEBUG ] (2022-07-28 14:17:56,912) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b'\x08\x03\x19 \x13D\x8c\xb9\xff\xff': 538510088
[DEBUG ] (2022-07-28 14:17:57,407) victron_bluetooth.py::279 UNRECOGNIZED DATA: smartsolar1: unknown single packet: value:b'\xecZD\xad\xc3\xb8\x00' - value_origin:b'\x08\x03\x19\xecZD\xad\xc3\xb8\x00'
[DEBUG ] (2022-07-28 14:17:57,617) victron_gatt.py::117 UNRECOGNIZED DATA: smartsolar1: error handling: b'\x08\x03\x19\x02\x07D\x00\x00\x00\x00': 35193608
Could this be related to the connection issues that I'm seeing?
We still have not decoded many of the values which are returned by the device and print these out in debug mode. Do you get any output, or just the debug data?
Looking for some advice. I managed to set up the connection to a SmartSolar 250/70. It was working fine for a week or two, sending data to a MQTT logger. A couple of days ago it stopped working, and is throwing two different errors in the log:
It either fails to connect with this error:
Or it connects and then throws this one:
I'm using the built-in Bluetooth connection in a Raspberry Pi 3B+. The SmartSolar is connected as shown in bluetoothctl:
I've removed and rediscovered the SmartSolar and can't see anything wrong there:
And then re-added:
And pairing:
Any thoughts or suggestions?
Edit: Forgot to mention, system has been rebooted several times.