VSOMEIP (Vehicle Service Oriented Architecture Message Exchange Protocol) 是一种基于 IP 网络的现代化汽车通信协议。它被设计用于在汽车中实现各种服务的高效通信,例如远程诊断、软件更新、车辆故障检测等。
VSOMEIP 不仅适用于汽车内部的通信,而且还可以让车辆与外部系统进行安全稳定的双向通信,如车载娱乐系统、智能交通系统等。它采用了现代化的网络技术和开放式架构,使得多个系统可以轻松地集成和交互,从而实现更高效的车辆连接和数据共享。
VSOMEIP 还提供了灵活的配置选项和可扩展性功能,使得开发人员可以根据需要快速构建自定义的汽车应用程序和服务。同时也支持多种编程语言,如 C ++、Java 和 Python 等,方便不同类型的开发人员使用。
github地址:https://github.com/COVESA/vsomeip
sudo apt-get install libboost-system-dev libboost-thread-dev libboost-log-dev
sudo apt-get install asciidoc source-highlight doxygen graphviz
安装完benchmark后,gtest会自动安装。
git clone https://github.com/google/benchmark.git
cd benchmark
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../
cmake --build "build" --config Release
cmake -E chdir "build" ctest --build-config Release #进行安装测试
sudo cmake --build "build" --config Release --target install #在全局安装google benchmark
mkdir build
cd build
cmake ..
make
sudo make instal
sudo ldconfig
进入vsomeip/examples/hello_world
,编译安装:
mkdir build && cd build
cmake ..
make
创建server.sh
#!/bin/bash
env VSOMEIP_CONFIGURATION=../helloworld-local.json \
VSOMEIP_APPLICATION_NAME=hello_world_service \
./hello_world_service
创建client.sh
#!/bin/bash
env VSOMEIP_CONFIGURATION=../helloworld-local.json \
VSOMEIP_APPLICATION_NAME=hello_world_client \
./hello_world_client
参考链接:
https://zhuanlan.zhihu.com/p/405534988
https://zhuanlan.zhihu.com/p/545016054
http://t.csdn.cn/YKezX
http://t.csdn.cn/K1Khw
http://t.csdn.cn/HoGm2