当前位置:网站首页>vsomeip3 双机通信文件配置
vsomeip3 双机通信文件配置
2022-06-26 14:54:00 【蓝牙先生】
验证环境
Linux 5.4 + Android 11 + vsomeip 3.1.20.3
vsomeip地址
https://github.com/COVESA/vsomeip
https://github.com/COVESA/vsomeip
Android运行命令,红色的地方需要和配置文件一样
VSOMEIP_CONFIGURATION=./vsomeip-local.json VSOMEIP_APPLICATION_NAME=client-sample ./request-sample
Linux运行命令,红色的地方需要和配置文件一样
VSOMEIP_CONFIGURATION=../etc/vsomeip/vsomeip-local.json VSOMEIP_APPLICATION_NAME=service-sample ./response-sample
Linux service配置文件 ,红色的地方需要更改
# cat ../etc/vsomeip/vsomeip-local.json
{
"unicast" : "192.168.1.1",
"logging" :
{
"level" : "debug",
"console" : "true",
"file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
"dlt" : "false"
},
"applications" :
[
{
"name" : "service-sample",
"id" : "0x1277"
},
{
"name" : "client-sample",
"id" : "0x1344"
}
],
"services" :
[
{
"service" : "0x1234",
"instance" : "0x5678",
"unreliable" : "30509",
"multicast" :
{
"address" : "224.225.226.233",
"port" : "32344"
},
"events" :
[
{
"event" : "0x0777",
"is_field" : "true",
"update-cycle" : 2000
},
{
"event" : "0x0778",
"is_field" : "true",
"update-cycle" : 0
},
{
"event" : "0x0779",
"is_field" : "true"
}
],
"eventgroups" :
[
{
"eventgroup" : "0x4455",
"events" : [ "0x777", "0x778" ]
},
{
"eventgroup" : "0x4465",
"events" : [ "0x778", "0x779" ],
"is_multicast" : "true"
},
{
"eventgroup" : "0x4555",
"events" : [ "0x777", "0x779" ]
}
]
}
],
"routing" : "service-sample",
"service-discovery" :
{
"enable" : "true",
"multicast" : "192.168.1.255",
"port" : "30490",
"protocol" : "udp",
"initial_delay_min" : "10",
"initial_delay_max" : "100",
"repetitions_base_delay" : "200",
"repetitions_max" : "3",
"ttl" : "3",
"cyclic_offer_delay" : "2000",
"request_response_delay" : "1500"
}
}
Android client配置文件,红色的地方需要更改,蓝色的地方可不要
cat vsomeip-local.json
{
"unicast" : "192.168.1.3",
"logging" :
{
"level" : "debug",
"console" : "true",
"file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
"dlt" : "false"
},
"applications" :
[
{
"name" : "service-sample",
"id" : "0x1277"
},
{
"name" : "client-sample",
"id" : "0x1344"
}
],
"services" :
[
{
"service" : "0x1234",
"instance" : "0x5678",
"unreliable" : "30509",
"multicast" :
{
"address" : "224.225.226.233",
"port" : "32344"
},
"events" :
[
{
"event" : "0x0777",
"is_field" : "true",
"update-cycle" : 2000
},
{
"event" : "0x0778",
"is_field" : "true",
"update-cycle" : 0
},
{
"event" : "0x0779",
"is_field" : "true"
}
],
"eventgroups" :
[
{
"eventgroup" : "0x4455",
"events" : [ "0x777", "0x778" ]
},
{
"eventgroup" : "0x4465",
"events" : [ "0x778", "0x779" ],
"is_multicast" : "true"
},
{
"eventgroup" : "0x4555",
"events" : [ "0x777", "0x779" ]
}
]
}
],
"routing" : "client-sample",
"service-discovery" :
{
"enable" : "true",
"multicast" : "192.168.1.255",
"port" : "30490",
"protocol" : "udp",
"initial_delay_min" : "10",
"initial_delay_max" : "100",
"repetitions_base_delay" : "200",
"repetitions_max" : "3",
"ttl" : "3",
"cyclic_offer_delay" : "2000",
"request_response_delay" : "1500"
}
}
<完>
边栏推荐
- The engine "node" is inconsistent with this module
- View touch analysis
- Mark一下 Unity3d在Inspector中选中不了资源即Project锁定问题
- The intersect function in the dplyr package of R language obtains the data lines that exist in both dataframes and the data lines that cross the two dataframes
- vue中缓存页面 keepAlive使用
- Common operation and Principle Exploration of stream
- 程序分析与优化 - 8 寄存器分配
- R语言使用ggplot2可视化泊松回归模型(Poisson Regression)的结果、可视化不同参量组合下的计数结果
- R语言glm函数逻辑回归模型、使用epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)、结果保存到csv
- 一键分析硬件/IO/全国网络性能脚本(强推)
猜你喜欢

RestCloud ETL与Kettle对比分析
![[solo π] ADB connects multiple mobile phones](/img/44/4bd88725434fb67c9237645f024071.png)
[solo π] ADB connects multiple mobile phones

TS常用数据类型总结

Naacl2022: (code practice) good visual guidance promotes better feature extraction, multimodal named entity recognition (with source code download)

Get the intersection union difference set of two dataframes

JVM 输出 GC 日志导致 JVM 卡住,我 TM 人傻了

一篇抄十篇,CVPR Oral被指大量抄袭,大会最后一天曝光!

Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution

Talk about the RPA direction planning: stick to simple and valuable things for a long time

Halcon C # sets the form font and adaptively displays pictures
随机推荐
获取两个dataframe的交并差集
Redis transaction and watch instruction
Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
Login authentication service
Is it safe to open a stock account with the account manager online??
cluster addslots建立集群
【 Native cloud】 Éditeur ivx Programmable par tout le monde
【使用yarn运行报错】The engine “node“ is incompatible with this module.
【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器
设计人员拿到的工程坐标系等高线CAD图如何加载进图新地球
Go变量的声明与赋值
shell脚本多进程并发写法实例(高阶修炼)
Smoothing data using convolution
一键分析硬件/IO/全国网络性能脚本(强推)
打新债注册开户安全吗,有没有什么风险?
qt下多个子控件信号槽绑定方法
聊聊几位大厂清华同学的近况
功能:crypto-js加密解密
Numpy基本使用
Deploy the flask environment using the pagoda panel
https://github.com/COVESA/vsomeip