mvillalba / python-ant

[UNMAINTAINED, LOOK INTO THE FORKS] Python implementation of the ANT, ANT+, and ANT-FS protocols (http://www.thisisant.com/).
https://github.com/mvillalba/python-ant
MIT License
160 stars 130 forks source link

searching ant devices with the USB stick : basics #26

Open DJoeri opened 9 years ago

DJoeri commented 9 years ago

Hello, i'm trying to learn a bit of the ant messages through your demo examples. I'm using a Suunto movestick mini, and would like to retrieve the stored moves from my Suunto Quest watch.

It seems that the driver found the stick, and can print the capabilities of it. I'm stuck with the examples about finding my watch.

What is the best approach to find my watch ?

I googled examples for Suunto, and i understood that there are some differences between Suunto and Garmin w.r.t. the settings:

  1. Suunto seems to use a private key? Do you need to indicate that in a variable? (like the network number passed via the SetNetworkKey?)
  2. How do i know the device_type_id for my watch? I suppose i have to pass it in the SetChannelId message?
  3. i saw in different examples that period and frequency are different for Suunto as for Garmin devices . Are those Suunto values applicable for ALL type of watches/HRM/PODS ? If not , how do i know the correct variable settings for talking to my watch?

For my good understanding: The stick is the receiver ,and is the ant slave node, and the watch is the master ant node? How do you search for devices: do you set the slave in scanning mode, and wait for a beacon to receive? What parameters (period/frequency) need to be correct to be able to receive the beacon? (i suppose you do not need to have a correct NetworkKey to receive the beacon?)

When i let my watch search for a PC when i activate "web connect", in what mode do i put my watch? (who is searching who? Is the HRM searching , or just sending out beacons in that window when it searches for PC's, i.e. searching for the USB stick)