-
Notifications
You must be signed in to change notification settings - Fork 447
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
Aliexpress nRF51822 beacon support #35
Comments
Hi, Nevertheless, I like the idea of copying the final firmware with the key to a location from which you can manually flash any chip. |
Is there any (good) reason why the current firmware is sending out the data as such fast rate? |
No good reason. It's just an artifact from early testing. Will update this soon. |
Got mine updated and working today. I'll do a quick write-up for anyone who was a bit intimidated by the flashing process (I was at the start)... This was tested on Mac mini M1 running Big Sur 11.3
Congrats your tag should appear in OpenHaystacks momentarily. |
@sthorley Thank you! I just got it working on NRF51822 as well - it's amazing!!! Thanks!!! just in case if someone will not find open-ocd configs, I found them here:
|
hi, @sthorley thanks you |
@yoution , Can you try to put the full path to the |
@mowtschan thanks ,it's done, it's the file path error |
That's not really a firmware issue. It's more part of the design of Apple's Find My network. Tracking actually moving device with their exact paths does only work in very populated dense environments, like a shopping area of a town. Also it helps if you have a high density of iPhone users nearby. So 15-20% is probably a good enough rate. |
@sthorley Thank you! Reworked your instruction for Windows host, maybe will be useful for someone: This is for Ali NRF51822 round beacon, flashing with Chinese ST-Link v2
And no need in telnet-mode |
Has anyone changed the beacon interval to make the battery use more efficient on these devices? |
Yes, please check @acalatrava repository for that: https://github.com/acalatrava/openhaystack-firmware |
What’s the battery life with standard firmware on this specific device? |
With standard firmware it's a couple of weeks, with acalatravas version its way longer - I have been running a couple of nRF51822s for half a year now without depleting the battery on any of them. |
@jrusi I got about 5 days out of the default firmware. @vbetker could you perhaps help with flashing the firmware? acalatrava/openhaystack-firmware#15 |
I can help you out just let me know. |
@Itheras perfect! Do you know what I am doing wrong? |
@bruvv what operating system and what issues are you having? |
@Itheras acalatrava/openhaystack-firmware#15 see that ticket please |
aaah yeah sorry let me see. |
just a note you can put all the commands in the openocd command if you put Useful if you are doing a bunch at once |
Is there a programming adapter like there is for blitzwolf and tasmota? |
I flashed in the following way export PUBKEY=4jSeYlz7GAhKYQBjXS1Ku06A5+UjV2CfvEATNw==
firmware=opnehaystack-nrf51822-firmware.bin
./key-injector.py < /Applications/OpenHaystack.app/Contents/Resources/firmware.bin > $firmware
openocd -f interface/stlink-v2.cfg -f target/nrf51.cfg -c "init; halt; nrf51 mass_erase; program $firmware verify; program $firmware; resume;" #!/usr/bin/env python3
import sys
import re
import base64
import os
PUBKEY = os.environ.get("PUBKEY")
# Decode the base64 string back to bytes.
decoded_bytes = base64.b64decode(PUBKEY)
# Take input from stdin.
data = sys.stdin.buffer.read()
# Replace "OFFLINEFINDINGPUBLICKEYHERE!" with the decoded bytes in the input string.
output_string = re.sub(b"OFFLINEFINDINGPUBLICKEYHERE!", decoded_bytes, data)
# Print the output string to stdout.
sys.stdout.buffer.write(output_string) It works. Full article https://dzianisv.github.io/notes/Embedded/Nordic-NRF51822-Airtag.html |
@dzianisv What battery life do you get with this beacon? |
with CR2025 it works about 14 days, looks like the firmware has to be optimized, for instance a deep sleep has to be used? But I am not very familiar with NRF chips internals. |
Edit: Never mind that, it was an issue with the connectors I had onto the nRF board, GND wasn't properly connected, eventually got it working. Hey everyone, I've tried flashing the firmware onto the nRF51822 ali express beacon as suggested from above, but I had no success, running the following code returns an error
I made sure to run this command on the same directory as
Any help would be much appreciated, many thanks. |
Hey, sorry if this is too off topic. |
From reading #20 it seems I could use this on the Aliexpress nRF51822 beacon chips by simply taking the existing firmware.bin and replacing the string with the advertisement key.
Could this process be added to the app which could then just dump the patched firmware somewhere to manually flash?
I'm still awaiting my ST-link v2 to arrive for the actual flashing process so haven't tested things yet but the form factor of the nRF51822 chips is perfect for this application.
The text was updated successfully, but these errors were encountered: