OfferService entry

  • Service ID shall be set to the Service ID of the Service Instance offered.
    服务ID应设置为所提供服务实例的服务ID。
  • Instance ID shall be set to the Instance ID of the Service Instance offered.
    实例ID应设置为提供的服务实例的实例ID。
  • Example示例:
    ECU1 offers Service 0x1234 with Instance 0xabcd. This instance is in Main Phase. ECU2 send out find with Service ID 0x1234 and Instance ID 0xFFFF. ECU1 shall answer with Offer (Service ID 0x1234, Instance ID 0xabcd).
    ECU1提供Instance为0xabcd的Serice 0x1234。这个实例处于Main Phase。 ECU2发送带有 Service ID 0x1234和 Instance ID 0xFFFF的FindService Entry。 ECU1应使用OfferService Entry回答(Service ID 0x1234,Instance ID 0xabcd)。
  • Major Version shall be set to the Major Version of the Service Instance offered.
    Major Version应设置为所提供服务实例的Major Version 。
  • Note注意:
    Since SdServerServiceMajorVersion can be only a value up to 0xFE, the value 0xFF (any) cannot occur in an OfferService entry.
    由于SdServerServiceMajorVersion最大只能是0xFE的值,因此在OfferService Entry中不能出现值0xFF(任何)。
  • Minor Version shall be set to the Minor Version of the Service Instance offered.
    次要版本应设置为所提供服务实例的次要版本。
  • TTL shall be set to the lifetime of the Service Instance. After this lifetime the Service Instance shall considered not been offered.
    应将TTL设置为服务实例的生命周期。在生命周期结束之后,服务实例应被视为未提供。
  • If TTL is set to 0xFFFFFF, the OfferService entry shall be considered valid until the next reboot.
    如果TTL设置为0xFFFFFF,则OfferService条目应被视为有效,直到下一次重启。
  • OfferService entries shall always reference at least an IPv4 or IPv6 Endpoint Option to signal how the service is reachable.
    OfferService条目应始终引用至少一个IPv4或IPv6 Endpoint Option ,以表明服务如何得到。
  • For each L4 protocol needed for the service (i.e. UDP and/or TCP) an IPv4 Endpoint option shall be added if IPv4 is supported.
    对于服务所需的每个L4协议(即UDP和/或TCP),如果支持IPv4,则应添加IPv4端点选项。
  • For each L4 protocol needed for the service (i.e. UDP and/or TCP) an IPv6 Endpoint option shall be added if IPv6 is supported.
    对于服务所需的每个L4协议(即UDP和/或TCP),如果支持IPv6,则应添加IPv6端点选项。
  • The IP addresses and port numbers of the Endpoint Options shall also be used for transporting events and notification events.
    端点选项的IP地址和端口号也应该用于传送事件和通知事件。
  • In the case of UDP this information is used for the source address and the source port of the events and notification events.
    对于UDP,此信息用于事件和通知事件的源地址和源端口。
  • In the case of TCP this is the IP address and port the client needs to open a TCP connection to in order to receive events using TCP.
    在TCP的情况下,这些IP地址和端口是客户端所需要的,用来建立TCP连接以接收Event。