can-bus-w211 icon indicating copy to clipboard operation
can-bus-w211 copied to clipboard

DAS/Xentry file format

Open FabianInostroza opened this issue 6 years ago • 5 comments

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?

FabianInostroza avatar Jan 13 '18 01:01 FabianInostroza

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.

angelovAlex avatar Jan 17 '18 20:01 angelovAlex

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

FabianInostroza avatar Jan 20 '18 03:01 FabianInostroza

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.

angelovAlex avatar Jan 24 '18 11:01 angelovAlex

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

aleksandr82h avatar Jul 08 '18 21:07 aleksandr82h

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

aIecxs avatar Aug 10 '21 08:08 aIecxs