Command line utility to convert between XML and binary format Sienda Stack Configuration files.
The Sienda TSN Stack can be configured at runtime with either an XML or a binary configuration file. This command line utility allows conversion between the different formats, and can be used standalone or integrated into a build system.
entityConvert {b|x} inputFile {b|x} outputFile
Pass b
for binary
or x
for xml
when specifying the input and output files.
Convert config.xml (an xml config file) into its binary equivalent:
entityConvert x config.xml b config.bin
Input data size 47534
Output data size 5051
Conversion complete
Binary persistent data size for this configuration file is 3002 bytes
Please note that the tool also reports the size of the binary persistent data for the configuration provided. This is NOT the same as the size of the output data/file! The binary persistent data size indication can be used by an AVB device designer to ensure that they have enough EEPROM/flash storage for the persistent data needs of the stack.