If somebody has a similar issue. Here is what I´ve been doing to solve my problem. I´m not completely sure if it will cause problems somewhere else. But for now it seems to work.
As additional info: I´m using Python 2.7 on a Raspberry 3 Model B
The following modifications have been done in the file:
ant/base/ant.py of the openANT package
The main thing preventing higher sample-rates is a sleep located in the
_worker(self) function
Line 167: #time.sleep(0.1)
With this modifications you will receive data at full speed.
But in my case I still didn´t receive the data at full speed at the endpoint because data is put in and out in various queues causing quite a delay. In the
_main(self) function I changed this:
Line 192: (event_type, event) = self._events.get()
After this there is another queue in the node file.
The following modifications have been done in the file:
ant/easy/node.py of the openANT package
In the
_main(self) function I changed this:
Line 116: (data_type, channel, data) = self._datas.get()
After this changes I was able to receive the full sample rate in my "
on_data(self, data)" function. Not sure what caused the delay with the given parameters (especially as these are the default params) in the queues... but for me it works now.
I hope this is helping somebody else someday.
Cheers Morten