-
Notifications
You must be signed in to change notification settings - Fork 58
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
Eddystone UID not seen #39
Comments
Can you post the exact code you used and the output you get? |
`import time def callback(bt_addr, rssi, packet, additional_info): scanner = BeaconScanner(callback, time.sleep(5) That is my code i use, the namespace is my namespace my beacon uses. And i get the ok output for TLM and URL if i put them into the filter, but nothing for UID. And if i put the namespace filter in i see nothing of all of them. QuotenPole |
Hi, I have the same issue ... can see the Eddystone TLM frames, but not UID frames. |
The parser for EDDYSTONE_UID is off. The packet that identifies it of a EDDYSTONE_UID type is \xaa\xfe. Which is there, but it is wrapped inside a packet type of 3. parser.py is looking for a frame type of SERVICE_DATA_TYPE, which equals 22; not 3. |
I looked into it further. At least for me, the problem is that my EDDYSTONE_UID packets have no rfu field. The missing two bytes cause the parser not to recognize it as an EDDYSTONE_UID packet. In struct/eddystone.py, the packet structs are defined as: EddystoneUIDFrame = Struct( When I commented out the rfu line, beacontools recognizes my EDDYSTONE_UID packets. But really, it looks like rfu should exist as an optional field. Commenting out rfu simply defines Eddystone UID to never have rfu. |
Confirm this. All beacons that we use require us to comment out that rfu-field. I dont see this as very big problem to remove this because it would require change to Eddystone specification to take that RFU into use. So I'll vote for action to remove/make optional whole field. |
Like you recommended I removed the rfu field since it was not used anyway. Thanks for the help. |
Hello,
I tryed out the Eddystone example code.
With this I got a few Problems.
When I put in the Namespace of my Beacons, their is 0 output.
When I put URLFrame into filter i got output.
When I put UIDFrame into filter i got 0 output.
So what could be the problem?
With best of wishes,
QuotenPole
The text was updated successfully, but these errors were encountered: