Author Topic: Live-stream from Garmin watches via ANT+ stick & virtual box (evtl. coud, IOT)  (Read 19041 times)

0 Members and 1 Guest are viewing this topic.

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
to MATLAB, Python & other Desktop applications


I continue the thread from here:

https://www.eevblog.com/forum/cloud-computing/garmin-watch-connectiq-watch-iot-microsoft-azure-platform/

and continue here with the part which is not


GARMIN watch - ConnectIQ-Watch-IoT - Microsoft Azure Platform

     but

GARMIN watch- ANT+ stick- virtual box


to keep those two path separate.
 

Is it possible to create a linux virtual box which can run independendly as a Linux OS, but also as a virtual box running in windows, for a GARMIN watch, which contains all the components for a live-stream to MATLAB, Python & other Desktop applications?

The size should be not more than 2GB, so that it can run on a IntelĀ® Compute Stick STK1A32SC:

https://ark.intel.com/content/www/us/en/ark/products/91064/intel-compute-stick-stk1a32sc.html

as well as on a Jumper EzBook 3 PRO:

https://de.gearbest.com/laptops/pp_647765.html

A virtual box could become a community project which contains all the sensor tables helpful for GARMIN watches.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
A linux virtual box running in windows with sensor tables and all the software necessary to stream to MATLAB, Python or other deskop applications.

A linux virtual box running in windows 10 of e.g. Jumper EzBook 3 PRO, which makes it not necessary anymore to install Ubuntu. All software for streaming integrated in a virtual box.

But how can sensor data from a linux virtual box running in windows be streamed to the host windows 10 operating system?

edit:
This is not necessary. MATLAB is also available for LINUX and MATLAB can be installed in a LINUX virtual machine running in windows. No streaming to the host windows 10 operating system necessary.
« Last Edit: December 27, 2019, 12:29:38 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
i.e. through a streaming server. livetracking.io had an integrated open-source streaming server.

Which streaming server could be helpful to stream sensor data from a linux virtual box to the host windows operating system?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
An alternative to Jumper EzBook 3 PRO with

with 4 GB RAM  & 64 bit OS (minimal requirement for most Matlab editions)

is the Trekstor SURFBOOK E11B

http://www.trekstor.de/products/notebook/detail-notebook/product/SURFBOOK%20E11B-CO.html

with Ubuntu 18.04 und Mate Desktop

https://www.heise.de/forum/c-t/Kommentare-zu-c-t-Artikeln/Aldi-Notebook-im-Test-Medion-Akoya-E6246-mit-256er-SSD-fuer-400-Euro/Trekstor-E11B-CO/posting-33859257/show/
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There are also newer Mini 10 PC sticks with 4G RAM & Windows 10 64 bit (minimum for newer MATLAB versions):

https://www.aliexpress.com/item/32826816000.html?spm=a2g0o.cart.0.0.206d3c00MwHGDE&mp=1

and USB Type-C:

https://www.aliexpress.com/item/32852962272.html?spm=a2g0o.cart.0.0.206d3c00MwHGDE&mp=1

Did someone test those newer devices with Linux?
« Last Edit: December 18, 2019, 08:39:13 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There are / where so many projects with an ANT+ and Windows for a live-stream from a GARMIN watch:


1. there was a live-stream solution from old-man biking:

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

2. there is a live-setup in GoldenChetaah:

https://groups.google.com/forum/#!topic/golden-cheetah-users/Gn2fOxUqTFk


4. There was livetracking.io

https://github.com/PeterGamma/What-happened-to-livetrack.io-/blob/master/README.md

6. There where other options for a live-stream which are not available anymore:

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

8. GARMIN watch - ConnectIQ-Watch-IoT

which requires Microsoft Power B and the Microsoft Azure Platform

https://forums.garmin.com/developer/connect-iq/f/discussion/209439/eventhubapp

9. Ant+ USB with LabVIEW

- https://www.thisisant.com/forum/viewthread/7035/

Is there a project with ANT+ windows code tables available, which can be modified? To have a live-streaming solution in LINUX for the only reason that there are no windows ANT+ code tables available is complicated.
« Last Edit: December 18, 2019, 10:52:03 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I m a person with skills in scripting and debugging of MATLAB scripts and scripts of other PC applications. For me personally, to make this project real takes time.

For the time being, I let go of a real-time stream, even though it s interesting, and go back to the csv import method from GARMIN CONNECT without a live-stream.
« Last Edit: January 04, 2020, 01:36:27 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I miss a sports watch which is really smart.

I miss a sports watch with an easy to use and contemporary windows 10 interface.

I miss a live-tracking service which is simple and smart, instead of a live-tracking service for data nerds:

https://livetracking.io/

which stops as soon as someone comes which is interested in that service.

https://livetracking.io/ was near to that. And in my few, it could be brought there quiet easily.

I miss a live-streaming service for professionals.

Dave Lustys  ConnectIQ-Watch-IoT - Microsoft Azure Platform solution is near to it. I miss support  for more watches instread of support only for new and expensive watches, and I miss support not only for  the Microsoft Azure Platform and Microsoft Power BI, but also for other platforms and applications.
« Last Edit: January 01, 2020, 09:22:04 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Darren Hague s project is also ready to go  :).

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

https://github.com/dhague/vpower

But it needs a live-stream without interrupton to an ANT+ stick. In my view, just for indoor activites, that's fine.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
When you are ready to carry arround a Jumper Book 3 for 24 * 7, then Darren's project is 24 * 7 ready to go :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Jumper EZBOOK 3 PRO:

https://de.gearbest.com/laptops/pp_647765.html

with more than thousand costumers which are happy with it, I'm one of those  :).
« Last Edit: March 15, 2020, 10:54:49 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
This real-time data aquisition system consists of:

- Jumper EZBOOK 3 PRO
- Vivoactive 3
- Polar OH1
- Stryd Foot Pod ( no calibration needed. I have also a GARMIN foot pod, but unfortunately it is not calibrated to this date)
- Darren HagueS ANT+ Virtual Power
- Virtual Box running in Windows with MATLAB

- no Microsoft Azure Platform, no GARMIN connect IQ, no Watch-IoT, but heavy. But not as heavy as an ADINSTRUMENTS channel recorder equipement and not as expensive as an Equivital system, and longer warrranty time.

 
« Last Edit: March 15, 2020, 01:04:14 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
It is also possible to take a Moximonitor ANT to Serial Converter instead of a ANT+ stick and a virtual Box running in Windows with Python ANT+:

https://www.moxymonitor.com/product/ant-to-serial-converter/

Still a heavy equipement.
« Last Edit: March 30, 2020, 08:03:03 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Pairing this setup with this mini PC and a battery pack:

https://de.aliexpress.com/item/32852962272.html?spm=a2g0s.9042311.0.0.27424c4dvJApcD

but is it robust and stable?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
7 inch Windows 10 tablets are rare to find. But what about building up one with a 7 inch display and a Windows 10 mini PC?

https://de.aliexpress.com/item/32832814420.html?spm=a2g0s.9042311.0.0.27424c4dvJApcD
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Scott W Harden, DMD, PhD, dentist and biological research scientist with a passion for collaborative public software and hardware development:

https://www.swharden.com/wp/about-scott/

developed the sound card ecg:



and the ScottPlot:

https://github.com/swharden/ScottPlot


There are now two options availble for a live-stream from a GARMIN watch:


1. Moxymonitor ANT to Serial Converter which is commercially available (for MATLAB):

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


2. Garmin IoT Series is a Microsoft Azure Cloud solution from Dave Does Demos :

https://forums.garmin.com/developer/connect-iq/f/discussion/209439/eventhubapp

Is Scott s software a good  free and open-source  toolbox which could be used as a standard interface for the GARMIN watch? For me personally, yes. Is there any software which is better than Scott s software for this purpose? For me personally, no.




« Last Edit: April 02, 2020, 02:18:30 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Shechen Rabjam Rinpoche, the grandson and spiritual heir of Dilgo Khyentse Rinpoche, one of the foremost Tibetan Buddhist masters of the 20th century. says, in Tibet, 10 % of the people go a spiritual path an live in a monastery. Therefore, Tibet has many Spiritual Masters. They are world champion.



In South America, there are many football players, and football  world champions.

Practising meditation is a sports like playing football. But for meditators, GARMIN CONNECT is a nightmare. I parctise medtiation regularly. And I export my training data with csv. Is this a contemporary solution for the year 2020?

Data analysis is so complicated, that my data analysis is restricted to data aquisition currently. This is  a tragedy. There are so many data analysis tools available today. Some are very expensive, some are free and open source. But data import is so complicated, that I don t do it.

Stop discriminating meditators, and make contemporary analysis tools available for the year 2020. 
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
For my personally, world champion among the developers is the one who manages to connect Dave Lustys EventHupApp:

https://github.com/davedoesdemos/ConnectIQ-Watch-IoT

with Dr. Scott Hardens ScottPlott:

https://github.com/swharden/ScottPlot

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The EventHubApp connect the Microsoft Azure EventHubs. There is another app called "Namaste App", which connects to GARMIN CONNECT.

https://www.programmableweb.com/news/how-to-design-device-ui-garmin-connect-iq/sponsored-content/2016/10/31

What about modifying the app to make it connect to Dr Hardens Scott Plott?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Nicolas Kral (AlphaMonkeyC) is the "author" of the Namaste app:

https://www.programmableweb.com/news/how-to-design-device-ui-garmin-connect-iq/sponsored-content/2016/10/31

Nicolas Kral works for Garmin International. He is the Connect IQ Product Manager and is working to innovate and grow the Connect IQ program. Since joining Garmin International in 2005, Nicolas has worked with various Garmin teams as a software developer for mobile apps, search and navigation on automotive products and mobile phone operating systems.

https://www.thisisant.com/business/events/ant-symposium-2019/speaker

I suppose Nicolas Kral is an experienced software developer. It would be great when he joined this project.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Here is Nicolas Krals youtube video:


 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Where is the real-time Namaste Connect IQ App from GARMIN which connects to Dr. Scott Hardens Scott Plott which makes all sentient beings free from suffering?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Nothing around for world champions from Garmin. And also Dave Lustys 

https://sqlbits.com/Speakers/Dave_Lusty

Garmin IoT series who works for Microsoft UK was no fun to this date. I did not manage to get a working solution with my Fenix  5.





I described the problems I had with my Garmin Fenix 5 and  Dave Lustys Garmin IoT series in the video description.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
You can find the experiences I made with a Live-stream-of-sensor-data-from-Garmin-watches on my GITHUB account:

https://github.com/PeterGamma
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
For all meditators who suffer and also fail to meditate with Garmin Fenix 5 and Microsoft Power BI, try it with Moxymonitor ANT to Serial Converter:

https://www.moxymonitor.com/product/ant-to-serial-converter/

https://www.thisisant.com/forum/viewthread/7074/P30
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
May all beings be free from suffering and the causes of suffering. May all beings rejoice in the well-being of others. May all beings live in peace, free from greed and hatred. Each of the four verses corresponds to a mental state: loving kindess, compassion, sympathetic joy, and peace (or equanimity).

https://www.ling.upenn.edu/~beatrice/buddhist-practice/four-immeasurables.html

For all those who don t wan t to suffer, I recommend this solution:

https://forums.garmin.com/developer/connect-iq/f/discussion/8077/sending-sensors-data-to-pc
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Or find a C# programmer with a heart for Meditators.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
ScottPlott had 9.360 total downloads, 29 downloads per day (avg) this is also Champions League :-+.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3785
  • Country: de
I am not sure what you expect people to do with this "brain dump" and saying that for you "it takes time" (It doesn't for others? Or do you expect people to do this for free for you?). However, I can give you my experience with implementing a custom solution for ANT+.

It wasn't for the Garmin watch but we needed to integrate the Tacx cycling trainer (possibly the Vortex Smart but not 100% sure about the model) in one of our projects. I had to completely reverse engineer the communication because only the protocol for the brake was standard, the rest (the control "puck" and the Blacktrack steering sensor) uses an undocumented, proprietary profile over ANT+. And Tacx doesn't provide any meaningful SDK or access to the data, of course.

The easiest way to get anything working is to download the ANTWARE II for testing, then download their SDK:

https://www.thisisant.com/developer/resources/downloads/ (you will need to register).

There is an C/C++ SDK version for all major OSes, including Linux, for Windows there is also C#. That will save you a ton of time because most of the low level ANT+ complexity is handled there for you. That doesn't mean it is easy - the SDK is a mess, unfortunately. Of course, in order to be able to talk ANT+ to anything, your computer will need a supported dongle - some recommended ones are listed on that page, alternatively your watch may have come with one already.

I also strongly recommend to read the available documentation for the protocol, it is all explained there, including all the standard profiles. ANT+ is a bit oddball protocol in some aspects and the documentation will explain what is going on.

With this you should have no issues getting the data from the Garmin watch, assuming it uses standard ANT+ profiles (not every device does!), even though it will certainly require some elbow grease.

Alternatively, you can do it also in hardware - e.g. the Nordic nRF52 SoC series expressly supports ANT+ (and, in fact, the nRF52840 is the chip most commonly found in those ANT+ USB dongles). However, that is significantly more complex and you may need to sign some paperwork with Nordic/ANT to get an implementor's license before you could get your hands on the necessary Nordic protocol stack.

Re your idea of running this on some "compute stick" and such - as long as you can get the application to compile and run and the platform supports an USB dongle (I believe the ANT+ dongles are standard USB to serial devices not requiring any particular drivers), it will likely run OK. The determining factor will be what you want to do with your application (data processing, how many devices you are talking to simultaneously, networking, etc.) and not ANT+. ANT+ is designed to be a very low power and simplistic protocol not requiring much computing power to implement.
« Last Edit: April 05, 2020, 07:36:03 pm by janoc »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Thank you for sharing your experience,  janoc . I know THIS IS ANT, and I ve seen the documents you mentioned before. For me personally, there are two options interesting:


1. Moxymonitor ANT to Serial Converter which is commercially available (for MATLAB):

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


2. Garmin IoT Series is a Microsoft Azure Cloud solution from Dave Does Demos :

https://forums.garmin.com/developer/connect-iq/f/discussion/209439/eventhubapp


Version 2, I ve tested with a Fenix 5 and Microsoft Power BI. Unfortunately, I did not get it to work.


Version1  for the Moxymonitor ANT to Serial Converter there is a Matlab example available. This is fine for research institutes. But I think as a community project,  Moxymonitor ANT to Serial Converter with the ScottPlott could be a success. This would be a low cost high quality solution. The Matlab example can be Ā»reversed ingeneeredĀ» to a C# script which then can be connected to the ScottPlott.

https://www.thisisant.com/forum/viewthread/7074/P30

In my view, this would make sense as a community project to try it out.  I don t know whether it is possible to develop commerial products in this field. How many are interested in those? But to focus those people on one or two projects which will finally work could be a success.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3785
  • Country: de
In my view, this would make sense as a community project to try it out.  I don t know whether it is possible to develop commerial products in this field. How many are interested in those? But to focus those people on one or two projects which will finally work could be a success.

In other words, you are hoping someone will solve your very specific problem for free under the guise of a "community project". Also I don't get the logic that if something isn't (supposedly) commercially viable because there isn't enough interest, so you hope someone will rather do it for free as a "community project"?

I am afraid that's not how this works.

Open source/community projects are about scratching one's own itch first and foremost - you have the problem, you have the hardware so you start coding and share your code, then someone who finds it useful or interesting will contribute. It won't happen otherwise. Alternatively, you provide both the hardware to test it on and pay someone else to develop the code for you (which you may open source later).

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I contributed to this project the best I can. You can see my contributions on my GITHUB page:

https://github.com/PeterGamma

When you try to convince someone to code who is not a C# programmer, this will take very, very, very very long.

To pay someone to code it could be very expensive.

A Dr. heart is needed.

And when AlphaMonkeyC from Garmin, Dave Lusty who works for Microsoft UK, Walter Roberson from Matlab, Roger Schmitz from Moximonitor, Dr Scott Harden from Sound Card ECG, James Clutterbeck from Mind Monitor, Dr. Milind Y. Desai from Cleveland Clinic, Arnauld Delorme from the Swartz Center for Computational Neuroscience, Richard Davidson from the Center of Healthy Minds, or the Dalai Lama, Spritual Leader of the Tibetans, or a Superconductor from EEV Blog is not interested in developing this live-stream from a Garmin watch to a PC application, then I don t know whether this project will survive.
« Last Edit: April 08, 2020, 09:34:32 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Or other simple contributors, bloggers, and c# programmers from EEVBLOG, as I am  :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I ve got the following information from a friend who send a e-mail to Roger Schmitz - CEO - Moxy Monitor:

Ā«The Mox Ant to Serial converter works independently of a Moxy.  It can be used with any one or any combination of the sensor types up to 15 sensors.

The Converter will work with the following ANT+ profiles. 
    ā€¢ Muscle Oxygen
    ā€¢ Heart Rate
    ā€¢ Speed
    ā€¢ Cadence
    ā€¢ Combined Speed and Cadence
    ā€¢ Cycling Power
    ā€¢ Stride Based Speed and Cadence
    ā€¢ FEC

It just encodes the ANT+ data into a serial format and then sends that over the USB com port.  You need to write something on the computer side to decode the data.  Matlab was the intended target but any application that can read and decode a serial string would work.  I had it streaming directly into Excel yesterday.

Let me know if you'd like to setup an online call to discuss.

Roger

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I suppose, the easiest and most comfortable way for a ant+ live-stream to MATLAB is:

- Install Linux on a notebook like Jumper EZBOOK 3 PRO
- Install a Linux Version of MATLAB
- try to run  Darren Hagues (SAP UK) Virtual Power in MATLAB and modify it to your needs

https://www.mathworks.com/matlabcentral/answers/142677-capturing-heart-rate-from-usb-ant-dongle-and-chest-strap

« Last Edit: April 09, 2020, 11:48:15 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Darren Hague is Dr. heart  :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Darren Hague solution is  the easiest and most comfortable, exept for Dave Lustys Azure Cloud Power Bi solution, which is expensive, complicated and provided someone manages and confirms that it is working and manages to connect it to Matlab and to other applications.

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
On the other hand, as of Matlab R2019b, Matlab supports Bluetooth smart. It should be possible to connect your Polar H7 directly to Matlab :):

https://ch.mathworks.com/matlabcentral/answers/308210-communicate-with-bluetooth-low-energy-ble-with-matlab
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There already models there of BLE Devices with Heart Rate Profile:

https://ch.mathworks.com/help/comm/examples/modeling-of-ble-devices-with-heart-rate-profile.html

This is the future.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Will there be a revolution with bluetooth smart sensors, the GATT client-server scenario as specified in the Bluetooth core specification, and Wireshark?

https://www.mathworks.com/matlabcentral/answers/142677-capturing-heart-rate-from-usb-ant-dongle-and-chest-strap
« Last Edit: April 13, 2020, 05:40:28 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
My personal Conclusion:

Only nerds try to stream ANT+ sensors to Matlab. Smart people choose blueooth smart sensors, which can be connected directly to Matlab since Matlab release R2019b:

https://www.mathworks.com/matlabcentral/answers/308210-communicate-with-bluetooth-low-energy-ble-with-matlab

and try to connect them with the bluetooth smart example in Matlab, which exists since Matlab release R2020a:

https://www.mathworks.com/help/comm/examples/modeling-of-ble-devices-with-heart-rate-profile.html
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Unfortunately, there is currently no bluetooth smart-live stream example available:

https://www.mathworks.com/matlabcentral/answers/518074-is-there-an-example-how-to-connect-the-polar-oh1-bluetooth-low-energy-heart-rate-sensor-with-matlab?s_tid=prof_contriblnk

https://www.mathworks.com/matlabcentral/answers/518075-is-there-an-example-how-to-connect-the-stryd-low-energy-foot-pod-sensor-with-matlab?s_tid=prof_contriblnk

Garmin fit files when converted to csv are a data soup. It takes a lot of time to get meaningful data out of it:

www.mathworks.com/.../394287-is-there-a-matlab-function-to-read-in-a-fit-file-from-a-garmin-device

there is also currently no live-steam example available from a GARMIN watch which would allow building up a data base with a simple and clear data structure:

www.mathworks.com/.../518101-is-there-an-example-how-to-stream-ant-sensor-data-live-to-matlab

An EventHubApp, Microsoft Azure Cloud, Power BI, Matlab, Python example could solve this problem immediately.


 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Post-processing alternative:

Max Candocia, the developer of the tool Ā«Converting Garmin FIT Files to CSVĀ»

https://maxcandocia.com/article/2017/Sep/22/converting-garmin-fit-to-csv/

is a Data Scientist who lives in Chicago and works at Mark Bio Inc, a biotec start up as a data scientist. He has a MS in Physics and a BS in Statistics:



According to the documentation, csv files generated by his tool have a simple an clear data structure. For me personally, the data structure of  the files converted by the official THIS IS ANT .fit to .csv converter was not clear.

I continued a thread about this subject in the GARMIN forum. Unfortunately, my posts where removed and the threat was locked:

https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/122799/see-all-date-exported-in-fit-file---maybe-excel-oder-some-other-program/683009#683009

I don t know what was the reason for shut down.

I tried to use the Candocia FIT Files to CSV converter. Unfortunatley, I failed the first time I tried tu use it. It uses Python as a base, and I m not familiar with it. 
I think for everyone who is interested in a simple and clear data structure of converted GARMIN fit files, it s worth having a closer look at Max Candocias tool. 

Here is the most recent tutorial I could find for Converting Garmin files FIT to CSV format:



It uses code from Max Candocia. The resulting plot is very clear.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
What does a data scientist like Max Candocia who want s to pulll out the data from a GARMIN watch?

The answer is decribed above.

A wonder if there a better solution than the path a data scientist like  Max Candocia is gone to solve this problem.

Unfortunately, I m not a Python programmer. For the time being, I stay with copy and paste data from converted csv files to other application.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 The tool uses code from Max Candocia

The tutorial is from RD Gameplays & Tech from BRASIL

https://www.youtube.com/user/rdlady11/about
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The second time I wrote posts in the GARMIN Forum about the "Max Candocia" FIT to CSV Tool, I receveived a message  from GARMIN they were flagged as inappropriate. They where not published in the forum.  I don t know the reason for that. There was no answer from GARMIN when I asked for the reason.

I published my posts I wanted to post in the GARMIN forum in DC RAINMAKERS BLOG instead:

https://www.dcrainmaker.com/2014/10/heads-resource-rainmaker.html/comment-page-1#comment-3545862
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Currently, me personally, I would choose the follwoing options to pull data from a GARMIN watch:

Post-processing option:

1. If you don t know how to download an run Python code, use the official THIS IS ANT .fit to csv converter:

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

2.  If you know how to download an run Python code try to use following guide for Matlab or other applications.

https://www.mathworks.com/matlabcentral/answers/394287-is-there-a-matlab-function-to-read-in-a-fit-file-from-a-garmin-device#answer_426999?s_tid=prof_contriblnk

Real-time stream option:

3. For a real-time stream to Matlab or other applications, I would try the solution from Darren Hague:

https://www.mathworks.com/matlabcentral/answers/518101-is-there-an-example-how-to-stream-ant-sensor-data-live-to-matlab?s_tid=prof_contriblnk
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
4. For a windows solution connect Dave Lustys from Microsoft UK EventHubApp project to the rest API of Matlab or Python

https://forums.garmin.com/developer/connect-iq/f/discussion/209439/eventhubapp

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
APIS for desktop applications should be standard for Garmin, Polar, Amazfit, etc. watches. Guiding star is Bitalino

https://bitalino.com/en/development/apis

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
5.For a Windows version, according to Darren Hague, vpower should also run in a Linux virtual box running in Windows

https://github.com/dhague/vpower

Darren Hague is an excellent programmer and former brain scientist. So for a windows solution, it should be possible to run vpower in a Linux virtual box running in Windows and integrate it in a Linux version of Matlab or Python.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I think it is worth having a closer look at Darren Hagues Virtual Power project:

https://github.com/dhague/vpower

Eventually, Darren Hagues Rasperry Pi zero could be maintained, redirected to Matlab or Python and serve as a data buffer
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Rasperri ANT project which sends data via a MQTT-Broker to Matlab or Python :).

https://www.thisisant.com/forum/viewthread/7074/P30/
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
In theory, it should be possible to have live stream of ANT sensor data from a Garmin watch to a Rasperri PI to a smartphone to a server to Matlab or Python.

https://www.thisisant.com/forum/viewthread/7074/P45

But this raises questions about the stability of this mqqt path.

More easy to get a stable stream would be a stream as directly as possible from a  sensor to Matlab or Python via Bluetooth smart to a mini PC stick with Matlab or Python

https://ch.mathworks.com/matlabcentral/answers/518074-is-there-an-example-how-to-connect-the-polar-oh1-bluetooth-low-energy-heart-rate-sensor-with-matlab?s_tid=prof_contriblnk

https://ch.mathworks.com/matlabcentral/answers/518075-is-there-an-example-how-to-connect-the-stryd-low-energy-foot-pod-sensor-with-matlab#answer_428502?s_tid=prof_contriblnk

There is a Bluetooth smart SDK from Polar and Stryd, but what is missing is an example code for those sensors.
« Last Edit: May 05, 2020, 08:48:08 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Or a short cut connection from a mqqt Raspperri PI data grabber to a PC with Matlab or Python as the last rescue of the ANT live stream path?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Integrate a MQTT bridge between Matlab and Rasperri Pi

https://www.thisisant.com/forum/viewthread/7074/P45
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I tried to post this instruction how to stream ANT+ sensor data live to Matlab or Python here in the Garmin Forum:

https://forums.garmin.com/developer/connect-iq/f/discussion/8077/sending-sensors-data-to-pc/1043426#1043426

But my post was not published. I received the following message from Garmin:

Dear Peter Gamma:

Your forum reply, RE: Sending sensors data to PC, in Discussion was flagged by other users as inappropriate and doesn't appear on the site right now.

Reason: The forum reply was determined to be SPAM.

Please help us keep the community content safe and enjoyable for everyone. If you feel your content shouldn't be hidden from the site, please let us know. You can use this form to appeal the finding before May 17, 2020 11:34 AM, and we'll promptly review it.


I filled out the form. I did not receive an answer yet from Garmin. Why should my post be spam? Is Garmin not interested in an instruction how to stream Ant+ sensor data live to a PC? Is it spam, when I use the word "Matlab" :palm:. I cannot see another reason.

So I post my instruction, which I posted also in the THIS IS ANT forum also here. In a community, it is easier to develop a new path":


Instruction:

1. Example code from Reto:

https://infinityflow.ch/raspberry-pi-ant/

2. install a MQTT brocker on the Rasperri:

https://mosquitto.org/download/

3. Connect to RPi 3 ad-hoc network from windows PC:

https://raspberrypi.stackexchange.com/questions/70621/connecting-to-rpi-3-ad-hoc-network-from-windows-pc

4. Connect to Matlab MQTT:

https://www.mathworks.com/matlabcentral/answers/300785-does-matlab-support-mqtt

5. connect to Matlab example code:

https://youtu.be/Ercd-Ip5PfQ

6. Or connect to Python MQTT:

https://pypi.org/project/paho-mqtt/

7. connect to Python example code:




 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
My post was flagged  b y o t h e r   u s e r s    as inappropriate.

One user had a problem with me in the Garmin forum. He complained, I should exlain the problem in simple words, without posting so many links.

Since then, many of my posts where not published, I received a message from Garmin, that they where marked as inappropriate. I filled out a form. Some came back. But several posts dissappeared forever. Reason unknown.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
17 month ago, Garmin migrated to a new forum software. During the migration, posts where lost. I miss a thread in the Garmin forum about foot pods, which was lost during the migration. Someone in the forum proposed I could complain about the lost posts, and that they could bring back the posts I complain about.

I will not start a fight with Garmin about every single post to bring it back :--.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
DC Rainmaker anwered in his blog, when I complained about my problem with the Garmin forum. Here his anwer:

DC Rainmaker
May 11, 2020 at 3:06 am
#169
The reason youā€™re probably getting automated spam request is simple unfortunately: Most platforms consider numerous links to have a high confidence of SPAM. So they put them in a queue.
In fact, your message here went into my ā€˜requires approvalā€™ bucket for exactly that reason. Anything over two links automatically gets placed into that queue. Itā€™s not a perfect system, but it helps. In my case, I get between 2,000-4,000 pieces of SPAM daily. Yet only 1-2 usually slip through. Every little bit helps.
Cheers!
Reply

https://www.dcrainmaker.com/2016/07/everything-you-ever-wanted-to-know-about-ant-fe-c-and-bike-trainers.html/comment-page-1#comment-3557941


 I love the system of the MATLAB community, which is better. Potential spam is marked immediately as potential spam, but stays published. You can write a message to the MATLAB support team, and then they remove the flag.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I tried again and again to find a version to publish Max Candocias tool in the Garmin forum. Unfortunately, I always failed. Is this censorship? Here is my original post which was not accepted in the Garmin Forum:

Title: FIT to CSV Python script (high quality)

Max is a data scientist who the developed a python script which converts Garmin FIT Files to CSV:

https://maxcandocia.com/article/2017/Sep/22/converting-garmin-fit-to-csv/

The resulting data structure is very clear. Unfortunately, it is not as easy to handle as the official THIS IS ANT .FIT to CSV tool. Is it not in the interest of Garmin and the Garmin users to develop this tool further in the community?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I started a new Thread in the THIS IS ANT FORUM:

Python script to Convert Garmin FIT Files to CSV (Max Candocia)

which was censored in the Garmin Forum:

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

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I was asked in the Matlab community, where I discussed this subject, to replace

ā€œcensorshipā€

by

ā€œUnfortunately, I always failed, and I do not understand why so?ā€

I can follow the arguments of the Matlab Community support team and changed my words.

I replace also here

ā€œcensorshipā€

by

ā€œUnfortunately, I always failed, and I do not understand why so?ā€
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Other posts I wrote in the Garmin forum where first deleted, then restored

Message from Garmin

Dear Peter Gamma,

Weā€™ve reviewed your appeal and content, and have restored the content to the site. We appreciate your help in keeping the community experience safe and enjoyable for everyone, creating posts that are appropriate and consistent with our culture. The content is available here.

https://forums.garmin.com/de/plauderecke/f/forum/225736/why-is-a-post-about-a-wonderful-free-and-open-source-raspberry-pi-ant-script-which-sends-sensor-data-to-a-mqtt-broketool-deleted-from-the-garmin-forum
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Link to the deleted post from the Garmin Forum, which was not restored, which i moved to the THIS IS ANT FORUM

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

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Why is a live stream from a Garmin watch to Matlab or Python so complicated

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

and with a Bitalino Biomedcal Toolkit so simple?

https://www.mathworks.com/matlabcentral/fileexchange/53983-bitalino-toolbox
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Bitalino HeartBIT BT with direct bluetooth paring to Matlab is 190 Euros:

https://plux.info/bundles/428-bitalino-revolution-heartbit-bt.html

no GPS, no Footpod, but low-cost and simple.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Bitalino offers real time recording to csv format

https://books.google.ch/books?id=Hy7EDwAAQBAJ&pg=PA6&lpg=PA6&dq=bitalino+csv&source=bl&ots=VhnxUXPFuO&sig=ACfU3U26YsvcKWiznA7Oz3xOBrdEQZyW7g&hl=de&sa=X&ved=2ahUKEwiDo_W43rjpAhUs86YKHe1sBicQ6AEwB3oECAoQAQ#v=onepage&q=bitalino%20csv&f=false

no conversion from intransparent Garmin .fit file format to csv, which is so complicated, that to my knowledge, nobody has demonstrated to do it by an automatic script procedure to this date.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Bluetooth 3.0 pairing allows pairing only to one device at a time.

There is a Bitalino Open Signals Mobile app,  which should eventually work for real time csv recording. For a second real time stream to Matlab or Python, a second device is needed.

Bitalino can also be bought in parts. Costs for two devices in parts and build together yourself estimated 200 to 300 USD. Batteries for instance when bought from 3 th party seller are cheaper.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Access of sensor data from a Garmin watch is difficult. With Bitalino, it is easier. And the Bitalino Community is very helpful, and gives very detailed answers  :-+

https://forum.bitalino.com/viewtopic.php?f=8&t=574&e=1&view=unread#unread
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Does Garmin want to control the user sensor data, so that it can only be accessed by Garmin?

This makes alternatives like Scott Hardens sound card ECG much more attractive, which offers open source software which can run on different platforms

https://github.com/PeterGamma/Live-stream-from-Dr.-Scott-Hardens-Sound-Card-ECG
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Determination of the accuracy of commercially available heart rate monitors should be based on a scientifically accepted method. Bitalino is accepted as a scientifically accepted reference device.

https://forum.bitalino.com/viewtopic.php?f=12&p=2181#p2181

I suppose is should be easy also to make tests with Scotts Sound Card ECG to make it scientifcally accepted. It would be a failure when a scientist like Scott Harden would develop an ECG machine which is not accepted by other scientists.

The group of  Milind Y. Desai tested the accuracy of commercially available heart rate sensors with a scientifically accepted method

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6732081/

Not all heart rate sensors have been tested yet by a scientifically accepted method, for instance the Polar OH1 sensor

https://www.dcrainmaker.com/2019/03/polar-oh1-plus-optical-hr-sensor-in-depth-review.html/comment-page-1#comment-3566124

With a reference device as the Bitalino ECG device, everybody can termine the accuracy of heart rate sensors themselves. But raw data is necessary for such test. Garmin makes it difficult to access raw data. Here is a list of tools which makes access of Garmin raw data in the format of .csv values easier

https://github.com/PeterGamma/Live-stream-of-sensor-data-from-Garmin-watches

A ranking of the accuracy of commercially available heart rate sensors would be desirable, when scientific quantification of these heart sensors has been done. Everybody can to this himself with the above described tools.

« Last Edit: May 22, 2020, 01:29:28 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There is one paper available about the accuracy of the Polar OH1 sensor

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0217288

« Last Edit: May 22, 2020, 05:49:17 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
They came to the conclusion that the accuracy of the Polar OH1 is near to an ECG device, which is the most accurate HR measurement device available.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
In a similar scientific study Milind Y. Desai s group compaired the accuracy of several commercially available heart rate monitors in athletes. Milind Y. Desai s group did not test the Polar OH1. But they found that the accuracy of the Polar H7 chest strap is also near to an ECG device

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6732081/
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Dr. Scott Hardens, PhD.  ECG sound card system is a winning system for heart rate sensor data in real time. I little developement work would make it more attractive

https://forum.bitalino.com/viewtopic.php?f=19&p=2184#p2184
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Until Scott s device can be bought somewhere as a kit with all the components or a ready made device, buy a HeartBIT Bitalino

https://plux.info/bundles/428-bitalino-revolution-heartbit-bt.html

which is already there where Scott s device should be, for a live stream of heart rate sensor data to a PC. It saves a lot of time.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I complained at the Garmin support about the deletion of several of my posts, or about threatening of deletion of my posts

https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/226152/does-someone-work-on-the-android-application-a-training-tracker/1068421#1068421

my posts where about a training tracker, Max Candocia s fit to csv converter Python Script, and the MQQT software to stream sensor data from a Garmin watch to a PC. All of these products depend on Garmin products, and lead to higher sales of Garmin products.

The answer from the Garmin support was, that the link was a violation of the terms and condition of the Garmin forum, but that they are generally relaxed about this.

When the hard style of moderator Trux in the Garmin forum is taken serious, a huge number of posts had to be deleted. This is complete nonsense.  The moderator Trux should be brought to stop his deletion action of posts  in the Garmin forum. I started a campain against him at the Garmin support.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I moved my thread about the discussion of a training tracker to the THIS IS ANT forum, where none of my posts where deleted

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

and also all other threads where i discussed tools and scripts concerning the Garmin watch. Links can be found on my GITHUB:

https://github.com/PeterGamma/Live-stream-of-sensor-data-from-Garmin-watches
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Also in the Matlab community, the moderator Rik threatens do delete all of my posts which are not related to Matlab.

https://www.mathworks.com/matlabcentral/answers/394287-is-there-a-matlab-function-to-read-in-a-fit-file-from-a-garmin-device#answer_426776?s_tid=prof_contriblnk

The case is similar to the case of the moderator Trux in the Garmin Forum. When it is not allowed to write about a Python script in the Matlab community, there will probably no matlab function to read in a *.fit file from a Garmin device. A Python script can be integrated into a Matlab function, when someone has a problem with a Python script.

These are two cases of abuse of power of moderators trying to get rid of a poster, or trying to set a poster under pressure to do what they want him to do, by arguing with the terms and conditions of the forum.

Moderators like Trux and Rik are lowering sales figures of the products they are trying to sale. They make it unattractive to write posts in the Garmin Forum or in the Matlab Forum, because one cannot be sure about arbitrary deletion of posts.
« Last Edit: May 24, 2020, 03:42:08 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Bitalino uses Bluetooth or BLE soft- and hardware, Garmin watches use ANT+ broadcasting and almost only sensors with ANT+ support. There is hardly any ANT+ live streaming desktop applications available, and BLE would also be attractive for android application developement.

Why does Garmin not offer a contemporary BLE live-streaming support for their watches and sensors, which can be connected to BLE desktop example code?

https://www.mathworks.com/help/comm/examples/modeling-of-ble-devices-with-heart-rate-profile.html
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Here is an example what is currently available for ANT+ sensor streaming from private developers who do it for fun:

QBIKE ANT+ Cycling Training on Raspberry Pi (Jeffery Clive):

https://github.com/clivemjeffery/qbike

Demo video:

https://www.youtube.com/watch?v=lVoNQ8jtVbI&feature=youtu.be

developed by Jeffery Clive

https://www.strava.com/athletes/98197

Jeffery Clive s work is great. But why does Garmin let users only develop such simple Cycling Training on Raspberry Pi, and limits the creativity of great software developers with non-commercial private products, by not offering users the whole potential of what modern technology can do today?
« Last Edit: June 07, 2020, 05:14:57 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
And why does Garmin not promote research, by offering Matlab users the full potential of what their watches can do? Research scientists can probably not convince Garmin with sales figures. But Garmin will loose clients, when Garmin does not promote smart people, smart research scientists or smart non research scientists.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Garmin watches BLE v5.0 support:

There is an example of BLE devices with Heart Rate Profile using the GATT client-server scenario as specified in the Bluetooth Core Specification v5.0, Dec. 06, 2016 in Matlab:

https://www.mathworks.com/help/comm/examples/modeling-of-ble-devices-with-heart-rate-profile.html

Unfortunately, there is no example code for a specific watch available for this example in Matlab to this date, neither from Garmin or from another manufacturer:

https://www.mathworks.com/matlabcentral/answers/533393-are-there-specific-ble-heart-rate-sensor-devices-available-which-are-compatible-to-the-example-model?s_tid=prof_contriblnk
« Last Edit: May 26, 2020, 03:11:33 am by Peter Gamma »
 


Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Keep Calm, Bluetooth Low Energy v5.0 :-+ .
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There is only a profile for heart rate in the Bluetooth 5.0 specification, not for speed and distance, as far as I know.

A live stream for Garmin watches is not developed, and Garmin does not promote researchers to do develop it.

There is a Bitalino Foot Pod. Bitalino has a Matlab toolbox and a bluetooth live stream. Software for a Foot Pod can be developed in Matlab, or one of the many other platforms which are supported by Bitalino.

https://forum.bitalino.com/viewtopic.php?f=1&p=2191#p2191
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
With Bitalino Biomedical Toolkit, it is possible to buld a sports watch with ECG heart rate and Bluetooth footpod with live stream of all sensor data over Bluetooth to Matlab or other Applications. This is a solution to get live stream sensor data until more attractive live streaming options for instance for Bluetooth 5.0 are available from Garmin or Polar.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There is already an example in Matlab for step counting with the Beagle Bone Blue, which could also work as a real-time foot pod:

https://www.mathworks.com/help/supportpkg/beagleboneblue/ref/counting-steps-using-beagleboneblue-hardware-example.html

But you probably need to have installed both Beagle Bone BLue and Software, before all links are working >:(

https://www.mathworks.com/matlabcentral/answers/534838-broken-link-count-steps-using-mpu9250-sensor-of-beagleboneblue-hardware?s_tid=mlc_ans_email_view#comment_867918
« Last Edit: May 27, 2020, 12:29:47 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Quick Tip from DC Rainmaker: Broadcast Garmin Optical HR to Apps Like Zwift // ANT & Bluetooth:




« Last Edit: June 07, 2020, 05:01:10 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
To summarize:

The Matlab BLE example requires Bluetooth 5.0. I could not find a heart rate sensor with Bluetooth 5.0. Maybe no additional software is needed when a device can be paired directly to a PC over Bluetooth 5.0. Polar devices are manly based on Bluetooth. Will Polar launch a new device with Bluetooth 5.0. soon? Or will a new Bluetooth 5.0 device only be launched, when the market is big enough for it?

For Matlab and Python, I would choose for heart rate Bitalino ECG and for step rate BeagleBone Blue. For both devices there is already example code available in Matlab, and for both devices Python code libraries are also available.
« Last Edit: May 28, 2020, 08:31:16 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Build your own sports watch with Bitalino and BeagleBone Blue :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Build your own sports watch with Bitalino and BeagleBone Blue, inspired by Seppo SƤynƤjƤkanga's, the founder of Polar.

Polar was founded in 1977 by Seppo SƤynƤjƤkanga's, who worked at the University of Oulu on the developement of a heart rate monitor.

He was inspired by talking to a trainer during a cross-country ski run in 1976. It was about using a measuring device that can be used not only for stationary training, but also on the body. Because the heart rate was still being measured on the finger at that time, the cabling was not given freedom of movement.

Measurements where slow and and inaccurate. After intensive research and development, the world's first wireless heart rate monitor, the pulse monitor Sport Tester PE2000, came onto the market in 1982. The functionality has been continuously improved and the range of products.

https://de.wikipedia.org/wiki/Polar_Electro
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
After all, times are getting better. The new Garmin HRM dual supports Bluetooth 5.0, and there is an example code in Matlab which is built for Bluetooth 5.0, so this should work together:

https://www.mathworks.com/matlabcentral/answers/533393-are-there-specific-ble-heart-rate-sensor-devices-available-which-are-compatible-to-the-example-model?s_tid=prof_contriblnk

But this needs first to be confirmed.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The World is your Venuā„¢ (Garmin advertising) was yesterday. Build your own watch is today :).
« Last Edit: May 29, 2020, 02:36:51 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The idea of the whole world wearing the same sportswatch frightens me :-- .

In times of individualized society everbody should have the right to build his own sports watch, which fits for his needs.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Does the Garmin HRM dual (Bluetooth 5.0) work with Matlab BLE example?

https://www.mathworks.com/matlabcentral/answers/533393-are-there-specific-ble-heart-rate-sensor-devices-available-which-are-compatible-to-the-example-model?s_tid=prof_contriblnk

A PhD. Software engineer is wanted to participate and test the Matlab BLE example.
« Last Edit: May 30, 2020, 12:53:51 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
A solution which is a little bit easier is the new Pyloton Cycling Computer, an open source cycling computer that displays heart rate, speed, cadence, and song playback info :clap:.

https://learn.adafruit.com/pyloton

I was looking at the instruction, which is excellent, and I suppose it shoud be possible to connect the Pyloton over micro usb to Matlab or Pyton. Tere is a component of the Pyloton which is Arduino compatible and has a usb port.

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
PYLOTON,open source bike computer, derived from Pedolon (streaming fitness classes to you live and on-demand), and Python.

Pyloton has circuit Python language, firmware upgrade over usb, sensors are recognized in the Adafruit app, mounting system, mounting of sensors:



« Last Edit: May 31, 2020, 08:45:32 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
PYLOTON open source bike computer, no Azure cloud, no ANT+ stick, no Phd. computer engineer necessary to stream BLE sensor data to Matlab or Python :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
What I miss on the PYLOTON open source bike computer is a real-time data aquisition software. To my knowledge, there is no real-time data aquisition system available for sporting activities to this date, exept for Equivital's wireless physiological monitoring system from Adinstruments, which is very expensive and has a short warranty time. Also it' s difficult to access raw data from sporting activies for instance from Garmin watches. Integration of the Pyloton Open Source Cycling Computer into OpenSignals could solve this problem.

https://forum.bitalino.com/viewtopic.php?f=19&t=610

Or a Windows Python project for the PYLOTON with graphs, plots and data in an easy accessible way.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Seven pages of Blog (Azure Cloud & ANT+ stick solution taken together) to stream Garmin ANT+ sensor data to a PC. Is there an instruction among these different kind of possibilities which is attractive to somone?

55 pages of instruction for the Pyloton Open Source Bike computer , and you are there (55 pages of PDF printout instruction).  :-+

The only problem which is not descripted is how to read out sensor data from the Pyloton usb port. But this should be possible, i see no reason why this should not work. There are many instructions for Matlab or Python how to read out data from an Arduino, and the Pyloton is Arduino compatible.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
It is difficult to access raw data from a Garmin watches, either in real time, but also post processing. I ll choose the following setup. I will use a Polar OH1 and a Stryd foot pod to aquire sensor data for post processing purposes. Both are litte controversial for it s accuracy.

Data scientist Max Candocia has developed a great python script how to pull out raw data from Garmin .fit files with their intransparent file structure:

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

Who knows better than a Data Scientist how to pull out data from a Garmin watch? I will follow Max Candocias way.

Garmin watches and also other sports watches are not built to access sensor data in real time. This can be solved by the new Pytolon BLE open source bike computer. But it is currently something for developers:

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

To access sensor data in real time has the advantage, that it is possible to choose your own file format. To get real time heart rate data I will choose Bitalino ECG:

https://plux.info/bundles/428-bitalino-revolution-heartbit-bt.html

It is easy to get real time data from Bitalino ECG; for instance in Bitalino s Matlab Toolbox.

https://www.mathworks.com/matlabcentral/fileexchange/53983-bitalino-toolbox

For step counting I will choose the BeagleBone Blue. There is already an example which is working:

https://www.mathworks.com/help/supportpkg/beagleboneblue/ref/counting-steps-using-beagleboneblue-hardware-example.html

The BeagleBone Blue is not optimal for step counting. Who wants to mount an energy hungry Linux computer on their foot, which not even has an HDMI out for testing? Migration of the step counting software to a Bitalino solution could solve this problem:

https://forum.bitalino.com/viewtopic.php?f=1&p=2213&sid=cd8471bbf27ab54828b1b5a236df68c1#p2213
 
« Last Edit: June 06, 2020, 04:19:29 am by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The accuracy of the Bitalino low cost biomedical toolkit has already been compaired to a standard deivce and is published. When using this setup of sensors, the accuracy of already tested sensors can be checked:

https://forum.bitalino.com/viewtopic.php?f=12&p=2211#p2211
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I have put together all the links of the discussed components and pasted them in .readme file on my Github, to contribute to it s further developement:

https://github.com/PeterGamma
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There are alternatives to ANT+ sticks, Microsoft Azure Clouds, Linux Virtual Boxes running in Windows using Python ANT+, which costs less or are easier to handle.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Who does not want a device which can be plugged into a PC and shows the heart rate of your Garmin watch? I wonder why it does not already exist. I don t know whether it is possible to make money out of it. But for a software developer it is an easy job. But the information how to do it is not easy to find.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Bitalino OpenSignals has the option for Lab Streaming Layer LSL. LSL is a well documented standard. This allows easy sensor streaming to other applications with LSL support, for instance Python.

In this way a Bitalino real time system (ECG and foot pod), which are essential components of a activity tracking system can be made real without Matlab.

https://downloads.plux.info/OpenSignals/opensignals_lsl_guide.zip
« Last Edit: June 07, 2020, 04:06:36 pm by Peter Gamma »
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
I downloaded OpenSignals from Bitalino. It has an option to switch on LSL, which can be received in Python. It has also an option for TCP/IP to switch on. There is a documentation available in OpenSignals for both options. These two options are only available in OpenSignals for Desktop, but not in OpenSignals mobile, which  I also downloaded. No live streaming options can be choosen in OpenSignals mobile.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
If you don t want to carry arround a laptop all the time for data aquisition, the android application a training tracker

https://play.google.com/store/apps/details?id=com.atrainingtracker

can record ANT and BLE sensor data directy to csv  :-+.


CSV data can directly be opened on the smartphone with Planmaker from Softmaker :-+

https://play.google.com/store/apps/details?id=softmaker.applications.planmaker.hd


You can add user comments to the .csv data on the smartphone in this way, store them, and then process the data further for instance in Microsoft Access.

I had to make a hard reset every time I changed to a new heart rate sensor with a training tracker. But using always the same heart rate sensor, for instance a chest strap, or different smart phones for different sensors could solve the problem.

 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
The same should be possible in OpenSignals mobile for Bitalino

https://play.google.com/store/apps/details?id=info.plux.opensignalsmobile

OpenSignals mobile can record Bitalino data directly to .txt files on the smartphone, where they should also be opened by Planmaker mobile from Softmaker.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
To control user data to see whether it is possible to make money out of it is out :-- .

The user data belong to the user. Give free access to those data.

CSV or TXT format instead of .fit file format which can only be accessed easily by companies :--.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Also use BLE sensors :-+ instead of ANT sensors :-- if you want to access your data on a PC. There are hardly any PC applications which can process ANT sensor data in real time. BLE is more widespread, for instance for video streaming. More and more software will be available for BLE.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Why to use a special ANT+ standard, and why to use a .fit file format? Why not use BLE sensors instead, and record data in a file format which can also be processed by Data Analysis software like Matlab?
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
A file format which can be accessed by Matlab, Excel or other standard software, and does not need special converter software from a Data Scientist before it has a clear and transparent data structure :--.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
To find the .csv generated by a training tracker is a bit tricky. First, you have to tick on in a training tracker, that you want .csv. Only then a folder is generated. I could find the folder with the .csv by connecting my Galaxy S5 to the PC, and then seraching for .csv files on the phone.

This PC\Galaxy S5\Phone\Android\data\com.atrainingtracker\files\CSV

Once you got the .csv files, they are very clear. A clear time stamp, a clear data structure  :-+. Similar to the data struture generated by Data Scientist Max Candocias .fit to .csv Python script.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
My goal is to replace ANT+ sensors, .fit file format, and Garmin Connect by alternative products. The world whould be a much better place for people who love their data and want free and easy access to it,with good alternatives to those products :).
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
With a setup of Polar OH1 connected to a  Garmin watch, Polar H7 connected to a training tracker, and Bitalino ECG connected to OpenSignals or OpenSignals mobile, you can record three heart rate sensors simultaneously, which are already tested for their accuracy by scientific methods, and you are able to compare your recordings to the scientific data.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Garmin has an activity tracking system wich monitors 24h 7d heart rate, steps, sleep duration, etc. But it is not satisfying for me personally, since quantification with the system from Garmin is very limited. A system with more accurate sensors would be desirable. And also a streaming system over an MQQT brocker, for easy access of data. All components are available, but needs to be developed :blah:.
 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
There is no solution, which is satisfying for all needs. I suggest:

1.    For a live-stream with real-time processing, choose Bitalino ECG with Matlab Toolbox:

https://www.mathworks.com/matlabcentral/fileexchange/53983-bitalino-toolbox

or another live streaming option which is available from the Bitalino APIs.


2. The android application a training tracker can record directly to .csv format. I managed to get a stable recording with Polar h7.

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


3. For post-processing use a Garmin watch paired for instance to a Polar OH1 sensor for accuracy reasons. Data can be converted after recording by Data Scientist Max Candocias .fit to csv Python script:

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

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
These solutions are ready to go, and don t need developement.

Live streaming solution wich I propose and need a bit of developement, or at least copy and pasting scripts together are the following:

ANT+ sensors:

A real-time stream from ANT+ sensors could be obtained by a Raspberry Pi Ant+ script which sends sensor data to a MQTT-Broker

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

this could be done on a Pinephone:

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

BLE sensors:

This can be done by the Pyloton open source bike computer:

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

The Pyloton software could also run on a Pinephone:

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


 

Offline Peter GammaTopic starter

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: ch
  • Meditation Research Institute (CH), Physiologist
    • www.petergamma.org
Since my escape from the Garmin forum to the EEV Blog due to Garmin moderators which where not open to criticism, the Garmin forum has reached it s lowest level. Arbitary deletion of my posts and arbitrary inactivation of my account:

https://forums.garmin.com/developer/connect-iq/f/discussion/233663/how-can-a-login-again-to-my-garmin-forum-account

Time to escape permanently from the Garmin forum.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf