Dear new users!

All messages from new users are moderated by administrator. Keep patience if You first message is not published, You will see it as soon as it will be accepted. Additional, new users have restriction in using of private message system.

bin to sgo

Discussions of firmware conversation

Moderator: pirat

kriselektro
Posts: 7
Joined: 13 Feb 2020 00:16

bin to sgo

Post by kriselektro » 13 Feb 2020 00:23

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

skodapilot
Site Admin
Posts: 463
Joined: 13 Jan 2014 06:18

Re: bin to sgo

Post by skodapilot » 13 Feb 2020 08:42

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
Last edited by skodapilot on 13 Feb 2020 21:44, edited 1 time in total.
Reason: Requested feature was enabled

kriselektro
Posts: 7
Joined: 13 Feb 2020 00:16

Re: bin to sgo

Post by kriselektro » 13 Feb 2020 23:46

Thank you, I will test the files and inform about the effects

skodapilot
Site Admin
Posts: 463
Joined: 13 Jan 2014 06:18

Re: bin to sgo

Post by skodapilot » 14 Feb 2020 10:16

Ok. Keep free to contact me about functionality of this module

kriselektro
Posts: 7
Joined: 13 Feb 2020 00:16

Re: bin to sgo

Post by kriselektro » 02 Mar 2020 01:24

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
You do not have the required permissions to view the files attached to this post.

skodapilot
Site Admin
Posts: 463
Joined: 13 Jan 2014 06:18

Re: bin to sgo

Post by skodapilot » 02 Mar 2020 19:32

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.
Last edited by skodapilot on 04 Mar 2020 23:06, edited 1 time in total.
Reason: removed incorrect modified file

kriselektro
Posts: 7
Joined: 13 Feb 2020 00:16

Re: bin to sgo

Post by kriselektro » 04 Mar 2020 01:21

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

skodapilot
Site Admin
Posts: 463
Joined: 13 Jan 2014 06:18

Re: bin to sgo

Post by skodapilot » 04 Mar 2020 23:00

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.

kriselektro
Posts: 7
Joined: 13 Feb 2020 00:16

Re: bin to sgo

Post by kriselektro » 05 Mar 2020 00:11

Throws an error during import

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

skodapilot
Site Admin
Posts: 463
Joined: 13 Jan 2014 06:18

Re: bin to sgo

Post by skodapilot » 05 Mar 2020 00:25

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests