Tigge / openant

ANT and ANT-FS Python Library
MIT License
182 stars 85 forks source link

canot communicate with device #57

Open moosbaue opened 3 years ago

moosbaue commented 3 years ago

Hi

Tried to use antfs and get this (I think) openant related message: Driver available: [<class 'ant.base.driver.SerialDriver'>, <class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/antfs_cli-0.4-py3.7.egg/antfs_cli/program.py", line 384, in main g.start() File "/usr/local/lib/python3.7/dist-packages/ant/fs/manager.py", line 223, in start self._main() File "/usr/local/lib/python3.7/dist-packages/ant/fs/manager.py", line 150, in _main if self.on_link(beacon): File "/usr/local/lib/python3.7/dist-packages/antfs_cli-0.4-py3.7.egg/antfs_cli/program.py", line 167, in on_link self.link() File "/usr/local/lib/python3.7/dist-packages/ant/fs/manager.py", line 383, in link self._send_command(LinkCommand(self._frequency, 4, self._serial_number)) File "/usr/local/lib/python3.7/dist-packages/ant/fs/manager.py", line 199, in _send_command self._channel.send_acknowledged_data(data) File "/usr/local/lib/python3.7/dist-packages/ant/easy/channel.py", line 119, in send_acknowledged_data self.wait_for_event([Message.Code.EVENT_TRANSFER_TX_COMPLETED]) File "/usr/local/lib/python3.7/dist-packages/ant/easy/channel.py", line 50, in wait_for_event return wait_for_event(ok_codes, self._node._events, self._node._event_cond) File "/usr/local/lib/python3.7/dist-packages/ant/easy/filter.py", line 73, in wait_for_event return wait_for_message(match, process, queue, condition) File "/usr/local/lib/python3.7/dist-packages/ant/easy/filter.py", line 62, in wait_for_message raise AntException("Timed out while waiting for message") ant.easy.exception.AntException: Timed out while waiting for message Interrupted: Timed out while waiting for message

Dmesg: [774373.170310] usb 1-2: new full-speed USB device number 111 using xhci_hcd [774414.389989] usb 1-1: new full-speed USB device number 112 using xhci_hcd [774414.541123] usb 1-1: New USB device found, idVendor=0fcf, idProduct=1009, bcdDevice= 1.00 [774414.541126] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [774414.541128] usb 1-1: Product: ANT USB-m Stick [774414.541129] usb 1-1: Manufacturer: Dynastream Innovations [774414.541130] usb 1-1: SerialNumber: 098 [774414.543446] usb_serial_simple 1-1:1.0: suunto converter detected [774414.543914] usb 1-1: suunto converter now attached to ttyUSB0

and then after running antfs-cli usb 1-1: reset full-speed USB device number 112 using xhci_hcd

Device is a forerunner 310XT

Any help appriciated

kind regards Sepp