Search found 15 matches

by horseshoe7
August 5th, 2015, 11:46 am
Forum: SDK Questions
Topic: Weird Values from BT LE
Replies: 4
Views: 7572

Re: Weird Values from BT LE

You can also read the 3 bytes into a uint32, where Byte 4 3 2 1 -- hi mid lo In Objective-C, this was done by: NSData *data = ... // the bytes coming from the characteristic uint32_t time = 0; // initialize to zero so that all bits of a unit32_t are initialized to 0 [data getBytes:&time range:NSMake...
by horseshoe7
July 30th, 2015, 4:11 am
Forum: Bug Reports
Topic: Incorrect Data being sent via BT LE? (Firmware Bug?)
Replies: 4
Views: 8759

Re: Incorrect Data being sent via BT LE? (Firmware Bug?)

It was because I wasn't initializing those uint32_t with a value of 0. So it was using some bogus memory value for the 4th byte.
by horseshoe7
July 28th, 2015, 7:31 am
Forum: Bug Reports
Topic: Incorrect Data being sent via BT LE? (Firmware Bug?)
Replies: 4
Views: 8759

Re: Incorrect Data being sent via BT LE? (Firmware Bug?)

That's just log output. updateRowingMachine is the data object on my side. 100 is the line number in the .m file that made the call to the console log. The idea is that I have an object PM5RowingMachine : NSObject that has a lot of properties on it. Via the service characteristics, I parse the data ...
by horseshoe7
July 24th, 2015, 11:04 am
Forum: Bug Reports
Topic: Incorrect Data being sent via BT LE? (Firmware Bug?)
Replies: 4
Views: 8759

Incorrect Data being sent via BT LE? (Firmware Bug?)

Sometimes I notice that data coming from the PM5 is very wrong. It's noticeable with the elapsedTime and distance properties: Here is some log output of my app. t: and dst: are of interest: >> 17:00:22:600 V | (-[PMRowingServiceCharacteristicGeneralStatus updateRowingMachineWithData:]:100) t:33.6s d...
by horseshoe7
July 21st, 2015, 4:21 am
Forum: SDK Questions
Topic: Bluetooth Implementation
Replies: 4
Views: 7255

Re: Bluetooth Implementation

thanks dxpack! That gives me some food for thought. I'm trying to accomplish an "SDK" of sorts, which means it's general enough to accommodate hopefully a lot of users. I want to abstract away the bluetooth implementation and make it easy and fun to work with the Concept2 PM5. My hope is that not ev...
by horseshoe7
July 17th, 2015, 6:51 am
Forum: SDK Questions
Topic: Bluetooth Implementation
Replies: 4
Views: 7255

Bluetooth Implementation

This is my first CoreBluetooth project (iOS/OSX) and I've been implementing the BT LE spec provided by Concept2. With Bluetooth, one can ask to be notified about properties changing, or request their current state immediately, if I've understood that correctly. If I ask to be notified about characte...
by horseshoe7
July 10th, 2015, 4:28 am
Forum: SDK Questions
Topic: What projects?
Replies: 20
Views: 48661

Re: What projects?

1) Have you started or completed a software project for a Concept2 Rower or SkiErg? I've started working on an "SDK" for iOS, which aims to wrap the lower-level Bluetooth functionality and make it easy to work with data coming from the PM5. It is being written in Objective-C. 2) What is the status ...
by horseshoe7
July 9th, 2015, 2:29 pm
Forum: SDK Questions
Topic: Date Format, 2 + 2 bytes
Replies: 2
Views: 5099

Re: Date Format, 2 + 2 bytes

Thanks that's exactly how it works!!

Took me a while with all the bit-shifting nonsense, but I finally got it parsed.
by horseshoe7
July 9th, 2015, 11:34 am
Forum: SDK Questions
Topic: Date Format, 2 + 2 bytes
Replies: 2
Views: 5099

Date Format, 2 + 2 bytes

I'm parsing the data from some of the BTLE Characteristics, and am stumped with this (from BTLE Spec: http://www.concept2.com/files/pdf/us/monitors/PM5_BluetoothSmartInterfaceDefinition.pdf ) Data bytes packed as follows: Log Entry Date Lo, Log Entry Date Hi, Log Entry Time Lo, Log Entry Time Hi, Ho...
by horseshoe7
July 9th, 2015, 5:33 am
Forum: SDK Questions
Topic: iOS Development
Replies: 24
Views: 43531

Re: iOS Development

Allow me to answer my own question, may it be of help to you: Data bytes packed as follows: Elapsed Time Lo (0.01 sec lsb), Elapsed Time Mid, Elapsed Time High, Distance Lo (0.1 m lsb), Distance Mid, Distance High, ... etc. For these two properties above, you have to use the 3 bytes as one value, li...
by horseshoe7
July 9th, 2015, 5:32 am
Forum: SDK Questions
Topic: Parsing Bluetooth Data
Replies: 2
Views: 6947

Re: Parsing Bluetooth Data

Allow me to answer my own question, may it be of help to you: Data bytes packed as follows: Elapsed Time Lo (0.01 sec lsb), Elapsed Time Mid, Elapsed Time High, Distance Lo (0.1 m lsb), Distance Mid, Distance High, ... etc. For these two properties above, you have to use the 3 bytes as one value, li...
by horseshoe7
July 9th, 2015, 2:04 am
Forum: SDK Questions
Topic: Parsing Bluetooth Data
Replies: 2
Views: 6947

Parsing Bluetooth Data

I'm working with the Bluetooth LE spec of the rower and don't quite understand the spec for the rowing service. I'm currently parsing the data coming in from the rowing service and don't know how to interpret the bytes. The spec says (for example UUID 0x0037), Data bytes packed as follows: Elapsed T...
by horseshoe7
July 9th, 2015, 1:57 am
Forum: SDK Questions
Topic: iOS Development
Replies: 24
Views: 43531

Re: iOS Development

I'm a bit further along than Piboo and doing my implementation in Objective-C. I'm currently parsing the data coming in from the rowing service and don't know how to interpret the bytes. The spec says (for example UUID 0x0037), Data bytes packed as follows: Elapsed Time Lo (0.01 sec lsb), Elapsed Ti...
by horseshoe7
July 6th, 2015, 8:35 am
Forum: SDK Questions
Topic: iOS Development
Replies: 24
Views: 43531

Re: iOS Development

Why re-invent the wheel, the software is already out there and has already undergone ten years of development.... That's the whole point of an SDK or a framework. To add a layer of abstraction that makes it easier for others to use, and is not specific to any particular app. I don't like the curren...
by horseshoe7
April 21st, 2015, 6:36 am
Forum: SDK Questions
Topic: iOS Development
Replies: 24
Views: 43531

Re: iOS Development

I just bought the PM5 retrofit kit for my Model B rower because I want to be able to develop an iOS App. I also have interest in the SDK. So far, I found that the SDK provided on the website has an Xcode 3.0 Project file that won't build on OSX 10.10 (Yosemite). I would be grateful for anyone who co...