vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

[BUG]: Client is unable to subscribe to Eventgroup with a client multicast endpoint

Open chw-eng opened this issue 1 year ago • 2 comments

vSomeip Version

v3.4.10

Boost Version

1.76

Environment

Embedded Linux

Describe the bug

According to SOME/IP SD spec R22-11: [PRS_SOMEIPSD_00846] dA SubscribeEventgroup entry reference the endpoints (IP address, port, and protocol) where the client wishes to receive the events. A client service could subscribe to the same Eventgroup either with a client unicast endpoint or with a client multicast endpoint: • If a client subscribes with a client unicast endpoint via an Endpoint Option, the client announces its desire to receive the events as unicast events transmitted to the given unicast endpoint. • If a client subscribes with a client multicast endpoint via an Endpoint Option, the client announces its desire to receive the events as multicast events transmitted to the given multicast endpoint

But it doesn't seem current vSomeip support this option. See the implementation of service_discovery_impl::create_eventgroup_entry: There are only two places to create unicast endpoint for tcp and udp: https://github.com/COVESA/vsomeip/blob/master/implementation/service_discovery/src/service_discovery_impl.cpp#L916 https://github.com/COVESA/vsomeip/blob/master/implementation/service_discovery/src/service_discovery_impl.cpp#L970

We need vSomeip to implement multicast endpoint for subscribeeventgroup to satisfy [PRS_SOMEIPSD_00846]

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

chw-eng avatar Nov 25 '24 16:11 chw-eng

@chw-eng This seems like a discussion, not a bug.

Would you be willing to create a PR with the necessary changes?

cc @duartenfonseca

goncaloalmeida avatar Nov 26 '24 09:11 goncaloalmeida

Hi @goncaloalmeida @duartenfonseca ,

To my understanding this should be a missing feature, and vsomeip need to have a client API to specifiy the desired multicast address/port when subscribing an eventgroup for a given service instance.

zhaoxin39913 avatar Jan 07 '25 08:01 zhaoxin39913