Bluno General Arduino

Use the Beetle BLE as HID keyboard

userHead triton 2021-01-30 22:43:31 1752 Views3 Replies
I would like to use my Beetle BLE as a bluetooth HID keyboard to do a very simple thing : When I press a button, the card send the key « space ».
I already done this with a leonardo by USB connection but it was different because the uc of this card is HID ready : ... msg3119853

Now, I have no Idea how to code my program for the beetle ble.
I tried to send this code from the arduino exemples :
Code: Select all
void setup() {
    Serial.begin(115200);               //initial the Serial
void loop()
Serial.write(45); // send a byte with the value 45

  int bytesSent = Serial.write("hello");  //send the string "hello" and return the length of the string.

and I passed the chip in HID mode.
Next I connected the device to the bluetooth of my phone, enter the note app... nothing happened.

Thanks in advance for your help :)
2022-09-20 17:40:35

Please enter AT mode and use the following commands to setCommand 1: AT+SETTING=DEFAULT or AT+ROLE=ROLE_PERIPHERAL\r\nCommand 2: AT+FSM= FSM_HID_USB_COM_BLE_AT\r\nRestart Bluno, then operate on PC.

userHeadPic jenna
2021-02-07 00:54:28 Thanks for your answer.
I was thinking that bluetooth numpad keyboard worked with these two protocols together. It's bluetooth and it's reconized as an HID keyboard...

Maybe you know an other device to do what I want ? I'm looking for the tinyest chip to send a "key" at my computer via bluetooth.
userHeadPic triton
2021-02-02 10:28:00 The Bluetooth protocols of these two devices are different. One is BLE protocol and the other is HID protocol. In theory, they cannot be used together. userHeadPic 347945801