Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAS/Xentry file format #3

Open
FabianInostroza opened this issue Jan 13, 2018 · 5 comments
Open

DAS/Xentry file format #3

FabianInostroza opened this issue Jan 13, 2018 · 5 comments

Comments

@FabianInostroza
Copy link

Hi,
in W211-CANBUS-ALL-PIDS-AND-DETAILS.txt is written that you got that info from files in DAS/Xentry,
how did you decode those files?

@angelovAlex
Copy link
Owner

Just open those files with any hex editor that can show you ASCII values of bytes and you will see a pattern. All information is stored in raw binary structure, you can find pid numbers, offsets, length, measurements and calculation between strings. I wrote a software to decrypt those files but I can't really find it now.

@FabianInostroza
Copy link
Author

Yeah, I opened the files with an hex editor and found the following structures (using your file as reference):

struct {
uint8_t name_len;
char *name; // name_len chars
uint8_t dummy1;
uint8_t id_lsb;
uint8_t id_msb;
uint32_t dummy2;
uint8_t num_signals; // number of signals contained in the frame
} FRAME;

struct {
uint8_t name_len;
char *name; // name_len chars
uint8_t offset; // starting bit position of the signal in the frame
uint8_t len; // length of the signal in bits
}

However there are lots of gaps with non zero bytes

@angelovAlex
Copy link
Owner

I believe there's also an information of how to calculate the actual value (for example, it can say that value should be multiplied by 0.25, but it didnt really looked in it) and measurement abbreviations like km, s, m/s, V, etc.

@aleksandr82h
Copy link

Добрый день! Подскажи пожалуйста, в каких папках Das/Xentry находятся файлы, с которых можно получить пиды ?
Hello! Please tell me which Das / Xentry folders are the files from which can get a pids?

@aIecxs
Copy link

aIecxs commented Aug 10, 2021

I believe there's also an information of how to calculate the actual value (for example, it can say that value should be multiplied by 0.25, but it didnt really looked in it) and measurement abbreviations like km, s, m/s, V, etc.

appreciate decoding this important information, too! give you some example:

SAM_V_A2:
    (T_AUSSEN_B - 80) / 2 = °C
    02 01 00 00 00 00 00 00 00 3F 00 00 20 C2

    P_KAELTE / 10 = bar
    02 01 00 00 00 00 CD CC CC 3D 00 00 00 00

    (T_KAELTE - 100) / 10 = °C
    02 01 00 00 00 00 CD CC CC 3D 00 00 20 C1

    I_KOMP * 10 = mA
    02 01 00 00 00 00 00 00 20 41 00 00 00 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants