ErgometerJS hid (usb) support

Post questions and issues with Concept2 PM3 SDK
Post Reply
User avatar
tijmenvangulik
500m Poster
Posts: 59
Joined: November 25th, 2012, 10:24 am

ErgometerJS hid (usb) support

Post by tijmenvangulik » September 13th, 2019, 3:04 pm

It was a long time ago that ErgometerJS has had an update. I have now a major update ready:

* Added usb support for pm3-5. This is supported in:
- Node (using node-hid)
- Electron ( using node-hid)
- Chrome canary with experimental features (using web-hid)
* Updated the electron projects. The switched from the native BLE to the web BLE.

You can download the source from
https://github.com/tijmenvangulik/ErgometerJS

If you want to try it live to
https://ergometer-space.org
(web hid is not yet supported in ergometer-space, but I will add it in the coming week. You can try it using the desktop apps (=electron) )

Tijmen

User avatar
tijmenvangulik
500m Poster
Posts: 59
Joined: November 25th, 2012, 10:24 am

Re: ErgometerJS hid (usb) support

Post by tijmenvangulik » October 5th, 2019, 10:26 am

Another milestone for ergometerjs. I just added cordova usb support.

Tijmen

wmmnpr1
Paddler
Posts: 7
Joined: December 26th, 2013, 2:40 pm

Re: ErgometerJS hid (usb) support

Post by wmmnpr1 » September 13th, 2020, 6:31 am

Hi Tijmen,
Congratulations on creating a nice library. You've certainly done a nice job at abstracting away the complexities of PM communication via usb and bluetooth.
Could you suggest the best way to detect the end of a workout/race. With USB, I am receiving TrainingDataEvent events, however, the distance emitted with the last event is not the full workout/race distance and the workDistance does not quite reach 0 as well.
Thanks for your help,
William

Post Reply