dlt-daemon 관련 설정파일 dlt.conf

 

참고 링크 : https://manpages.debian.org/testing/dlt-daemon/dlt.conf.5.en.html

불러오는 중입니다...

Verbose

 - 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

 

 

참고 사이트 :  https://doc.qt.io/qt-5/signalsandslots.html

 

 

Signals & Slots | Qt Core 5.13.1

Signals & Slots Signals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks. Signals and slots are made poss

doc.qt.io

 

signal is delivered to a slot immediately or queued for delivery at a later time.

 

시그널과 슬롯은 objects 사이의 커뮤니케이션을 위하여 사용된다. 

Signals and slots are made possible by Qt's meta-object system.

 

The Meta-Object System | Qt Core 5.13.1

The Meta-Object System Qt's meta-object system provides the signals and slots mechanism for inter-object communication, run-time type information, and the dynamic property system. The meta-object system is based on three things: The QObject class provides

doc.qt.io

소개 

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

https://doc.qt.io/qt-5/signalsandslots.html picture-1

 

 

 

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 이 설정되면 연결이 이미지 존재하는 경우 ( 즉, 동일한 신호가 동일한 객체 쌍의 동일한 슬롯에 이미 연결된 경우)

QObject::connect() 가 실패한다. 이 플래그는 Qt 4.6에서 도입되었다.

 

 

 

signalling thread?

receiver's thread?

 

 

 

'Qt > 활용' 카테고리의 다른 글

라즈베리파이4 구매  (0) 2019.07.01
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21
[Linux] Monitoring Qt  (0) 2018.12.14

 

다운로드 : git clone https://github.com/GStreamer/gstreamer.git

 

GStreamer/gstreamer

GStreamer open-source multimedia framework core library - GStreamer/gstreamer

github.com

설치

Could not find bison : sudo apt-get install bison

sudo apt-get install flex

 

./autogen.sh

configure: WARNING: unrecognized options: --enable-gtk-doc


Configuration
Version                    : 1.17.0.1
Source code location       : .
Prefix                     : /usr/local
Compiler                   : gcc
Package name               : GStreamer git
Package origin             : Unknown package origin

Debug logging              : yes
Tracing subsystem hooks    : yes
Command-line parser        : yes
Option parsing in gst_init : yes
Plugin registry            : yes
Plugin support            : yes
Static plugins             : 
Unit testing support       : yes
PTP clock support          : yes
libunwind support          : no
libdw support              : no

Debug                      : yes
Profiling                  : no

Building benchmarks        : yes
Building examples          : yes
Building test apps         : yes
Building tests that fail   : yes
Building tools             : yes

 

Configuration
Version                    : 1.17.0.1
Source code location       : .
Prefix                     : /opt/gst
Compiler                   : gcc
Package name               : GStreamer git
Package origin             : Unknown package origin

Debug logging              : yes
Tracing subsystem hooks    : yes
Command-line parser        : yes
Option parsing in gst_init : yes
Plugin registry            : yes
Plugin support            : yes
Static plugins             : 
Unit testing support       : yes
PTP clock support          : yes
libunwind support          : no
libdw support              : no

Debug                      : yes
Profiling                  : no

Building benchmarks        : yes
Building examples          : yes
Building test apps         : yes
Building tests that fail   : no
Building tools             : yes

 

libtool: install: /usr/bin/install -c .libs/gst-typefind-1.0 /opt/gst/bin/gst-typefind-1.0
libtool: install: /usr/bin/install -c .libs/gst-launch-1.0 /opt/gst/bin/gst-launch-1.0

./configure --prefix=/opt/gst

make -j8

make install

 

설치 완료

 

/opt/gst/bin

gst-inspect-1.0  gst-launch-1.0  gst-stats-1.0  gst-typefind-1.0

/opt/gst/lib/pkgconfig

gstreamer-1.0.pc       gstreamer-check-1.0.pc       gstreamer-net-1.0.pc
gstreamer-base-1.0.pc  gstreamer-controller-1.0.pc

 

+ Recent posts