Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Ant+ stick stops responding after a while (Openant Raspberry Pi)

Rank

Total Posts: 1

Joined 2020-05-14

PM

I am using the OpenAnt library https://github.com/Tigge/openant on a Raspberry Pi 3 (Raspbian Buster) and Dynastream Innovations, Inc. ANTUSB2 Stick.

My script runs in "open_rx_scan_mode" and receives data from all sensors within range.

Part of the script:

self.channel self.node.new_channel(Channel.Type.BIDIRECTIONAL_RECEIVE0x000x00)
        
self.channel.on_broadcast_data self.on_data
        self
.channel.on_burst_data self.on_data
        self
.channel.on_acknowledge self.on_data
        self
.channel.on_acknowledge_data self.on_data_ack
        self
.channel.set_id(000)
        
self.channel.set_period(0)
        
self.channel.set_rf_freq(57)
        
self.channel.enable_extended_messages(1


Everything works fine, but after a while the data from the ANT + stick stops coming.This can happen in 5 minutes or in half an hour,

Restarting the script after this does not help.. The script runs, but no data arrives. It only helps if you unplug and plug again ant + stick or restart Raspberry pi.

Part of the log file at this moment:

DEBUG:ant.base.ant:Got broadcast dataexamine queue to see if we should send anything back
DEBUG
:ant.base.ant: - no messages in queue
DEBUG
:ant.base.ant:Got broadcast dataexamine queue to see if we should send anything back
DEBUG
:ant.base.ant: - no messages in queue
DEBUG
:ant.base.ant:Got broadcast dataexamine queue to see if we should send anything back
DEBUG
:ant.base.ant: - no messages in queue
DEBUG
:ant.base.ant:Got broadcast dataexamine queue to see if we should send anything back
DEBUG
:ant.base.ant: - no messages in queue
DEBUG
:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer)
DEBUG:ant.base.ant:Read data[] (now have [] in buffer


and another case:

DEBUG:ant.base.ant:Got broadcast dataexamine queue to see if we should send anything back
DEBUG
:ant.base.ant: - no messages in queue
DEBUG
:ant.base.ant:Read data[a4 03 40 00 01 34 0e 4e 00 00 ff ff ff 93 55 6c 01 80 47 fe 7a c5 36 a4 0e 4e 00 85 00 ff ff 46 f8 4c 00 80 c4 23 7b 75 fa] (now have [a4 03 40 00 01 34 0e 4e 00 00 ff ff ff 93 55 6c 01 80 47 fe 7a c5 36 a4 0e 4e 00 85 00 ff ff 46 f8 4c 00 80 c4 23 7b 75 fa] in buffer)
DEBUG:ant.base.ant:Ant runner stopped 


The script continues to run and does not give any errors.
DMESG shows no errors.

Tried to reproduce this problem on two different Raspberry pi 3 with two different ANT + sticks. On both, the problem is repeated.      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

I don't see any issues with the ANT USB messages themselves, I'd recommend filing an issue with the maintainer of the repository to see if they've seen this before.