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

0 Members and 2 Guests are viewing this topic.

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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf