Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Is it possible to stream ant+ sensor data live to Matlab?

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

For hardware components use components of the ZeroPhone - a Raspberry Pi smartphone

https://www.thisisant.com/forum/viewthread/7362/      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Or the Linux Pinephone

https://www.thisisant.com/forum/viewthread/7372/      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

To stream ANT+ sensor data live to Matlab should be possible in theory, but it s complicated.

An alternative could be the Garmin HRM Dual and live stream of BLE heart rate.

Garmin HRM Dual™ has ANT+®-Standard (2,4 GHz) und BLUETOOTH® 5.0 (BLE) support. There is an example in MATLAB wich should work with BLUETOOTH® 5.0 (BLE). You need probably the latest release of MATLAB (R2020a). I don t post here any links anymore to the MATLAB example “Modeling of BLE Devices with Heart Rate Profile which shows the modeling of Bluetooth® Low Energy devices with Heart Rate Profile using the Communications Toolbox™ Library for the Bluetooth® Protocol”, to avoid being warned for spreading SPAM. Garmin HRM Dual™ owners wanted who test whether the device is working with the MATLAB example code.      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Here is a new device: Pyloton: CircuitPython Cycling Computer

Open Source cycling computer that displays heart rate, speed, cadence, and song playback info.

https://learn.adafruit.com/pyloton/overview

It is not ANT+, but BLE. And it should be possible to modify the device so that it can be connected to a PC running Matlab or Pyton applications.      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Adafruit (I have no relationship to Adafruit in any way) has several Android apps which can connect directly to their circuit devices. It is possible to read sensor data and write data in the App. I don t know whether is possible to stream sensor data from these apps further to PC applications like Matlab or to Pyton running on a PC. Some ANT+ sensors also support BLE. I was looking for a long time for an easy way to stream ANT+ sensor data to PC applications. I could not find an easy way. BLE is supported by newer PCs. In my view, it is easier to stream BLE sensor data to a PC than ANT+ sensor data.

Peter Gamma, Switzerland      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

I could not find an option to stream sensor data further to PC applications in the Adafruit apps, but components of the Adafruit Open Source cycling computer are Arduino compatible. Arduinos can be connected over usb to Matlab.      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

Hi, could you please post a link to the technical specifications of the pine phone indicating the Ant+ support. Thx      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

The Pinephone does not support ANT natively, but you can use an ANT +stick. The Pinephone is developed by Pine, which develops also mini Pcs which are compatible to the Rasperri Pi. It should be possible to run the software wich run on the Rasperri Pi also on the Pinephone. But this needs to be tested, and eventually the code has to be adapted to Linux.

https://www.thisisant.com/forum/viewthread/7372/

The Pinephone is sold as a device for developers, and it has first to be tested for ANT+ support. But it is a great device, which will be successful, and I think it is worth testing it .

Peter Gamma      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

For Matlab or Python, I would rather try to adapt the code of the Pyloton Open Source BIke computer which uses BLE sensors to the Pinephone.

https://github.com/PeterGamma/Pyloton-CircuitPython-Cycling-Computer

It is easier to stream BLE sensors to a PC application than ANT+ sensors.      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

The Rasperri PI has an ARM CPU, and also the new Linux Pinephone has an ARM CPU. Does software which runs on a Rasperri PI also run on a Phinephone?      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Here is the answer:

https://forum.pine64.org/showthread.php?tid=10125

thank you, open, friendly, community driven and responsive Pine community:

https://www.pine64.org/

Peter Gamma      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

If that is true, all of the following ANT+ projects should also work with a Pinephone and an ANT+ stick:

https://www.thisisant.com/forum/viewthread/7372/      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Unfortunately, Nils Knieling stopped livetrack.io:

https://github.com/PeterGamma/What-happened-to-livetrack.io-

which would have made it possible to stream ANT+ sensor data to Matlab or Python. Now, I saw, that there is a new service available at Nils Knielings Github:

https://github.com/livetracking

There is also a Matlab example available for BLE heart rate sensor and foot pod:

https://www.mathworks.com/help/matlab/import_export/collect-data-from-fitness-monitoring-devices.html

but, you need to carry arround a laptop for sporting activites. There are other options available for a live stream with MQTT:

https://github.com/PeterGamma

Now, there are also Linux watches and Linux phones available which are suitable for ANT+ and BLE sensor projects:

https://petergamma.org/

The Adafruit Pyloton Bike computer project should run on Linux phones, and can be modified to develop a sports watch on Linux watches:

https://forums.adafruit.com/viewtopic.php?f=65&t=166045&p=815086#p815086

     

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

People who are interested in ANT+ support for Matlab, please support me. I was asking questions in the Matlab community, how to connect ANT+ sensors to MATLAB. But all my contributions in the Matlab community where deleted. If you are interested in ANT+ support for Matlab, please comment:

https://www.mathworks.com/matlabcentral/answers/758469-does-matlab-consultant-adam-danz-or-matlab-undelete-my-matlab-questions-which-where-deleted-for-rea?s_tid=mlc_ans_email_view#comment_1359569

Everybody can write comments to the Matlab community. You don't need a Matlab licence for this. There is currently a Matlab example available how to connect BLE sports sensors to Matlab. It requires MATLAB home which is ca 150 USD. But ANT+ is not supported by MATLAB to this date.
     

Signature

Peter Gamma