Tigge/antfs-cli

Error running antfs-cli - array index out of range.

Spinnekop opened this issue · 3 comments

Just installed latest openant and antfs-cli on archlinux. Using the ant stick that came with a Gramin FR60.
This is the error I get as soon as I issue the antfs-cli command.

Any help appreciated.

[paul@pandawebb antfs-cli-master]$ antfs-cli
Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

  • Using: <class 'ant.base.driver.USB2Driver'>
    Request basic information...
    Capabilities: array('B', [8, 3, 0, 186, 54, 0])
    Starting system...
    Key done...
    Searching...
    Traceback (most recent call last):
    File "/home/paul/antfs-cli-master/antfs_cli/program.py", line 384, in main
    g.start()
    File "/usr/lib/python3.8/site-packages/ant/fs/manager.py", line 223, in start
    self._main()
    File "/usr/lib/python3.8/site-packages/ant/fs/manager.py", line 150, in _main
    if self.on_link(beacon):
    File "/home/paul/antfs-cli-master/antfs_cli/program.py", line 167, in on_link
    self.link()
    File "/usr/lib/python3.8/site-packages/ant/fs/manager.py", line 383, in link
    self._send_command(LinkCommand(self._frequency, 4, self._serial_number))
    File "/usr/lib/python3.8/site-packages/ant/fs/manager.py", line 199, in _send_command
    self._channel.send_acknowledged_data(data)
    File "/usr/lib/python3.8/site-packages/ant/easy/channel.py", line 119, in send_acknowledged_data
    self.wait_for_event([Message.Code.EVENT_TRANSFER_TX_COMPLETED])
    File "/usr/lib/python3.8/site-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/lib/python3.8/site-packages/ant/easy/filter.py", line 73, in wait_for_event
    return wait_for_message(match, process, queue, condition)
    File "/usr/lib/python3.8/site-packages/ant/easy/filter.py", line 45, in wait_for_message
    if match(message):
    File "/usr/lib/python3.8/site-packages/ant/easy/filter.py", line 68, in match
    return data[0] in ok_codes
    IndexError: array index out of range
    Interrupted: array index out of range
    [paul@pandawebb antfs-cli-master]$
Tigge commented

Yeah I'm getting the same thing. Investigating.

Tigge commented

Should be fixed in openant now. Please try updating openant (or reinstall) and try again.

Thanks - all good now!!