当前位置: 首页 > 工具软件 > Genivi > 使用案例 >

genivi的DLT移植

贺季同
2023-12-01
一、获取dlt-daemon源码
2. cd dlt-daemon
3. mkdir build
4. cd build
5. cmake ..
6. make
7. sudo make install
8. sudo ldconfig
dlt-daemon 编译安装就完成了

二、dlt-viewer
现装依赖包 sudo apt-get install libqt5serialport5-dev libqt5serialport5
1. git clone https://github.com/GENIVI/dlt-viewer.git
2. mkdir build
3. cd build
4. cmake ..
5. make
这时,build/bin目录下就生成了可执行文件dlt-viewer

生成测试程序
1. cd dlt-daemon/examples/example1/
2. mkdir build
3. cd build
4. cmake ..
5. make
dlt-example1的测试程序就生成好了。具体如何添加dlt_log就餐控example下的几个例子

 启动dlt-daemon
首先复制dlt.conf文件
1. cd dlt-daemon/src/daemon/
2. sudo cp dlt.conf /etc/
3. sudo gedit /etc/dlt.conf
修改:LoggingMode = 2
           OfflineTraceDirectory = /tmp
    OfflineTraceFileSize = 1000000
    OfflineTraceMaxSize = 4000000

    OfflineTraceFileNameTimestampBased = 1
    OfflineLogstorageDirPath = /opt
4.  dlt-daemon -c /etc/dlt.conf
启动log接收端:
5. dlt-receive -o /tmp/log.dlt localhost
这时,/tmp/log.dlt 文件就可以用dlt-viewer查看啦
 类似资料: