There are no actual errors.
But there still are some some noteworthy sections:
Bt: Adv: H
ID advertising successfully started
Conn state: Host0(Wired, Ready), Active
Conn state: Host0(Wired, Ready), Active
bas: BAS Notifications enabled
Bt: connected n/a (Polaris, 1c:ce:51:c4:1b:8a), 4 3
Conn state: Host3(Polaris, Connected), Peer host1
Bt: Established HID connection with host1 (Polaris, 1c:ce:51:c4:1b:8a)
Conn state: Host3(Polaris, Ready), Peer host1
Bt: btManager: BtManager_StartScanningAndAdvertisingAsync because StartScanningAndAdvertisingAsync in connectHid
Bt: btManager: should scanAndAdvertise 0 1
Bt: Starting advertising, try 0!
Bt: start advertising
Bt: filling adv allow filter
Bt: Adv: NUS advertising successfully started
Batteries: 95% 99% (4131 4139)
Batteries: 95% 99% (4131 4139)
Conn state: Host3(Polaris, Ready), Peer host1, Active
Conn state: Host3(Polaris, Ready), Peer host1, Active
Batteries: 95% 99% (4131 4140)
Batteries: 95% 99% (4130 4140)
nected from host1 (Polaris, 1c:ce:51:c4:1b:8a), reason 22
Conn state: Host3(Polaris, Disconnected), Peer host1, Active
Conn state: Host0(Wired, Ready), Active
Bt: btManager: BtManager_StartScanningAndAdvertisingAsync because StartScanningAndAdvertisingAsync in disconnected
Unpaired device 1C:CE:51:C4:1B:8A (public)
Unpaired device 28:C5:D2:1A:94:9B (public)
Bt: btManager: should scanAndAdvertise 0 1
Bt: Starting advertising, try 0!
Unpaired device E1:FC:39:A2:83:84 (random)
Settings: Found peer 'left' with address c20923bb76e2
Settings: Found peer 'left' with address c20923bb76e2
Matched key: 1cce51c41b8a0, addrString: e276bb2309c21 ? 0
Bt: start advertising
Matched key: 28c5d21a949b0, addrString: e276bb2309c21 ? 0
Matched key: �drbt/hash, addrString: e276bb2309c21 ? 0
Matched key: er/maxVoltage, addrString: e276bb2309c21 ? 0
Bt: Adv: HID "and NUS" advertising successfully started
Bt: connected n/a (Polaris, 1c:ce:51:c4:1b:8a), 4 3
Matched key: e276bb2309c21, addrString: e276bb2309c21 ? 1
Settings: Erased all settings
Settings: Found peer 'left' with address c20923bb76e2
This says that Agent has intentionally erased the settings (including all the bonds). I am wondering why? Have you triggered it?
At the same time, it says that it (Polaris) is not a selected connection, which would imply that you are either trying to connect multiple HIDs devices at the same time (which is not supported), or more than 3 devices at the same time, and that you are probably using direct switches to devices?
Polaris is trying to connect again and again, but is refused by the UHK based on that you have selected another device for connection - in that case you should see a target on the oled in form of “currentHost → selectedHost”. Please mention these in the next testing iteration.
Regarding gibberish spitting, I am very interested about that bug, but have no leads on how to reproduce it.
Here is a new build with adjusted logging. [Edit: actually give me a minute
.]
You can also run a zephyr uhk connections
macro at any time to print connection states - please do it at any point that looks interesting for you (e.g., in the above log, it would be nice to see it somewhere around the beginning).