Skip to content

BLE reconnect loop #1056

@mondalaci

Description

@mondalaci

I seldom test BLE, but I paired my UHK 80 to my Linux PC yesterday, disconnected the BLE connection, and kept using USB. I think I didn't delete the bond. Before going to bed, I put my PC to sleep, and when I woke it up today, my UHK 80 seemingly didn't work and was disconnected according to the OLED display.

I looked into the Zephyr log and saw the following repeating:

W: opcode 0x200a status 0x0d 
Bt connected to unknown (e8:9c:25:57:11:5f)
Bt disconnected from unknown (e8:9c:25:57:11:5f), reason 5
NUS and HID advertising successfully started
USB config changing to Hid_Full
USB config changing to Hid_Full
W: opcode 0x200a status 0x0d 
Bt connected to unknown (e8:9c:25:57:11:5f)
Bt disconnected from unknown (e8:9c:25:57:11:5f), reason 5
NUS and HID advertising successfully started
USB config changing to Hid_Full
USB config changing to Hid_Full
W: opcode 0x200a status 0x0d 
Bt connected to unknown (e8:9c:25:57:11:5f)
Bt disconnected from unknown (e8:9c:25:57:11:5f), reason 5
NUS and HID advertising successfully started
USB config changing to Hid_Full
USB config changing to Hid_Full

I'm unsure about the best solution but feel free to make suggestions. Maybe the firmware should simply stop trying to connect after a certain number of failures within a timeframe per host connection. I'm on master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions