Use the Beetle BLE as HID keyboard

Hello,
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 :
https://forum.arduino.cc/index.php?topi ... 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 :
Next I connected the device to the bluetooth of my phone, enter the note app... nothing happened.
Thanks in advance for your help
Trit
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 :
https://forum.arduino.cc/index.php?topi ... 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
and I passed the chip in HID mode.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.
}
Next I connected the device to the bluetooth of my phone, enter the note app... nothing happened.
Thanks in advance for your help

Trit
2022-09-20 17:40:35
jenna
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.

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.
Thanks,
Trit
triton
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.
Thanks,
Trit

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.
347945801
