Bluetooth low energy & ANT+ sports sensors Pinephone distro?
#1
There is an instruction from Adafruit to build up a BLE bike based on the Adafruit CLUE chip:

https://github.com/PeterGamma/Pyloton-Ci...g-Computer

The Adafruit Clue chip is Arduino compatible. There are instructions how to run Arduiono code on a Rasperri PI. And as far as I found out there is no reason why Rasperri PI code should not run also on a Pinephone.

The Pinephone would be a better platform for a bike computer than the Adafruit Clue. Replacable batteries, large display, 3G or 4 G connection, etc.

The Adafruit instruction to build up a Pyloton bike computer is great. Is it possible to migrate the code for the Pyloton bike computer to a Pinephone?
  Reply
#2
I ve got problems since a long time with ANT+ sports sensors, especially from Garmin. It is not possible to access raw data for instance for heart rate recordings in a easy way. Garmin stores them in a intransparent .fit file fomat on their watches. They can be synchronized to different sports platforms. But I could not find an easy way to access raw heart rate data.



Therre are three different Android applications for ANT+ sports sensors:




  1. Garmin connect mobile
    only allows synchronization to Garmin connect, which gives no access to .csv raw data


  1. IpBike
    Despite the name “IpBike” there is no option for an IP stream to the web or to a PC application. Also there is no option to access .csv data. The interface of IpBike is proprietary and not published.


  1. a training tracker from Rainer Blind
    has become an open source project, and can record data directly to .csv files. Unfortunately, i did not manage to get a stable connection to sports sensors to this date.


I m in trouble with ANT+ sports sensors since many years. It is a proprietary standard and I could not find a by users confirmed and community driven solution for a ANT+ sensor data aquisition. It seems that Garmin or THIS IS ANT does not want users to access their raw user data on a PC and process them independently of their software. The user data belong to the user, and not to a company.




I listed all the options for physiological sensor aquisition I was studying here




https://github.com/PeterGamma




I love the idea of an open, friendly and community driven Pinephone, and I miss an open, friendly and community driven mobile BLE sports sensor device. It would be the pure oposite from what I experienced with Garmin and THIS IS ANT.
  Reply
#3
For me personally, DC Rainmaker blog introducing technologies for runners, cyclists and triathletes was very helpful. Ray gave the following information to me, which might be helpful also for a Pinephone BLE Bike computer:

“There are a number of ANT+ profiles not in Bluetooth Smart, for example cycling radar or ANT+ lights, or even a draft ANT+ Aero sensor profile.
Ultimately, the core profiles for a sports watch as I see it are:
ANT+ & Bluetooth Smart Heart Rate
ANT+ & Bluetooth Smart Cycling Power
ANT+ & Bluetooth Smart Running Footpod (Stride sensor)
ANT+ & Bluetooth Smart Cycling/Speed Sensors (this is technically three different types of sensors: Speed-only, cadence-only, and Speed/Cadence combo).”

You can google this information in DC Rainmakers blog, where I asked Ray this question.

Almost all ANT+ profiles are also available as BLE profiles.

Is there a reason not to build a open, friendly, community driven Pinephone BLE bike computer instead of dealing with closed, unfriendly, and ego ANT+ developers?

https://github.com/PeterGamma/What-happe...etrack.io-
  Reply
#4
There is an excellent tutorial from RD Gameplays & Tech to Convert Garmin files FIT to CSV format:

https://www.youtube.com/watch?v=k8vrTdcH...e=youtu.be

but better than a post-processing Python script which converts .fit files to .csv format would be a Pinephone software which can record data directly from a Bluetooth smart (BLE) sports sensor to .csv files for analysis of sports data independently from Garmin software like Matlab or Excel.
  Reply
#5
A Rasperri PI zero with a 4500 mAH battery has working time of more than 20 hrs. The Pinephone only has a working time of 3 to 4 hours with a planned extended 5000 mAH battery, if I got this right:

https://www.pine64.org/2020/05/15/may-up...94#respond


But a Rasperri PI zero is very limited as far as connectivity is concerned. A Pinephone with an additional external battery pack of 10 000 mAH, eventually with an usb c adapter which has additional HDMI out, and the Pinephone is in the business again.
  Reply
#6
Have you considered the PineTime for this? Low power requirement, screen and BLE.
  Reply
#7
Do you think the software for the Arduino compatible Adafruid Open Source Bike computer runs also on the Pinetime?

https://learn.adafruit.com/pyloton
  Reply
#8
And has the PineTime an option for a real-time sensor stream to a smartphone or a PC?

I miss a storage device on the PineTime for sensor data.
  Reply
#9
These features are too little developed on the PineTime. A Pinephone is the better device to start buidling a open source bike computer or an open source sports watch.
  Reply
#10
PineTime capabilities are very much dependent on what you decide to run on it. Taking your pyloton example, it will probably need some modification to run, but maybe not much. Pyloton is written for CircuitPython which is in turn an extension of MicroPython. Wasp-os is probably the most advanced of the PineTime projects, and lets you run MicroPython apps on the PineTime, so it may be relatively easy to port between them. I'd expect there to be enough storage for you to save data for the ride on the PineTime, then transfer to a phone at the end. It depends on exactly what you want to record though. There's nothing to stop you writing something to send sensor data to a phone in real time, but in that case you may as well do everything on the phone anyway.

https://github.com/daniel-thompson/wasp-os
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 32 23,344 03-21-2024, 04:27 PM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 280 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,157 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 22,940 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 1,712 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 99,944 11-17-2023, 08:37 AM
Last Post: Uturn
  Using Signal on PinePhone in mid-2023? dante404 45 11,762 11-17-2023, 04:23 AM
Last Post: Kevin Kofler
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 815 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 1,838 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,114 10-18-2023, 08:37 AM
Last Post: luppivega

Forum Jump:


Users browsing this thread: 1 Guest(s)