Closed MuadDib007 closed 1 month ago
Hi there! Thanks for reporting this and for posting the log.
It seems your Mediaboard Pro is an older model that uses the Legacy Pairing procedure. This protocol requires the user to enter a custom pairing key on the device, then the device informs the keyboard about it.
Since we can't enter a custom pin easily on the ESP32, this key is fixed and is always 1234, as defined in bt_keyboard.cpp
:
/*
* Set default parameters for Legacy Pairing
* Use fixed pin code
*/
esp_bt_pin_type_t pin_type = ESP_BT_PIN_TYPE_FIXED;
esp_bt_pin_code_t pin_code;
pin_code[0] = '1';
pin_code[1] = '2';
pin_code[2] = '3';
pin_code[3] = '4';
esp_bt_gap_set_pin(pin_type, 4, pin_code);
Please try to use 1234 as a pin then enter when you read " Waiting for BT manual code entry..." on the console!
Remember to use this procedure to make your keyboard discoverable:
Switch the keyboard off, switch it on, press reset. (source)
I might as well put this on the readme on the mainpage. Sorry, I don't have a legacy keyboard so I didn't know this could happen!
Humberto
Hi Humberto, thanks for the quick response.
Using 1234 as pin works perfectly. Can't wait to test it on my "old" computer.
That's great! Glad it worked. I'm going to put this on the readme.
Remember to build your cable with care and to configure the pins correctly.
A new version is coming with support for multimedia keys. Once you got v0.4 working, if you are interested in testing it check #7 .
If anything goes wrong and you need help, please open a new issue.
Cheers!
I have downloaded and installed the 0.4 beta binary version to my ESP-WROOM-32 (Wemos D1 Mini32). It shows detection of many bluetooth devices including my Logitech Cordless Media Keyboard.
Unfortunately it does not snow a PIN via serial and the LED is not blinking as well. Tried to compile myself but as I am unexperienced with Visual Studio Code I fail to compile because it cannot find the includes.
Output from the serial: As I did not know the PIN I just entered a wrong one on the keyboard followed by ENTER