- Start daemon in debug mode, so that all internal debug information is printed out on the console
Daemonize : 1로 설정
SendSerialHeader : 0
# Send automatic get log info response during context registration SendContextRegistration = 1
ECUId
This value sets the ECU Id, which is sent with each DLT message.Default: ECU1
LoggingMode¶ The logging console for internal logging of dlt-daemon. 0 = log to stdout, 1 = log to syslog, 2 = log to file (see LoggingFilename) Default: 0
LoggingLevel The internal log level, up to which logs are written. LOG_EMERG = 0, LOG_ALERT = 1, LOG_CRIT = 2, LOG_ERR = 3, LOG_WARNING = 4, LOG_NOTICE = 5, LOG_INFO = 6, LOG_DEBUG = 7 Default: 6
ContextLogLevel
Initial log-level that is sent when an application registers. DLT_LOG_OFF = 0, DLT_LOG_FATAL = 1, DLT_LOG_ERROR = 2, DLT_LOG_WARN = 3, DLT_LOG_INFO = 4, DLT_LOG_DEBUG = 5, DLT_LOG_VERBOSE = 6Default: 4
Other toolkits achieve this kind of communication using callbacks. A callback is a pointer to a function, so if you want a processing function to notify you about some event you pass a pointer to another function (the callback) to the processing function. The processing function then calls the callback when appropriate. While successful frameworks using this method do exist, callbacks can be unintuitive and may suffer from problems in ensuring the type-correctness of callback arguments.
Signals and Slots
Qt::Connection Type
1. Qt::AutoConnection (Default) 0
(Default) If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.
수신자가 신호를 전달하는 스레드에 있으면 Qt::DirectConnection 을 사용.
그렇지 않으면 Qt :: QueuedConnection 연결 유형은 시그널을 emmited 될 때 결정한다.
2. Qt::DirectConnection
The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.
시그널이 emmited 되면 즉시 슬롯이 호출된다. 슬롯은 시그널링 슫레드에서 실행된다.
3. Qt::QueuedConnection
The slot is invoked when control returns to the event loop of the receiver's thread. The slot is executed in the receiver's thread.
제어가 수신자 스레드의 이벤트 루프로 리턴 될 때 슬롯이 호출된다. 슬롯은 수신기의 스레드에서 실행된다.
4. Qt::BlockingQueuedConnection
Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.
슬롯이 리턴될 때까지 신호스레드가 차단된다는 점을 제외하고 Qt::QueuedConnection과 동일하다. 수신기가 신호 스레드에 있는 경우 연결을 사용하지 않아야된다. 그렇지 않으면 Application이 교착 상태가 된다.
5. Qt::UniqueConnection
This is a flag that can be combined with any one of the above connection types, using a bitwise OR. When Qt::UniqueConnection is set, QObject::connect() will fail if the connection already exists (i.e. if the same signal is already connected to the same slot for the same pair of objects). This flag was introduced in Qt 4.6.
비트 단위 OR 을 사용하여 위의 연결 유형 중 하나와 결합 할 수 있는 플래그 이다.
Qt::UniqueCOnnection 이 설정되면 연결이 이미지 존재하는 경우 ( 즉, 동일한 신호가 동일한 객체 쌍의 동일한 슬롯에 이미 연결된 경우)