Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Error decoding .fit from VIRBXE

Avatar
Rank

Total Posts: 21

Joined 2011-11-08

PM

Hi,

My fit decoding code has been working fine for years. I want to get the data off of a VIRBXE, but every file I have tried so far I get the error:

FIT decode error: File CRC failed. Error at byte: 0

I've updated to the FIT SDK to the latest version. Is there any reason I'm getting the CRC error? Or just luck so far all my files have been corrupt?      
Rank

Total Posts: 20

Joined 2015-05-11

PM

Hello FigBug,

What SDK are you using to decode the files? Would you be able to attach a file to this thread or send me a file that gives you this error?      
Avatar
Rank

Total Posts: 21

Joined 2011-11-08

PM

Hi,

Here is a FIT file that is causing me issues. It imported into VIRB Edit just fine.
https://www.dropbox.com/s/cig9fd5qux9q4rr/2016-05-13-08-16-19.fit?dl=0

I'm using the C++ version of the FIT 20.00.00 SDK

My code looks like this:

fstream file(QDir::toNativeSeparators(filename).toLatin1().data(), ios::in ios::binary);
 
fit::Decode decode;
 
fit::MesgBroadcaster broadcaster;

 if (!
decode.CheckIntegrity(file)) 


CheckIntegrity fails.      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Yep, the CRC checksum of this file isn't valid, so it's corrupt - in one way or another.

Cheers,
OMB      
Avatar
Rank

Total Posts: 21

Joined 2011-11-08

PM

I upgraded the firmware in my virb and haven't seen the issue since. Maybe there was a bug in early versions.