codedua

my technote


vsomeip configuration file - vsomeip.json


The vsomeip configuration file is in JSON format, typically named vsomeip.json, although you can name it anything with a .json extension. Each ECU with an app running SOMEIP requires at least one configuration file. Without configuration file, the SOMEIP apps on that ECU can only communicate others within ECU, not communicate other ECUs

vsomeip.json

there are main keys/tags in configuration file

unicast: host’s IP address
application: list of applications should be load this configuration file. this tag include subtags:

  • name: application name. this name must be the same as declared name in cpp code or exported name in environment variable VSOMEIP_APPLICATION_NAME
  • id: application ID. it is unique within ECU.

services: list of providers. include subtags:

  • service service ID in hex format
  • instance instance ID in hex format
  • reliable if this tag is declared, TCP protocol will be used.
    • port
    • enable-magic-cookies
  • unreliable if this tag is declared, UDP protocol will be used. this tag has no subtags, value of this tag is port number.
  • event: list of available event/ broadcast that provider serves