-
Notifications
You must be signed in to change notification settings - Fork 80
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
ANT-FS Device Scanner #66
Comments
Hi. This could potentially be based on https://github.com/Tigge/openant/blob/master/examples/continuous_scan.py for example, combined with a pairing attempt, but I'm not sure exactly how that would work, and what information is available without pairing it. |
Hi Tigge , Now the only thing I have to do is to get the right value to the RX value (This is the serialnumber in link layer). Thank you |
Perhaps the next step would be to combine this with some of the code in https://github.com/Tigge/openant/blob/master/ant/fs/manager.py#L179. An ANT-FS device should periodically send out a beacon. Which are the messages you already see there I think. The beacon should contain most of the information you seek. But you would need to auth with the device to get additional information. That means pairing with the device, or authenticating if you have previously paired with the device. The beacon has information if data are available, uploads are enabled, if it is open to pairing and the beacon channel period. Also the device state, authentication type, and a 4 byte serial number, with device/manufacturer parts. |
Thanks for the hint, I did try understand the code but at some points I cant follow.
I have absolutely no idea how that code snippet (From beacon.py) parses data from a beacon...
I definitely will try to keep it working but I think I need your help here... Thank you |
You can use the entire class there to parse it. Just call
|
Ok I think i have managed to read the beacons now https://github.com/tobotpyrc/openant/blob/master/examples/serialNumberFinder.py Next step is to send the authentication command with a corresponding pairing bit? right? How could I appropriately include this function to my script? If I can really keep that project working please let me know how I can pay you a bit for your help. thank you |
What you want to do is more or less:
After this you are either done if that's all you wanted to do, or you could also try to authenticate with the device. Some devices might support the Pass-through authentication - but otherwise, you need to pair or know the appropriate passkey. |
Hi,
currenty I try to program an ant-fs device scanner which lists me all available ANT-FS devices in the surrounding area. Important for me is the serial number (the full serial number which is sent in the authentication layer, not the 2 Byte number from link layer) and the friendly name of the devices. The pairing should be excluded. Just a passive scan would be enough.
Are there any thoughts how achieving this as soon as possible with this tool?
I tried here an there but did not get an proper solution.
Can you help me?
Thank You!
The text was updated successfully, but these errors were encountered: