Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

FIT_MANUFACTURER

Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Hi,

Is it possible to know the procedure in order to add my software into "FIT_UINT16 FIT_MANUFACTURER"?
Right now, I'm using Garmin - Edge 510 as default. If it's not possible to add my software name, is there a generic manufacturer that we can use?
Thanks in advance!


// --------------- FileIdMesg ------------------
    
fit::FileIdMesg fileIdMesg;
    
fileIdMesg.SetSerialNumber(12345);
    
fileIdMesg.SetTimeCreated(secStartedWorkout);
    
fileIdMesg.SetManufacturer(FIT_MANUFACTURER_GARMIN);
    
fileIdMesg.SetProduct(1561);
    
fileIdMesg.SetType(FIT_FILE_ACTIVITY);
    
encode.Write(fileIdMesg); 
     

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

RankRankRank

Total Posts: 91

Joined 2012-10-12

PM

-ANT+ members may request a custom manufacturer id. Otherwise the generic value 'development' (0xFF) can be used. There is more information here: http://www.thisisant.com/developer/resources/tech-bulletin/manufacturer-id

HTH
ShaneP      
Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Thanks Shane for the great support as always!

I will use the development value since I don't have 1500 USD/year to burn yet to become an Adopter smile

Not sure if you take recommendations for future FIT updates, but it would be nice to be able to set a String in the "FileIdMesg" so that the filename can get automatically set when uploading the file on website/software.
Also, an alternative to "SetManufacturer", "SetManufacturerStr" that use a String instead of a "FIT_MANUFACTURER" to let small company get their name.


Working with this code, it shows "Unknow device 0.0.0.0" on Garmin connect:

// --------------- FileIdMesg ------------------
    
fit::FileIdMesg fileIdMesg;
    
fileIdMesg.SetTimeCreated(secStartedWorkout);
    
fileIdMesg.SetManufacturer(FIT_MANUFACTURER_DEVELOPMENT);
    
fileIdMesg.SetType(FIT_FILE_ACTIVITY);
    
encode.Write(fileIdMesg);

    
fit::FileCreatorMesg fileCreatorMesg;
    
fileCreatorMesg.SetSoftwareVersion(201);  //2.01
    
encode.Write(fileCreatorMesg);

    
// deviceInfo - needed for Garmin Connect upload...
    
fit::DeviceInfoMesg deviceInfo;
    
deviceInfo.SetTimestamp(secStartedWorkout);
    
deviceInfo.SetManufacturer(FIT_MANUFACTURER_DEVELOPMENT);
    
encode.Write(deviceInfo);; 
     

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com

RankRankRank

Total Posts: 91

Joined 2012-10-12

PM

-I think you want FIT_MANUFACTURER_DEVELOPMENT (0xff) not FIT_MANUFACTURER_INVALID (0xffff)      
Avatar
RankRankRankRank

Total Posts: 123

Joined 2013-10-07

PM

Thanks for the catch Shane!
Updated the code above.
Example file uploaded

Max      

Signature

——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com