Skip to main content
Bogdan Golab
Lead
January 16, 2019
Solved

Connecting Bluetooth HID keyboard to STM32

  • January 16, 2019
  • 3 replies
  • 2197 views

Hi,

I'd be grateful for any suggestion what BT module supporting HID I should use to connect BT HID keyboard to the STM32. I see that many popular HC-XX modules support only SPP profile.

There are some modules supporting HID profile but all the examples I found focus only on using them to implement the HID device (not to terminate the connection from the device).

What I want to achieve:

BT_HID_KB-------------------------------BT_HID_Host_Module------STM32

So the BT_HID_Module I am looking for is supposed to have BT Host functionality.

Thanks,

Bogdan

    This topic has been closed for replies.
    Best answer by Bogdan Golab

    One solution I found (not very easy to implement):

    RN42 module, HCI mode (the HW offload for profiles is disabled and the whole processing is moved to the host MCU)

    https://cdn.sparkfun.com/datasheets/Wireless/Bluetooth/bluetooth_cr_UG-v1.0r.pdf

    "In HCI mode, the on-board stack is bypassed a nd the module is put in a state that runs the Bluetooth baseband. The HCI provides a command reference interface to the base-band controller and the link manager, and provides access to the hardware status and control registers. This interface provides a uniform method for accessing the Bluetooth baseband capabilities.

    "

    3 replies

    Pavel A.
    Super User
    January 17, 2019

    The suitable forum for this question is: Interface and connectivity ICs

    https://community.st.com/s/topic/0TO0X000000BSqXWAW/interface-and-connectivity-ics

    -- pa

    Bogdan Golab
    Bogdan GolabAuthorBest answer
    Lead
    January 17, 2019

    One solution I found (not very easy to implement):

    RN42 module, HCI mode (the HW offload for profiles is disabled and the whole processing is moved to the host MCU)

    https://cdn.sparkfun.com/datasheets/Wireless/Bluetooth/bluetooth_cr_UG-v1.0r.pdf

    "In HCI mode, the on-board stack is bypassed a nd the module is put in a state that runs the Bluetooth baseband. The HCI provides a command reference interface to the base-band controller and the link manager, and provides access to the hardware status and control registers. This interface provides a uniform method for accessing the Bluetooth baseband capabilities.

    "

    Bogdan Golab
    Lead
    January 17, 2019

    After some research:

    I will consider the USB Host HID to support BT HID devices (to re-use US Host library for HID devices)

    The idea is shown here:

    https://blog.tkjelectronics.dk/2013/12/bluetooth-hid-devices-now-supported-by-the-usb-host-library/

    There is a small version of USB Host:

    http://shop.tkjelectronics.dk/product_info.php?products_id=45