Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

FIT SDK C Project Fails To Decode

Rank

Total Posts: 6

Joined 2015-03-13

PM

In my continuing quest to get the SDK to be of any use to my project, and seeing as there seems to be no response or support to help on the topic of integrating the SDK with a Swift iOS project (cf: https://www.thisisant.com/forum/viewthread/6697/ and https://www.thisisant.com/forum/viewthread/6705/), I've retreated to the 'c' folder in the SDK to see if I can get that to work.
After lots of fussing with the configuration — typedef problems with some of the data types — I managed to get the decode command-line code to build. I ran it on a few .FIT files, including the ones in the examples folder, and they all fail as the code doesn't seem to find or recognize .FIT in the File Header. Certainly I can confirm it's there, but it appears like the memcmp that is performed around line 141 of fit_convert.c fails. Also, debugging the code and single-stepping it seems like that aspect of the structure is filled with zeros.

Sorta at a loss here. It's a shame that more of my time is spent getting the SDK to make any sense than actually working on the project I'm meant to be working on. And the forum seems a bit devoid of any support on these matters, or even a response to say anything.

In the meantime, out of frustration, I built my own decoder in Swift. But that seems a very short term solution, as it makes support of changes basically another job rather than that of the ANT+ group. I'd rather the SDK do its thing, as well as supporting the development tools that are used by one of the larger platforms out there.

Anyone out there?      
RankRank

Total Posts: 34

Joined 2013-01-28

PM

Linking to: https://www.thisisant.com/forum/viewthread/6697/

As mentioned in this post the C-SDK will be incompatible with running in iOS due to how file I/O is done, hence the Objective-C wrapper to work around it.