ErgometerJS Web bluetooth

Post questions and issues with Concept2 PM3 SDK
Post Reply
User avatar
tijmenvangulik
Paddler
Posts: 45
Joined: November 25th, 2012, 10:24 am

ErgometerJS Web bluetooth

Post by tijmenvangulik » July 22nd, 2016, 2:58 pm

I have added Web bluetooth support to the ErgometerJS library. ErgometerJS supports now all major native platforms and web from a single source. Web bluetooth is still in beta so you can only test it with with chrome canary. Since google is working hard on supporting web bluetooth I expect that it will not take long before web bluetooth will be fully supported by chrome.

https://github.com/tijmenvangulik/ErgometerJS

I have not yet been able to test all platforms but it should work on:

* Mobile using cordova: iOS,android, Windows
* Mobile react native: iOS,android
* Desktop using Electron: MacOS X, Windows, Linux
* Server using Node: MacOS X, Windows, Linux (inc Raspberry PI)
* Web: chrome canary (still beta)

Tijmen

SlimJim
Paddler
Posts: 1
Joined: September 21st, 2018, 9:54 am

Re: ErgometerJS Web bluetooth

Post by SlimJim » September 21st, 2018, 9:57 am

Hello -

I am beginning a Concept2 Rowing App, and your ErgometerJS Web Bluetooth library is much appreciated. This represents a tremendous amount of work and I am very grateful. I am looking forward to testing this out.

Do you have any pointers for developing without a PM5 in the same room as the development computer? I have been unable to find a PM5 emulator or any guide to that.

User avatar
Citroen
SpamTeam
Posts: 5460
Joined: March 16th, 2006, 3:28 pm
Location: Basingstoke, UK

Re: ErgometerJS Web bluetooth

Post by Citroen » September 21st, 2018, 10:26 am

Since Tijmen hasn't visited the forum since Sat 16 Jun 2018, 15:42 you may do better by posting an issue on Github at: https://github.com/tijmenvangulik/ErgometerJS/issues

User avatar
tijmenvangulik
Paddler
Posts: 45
Joined: November 25th, 2012, 10:24 am

Re: ErgometerJS Web bluetooth

Post by tijmenvangulik » September 29th, 2018, 4:38 am

Still there (sometimes ) :-)
Yes I have some pointers. What I usually do is:
- Screw off the PM5 monitor and take it to the developer computer. (this is just for testing connection issues)
- Record all the ergometer blue tooth data and replay it at the other location. Record and replay is part of the ergometerJS library. There is an example of this. But be aware that during a replay your do the same actions in the same order as you recorded it otherwise it will sometimes wait for a response which was not recorded.

Tijmen

Post Reply