-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add RDL52832 decoder #138
Add RDL52832 decoder #138
Conversation
Tests pass if you prepend an underscore to each of the .cal values after the first, just like the other items. |
So I ordered one as well now, I just hope they send the correct one ;) @koenvervloesem, from the data sheet (only found the Chinese version so far) it seems it has exactly the same writing commands for setting its name, uuid, major, minor and txpower as my nrf51822 beacons. With seemingly a slight difference for setting the broadcast interval and an additional password setting option. How is your experience with the above? |
Also from my search on Aliexpress all the nrf52832 iBeacons seem to only come in one version, with the default txpower transmission, compared to the nrfnrf51822, which specifically come in two different version with either txpower or battery voltage encoded in byte 24. Therefore I think we can safely remove the volt property to slim down the decoder at least a tiny bit. |
That's a hell of an undocumented feature :-) Cool, this works indeed. I have added some extra test data with the device in various orientations.
I removed the property. I think the decoder is ready now. |
Lol, yes it is. Had a look at the code this morning and thought, "well why wouldn't it work?", and so it does 😄 . |
Actually I haven't changed the default settings yet. I was more interested in the sensor readings :-) |
Description:
This adds a decoder for the RDL52832 sensor beacon. It's an iBeacon that also advertises temperature, humidity and accelerometer readings.
There are still some issues before this can be merged:
The device is only correctly detected if the decoder gets the service data for UUID 0318 (see Support service data for multiple UUIDs #137). I have a test script at the bottom of this description that does this..cal
value three times to extract Xt, Yt and Zt (see the data format below) and use these values, but it seems the decoder is only using the latest.cal
value, soaccx
,accy
andaccz
are calculated based on the same extracted value (Zt). See Support multiple .cal values in decoder #139 for more information.Data format
The data format looks like this (see https://github.com/mike-rankin/ESP32_iBeacon_Sensor/blob/main/Code/iBeacon_Test.ino):
Checklist:
Test script