Radbeacons not scanned by BLE
-
Hi there, Im trying to do ble scanner with the lopy and altough i get a lot of responses it is not seing my radbeacons.
I have researched in forums and it appear to be a common problem between esp32 and this particular beacon, and someone obtained some good outcomes with this code:
static esp_ble_scan_params_t ble_scan_params = {
.scan_type = BLE_SCAN_TYPE_PASSIVE,
.own_addr_type = ESP_PUBLIC_ADDR,
.scan_filter_policy = BLE_SCAN_FILTER_ALLOW_ALL,
.scan_interval = 10000,
.scan_window = 10000
};But i have no idea of how to test it as I'm not programming the esp directly
Does anyone have a solution for this??
https://github.com/espressif/esp-idf/issues/421
Thanks :)
-
@mmbermudeza
You'll need to build the entire Pycom image and for that you need the full ESP-IDF too but it doesn't take very long to build. You don't need any IDEs, just the free compilers.Start with the instructions at https://github.com/pycom/pycom-micropython-sigfox#the-esp32-version to setup your build environment but before the
make.... flash
step move to these instructions instead: https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/README.mdI gave some build tips on the other thread so so may be worth a quick read if you get stuck https://forum.pycom.io/topic/1173/no-python-prompt-after-downgrading-firmware/2 thread where
Programming is simply over the serial port, just like a firmware upgrade
-
Hi @jmarcelino Thanks for answering so quickly.
I don't really have experience with the esp, can you be more especific about which sources do I need (only the ble ones or all of the esp?), as they are in C I should have and IDE? and what about the compiler, lastly: How do I program the device? I supose is not with serial but Jtag maybe?.
Thanks in advance for your help :)
-
@mmbermudeza
You'll need to build your own customised Pycom firmware from the sources at https://github.com/pycom/pycom-micropython-sigfoxReplace the parameters in esp32/mods/modbt.c with those, build the firmware from source and flash to your device
Someone else also had problems with these same beacons recently, might be helpful to follow that thread at https://forum.pycom.io/topic/1173/no-python-prompt-after-downgrading-firmware/2 for some help in compiling the source