当前位置:网站首页>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"
}
}
<完>
边栏推荐
猜你喜欢

北京银行x华为:网络智能运维夯实数字化转型服务底座

Use abp Zero builds a third-party login module (II): server development

Get the intersection union difference set of two dataframes

Mathematical modeling of war preparation 30 regression analysis 2

The JVM outputs GC logs, causing the JVM to get stuck. I am stupid

【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器

710. 黑名单中的随机数

Use abp Zero builds a third-party login module (I): Principles

Common operation and Principle Exploration of stream

Restcloud ETL extracting dynamic library table data
随机推荐
Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution
Restcloud ETL extracting dynamic library table data
券商经理给的开户二维码安全吗?找谁可以开户啊?
关于 selenium.common.exceptions.WebDriverException: Message: An unknown server-side error 解决方案(已解决)
cluster addslots建立集群
Common operation and Principle Exploration of stream
SAP 销售数据 实际发货数据导出 销量
Detailed explanation of C language programming problem: can any three sides form a triangle, output the area of the triangle and judge its type
Mark: unity3d cannot select resources in the inspector, that is, project locking
15 BS object Node name Node name String get nested node content
Notes on writing questions in C language -- table tennis competition
Naacl2022: (code practice) good visual guidance promotes better feature extraction, multimodal named entity recognition (with source code download)
Attention meets geometry: geometry guided spatiotemporal attention consistency self supervised monocular depth estimation
R language uses ggplot2 to visualize the results of Poisson regression model and count results under different parameter combinations
房东拿租金去还房贷是天经地义的嘛
【使用yarn运行报错】The engine “node“ is incompatible with this module.
打新债注册开户安全吗,有没有什么风险?
Smoothing data using convolution
Kubernetes的pod调度
Redis集群消息
https://github.com/COVESA/vsomeip