kbLogger 2.0.b1
The automotive ready test and logging program.
ConfigItemDltObject Class Reference

This class defines the API for the DltObject.

#include <configitemdltobject.h>

Public Slots

virtual void controlMessage_GetLogInfo ()
 Send GetLogInfo.
 
virtual void controlMessage_GetSoftwareVersion ()
 Send GetSoftwareVersion.
 
virtual void controlMessage_ResetToFactoryDefault ()
 Send ResetToFactory Default.
 
virtual void controlMessage_SetDefaultLogLevel (int status)
 Set the default LogLevel.
 
virtual void controlMessage_SetDefaultTraceStatus (int active)
 Set the default trace status.
 
virtual void controlMessage_SetLogLevel (QString app, QString con, int log_level)
 Set the LogLevel of the APPID / CONID key.
 
virtual void controlMessage_SetTimingPackets (bool enable)
 Set the timings pakets on / off.
 
virtual void controlMessage_SetTraceStatus (QString app, QString con, int active)
 Set the trace status.
 
virtual void controlMessage_SetVerboseMode (int verbosemode)
 Set the vorbose mode on / off.
 
virtual void controlMessage_StoreConfig ()
 Stores the the DLT configuration inside the ECU.
 
virtual void SendInjection (QString injectionAplicationId, QString injectionContextId, QString injectionServiceId, bool injectionDataBinary, QString injectionData)
 Send a injection message.
 

Member Function Documentation

◆ controlMessage_GetLogInfo

void controlMessage_GetLogInfo ( )
virtualslot

This function sends a DLT control message "GetLogInfo" to the DUT (device under test). Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_GetLogInfo();

◆ controlMessage_GetSoftwareVersion

void controlMessage_GetSoftwareVersion ( )
virtualslot

This function sends a DLT control message "GetSoftwareVersion" to the DUT. Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_GetSoftwareVersion();

◆ controlMessage_SetDefaultLogLevel

void controlMessage_SetDefaultLogLevel ( int log_level)
virtualslot

This function sends a DLT control message "SetDefaultLogLevel" to the DUT.

The possible LogLevel are defined as follow:

#define LOG_OFF 0
#define LOG_FATAL 1
#define LOG_ERROR 2
#define LOG_WARNING 3
#define LOG_INFO 4
#define LOG_DEBUG 5
#define LOG_VERBOSE 6

Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetDefaultLogLevel(1);
Parameters
log_level

◆ controlMessage_SetDefaultTraceStatus

void controlMessage_SetDefaultTraceStatus ( int active)
virtualslot

This function sends a DLT control message "SetDefaultTraceStatus" to the DUT.

Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetDefaultTraceStatus(true);
Parameters
activetrue/false

◆ controlMessage_SetLogLevel

void controlMessage_SetLogLevel ( QString app,
QString con,
int log_level )
virtualslot

This function sends a DLT control message "SetLogLevel" to the DUT.

The possible trace stati are defined as follow:

#define LOG_OFF 0
#define LOG_FATAL 1
#define LOG_ERROR 2
#define LOG_WARNING 3
#define LOG_INFO 4
#define LOG_DEBUG 5
#define LOG_VERBOSE 6

Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetLogLevel("APP1", "CON1", 3);
Parameters
appapplication id
concontext id
log_level

◆ controlMessage_SetTimingPackets

void controlMessage_SetTimingPackets ( bool enable)
virtualslot

This function sends a DLT control message "SetTimingPackets" to the DUT. Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetTimingPackets(true);
Parameters
enabletrue/false

◆ controlMessage_SetTraceStatus

void controlMessage_SetTraceStatus ( QString app,
QString con,
int active )
virtualslot

This function sends a DLT control message "SetTraceStatus" to the DUT.

Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetTraceStatus("APP1", "CON1", true);
Parameters
appapplication id
concontext id
activetrue/false

◆ controlMessage_SetVerboseMode

void controlMessage_SetVerboseMode ( int verbosemode)
virtualslot

This function sends a DLT control message "SetVerboseMode" to the DUT. Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_SetVerboseMode(true);
Parameters
verbosemodetrue/false

◆ controlMessage_StoreConfig

void controlMessage_StoreConfig ( )
virtualslot

This function sends a DLT control message "StoreConfig" to the DUT.

Example:

dlt = so.configItem("Dlt1");
dlt.controlMessage_StoreConfig();