当前位置:网站首页>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"
}
}
<完>
边栏推荐
- Numpy基本使用
- 打新债注册开户安全吗,有没有什么风险?
- 券商经理给的开户链接办理股票开户安全吗?我想开个户
- R语言epiDisplay包的tableStack函数制作统计汇总表格(分组的描述性统计、假设检验等)、不设置by参数计算基础描述性统计信息、指定对于大多数样本负相关的变量进行反序
- Kubernetes的pod
- clustermeet
- Principle of TCP reset attack
- Is the account opening link given by the broker manager safe? Who can I open an account with?
- Is it safe to open an online stock account? Somebody give me an answer
- Sharing ideas for a quick switch to an underlying implementation
猜你喜欢
Document 1
JVM 输出 GC 日志导致 JVM 卡住,我 TM 人傻了
TS common data types summary
小程序:uniapp解决 vendor.js 体积过大的问题
Restcloud ETL extraction de données de table de base de données dynamique
View touch analysis
feil_uVission4左侧工目录消失
The heavyweight white paper was released. Huawei continues to lead the new model of smart park construction in the future
Unity 利用Skybox Panoramic着色器制作全景图预览有条缝隙问题解决办法
Get the intersection union difference set of two dataframes
随机推荐
北京银行x华为:网络智能运维夯实数字化转型服务底座
功能:crypto-js加密解密
View触摸分析
集群中命令的执行过程
The engine "node" is inconsistent with this module
R语言dplyr包bind_rows函数把两个dataframe数据的行纵向(竖直)合并起来、最终行数为原来两个dataframe行数的加和(Combine Data Frames)
Sikuli 基于图形识别的自动化测试技术
clustermeet
Attention meets Geometry:几何引导的时空注意一致性自监督单目深度估计
Authoritative announcement on the recruitment of teachers in Yan'an University in 2022
qt下多个子控件信号槽绑定方法
RestCloud ETL解决shell脚本参数化
Declaration and assignment of go variables
R语言epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布、使用cex.X.axis参数指定X轴轴刻度数值标签字体的大小
Use of subqueries
TCP拥塞控制详解 | 1. 概述
JVM 输出 GC 日志导致 JVM 卡住,我 TM 人傻了
Halcon C# 设置窗体字体,自适应显示图片
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
使用 Abp.Zero 搭建第三方登录模块(二):服务端开发