当前位置:网站首页>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"
}
}
<完>
边栏推荐
- It's natural for the landlord to take the rent to repay the mortgage
- 乐鑫 AWS IoT ExpressLink 模组达到通用可用性
- Pod of kubernetes
- 使用 Abp.Zero 搭建第三方登录模块(二):服务端开发
- Sikuli 基于图形识别的自动化测试技术
- 710. random numbers in the blacklist
- R语言glm函数逻辑回归模型、使用epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)、结果保存到csv
- Restcloud ETL extraction de données de table de base de données dynamique
- Common operation and Principle Exploration of stream
- Attention meets geometry: geometry guided spatiotemporal attention consistency self supervised monocular depth estimation
猜你喜欢

Attention meets geometry: geometry guided spatiotemporal attention consistency self supervised monocular depth estimation

权威发布 | 延安大学2022年教师岗位招聘公告

Where do people get their top energy?

人力资源导出数据 excel VBA

Halcon C# 设置窗体字体,自适应显示图片

使用 Abp.Zero 搭建第三方登录模块(一):原理篇

15 BS object Node name Node name String get nested node content

Mathematical modeling of war preparation 30 regression analysis 2

TS常用数据类型总结

Deploy the flask environment using the pagoda panel
随机推荐
Complimentary Book Cognitive Control: how does our brain accomplish tasks?
Redis cluster messages
人力资源导出数据 excel VBA
5张图诠释了容器网络
集群中命令的执行过程
TCP congestion control details | 1 summary
The JVM outputs GC logs, causing the JVM to get stuck. I am stupid
程序分析与优化 - 8 寄存器分配
R language dplyr package summary_ The at function calculates the mean and median of multiple data columns (specified by vectors) in the dataframe data, and specifies na RM parameter configuration dele
Principle of TCP reset attack
Idea shortcut key
Get the intersection union difference set of two dataframes
一篇抄十篇,CVPR Oral被指大量抄袭,大会最后一天曝光!
teamviewer显示设备数量上限解决方法
信息学奥赛一本通 1405:质数的和与积 (思维题)
TCP 复位攻击原理
SAP 销售数据 实际发货数据导出 销量
Document 1
Use abp Zero builds a third-party login module (I): Principles
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
https://github.com/COVESA/vsomeip