turgu1 / bt-keyboard

Other
71 stars 8 forks source link

Not working with latest release of ESP-IDF v4.4 #1

Open caden-parajuli opened 2 years ago

caden-parajuli commented 2 years ago

After checking out the latest commit of ESP-IDF from the release/v4.4 branch, I noticed the code in this repo is not working. I tried checking out commit d501a53f2f038521e9c9a4f29b4b63745c76ed11 since that commit was on February 2nd, the same day as the last commit of this repo. Everything worked after that.

The specific issue I was having was the keyboard would not connect and logged the following:

W (12283) BT_HCI: hcif conn complete: hdl 0x81, st 0x0
W (12333) BT_SDP: process_service_attr_rsp
W (12393) BT_SDP: process_service_attr_rsp
W (12433) BT_HCI: hci cmd send: disconnect: hdl 0x81, rsn:0x13
E (12443) BT_HIDH: OPEN ERROR: ERR
E (12443) BTKeyboard:  OPEN failed!
W (12513) BT_HCI: hcif disc complete: hdl 0x81, rsn 0x16

Steps to reproduce:

cd ~/esp
git clone -b release/v4.4 --recursive https://github.com/espressif/esp-idf.git
git clone https://github.com/turgu1/bt-keyboard.git
cd bt-keyboard
~/esp/esp-idf/tools/idf.py flash monitor

I have not tried any commits in-between the latest and d501a53f2f038521e9c9a4f29b4b63745c76ed11, so I don't know where the bug was introduced. If I find the time I might try bisecting to find the precise ESP-IDF commit.

turgu1 commented 2 years ago

Hello, If you look close to the end of the README.md file, I wrote the need to update v4.4 to get it patched as there was a bug related to the BT that was corrected. They may wait until version 4.5 to have it part of the release.

Hope this help.