iOS Development
Re: iOS Development
don't consider my last post... :p
-
- Paddler
- Posts: 4
- Joined: July 7th, 2010, 1:42 pm
Re: iOS Development
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
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
Re: iOS Development
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
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
-
- Paddler
- Posts: 1
- Joined: July 18th, 2013, 4:13 am
Re: iOS Development
@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
Does your library connect by cable as well?
Russell
- Citroen
- SpamTeam
- Posts: 8011
- Joined: March 16th, 2006, 3:28 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: iOS Development
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.
There's an email address for him on his Github pages, you may get a quicker answer that way.
-
- Paddler
- Posts: 4
- Joined: July 7th, 2010, 1:42 pm
Re: iOS Development
@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
@Piboo the entire spec can be found here: http://www.concept2.com/files/pdf/us/mo ... nition.pdf
- Citroen
- SpamTeam
- Posts: 8011
- Joined: March 16th, 2006, 3:28 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: iOS Development
Welcome back.jessecurry wrote:I only have a PM5 at home and no cable.
The cable you need is a stock USB-A to USB-B printer cable.
-
- Paddler
- Posts: 4
- Joined: July 7th, 2010, 1:42 pm
Re: iOS Development
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.Citroen wrote: Welcome back.
The cable you need is a stock USB-A to USB-B printer cable.
-
- Paddler
- Posts: 8
- Joined: December 20th, 2016, 3:01 pm
Re: iOS Development
No - it's in unit's of TEN Centimeters. So say 125 units will be 125 x 0.1m = 12.5 meters.
Re: iOS Development
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*).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.
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?