PINE64
Does software code which was written for the Rasperri Pi run on also the Pinephone? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: Does software code which was written for the Rasperri Pi run on also the Pinephone? (/showthread.php?tid=10125)



Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-08-2020

I m interested in this Raspberry Pi Ant+ script which sends sensor data to a MQTT-Broker:

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

You certainly need an Ant+ stick for this. But except from that. Are there any modifications necessary to run Rasperri PI code on a Pinephone. And if so, which ones?


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - wibble - 06-09-2020

It depends whether the distribution you're running has the required software packaged and available. I'd guess if you're running debian you should be able to follow the raspbian instructions and have a good change of it just working. It doesn't look like there's anything in there that's specific to either the Pi or Pinephone hardware to trip you up.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-09-2020

(06-09-2020, 10:59 AM)wibble Wrote: It depends whether the distribution you're running has the required software packaged and available. I'd guess if you're running debian you should be able to follow the raspbian instructions and have a good change of it just working. It doesn't look like there's anything in there that's specific to either the Pi or Pinephone hardware to trip you up.

Thank you for your answer, Ripple. For ANT+ sensor data processing like processing of heart rate and speed from Garmin devices, there are serveral Rasperri PI projects. But I think the Pinephone would be the better platform for these project, because of the form factor, replaceable batteries and a big LCD screen:

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


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-15-2020

If I got it right, this Qbike ANT+ bike computer should run also on the Pinephone with an ANT+ stick:

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

But an ANT+ stick needs driver. There are driver available for Android. But do they also work for Linux?

Darren Hague has a project with an ANT+ stick:

https://github.com/dhague/vpower

and the instruction says it should also run unter Linux.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - wibble - 06-15-2020

That vpower project is runnning on a Pi Zero, so it's on linux. It uses a cheap generic ANT+ USB dongle, and this ANT library:
https://github.com/baderj/python-ant

I haven't tried any USB devices with the PinePhone - it _should_ work, but at least one hardware issue has been found affecting aspects of USB functionality.

Unless you've already got ANT devices you'd probably be better sticking to BLE as that's built into the PinePhone.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-15-2020

I agree completely.

Other arguments are, that open source developement is easier with BLE and .csv than with ANT+ and .fit file format. I bit my teeth out with THIS IS ANT and Garmin.


The only thing I experienced where offers from product seller which where not attractive to me personally,actions to make me stop posting, threaten to delete or delete my posts arguing with the terms and condition when I was writing about an non Garmin or non Matlab product in the Matlab forum, Garmin forum, DC Rainmaker Blog, EEVBlog, etc.

These are for me personally reason to retrait from Garmin and THIS IS ANT products, and reasons to find products and forums which are open, friendly and community driven.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-15-2020

Polar does not have a forum anymore. And Garmin migrated the forum to a new forum platform and lost part of the posts of the users during this migration. Every post can be restored on demand, but who asks Garmin for every post to get it back?


The most important thing is exerience, and user experience, and I cannot follow companies who don t appreciate the value of user experience.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - wibble - 06-16-2020

About the USB - the USB bug means you need to switch USB modes manually to be able to use the phone with USB devices, but they should still work.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-16-2020

Thanks.


RE: Does software code which was written for the Rasperri Pi run on also the Pinephone? - Peter Gamma - 06-17-2020

I think it is worth trying to run the low-cost high quality QBike Peloton Bike computer on a Pinephone, before BLE projects are available, a ANT+ stick does not cost much.


It is an open source bike computer project which is quite advanced, and more functionality could be added easily, for instance a SQL lite data base for sensors or a MQQT brocker stream to the web, which both are available for rasperri PI projects:


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

There are BLE projects available:

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

but Qbike is ready to go.