Page 1 of 2

bin to sgo

Posted: 13 Feb 2020 00:23
by kriselektro
Hey, I would like to ask why all software convert sgo files to bin. On the contrary, they don't do it anymore, how can it be realized or obtained information about this file format?

I have a bin file from an sgo file I changed some messages and I would like to test but how to convert the file back to sgo and what about crc

Re: bin to sgo

Posted: 13 Feb 2020 08:42
by skodapilot
We are disabled conversation from bin to sgo just technical purposes, because we cannot test whole range of ECU used binary firmwares.
If new binary data will be loaded (import of flash image), our SGO manager will recalculate CRC of SGO file and CRC of each datablock, but any internal checksums will be kept untached.
I will enable binary import feature for SGO files for all registered users today
I enabled binary import feature.

Tapatalk

Re: bin to sgo

Posted: 13 Feb 2020 23:46
by kriselektro
Thank you, I will test the files and inform about the effects

Re: bin to sgo

Posted: 14 Feb 2020 10:16
by skodapilot
Ok. Keep free to contact me about functionality of this module

Re: bin to sgo

Posted: 02 Mar 2020 01:24
by kriselektro
Unfortunately, I have a problem because the file after changing from bin to sgo does not have the correct checksum and vcp does not want to upload it to the radio module because I want to change the messages to a different language, I have tried to change one word to sample but the org file has the sum of 3C7BAA00 and the modified 3C7BA984 is it is possible to fix it, I add files in rar

Re: bin to sgo

Posted: 02 Mar 2020 19:32
by skodapilot
Hehe, VAG doesn't allow to relax...

3C7BAA00 is CRC of whole original SGO file RG3Mid_ECE_0310.sgo
3C7BA984 is CRC of whole modified SGO file RG3Mid_ECE_0310_mod_chs_fault.sgo
These CRCs could not be the same, because you change payload data.

Each data block has own CRC field. Generally it should be simple checksum and our online version uses it. But in you case, special algo should be used to calculate CRC field.

For understanding, checksum of original data block is 0E9B. But it is not checksum, it is CRC CCIT algo.
Checksum of modified data block 1742, but using CCIT it will be another

May be later i will update online version to allow change ways of checksum proceeding or add separate component.

Re: bin to sgo

Posted: 04 Mar 2020 01:21
by kriselektro
Thank you for clarifying the topic, I looked through the files and it brightened up the topic a bit. Are there any online calculators so that you can count such a sum or calculation formula because before I finish the project I will have to modify the file many times.

I tried to use calculators on the network but I don't know how to use them correctly with algo 0E9B

Re: bin to sgo

Posted: 04 Mar 2020 23:00
by skodapilot
I made mistake while CRC calculation due to incorrect data length while exporting.
The power of CCIT that even one zero byte is important ;)
I add special model into firmwares Tool. Now import with this type of CRC should work online.

Re: bin to sgo

Posted: 05 Mar 2020 00:11
by kriselektro
Throws an error during import

"File size 6432196 is not equal to required Flash Image size 6432195"

Re: bin to sgo

Posted: 05 Mar 2020 00:25
by skodapilot
As I wrote early there was error regarding size of flash image that I fixed. Image had one more byte than it was defined in datablock size.
Remove last byte in existing images or export data from SGO file once again.

Tapatalk