Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: How to add configuration option to service discovery? #831

Open
robsoncouto opened this issue Jan 3, 2025 · 1 comment
Open

Help: How to add configuration option to service discovery? #831

robsoncouto opened this issue Jan 3, 2025 · 1 comment
Labels

Comments

@robsoncouto
Copy link

vSomeip Version

v3.5.3

Boost Version

1.74

Environment

Ubuntu 22.04

Describe the bug

Hello, I have used vsomeip to implement a service server and it is working beautifully except for a detail. That service needs to be offered containing a configuration option as described in section 5.1.2.4.1 "Configuration Option" of SOME/IP Service Discovery Protocol Specification R23-11.

That is, in the array of options in the service discovery messages I have to add additional data in key value pairs.
image

I could not find on the examples, info on how to customize service discovery offer messages. Investigating the code and generated doc, I could find in documentation of vsomeip_v3::sd::configuration_option_impl Class that there are methods for adding key value pairs to the configuration, which is what I need to do.

Still, it is not clear how to call these from the application API. I have looking into the json configuration and did not find info there. Also the puplic API in vsomeip::application class does not seem to have methods to customize service discovery offer. update_service_configuration() and set_configuration() are unrelated.

It's the first time I work with SOME/IP. Am I missing something?

Any help on this is very appreciated, thanks!

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

@robsoncouto robsoncouto added the bug label Jan 3, 2025
@duartenfonseca
Copy link
Collaborator

can you give a use case of this functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants