Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Does FitGen.exe support manufacturer specific messages?

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Hi,
I want to add manufacturer specific messages.
Does FitGen.exe support manufacturer specific messages?

I tried followings.
1) modify Profile.xls (Types Sheet,line 45)
add "test_msg 65281"
2)modify Profile.xls (Messages Sheet,line 344)
add
"test_msg
253 timestamp date_time 1 s
0 test_field uint16 1 mmHg"
3)modify config.csv(config Sheet,line 287)
"test_msg
timestamp 1
test_field 1"
4)run FitGen.exe. Then following message appeared.
"WARNING 'test_msg' message not found in profile.See config.csv line 287"

Does anyone know how to add manufacturer specific messages?      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

Yes FITgen will support manufacturer specific messages. There will be an updated SDK released by early next month that will enable this.      
Rank

Total Posts: 2

Joined 0

PM

Any more news about the possibility of generating manufacturer specific messages with FitGen.exe?

I just obtained the FitSDK1_2, and was wondering if that featured had been implemented yet, or was still on the horizon.      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

yes. manufacturer specific messages are supported. Create the messages in the profile.xls using the indicated global message numbers (i.e. mesg_num is in teh range of 0xFF00 to 0xFFFE)... define the message numbers in the types tab, and and the FIT messages and fields in teh messages tab... save each tab as a csv... for example types.csv and messages.csv

run fitgen.exe with the -types and -messages options:

fitgen.exe -types types.csv -messages messages.csv

this will create the c, c++ and java source code.

In order to run the FitCSVTool you would need to further recompile it      
Rank

Total Posts: 2

Joined 0

PM

Great! Thanks so much for your help.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

I just tried to generate a manufacturer specific message this way,
but for me it seems not to work. I use FitSDK1.2 and got the following message when trying to define a new message:

WARNING "hardware" message not found in profile. See config.csv line 303.

My approach:
1) Add 'hardware' message to profile.xls and save .csv files.

types.csv:
mesg_num,uint16,,,
...other messages...
,,hardware,65281,

messages.csv:
Message Name,Field Name,Products:,SDK

hardware,,,""
,message_index,,"1"
,version,,"1"
,part_number,,"16"

What am I doing wrong? Thanks in advance      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

sorry, it is difficult to tell from your post exactly what you did... so i will just rewrite what you shoudl do and see if that helps...

if wanting to add "hardware".. open profile .xls

add "hardware" in the types tab under mesg_num and assign it a value in the given range... for example hardware 0xFF00... then be sure to change the "mfg_range_min" to 0xFF01 (otherwise mfg_range_min would overwrite hardware)...

then add "hardware" to the messages type, and add fields, and its base type... for example "test_field" and "uint16"

then save the types tab as types.csv and the messages tab as messages.csv

now run Fitgen.exe at the prompt and it should now be in the SDK.      
Rank

Total Posts: 9

Joined 2008-10-25

PM

Are these instructions valid for SDK V1.5? Does anything need to be added to config.csv?      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

manufacturing specific messages are supported in FIT SDK 1.5... you need to ensure you have the message defined in the types tab of profile.xls (i.e. the message name and corresponding mesg_num in the mfg specific range >0xFF00).... and define the message and fields in the messages tab... save the types tab as types.csv, and the messages tab as messages.csv... then run fitgen.exe...

you do need to add your message(s)/field(s) to config.csv if you want the c code generated...      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Can I add new fields in the Profile.xls file to predefined messsages like sport? Or is that not allowed?      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

It is not allowed.

only mfg specific messages (and hence fields in those messages!) are allowed to be added to the profile in the designated mfg specific mesg_num space. there are no designated mfg specific field definition numbers.

This ensures interoperability and extensibility for future profile versions.