Linux-enabled BLE HID peripheral

I am trying to develop a BLE HID peripheral that can be used on Ubuntu 24.04.

When I try to connect the peripheral_hids_mouse example to a Linux machine, it immediately disconnects and becomes unusable.

Is there any sample code that has been confirmed to work with Linux machines?
Or is this a problem specific to my environment?

I am using nRF52840DK and NCS 3.0.2.

The host Linux machine is a Lenovo ThinkPad T14s. It works fine with other Logitech devices.

Parents
  • This is what I got from my attempt connecting to my computer:

    Using nRF Connect for Desktop, I got a popup for a split second, but then I saw that I needed to check of these options:

    Does it work in that case?

    If so, then the issue is probably that the OS (Ubuntu) doesn't use MITM for HID Mouse, and hence it doesn't bond successfully. 

    Let me know what you see, and we can look into it.

    Best regards,

    Edvin

Reply
  • This is what I got from my attempt connecting to my computer:

    Using nRF Connect for Desktop, I got a popup for a split second, but then I saw that I needed to check of these options:

    Does it work in that case?

    If so, then the issue is probably that the OS (Ubuntu) doesn't use MITM for HID Mouse, and hence it doesn't bond successfully. 

    Let me know what you see, and we can look into it.

    Best regards,

    Edvin

Children
  • I thought about it for a bit...

    peripheral_hids_mouse sample performs MITM authentication by displaying a key on the mouse device.

    However, mouse generally do not have the ability to display text. Linux machines also assume this,

    so I think they are configured not to perform MITM authentication with mice.

    It should probably work if you change the settings on your Linux machine and enable MITM regardless of the device.
    Fundamentally, the specification of peripheral_hids_mouse is probably incorrect.

Related