Closed M-Gregoire closed 1 month ago
I just tried flashing an ESP32:
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
And it was detected, so at the least that confirms the rest of the infrastructure is working. I've also understood that the MAC address is set by the firmware the match the key, so no use of knowing the MAC address of the device.
I guess being able to get the MAC address from the firmware.bin
would be useful though.
depending upon whether your board has LF crystal (32k watch crystal) or not, you may need to try BOARD=BOARD_ALIEXPRESS_NO_XTAL
I've tried multiple BLE scanners on my phone but I'm not even sure what the MAC address is for my beacon.
You can take a look at this to show the expected MAC for a keyfile: https://github.com/pix/heystack-nrf5x/blob/master/tools/showmac.py
I use an app called "BLE Scanner" and filter by RSSI < 50 or so.
Thanks, this is exactly what I was looking for.
I'll try BOARD_ALIEXPRESS_NO_XTAL
and report back, but I thought this wasn't needed as the BOARD_SIMPLE
used by default mentions:
BOARD_SIMPLE is the default board with no external crystal to maximize compatibility
So I'm not sure to understand the difference between the two boards.
Update: I've compiled with BOARD_ALIEXPRESS_NO_XTAL
and was able to make my beacon work, thanks a lot!
I initially used showmac.py
on the binary rather than the keyfile which printed out 5501
results but quickly realized my mistake and was also able to get the MAC address.
So everything is perfect and working as expected! Thanks a lot helping me through this.
Hello 👋 ,
First of all, thank you for spending time on this project, this looks awesome.
I'm trying to use it with a nRF51822 (bought of Aliexpress). I've generated the keys, injected them into the firmware (28 bytes moved with
dd
), solder the pins (Following pinout from https://github.com/seemoo-lab/openhaystack/issues/35#issuecomment-828338751) and usedopenocd
to flash it:So overall seems like a success to me. After setting up the docker containers, going to the WebUI and importing the JSON, my device is never picked up, even after multiple hours and going out in a city with it, it pulls
0 location(s)
.I've checked the battery and tried to power it with USB rather than the cell battery just to make sure. LED turns on only during the flashing but not after, but I'm guessing this is expected with this firmware. I did power off - power on the device after flashing.
I've tried multiple BLE scanners on my phone but I'm not even sure what the MAC address is for my beacon.
In summary, despite all the steps looking like success, I don't receive any location data, and I'm unsure how to debug this problem. I wasn't able to find a way to get logs through the ST-LINK nor other way to check whether the tag is working properly.
Any kind of help you be greatly appreciated.