Search found 33 matches

by angrytongan
September 8th, 2021, 10:25 pm
Forum: SDK Questions
Topic: OAuth2 App Registration?
Replies: 3
Views: 6989

Re: OAuth2 App Registration?

All the docs are here:
https://log.concept2.com/developers/doc ... der-oauth2

Email ranking@concept2.com to get a client id and secret.
by angrytongan
September 5th, 2021, 7:17 pm
Forum: SDK Questions
Topic: Decoding BLE log entry date bytes
Replies: 4
Views: 7549

Re: Decoding BLE log entry date bytes

I think this is what you're after: logDate: function(n) { let month = n & 0x0f; /* bits 0 to 3 */ let day = (n >> 4) & 0x1f; /* bits 4 to 8 */ let year = 2000 + ((n >> 9) & 0x7f); /* bits 9 to 13 (15); epoch is 2000 */ return day + "/" + month + "/" + year; }, From https://github.com/ergarcade/pm5-d...
by angrytongan
September 5th, 2020, 6:27 am
Forum: Training
Topic: Interactive chart showing Concept2 pace, power, cal/hour, speed
Replies: 12
Views: 10587

Re: Interactive chart showing Concept2 pace, power, cal/hour, speed

Hi Citroen, Your mistake it to assume that the way (k)calories are measured on the PM5 bears any relationship to the way (k)calories are calculated in the real world and by any other sports equipment. The chart displays the same thing as what is displayed on the monitor. It doesn't make any attempt ...
by angrytongan
September 4th, 2020, 10:07 pm
Forum: Training
Topic: Interactive chart showing Concept2 pace, power, cal/hour, speed
Replies: 12
Views: 10587

Re: Interactive chart showing Concept2 pace, power, cal/hour, speed

Hi Allan, The calorie calculation is not the same as used by the PM. At pace 1:40, the difference is almost 300 kcal/hour. I recorded this video of rowing for 1:00 at 2:00, 1:50 and 1:40. The monitor shows pace, ErgData shows cal/hour. Matching paces onto the chart shows the same cal/hour value - 2:...
by angrytongan
September 3rd, 2020, 6:29 pm
Forum: Training
Topic: Interactive chart showing Concept2 pace, power, cal/hour, speed
Replies: 12
Views: 10587

Re: Interactive chart showing Concept2 pace, power, cal/hour, speed

Thanks for picking that up. I was originally working on the BikeErg numbers so pace is off for SkiErg and rower. Fixed now.
by angrytongan
September 1st, 2020, 5:19 pm
Forum: Training
Topic: Interactive chart showing Concept2 pace, power, cal/hour, speed
Replies: 12
Views: 10587

Interactive chart showing Concept2 pace, power, cal/hour, speed

I quickly put together an interactive chart mapping pace, power, cal/hour and speed for Concept2 ergometers. These are the same values you see on the erg monitor. Having them all overlaid in a single chart might be useful when planning how to attack a workout. https://ergarcade.com/articles/c2-pace-...
by angrytongan
August 6th, 2020, 5:49 pm
Forum: SDK Questions
Topic: wacky force curve and PM5 usb support
Replies: 7
Views: 12072

Re: wacky force curve and PM5 usb support

Thanks for the link, its a wealth of good detail. I am wondering if the raspberry pi zero and the approach that I am using isn't fast enough to get the data. It currently issues a usb command (in python), waits for the response and repeats. From the comments in your code, it looks like you "poll" b...
by angrytongan
August 5th, 2020, 6:04 pm
Forum: SDK Questions
Topic: wacky force curve and PM5 usb support
Replies: 7
Views: 12072

Re: wacky force curve and PM5 usb support

I ran into similar when I was working on a PM proxy over USB a while back. Have a look at this code around line 454 . If I remember correctly there are a few ambiguous edge cases. If you are interested in the BLE interface I’ve done some work; check out www.ergarcade.com. All code is available on gi...
by angrytongan
November 15th, 2019, 3:37 pm
Forum: SDK Questions
Topic: Android Studio "Bluetooth Le Gatt" sample
Replies: 5
Views: 15700

Re: Android Studio "Bluetooth Le Gatt" sample

For more browser-based solutions checkout Erg Arcade. The pm5-base sample application abstracts away all the comms so your app can just receive information from the monitor. Code available at GitHub.
by angrytongan
May 29th, 2019, 5:12 am
Forum: SDK Questions
Topic: All PM5 variables as JSON file
Replies: 0
Views: 11240

All PM5 variables as JSON file

Utility to dump all PM5 BLE variables as JSON. Useful as a way to generate input files for replaying when developing applications.

https://github.com/ergarcade/pm5-dump
by angrytongan
December 29th, 2018, 4:16 pm
Forum: SDK Questions
Topic: Proxy for connecting to PM3/4/5 over USB
Replies: 3
Views: 10983

Re: Proxy for connecting to PM3/4/5 over USB

Sure, go ahead.
by angrytongan
November 23rd, 2018, 5:21 am
Forum: SDK Questions
Topic: Proxy for connecting to PM3/4/5 over USB
Replies: 3
Views: 10983

Proxy for connecting to PM3/4/5 over USB

A system-tray application that acts as a proxy using USB between PM3/4/5s. Data collected can be passed to third-party applications via WebSocket . Implements most of the CSAFE and Concept2 specific commands. Requires Qt. Tested only on Mac OS X with a few PM5s simultaneously. https://github.com/erg...
by angrytongan
November 23rd, 2018, 5:10 am
Forum: SDK Questions
Topic: All PM5 variables reported over Bluetooth interface
Replies: 1
Views: 9203

All PM5 variables reported over Bluetooth interface

A small browser application for viewing all PM5 variables available over Bluetooth. Quite easy to hook in your own browser applications. Uses web bluetooth and only available in Chrome. Tested on Mac OS X.

https://github.com/ergarcade/pm5-detail

Cheers,
Dean