antfs-cli: Timed out while waiting for message

Hi. Thanks for sharing antfs-cli with the world. I have been using it for years on old debian with no issues. Recently i switched to Ubuntu 22.04.1 and I am now unable to make it work. I have read all the relevant issues related to “timeout” in antfs-cli as well as in openant. I have tried everything I was able to understand:

  • I have tried it after removing the authfile from ~/.config/antfs-cli/xxxxxxxxxx/
  • I have also tried to remove the whole ~/.config/antfs-cli/ directory
  • I have tried the old version of antfs-cli and openant I had been using on debian
  • I have tried the most recent versions of antfs-cli and openant
  • I checked if the ANT dongle is recognized - it is: Bus 003 Device 002: ID 0fcf:1009 Dynastream Innovations, Inc. ANTUSB-m Stick

After I run antfs-cli I only get Request basic information...

After couple of seconds it fails with ant.easy.exception.AntException: Timed out while waiting for message

The ANT probably doesn’t even start any communication with my Garmin Swim watch, because it doesn’t show anything on the display.

Debug log: 20230205-162321-antfs-cli-log Terminal output: https://gist.github.com/janjezik/0873c673389395c45b01e8dcca180823#file-terminal-output I am using Python 3.10

I appreciate any suggestion how to debug this issue. Thanks

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15

Most upvoted comments

cool! it works in Ubuntu 22.04 after the openant update. thanks @tuna-f1sh, i can still use my garmin from 2012.

m:~/varios/openant/openant$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

m:~/varios/openant/openant$ openant --version
openant 1.3.1

m:~/varios/openant/openant$ antfs-cli
Searching...
Authenticating with Forerunner 310XT (3894335436)
 - Passkey: OK
 - Set time: FAILED
Downloading 0 file(s)

I have the same issue with Debian GNU/Linux 12.1 (bookworm, kernel 6.1.0-10-amd64)

(antfs) nicolas@carbone:~/openant-master$ antfs-cli --pair
Request basic information...
Traceback (most recent call last):
  File "/home/nicolas/antfs/lib/python3.11/site-packages/antfs_cli-0.4-py3.11.egg/antfs_cli/program.py", line 382, in main
    g = AntFSCLI(config_dir, args)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nicolas/antfs/lib/python3.11/site-packages/antfs_cli-0.4-py3.11.egg/antfs_cli/program.py", line 140, in __init__
    Application.__init__(self)
  File "/home/nicolas/antfs/lib/python3.11/site-packages/ant/fs/manager.py", line 141, in __init__
    raise e
  File "/home/nicolas/antfs/lib/python3.11/site-packages/ant/fs/manager.py", line 115, in __init__
    m = self._node.request_message(Message.ID.RESPONSE_CAPABILITIES)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nicolas/antfs/lib/python3.11/site-packages/ant/easy/node.py", line 116, in request_message
    return self.wait_for_special(messageId)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nicolas/antfs/lib/python3.11/site-packages/ant/easy/node.py", line 144, in wait_for_special
    return wait_for_special(event_id, self._responses, self._responses_cond)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nicolas/antfs/lib/python3.11/site-packages/ant/easy/filter.py", line 111, in wait_for_special
    return wait_for_message(match, process, queue, condition)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nicolas/antfs/lib/python3.11/site-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