iOS Development

Post questions and issues with Concept2 PM3 SDK
Piboo
Paddler
Posts: 12
Joined: April 7th, 2015, 6:33 pm

Re: iOS Development

Post by Piboo » July 11th, 2015, 10:15 am

don't consider my last post... :p

jessecurry
Paddler
Posts: 4
Joined: July 7th, 2010, 1:42 pm

Re: iOS Development

Post by jessecurry » October 28th, 2015, 8:38 pm

I started a small library in Swift to connect to the Concept2, I just dropped the first version as a Cocoapod. Right now it will scan for PMs, allow you to connect to one, and pull most of the rowing service data.

There are probably plenty of bugs in there and I've still got a long way to go before a v1 release, but I thought it might help some people get a head start on consuming PM data from Swift.

The source code is available here: https://github.com/BoutFitness/Concept2-SDK

Piboo
Paddler
Posts: 12
Joined: April 7th, 2015, 6:33 pm

Re: iOS Development

Post by Piboo » April 7th, 2016, 5:12 am

Hi jessecurry,

Thanks for your work.
One question, what is the service's address to listen to get data when you set up a distance (example 2000m) on my PM ?
I can get data when I start rowing (so from 0m to XXm) but I can get the inverse (the decount of meters).

Thank you for your help,

Regards

russellm42
Paddler
Posts: 1
Joined: July 18th, 2013, 4:13 am

Re: iOS Development

Post by russellm42 » April 28th, 2016, 4:14 am

@jessecurry - I can't use bluetooth for my project, at least to start, as the ergs in my gym and at home don't have it.

Does your library connect by cable as well?

Russell

User avatar
Citroen
SpamTeam
Posts: 8011
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: iOS Development

Post by Citroen » April 28th, 2016, 4:58 pm

Don't hold your breath waiting for a reply. Jesse hasn't visited the forum since Wed 04 Nov 2015, 02:17.

There's an email address for him on his Github pages, you may get a quicker answer that way.

jessecurry
Paddler
Posts: 4
Joined: July 7th, 2010, 1:42 pm

Re: iOS Development

Post by jessecurry » January 24th, 2017, 10:59 am

@russellm42 this library only supports Bluetooth, I only have a PM5 at home and no cable.

@Piboo the entire spec can be found here: http://www.concept2.com/files/pdf/us/mo ... nition.pdf

User avatar
Citroen
SpamTeam
Posts: 8011
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: iOS Development

Post by Citroen » January 24th, 2017, 11:53 am

jessecurry wrote:I only have a PM5 at home and no cable.
Welcome back.
The cable you need is a stock USB-A to USB-B printer cable.

jessecurry
Paddler
Posts: 4
Joined: July 7th, 2010, 1:42 pm

Re: iOS Development

Post by jessecurry » January 25th, 2017, 8:05 pm

Citroen wrote: Welcome back.
The cable you need is a stock USB-A to USB-B printer cable.
I'll see if there's a clean way to merge the wired and wireless functionality, the current library is only built with Bluetooth in mind.

Mark Pettit
Paddler
Posts: 8
Joined: December 20th, 2016, 3:01 pm

Re: iOS Development

Post by Mark Pettit » January 26th, 2017, 5:12 am

No - it's in unit's of TEN Centimeters. So say 125 units will be 125 x 0.1m = 12.5 meters.

Thorn
Paddler
Posts: 8
Joined: January 23rd, 2017, 7:28 am

Re: iOS Development

Post by Thorn » January 26th, 2017, 5:15 am

jessecurry wrote: I'll see if there's a clean way to merge the wired and wireless functionality, the current library is only built with Bluetooth in mind.
To me, if it could be proper C2 SDK, then BT abstraction layer should be implemented in the same way as they have USB layer there (tkcmdsetUSB*).

Then from the application perspective (using CSAFE and DDI layers) there should not be any differences how devices connected to host.
In that case discovery function might have additional arg to point which interface(s) to look up (eg USB, BT, ANOTHERINTERFACE, ANOTHERYET etc combined by "OR") and then returns number of devices discovered on the requested interfaces. Application in that case won't need to know anything about if pms connected by USB or BT or whatsoever, it just will use them as it is using it now with the only usb layer currently.

Am I dreaming? :)

Locked