Giter Site home page Giter Site logo

Comments (14)

microniko avatar microniko commented on July 17, 2024 1

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

from antfs-cli.

gjaekel avatar gjaekel commented on July 17, 2024
  • 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

Did you also try to re-pair (after enabling pairing on the watch)?

Do you need a log of a working transfer to compare? I may provide one.

BTW: Should make no big deal because it have worked before, but just for interest: What model of watch?

from antfs-cli.

janjezik avatar janjezik commented on July 17, 2024

Hi.
The watch is Garmin Swim.
Trying to pair fails as well:
Terminal output

Debug log from the pairing attempt:
20230205-222343-antfs-cli.log

from antfs-cli.

janjezik avatar janjezik commented on July 17, 2024

Hi.
I am still unable to make it work.

Do you need a log of a working transfer to compare? I may provide one.

Could you please provide me with the debug log from successful transfer?

Thank you.

from antfs-cli.

gjaekel avatar gjaekel commented on July 17, 2024

I would like to send it private to you, may contact me via email?

from antfs-cli.

alelova avatar alelova commented on July 17, 2024

Hello.
Same issue after update ubuntu to 22.04.

from antfs-cli.

gotenp avatar gotenp commented on July 17, 2024

I have the same issue since I upgraded to linux mint 21.1 from 20.3
Is there a way to get antfs-cli working again.
I noticed that openant scan seems to be working
This is the output:
openant scan Starting scanner for #0, type 0, press Ctrl-C to finish Found new device #37494 DeviceType.Unknown; device_type: 1, transmission_type: 5
But using antfs-cli gives
antfs-cli Request basic information... Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/antfs_cli-0.4-py3.10.egg/antfs_cli/program.py", line 382, in main g = AntFSCLI(config_dir, args) File "/usr/local/lib/python3.10/dist-packages/antfs_cli-0.4-py3.10.egg/antfs_cli/program.py", line 140, in __init__ Application.__init__(self) File "/home/peter/.local/lib/python3.10/site-packages/ant/fs/manager.py", line 141, in __init__ raise e File "/home/peter/.local/lib/python3.10/site-packages/ant/fs/manager.py", line 115, in __init__ m = self._node.request_message(Message.ID.RESPONSE_CAPABILITIES) File "/home/peter/.local/lib/python3.10/site-packages/ant/easy/node.py", line 116, in request_message return self.wait_for_special(messageId) File "/home/peter/.local/lib/python3.10/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/peter/.local/lib/python3.10/site-packages/ant/easy/filter.py", line 111, in wait_for_special return wait_for_message(match, process, queue, condition) File "/home/peter/.local/lib/python3.10/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
if I use --debug I get this info...
`Drivers available: [<class 'ant.base.driver.SerialDriver'>, <class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]
Using driver: <class 'ant.base.driver.USB2Driver'>
USB Find device, vendor 0xfcf, product 0x1008
USB Config values:
Config 1
Interface 0, Alt 0
Endpoint 129
Endpoint 1
A kernel driver active, detatching
USB Endpoint out: ENDPOINT 0x1: Bulk OUT ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x1 OUT
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x1, 1
USB Endpoint in: ENDPOINT 0x81: Bulk IN ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x81 IN
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x1, 129
Ant runner started
Write data: [a4 01 4a 00 ef]
Read data: [a4 01 6f 20 ea] (now have [a4 01 6f 20 ea] in buffer)
Got response start-up, <ant.base.Message 6f:[20] (s:a4, l:1, c:ea)>
Timeout waiting for message: (110, 'Operation timed out')
Write data: [a4 02 4d 00 54 bf]
Read data: [a4 06 54 08 03 00 ba 36 00 71] (now have [a4 06 54 08 03 00 ba 36 00 71] in buffer)
Write data: [a4 09 46 00 a8 a4 23 b9 f5 5e 63 c1 74]
Write data: [a4 02 4d 00 61 8a]
Got response general, <ant.base.Message 54:[08 03 00 ba 36 00] (s:a4, l:6, c:71)>
wait for message matching <function wait_for_response..match at 0x7f8db5fa5090>
Write data: [a4 02 4d 00 3e d5]
looking for matching message in deque([])
Read data: [a4 03 40 00 46 00 a1] (now have [a4 03 40 00 46 00 a1] in buffer)
_worker_response None, 111, array('B', [32])

  • could not find response matching <function wait_for_response..match at 0x7f8db5fa5090>
    Got channel response other, <ant.base.Message 40:[00 46 00] (s:a4, l:3, c:a1)>
    _worker_response None, 84, array('B', [8, 3, 0, 186, 54, 0])
    capabilities max_channels: 8, max_networks 3, standard_options: set(), advanced_options: {<AdvancedOptions.Reserved: 8>, <AdvancedOptions.SerialNumberEnabled: 3>, <AdvancedOptions.LowPrioritySearchNEnabled: 5>, <AdvancedOptions.SearchListEnabled: 7>, <AdvancedOptions.PerChannelTxPowerEnabled: 4>}; {<AdvancedOptionsTwo.ExtMessageEnabled: 1>, <AdvancedOptionsTwo.ExtAssignEnabled: 5>, <AdvancedOptionsTwo.ScanModeEnabled: 2>, <AdvancedOptionsTwo.ProximitySearchEnabled: 4>}
    _worker_response 0, 70, array('B', [0])
    looking for matching message in deque([(None, 111, array('B', [32])), (0, 70, array('B', [0]))])
  • response found (0, 70, array('B', [0]))
    Request basic information...
    requesting message 0x54
    Read data: [a4 04 61 02 39 30 00 ca a4 0b 3e 41 4a 4b 31 2e 30 34 52 41 46 00 9f] (now have [a4 04 61 02 39 30 00 ca a4 0b 3e 41 4a 4b 31 2e 30 34 52 41 46 00 9f] in buffer)
    Write data: [a4 02 4d 00 54 bf]
    Got response general, <ant.base.Message 61:[02 39 30 00] (s:a4, l:4, c:ca)>
    done requesting message 0x54
    Got response general, <ant.base.Message 3e:[41 4a 4b 31 2e 30 34 52 41 46 00] (s:a4, l:11, c:9f)>
    _worker_response None, 97, array('B', [2, 57, 48, 0])
    wait for message matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Read data: [a4 06 54 08 03 00 ba 36 00 71] (now have [a4 06 54 08 03 00 ba 36 00 71] in buffer)
    serial 3160322
    looking for matching message in deque([(None, 111, array('B', [32]))])
    Got response general, <ant.base.Message 54:[08 03 00 ba 36 00] (s:a4, l:6, c:71)>
    _worker_response None, 62, array('B', [65, 74, 75, 49, 46, 48, 52, 82, 65, 70, 0])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    ant_version AJK1.04RAF
    _worker_response None, 84, array('B', [8, 3, 0, 186, 54, 0])
    capabilities max_channels: 8, max_networks 3, standard_options: set(), advanced_options: {<AdvancedOptions.Reserved: 8>, <AdvancedOptions.SerialNumberEnabled: 3>, <AdvancedOptions.LowPrioritySearchNEnabled: 5>, <AdvancedOptions.SearchListEnabled: 7>, <AdvancedOptions.PerChannelTxPowerEnabled: 4>}; {<AdvancedOptionsTwo.ExtMessageEnabled: 1>, <AdvancedOptionsTwo.ExtAssignEnabled: 5>, <AdvancedOptionsTwo.ScanModeEnabled: 2>, <AdvancedOptionsTwo.ProximitySearchEnabled: 4>}
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    looking for matching message in deque([(None, 111, array('B', [32]))])
  • could not find response matching <function wait_for_special..match at 0x7f8db5fa51b0>
    Timeout waiting for message: (110, 'Operation timed out')
    Stoping openant.easy
    Stoping openant.base
    Timeout waiting for message: (110, 'Operation timed out')
    Ant runner stopped
    usbdriver.closed
    `

from antfs-cli.

gotenp avatar gotenp commented on July 17, 2024

I have the same issue since I upgraded to linux mint 21.1 from 20.3 Is there a way to get antfs-cli working again. I noticed that openant scan seems to be working This is the output:

SNIP

Update: I reverted back to mint 20.3 antfs-cli is working again ... Happy days... :-)

from antfs-cli.

prcoder-1 avatar prcoder-1 commented on July 17, 2024

Same issue (Timed out while waiting for message) on Fedora release 37 (Thirty Seven).
Before that it worked fine on Fedora 35.

from antfs-cli.

microniko avatar microniko commented on July 17, 2024

I have the same issue with Debian GNU/Linux 11 (bullseye, kernel 5.10.0-23-amd64).

from antfs-cli.

arjanboltjes avatar arjanboltjes commented on July 17, 2024

First time user here.
Same issue, with an identical output from antfs-cli --pair as @microniko got.
I'm not sure openant scan yields any pairing, like @gotenp posted: how long is this pairing supposed to take? I haven't seen the 'Found new device' myself.

Garmin 310 XT, pairing enabled
Ubuntu 22.04.2 LTS
openant 1.2.1
antfs-cli downloaded just now

from antfs-cli.

microniko avatar microniko commented on July 17, 2024

I tried with Linux Mint 20.3 Una (like @gotenp) in a VirtualBox VM but I had the same error :

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

I had a Cycplus ANT stick :

Bus 002 Device 004: ID 0fcf:1008 Dynastream Innovations, Inc. ANTUSB2 Stick

Will I try with Fedora 35 like @prcoder-1 ?
edit : same error message...

from antfs-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.