Open glynastill opened 12 months ago
Can anyone shine any light on what this means?
WARNING: [regulator] Write to characteristic failed for: [0000ffd1-0000-1000-8000-00805f9b34fb] with error [Operation failed with ATT error: 0x0e]
WARNING: [regulator] Write to characteristic failed for: [0000ffd1-0000-1000-8000-00805f9b34fb] with error [In Progress]
Those are just warnings. Usually because another write operation has not completed yet. It will just retry the operation and go on.
WARNING: [regulator] Write to characteristic failed for: [0000ffd1-0000-1000-8000-00805f9b34fb] with error [Operation failed with ATT error: 0x0e]
No idea what 0x0e
is but this does not look good.
> HCI Event: Disconnect Complete (0x05) plen 4 #98 [hci0] 53.332657
Status: Success (0x00)
Handle: 64 Address: AC:4D:16:1A:A5:EE (Texas Instruments)
Reason: Connection Timeout (0x08)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0001} [hci0] 53.332814
LE Address: AC:4D:16:1A:A5:EE (Texas Instruments)
Reason: Connection timeout (0x01)
Connection timeut
sounds like a bad connection to the device.
Also, you have a lot of "discover" for the same device:
INFO: [regulator] Connecting to ac:4d:16:1a:a5:ee
INFO: Terminate with Ctrl+C
INFO: [ac:4d:16:1a:a5:ee] Discovered, alias = BT-TH-161AA5EE
INFO: [regulator] Connected to BT-TH-161AA5EE
INFO: [ac:4d:16:1a:a5:ee] Discovered, alias = BT-TH-161AA5EE
INFO: [ac:4d:16:1a:a5:ee] Discovered, alias = BT-TH-161AA5EE
(...)
INFO: [ac:4d:16:1a:a5:ee] Discovered, alias = BT-TH-161AA5EE
To me, this sounds like maybe the upgrade is causing some BT issues. You could try to add an external bluetooth-dongle, mabye connected through an extension cable, to improve the connection.
Thanks @Olen - yes you are correct, it looks like I rolled this raspberry pi onto Bookworm way before it was ready, the pi-bluetooth module isn't even in the Bookworm repository.
I rolled the OS back last night and the head of master works fine - the Operation failed with ATT error: 0x0e
message is related to bluetooth and has now gone away.
The additional discoveries still happen, though they don't seem to cause any issues.
I had some issues with bookworm myself, but after the latest updates, it seems to work fine again. I think they pushed some more BT fixes to Bookworm lately.
I've recently upgraded my home-assistant server on a raspberry pi3 from bullseye to bookworm, and with it I upgraded solar-monitor to the current head of master as I was getting a bunch of python errors. (Old version was at 928a8ccad9c1212ef580e3a53335de70b3fa4543 / Tue Aug 16)
Whilst previously I always saw the following error solar-monitor continued polling happily:
WARNING: [regulator] Write to characteristic failed for: [0000ffd1-0000-1000-8000-00805f9b34fb] with error [In Progress]
Now I'm seeing similar messages, however solar-monitor disconnects after a single poll of all the metrics. I now see this:
When I run btmon, these are the final things I see:
I've only just started looking into this, but any pointers would be appreciated.