Skip to content
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

canot communicate with device #57

Open
moosbaue opened this issue Nov 14, 2020 · 0 comments
Open

canot communicate with device #57

moosbaue opened this issue Nov 14, 2020 · 0 comments

Comments

@moosbaue
Copy link

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'>]

  • Using: <class 'ant.base.driver.USB3Driver'>
    Request basic information...
    Capabilities: array('B', [8, 8, 0, 186, 54, 0, 223])
    Starting system...
    Key done...
    Searching...
    Exception in thread ant.base:
    Traceback (most recent call last):
    File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
    File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
    File "/usr/local/lib/python3.7/dist-packages/ant/base/ant.py", line 180, in _worker
    and message.data[1] == 0x01
    AttributeError: 'Message' object has no attribute 'data'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant