[NRF52833] [Nrf connect SDK] HID forward module via bluetooth

Hi Nordic team,
I'm trying to implement a module that forward messages from the keyboard to the computer via bluetooth.
Input:
Wired keyboard plugs into the USB port on the module, the keyboard will be powered by the module to operate.
The module will read the keyboard's HID message continuously.
Outcomes:
The read message will be converted to bluetooth and sent to the computer via the HID bluetooth keyboard.

If it is possible, please help me!
Thanks in advance!

  • Hello,

    Before you start on this project, you should be aware that you will not be able to connect the USB on from the wired keyboard to the USB on the nrf52833, because neither the keyboard nor the nRF are USB hosts. 

    Besides, I don't think wired keyboards are typically very low power (because they are not designed for it), so you would either need a quite big battery, or you need a wired power supply, which sort of defeats the purpose. You will just move the wire from the computer to the wall. 

    If you, however, are able to get key strokes from the keyboard to the nRF (you would need an external USB host), then we have a sample for HID keyboard, that you can probably use. If you use NCS (nRF Connect SDK) look in ncs\samples\bluetooth\peripheral_hids_keyboard. If you are using the nRF5 SDK, please check out SDK\examples\ble_peripheral\ble_app_hids_keyboard.

    Best regards,

    Edvin

  • I can use 2 nrf chips:
    The first chip to read the wired keyboard message, then send to the 2nd chip.
    2nd chip for bluetooth communication with computer (like 1 bluetooth keyboard)
    But for the nrf chip to read the wired keyboard, I don't know how to do it properly.
    Battery issues are not my concern.
    Is nrf52833 possible or not?

  • Tien_Nguyen said:
    The first chip to read the wired keyboard message, then send to the 2nd chip.

    The problem is that you can't read the USB messages. The USB protocol consists of one master and one (or more) slaves. The nRF can be a USB slave, and the keyboard is also a slave. You don't have a USB master (Host). USB is a complex protocol, so it is not possible to just bit-bang it.

    BR,

    Edvin

Related