SOME/IP配置文件SD中ttl单位是秒

 

{
    "unicast" : "172.17.0.2",
    "logging" :
    { 
        "level" : "debug",
        "console" : "true",
        "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
        "dlt" : "false"
    },
    "applications" : 
    [
        {
            "name" : "World",
            "id" : "0x1212"
        }
    ],
    "services" :
    [
        {
            "service" : "0x1234",
            "instance" : "0x5678",
            "unreliable" : "30509"
        }
    ],
    "routing" : "World",
    "service-discovery" :
    {
        "enable" : "true",
        "multicast" : "224.224.224.245",
        "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"
    }
}

其中,"ttl" : "3"单位是毫秒,而不是秒。如果希望配置TTL为3秒,正确的配置是:

"service-discovery" :
    {
        "enable" : "true",
        "multicast" : "224.224.224.245",
        "port" : "30490",
        "protocol" : "udp",
        "initial_delay_min" : "10",
        "initial_delay_max" : "100",
        "repetitions_base_delay" : "200",
        "repetitions_max" : "3",
        "ttl" : "3000",
        "cyclic_offer_delay" : "2000",
        "request_response_delay" : "1500"
    }

 

 

 

 

相关推荐

  1. SOME/IP配置文件SDttl单位

    2024-07-20 12:32:04       16 阅读
  2. android读取sd卡上文件的数据

    2024-07-20 12:32:04       37 阅读
  3. helm的_helpers.tpl文件语法解析

    2024-07-20 12:32:04       49 阅读
  4. spring boot 核心配置文件什么?

    2024-07-20 12:32:04       31 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-20 12:32:04       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-20 12:32:04       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-20 12:32:04       45 阅读
  4. Python语言-面向对象

    2024-07-20 12:32:04       55 阅读

热门阅读

  1. Android 14 适配之 - 隐式/显示 Intent 和 广播适配

    2024-07-20 12:32:04       14 阅读
  2. IT服务规划设计之PDCA

    2024-07-20 12:32:04       20 阅读
  3. python-nameparser,一个超酷的Python库!

    2024-07-20 12:32:04       20 阅读
  4. am start -W 命令详解-可以测量应用启动时间的命令

    2024-07-20 12:32:04       17 阅读
  5. 很详细!接口使用教程(二)

    2024-07-20 12:32:04       19 阅读
  6. 分布式Session共享的5类技术方案,与优劣势比较

    2024-07-20 12:32:04       16 阅读
  7. 火星地图插件

    2024-07-20 12:32:04       19 阅读