-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not scan any devices #1
Comments
Total devices found: 2 its ok.but can not scan my iPhone and my android Phone |
Hi, Thanks for trying it out, that's just an early version and certain thing are not working yet. Concerning the android phone, it should be detected (only if compatible BLE), concerning iPhone, I don't know if they respected the standard. There is also some problem with the current MQTT client (notably with mosquitto broker) that I'll try to fix as a next step. The Bluetooth module/library seems to not initialize itself correctly sometimes and also need some fixing. |
ok,thanks for your reply. |
everytime i turn on my iPhone Bluetooth |
It's call MAC randomization and you can say thanks to Apple for that... I'm not sure there is a way to change that. It's just your iPhone using another Mac address each time. |
yeah,it that mean i must be turn on my iPhone bluetooth to make sure the happy bubble correctly trace it. |
i find some problem. |
I am having the same problem as well, not seeing any beacons. I have several kinds here, I can see them in a beacon scanner app on my phone. It starts up and connects to MQTT fine. The serial monitor just loops:
I don't know if this has anything to do with my issue, but I did have to manually download the BLE library from arduino-esp32 when I set up the board manager. The library is there like it shold be and everything compiles fine. Any help appreciated, the 'official' happy bubbles are out of stock :) |
LOL never mind. I of course unplug-replug it back in just one more time and it now it's scanning fine. I did that several times though before posting. You said the BLE doesn't initialize sometimes, seems like maybe that was my problem? Thanks for this project, super helpful. |
Yep, exactly this problem, need to find another Bluetooth library for the esp32 that is more reliable or tweak the current one. |
Got it. Mine is seeing bluetooth devices when it starts up, then it seems to go on a loop with nothing found after that. I'm also seeing my iBeacons picked up, but not with their UUID Major/Minor, ie
|
Hi, very good job ! |
According to some, the problem comes from the fact that the ESP32 share his antenna between the WiFi and Bluetooth module. |
@RiRomain You may want to take a look at the library being used by the OpenMQTTGateway project, they recently added ESP32 BLE support and it is working pretty well for me https://github.com/1technophile/OpenMQTTGateway |
here is my esp32 log
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:11904
entry 0x40078a3c
happy-bubbles/ble/bedroom/raw/
Connecting to WiFi..
Connecting to WiFi..
Connecting to WiFi..
Connecting to WiFi..
Connecting to WiFi..
Connecting to WiFi..
Connecting to WiFi..
Connected to the WiFi network
Connecting to MQTT...
connected
Success sending message to topic
Finished setup
New loop
E (14186) BT: btc_search_callback BLE observe complete. Num Resp 0
Total devices found: 0
Scan done!
New loop
E (24198) BT: btc_search_callback BLE observe complete. Num Resp 0
The text was updated successfully, but these errors were encountered: