Skip to content

Issues with freezes in dongle #7

Description

@janpfischer

Hey,
thank you for creating this great Display addition for a dongle.
I am quite extensively testing this module and incoutered some issues around sudden freezes of the whole dongle.
The display becomes unresponsive and no input strokes are being captured.

I can reproduce this by the following (assuming starting fresh with settings reset of dongle and keyboard splits itself)

  1. Start the dongle
  2. Connect the keyboard halves
  3. USB debugging of the dongle shows that new devices are connected
  4. Log stream is constant and new messages for each key stroke appear
  5. You can now type normally
  6. Connect a second device via Bluetooth
  7. You can switch to that devices and type normally
  8. Optional: Switch back to USB or leave it to bluetooth, does not matter for the following
  9. Deactivate Bluetooth in the device which is connected to it (e.g. mobile phone)
  10. Log stream stops, even in the middle of a line. Seems to get stuck at some interrupt etc
  11. Keyboard unresponsive no keystrokes detected and logged
  12. Display unresponsive

In this state a simple restart of the dongle does not help anymore. It boots partly and stucks again at various events. No Logs available again, no keystrokes.
To solve this you have to turn of both keyboard halves via shutting of the battery. Restart the dongle and then turn on the batteries again.
This behavior is 100% reproducible.

I did some more testing and this does not only happen when connecting and disconnecting bluetooth. It is even happening when just restarting the dongle or unplug and replug it when keyboard halves are on.
Most times the first battery bar is loaded and the display get's stuck on the second bar. Sometimes it does not even show the N/A text. Sometimes it get's to N/A but never to the battery value. Everything else is unresponsive then as well.
Fix of this as described above. Turn of keyboard halves, restart dongle, turn on keyboard halves.

If I am using the dongle feature from ZMK in its basic configuration without building it with this module extension and run it on the same controller I do not have any of these issues. If I disconnect the bluetooth client the keyboard falls back to USB and I can continue typing. I can then reenable bluetooth and the dongle connects again to my phone.

If I can I am ready to do further testing and debugging if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions