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
  Pinephone OS Backups (System Images) ThrillGates 5 449 5 hours ago
Last Post: jed
Rainbow Sxmo - Simple X Mobile Released for the Pinephone (new minimalistic UI & image) mil 112 20,921 10-18-2020, 05:54 AM
Last Post: saba
  Arch Linux ARM on PinePhone (2020/10/15) Danct12 51 8,644 10-15-2020, 07:36 PM
Last Post: Danct12
  openSUSE for Pinephone Alefnode 29 6,171 10-15-2020, 12:26 PM
Last Post: georgep56
  Latest firmware for PinePhone modem! Subsentient 11 1,152 10-15-2020, 12:04 PM
Last Post: TimotheeLF
  Bliss OS on pinephone lcayer1 4 294 10-14-2020, 06:35 PM
Last Post: tllim
  Pinephone as daily driver lcayer1 15 856 10-13-2020, 07:18 PM
Last Post: hiimtye
  Fedora + Phosh for PinePhone njha 32 10,434 10-07-2020, 04:19 PM
Last Post: Alho
  Telescope: Pinephone compat. UT synchronization app for Linux AsteroidOS smartwatches Peter Gamma 1 111 10-07-2020, 08:04 AM
Last Post: Peter Gamma
  Quick look at 4 different PinePhone OSs Luke 7 1,997 09-27-2020, 05:04 AM
Last Post: nas

Forum Jump:


Users browsing this thread: 1 Guest(s)