CAESAR

From Crossfires.net wiki
Revision as of 11:36, 5 August 2026 by Erwin (talk | contribs) (Created page with "CAESAR is the library the old DAS software uses to communicate with devices like SDConnect Toolkit. Its main DLL is c32s.dll. == Log configuration == === ceasar_cf.ini === S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CAESAR is the library the old DAS software uses to communicate with devices like SDConnect Toolkit. Its main DLL is c32s.dll.

Log configuration

ceasar_cf.ini

Setting some of these fields will make the logfile report "Developer mode" in the logfile, by sub_10038A90.

Fields read by sub_10038F10 (called straight from DllMain)
AppName KeyName Options Global variable Description
SETTING LEVEL -1 (default)

0

1

2

3

4

5

DeveloperSetting_DebugLevel Log level.
SETTING POOL -1 (default) Seems to be unused
SETTING WELCOME 0 (default) DeveloperSetting_Welcome Shows dialog on startup with "Start of CaesarConstruct"
SETTING FORCEOUTPUT 0 (default) DeveloperSetting_ForceOutput - Forces flush of MessageHook file when something is written
SETTING MESSAGEHOOK 0 (default) DeveloperSetting_MessageHook When enabled, tries to find XMLJUnitResultFormatter and .daimler. in the command line arguments, probably the output file.

If no output file was configured, default to caesar_req_res.txt

Starts writing to the file with the following format:

Line;Time;Ecu;Type;Bytes;Info;

SETTING NOSTARTLOG 0 (default) DeveloperSetting_NoStartLog Prevents logging configuration setup of %ProgramData%\Mercedes-Benz\Config\DAS\caesar\driver\slave.ini
SETTING FILEMAX 0 (default)
SETTING FILENAME "ceasar_local.log" (max 260 characters)

API

API Description
CaesarSetDebugOutput(callback func(const char*, ...) int) Sets callback function on address 102754D8 for log lines.
CaesarSetDebugLevel(level ushort) Sets debug level on 10312A90.

level can be either 0, 1, 2, 3, or 4.

This level overwrites the loglevel from caesar_cf.inf

Calls CaesarSetDFlowMask with the following options:

0 - 0x0

1 - 0x10000000

2 - 0x30000000

3 - 0x70000000

4 - 0xFFFFFFFF