heartypatch icon indicating copy to clipboard operation
heartypatch copied to clipboard

Bluetooth isn´t working - Enable Controller failed

Open chbardel opened this issue 5 years ago • 5 comments

I get the following debug messages through serial monitor: I (2092) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:1 I (4092) BTDM_INIT: BT controller compile version [484c057] I (4092) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE E (4092) HeartyPatch: heartypatch_ble_Init enable controller failed

I wasn´t able to find it via bluetooth on my S9+ with the heartypatch, EliteHRV and various scanner apps. So i decided to reflash the newest firmware. But still I get the above mentioned error messages. Please help!

chbardel avatar Apr 24 '19 19:04 chbardel

Where you able to resolve this issue? I have the same problem.

shashi100 avatar Aug 21 '19 18:08 shashi100

Na sadly not. Currently it remains useless and lies around in my apartement :/

chbardel avatar Aug 26 '19 07:08 chbardel

I was able to use "make menuconfig" and turn on some debugging then it got around this error. Seems like a problem in the ESP32, I didn't see anything wrong with the heartypatch code, will investigate more this weekend. Could be a hard problem if it works turning on debug and doesn't work when it is off. I'd look for a timing issue then.

styck avatar Oct 03 '19 18:10 styck

I got Bluetooth working, don't think it was code changes but more the changes in the sdkconfig file, I turned off the debugging. Attached image shows the EliteHRV app and my calibrator showing 100bpm.

My fork has the updated code and configurations: https://github.com/styck/protocentral_heartypatch

HeartyPatchBlueTooth

styck avatar Oct 04 '19 22:10 styck

Thanks for the code and your efforts I will try it out as soon as I have time!

chbardel avatar Jan 25 '20 12:01 chbardel