Closed hishizuka closed 1 year ago
This looks like the channel didn't close during the assigning of the device_id once found: https://github.com/Tigge/openant/blob/master/openant/devices/common.py#L331 . I would have expected the exception waiting for that message however.
Having extended enabled by default isn't a problem if the device doesn't use extended, but does allow broadcast of this extra data for those that support it: https://github.com/Tigge/openant/blob/master/openant/devices/common.py#L320
I don't have time to look into this at the moment but thought just capture that.
Hi, thanks for your response.
I found the old version dongle causes this error. I use an AP2USB1.05 dongle.
The other hand, the GARMIN dongle AJK2.07RAF doesn't cause this error.
It is probably caused by differences in hardware capacities, but some people think that the old heart_rate_monitor.py, which has been replaced by heart_rate.py, no longer works, so I think that something needs to be done about it.
It sounds like the non-Garmin/Dynastream one isn't confirming to the ANT specification. It might also be that it doesn't advertise support for extended but I would expect it to fail somewhere else in this case. You could check after initialising a Node with node.advanced_options_two
.
The old example is still present (with a fix check for the correct BPM page), but as a raw usage example: https://github.com/Tigge/openant/blob/master/examples/raw_device_data.py
FWIW, I'm seeing an identical exception.
On macos-11.7.10, with python-3.12, using pyusb-1.2.1.
I have a "Cycplus" ANT+ dongle, for which System Information.app reports:
ProdID 0x1008 VendorID 0x0fcf (Dynastream Innovations Inc.) Version 1.00 Serial Number 123
And after some further investigation, it appears as if the key difference might be the USB ProdID: the "ANT USB2" dongles, distinctive because they can handle 3 network keys has a ProdID of 0x1008.
The "ANTUSB-m" dongles, which can handle 8 network keys, have a USB ProdID of 0x1009. This is the smaller-sized (newer) Garmin model, and (I guess) some clones. Note that both report their vendor as Dynastream (the company that developed ANT, and Garmin acquired).
Hi, thanks for developing such a good project.
Many of the repositories are updated and running the program, but I noticed one error.
I ran program examples/heart_rate.py and received several heartbeats and got the following error.
In debug mode, extended mode is specified when assigning channels, Background Scanning is enabled, and Extended Messages is enabled.
Aren't these unnecessary when connecting specific devices?
examples/raw_device_data.py, which does not contain these, operates normally. Maybe devices/common.py needs the following modifications.