summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@bmw.de>2014-07-25 12:32:45 +0200
committerLutz Bichler <Lutz.Bichler@bmw.de>2014-07-25 12:32:45 +0200
commitafdb12b765fa76d6cd0dfe7c92ce5fec69888dea (patch)
tree5092cc6da58924d5ca1536253c534fded55225ea /config
parent8e269cd5d31032a80e80a509399f22bcde9fadf6 (diff)
downloadvSomeIP-afdb12b765fa76d6cd0dfe7c92ce5fec69888dea.tar.gz
Switched to json configuration files.
Added event/eventgroup configuration (per service).
Diffstat (limited to 'config')
-rw-r--r--config/vsomeip-magic-cookies-client.json52
-rw-r--r--config/vsomeip-magic-cookies-client.xml54
-rw-r--r--config/vsomeip-magic-cookies-service.json48
-rw-r--r--config/vsomeip-magic-cookies-service.xml51
-rw-r--r--config/vsomeip-sample.xml41
-rw-r--r--config/vsomeip-tcp-client.json86
-rw-r--r--config/vsomeip-tcp-client.xml53
-rw-r--r--config/vsomeip-tcp-service.json47
-rw-r--r--config/vsomeip-tcp-service.xml50
-rw-r--r--config/vsomeip-test.json130
-rw-r--r--config/vsomeip-test.xml109
-rw-r--r--config/vsomeip-udp-client.json86
-rw-r--r--config/vsomeip-udp-client.xml54
-rw-r--r--config/vsomeip-udp-service.json47
-rw-r--r--config/vsomeip-udp-service.xml50
-rw-r--r--config/vsomeip.json58
-rw-r--r--config/vsomeip.xml68
17 files changed, 554 insertions, 530 deletions
diff --git a/config/vsomeip-magic-cookies-client.json b/config/vsomeip-magic-cookies-client.json
new file mode 100644
index 0000000..828661b
--- /dev/null
+++ b/config/vsomeip-magic-cookies-client.json
@@ -0,0 +1,52 @@
+{
+ "unicast" : "192.168.56.101",
+ "logging" :
+ {
+ "level" : "trace",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "client-sample",
+ "id" : 0x1343
+ },
+ {
+ "name" : "second-client-sample",
+ "id" : 0x1344
+ },
+ {
+ "name" : "third-client-sample",
+ "id" : 0x1345
+ },
+ {
+ "name" : "fourth-client-sample",
+ "id" : 0x1346
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "remote",
+ "address" : "192.168.56.102",
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "reliable" : { "port" : 30511, "magic-cookies" : "true" },
+ }
+ ]
+ }
+ ],
+ "routing" : "client-sample",
+ "service-discovery" :
+ {
+ "enable" : "false",
+ "multicast" : "224.244.224.245",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
diff --git a/config/vsomeip-magic-cookies-client.xml b/config/vsomeip-magic-cookies-client.xml
deleted file mode 100644
index 8d5382e..0000000
--- a/config/vsomeip-magic-cookies-client.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.101</address>
- <logging>
- <level>trace</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>remote</name>
- <address>192.168.56.102</address>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <reliable>
- <port>30511</port>
- <use-magic-cookies>true</use-magic-cookies>
- </reliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>client-sample</host>
- </routing>
- <service-discovery>
- <enabled>false</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>client-sample</name>
- <id>0x1343</id>
- </application>
- <application>
- <name>second-client-sample</name>
- <id>0x1344</id>
- </application>
- <application>
- <name>third-client-sample</name>
- <id>0x1345</id>
- </application>
- <application>
- <name>fourth-client-sample</name>
- <id>0x1346</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip-magic-cookies-service.json b/config/vsomeip-magic-cookies-service.json
new file mode 100644
index 0000000..ca73fe0
--- /dev/null
+++ b/config/vsomeip-magic-cookies-service.json
@@ -0,0 +1,48 @@
+{
+ "unicast" : "192.168.56.102",
+ "logging" :
+ {
+ "level" : "trace",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "service-sample",
+ "id" : "0x1277"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "default",
+ "delays" :
+ {
+ "initial" : { minimum : "10", maximum : "100" },
+ "repetition-base" : "200",
+ "repetition-max" : "3",
+ "cyclic-offer" : "2000",
+ "cyclic-request" : "2001"
+ },
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "reliable" : { "port" : "30511", "magic-cookies" : "true" },
+ }
+ ]
+ }
+ ],
+ "routing" : "service-sample",
+ "service-discovery" :
+ {
+ "enable" : "false",
+ "multicast" : "224.244.224.245",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
+
diff --git a/config/vsomeip-magic-cookies-service.xml b/config/vsomeip-magic-cookies-service.xml
deleted file mode 100644
index 32e9615..0000000
--- a/config/vsomeip-magic-cookies-service.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.102</address>
- <logging>
- <level>trace</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <repetition-max>3</repetition-max>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <reliable>
- <port>30511</port>
- <use-magic-cookies>true</use-magic-cookies>
- </reliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>service-sample</host>
- </routing>
- <service-discovery>
- <enabled>false</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>service-sample</name>
- <id>0x1277</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip-sample.xml b/config/vsomeip-sample.xml
deleted file mode 100644
index c488ae6..0000000
--- a/config/vsomeip-sample.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <unicast>10.0.2.15</unicast>
- <logging>
- <level>debug</level>
- <console>true</console>
- <file>false</file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <major>0x1</major>
- <minor>0x1</minor>
- <ttl>4000</ttl>
- <port>30500</port>
- <multicast>225.225.225.1</multicast>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>client-sample</host>
- </routing>
- <service-discovery>
- <host>client-sample</host>
- <protocol>udp</protocol>
- <port>30490</port>
- </service-discovery>
-</someip>
diff --git a/config/vsomeip-tcp-client.json b/config/vsomeip-tcp-client.json
new file mode 100644
index 0000000..2a7a8c7
--- /dev/null
+++ b/config/vsomeip-tcp-client.json
@@ -0,0 +1,86 @@
+{
+ "unicast" : "192.168.56.101",
+ "netmask" : "255.255.255.0",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "true", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "true"
+ },
+ "applications" :
+ [
+ {
+ "name" : "client-sample",
+ "id" : "0x1343"
+ },
+ {
+ "name" : "second-client-sample",
+ "id" : "0x1344"
+ },
+ {
+ "name" : "third-client-sample",
+ "id" : "0x1345"
+ },
+ {
+ "name" : "fourth-client-sample",
+ "id" : "0x1346"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "remote",
+ "unicast" : "192.168.56.102",
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "reliable" : { "port" : "30509", "magic-cookies" : false },
+ "events" :
+ [
+ {
+ "event" : "0x0777",
+ "is_field" : true
+ },
+ {
+ "event" : "0x0778",
+ "is_field" : false
+ },
+ {
+ "event" : "0x0779",
+ "is_field" : true
+ }
+ ],
+ "eventgroups" :
+ [
+ {
+ "eventgroup" : "0x4455",
+ "multicast" : "224.225.226.223",
+ "events" : [ "0x777", "0x778" ]
+ },
+ {
+ "eventgroup" : "0x4465",
+ "multicast" : "224.225.226.228",
+ "events" : [ "0x778", "0x779" ]
+ },
+ {
+ "eventgroup" : "0x4555",
+ "multicast" : "224.225.226.233",
+ "events" : [ "0x777", "0x779" ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "routing" : "client-sample",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "multicast" : "224.0.0.1",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
diff --git a/config/vsomeip-tcp-client.xml b/config/vsomeip-tcp-client.xml
deleted file mode 100644
index e08f27a..0000000
--- a/config/vsomeip-tcp-client.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.101</address>
- <logging>
- <level>debug</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>remote</name>
- <address>192.168.56.102</address>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <reliable>
- <port>30509</port>
- </reliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>client-sample</host>
- </routing>
- <service-discovery>
- <enabled>true</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>client-sample</name>
- <id>0x1343</id>
- </application>
- <application>
- <name>second-client-sample</name>
- <id>0x1344</id>
- </application>
- <application>
- <name>third-client-sample</name>
- <id>0x1345</id>
- </application>
- <application>
- <name>fourth-client-sample</name>
- <id>0x1346</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip-tcp-service.json b/config/vsomeip-tcp-service.json
new file mode 100644
index 0000000..816c577
--- /dev/null
+++ b/config/vsomeip-tcp-service.json
@@ -0,0 +1,47 @@
+{
+ "unicast" : "192.168.56.102",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "service-sample",
+ "id" : "0x1277"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "default",
+ "delays" :
+ {
+ "initial" : { "minimum" : "10", "maximum" : 100 },
+ "repetition-base" : "200",
+ "repetition-max" : "3",
+ "cyclic-offer" : "2000",
+ "cyclic-request" : "2001"
+ },
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "reliable" : { "port" : "30509", "magic-cookies" : "false" }
+ }
+ ]
+ }
+ ],
+ "routing" : "service-sample",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "multicast" : "224.0.0.1",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
diff --git a/config/vsomeip-tcp-service.xml b/config/vsomeip-tcp-service.xml
deleted file mode 100644
index 123166c..0000000
--- a/config/vsomeip-tcp-service.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.102</address>
- <logging>
- <level>debug</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <repetition-max>3</repetition-max>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <reliable>
- <port>30509</port>
- </reliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>service-sample</host>
- </routing>
- <service-discovery>
- <enabled>true</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>service-sample</name>
- <id>0x1277</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip-test.json b/config/vsomeip-test.json
new file mode 100644
index 0000000..1debb52
--- /dev/null
+++ b/config/vsomeip-test.json
@@ -0,0 +1,130 @@
+{
+ "unicast" : "10.0.2.15",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "true", "path" : "/home/someip/another-file.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "A",
+ "id" : "0x7788"
+ },
+ {
+ "name" : "B",
+ "id" : "0x9933"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "default",
+ "unicast" : "local",
+ "delays" :
+ {
+ "initial" : { "minimum" : "10", "maximum" : "100" },
+ "repetition-base" : "200",
+ "repetition-max" : "7",
+ "cyclic-offer" : "2000",
+ "cyclic-request" : "2001"
+ },
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x0022",
+ "reliable" : { "port" : "30506", "magic_cookies" : "false" },
+ "unreliable" : "31000",
+ "events" :
+ [
+ {
+ "event" : "0x0778",
+ "is_field" : "false"
+ },
+ {
+ "event" : "0x779",
+ "is_field" : "true"
+ },
+ {
+ "event" : "0x77A",
+ "is_field" : "false"
+ }
+ ],
+ "eventgroups" :
+ [
+ {
+ "eventgroup" : "0x4567",
+ "multicast" : "225.226.227.228",
+ "events" : [ "0x778", "0x779" ]
+ },
+ {
+ "eventgroup" : "0x4569",
+ "multicast" : "225.227.227.228",
+ "events" : [ "0x779", "0x77A" ]
+ },
+ {
+ "eventgroup" : "0x4569",
+ "multicast" : "225.222.227.228",
+ "events" : [ "0x778", "0x77A" ]
+ }
+ ]
+ },
+ {
+ "service" : "0x1234",
+ "instance" : "0x0023",
+ "reliable" : "30503"
+ }
+ ]
+ },
+ {
+ "name" : "extra",
+ "unicast" : "local",
+ "delays" :
+ {
+ "initial" : { "minimum" : "100", "maximum" : "200" },
+ "repetition-base" : "300",
+ "repetition-max" : "5",
+ "cyclic-offer" : "2500",
+ "cyclic-request" : "2221"
+ },
+ "services" :
+ [
+ {
+ "service" : "0x2277",
+ "instance" : "0x0022",
+ "reliable" : { "port" : "30505" },
+ "unreliable" : "31001"
+ },
+ {
+ "service" : "0x2266",
+ "instance" : "0x0022",
+ "reliable" : "30505",
+ "unreliable" : "30507"
+ }
+ ]
+ },
+ {
+ "name" : "remote",
+ "unicast" : "10.0.2.23",
+ "services" :
+ [
+ {
+ "service" : "0x4466",
+ "instance" : "0x0321",
+ "reliable" : "30506",
+ "unreliable" : "30444"
+ }
+ ]
+ }
+ ],
+ "routing" : "A",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "port" : "30666",
+ "protocol" : "tcp"
+ }
+} \ No newline at end of file
diff --git a/config/vsomeip-test.xml b/config/vsomeip-test.xml
deleted file mode 100644
index fd3a263..0000000
--- a/config/vsomeip-test.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>10.0.2.15</address>
- <logging>
- <level>debug</level>
- <console>true</console>
- <file>
- <enabled>true</enabled>
- <path>/home/someip/another-file.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <address>local</address>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <repetition-max>7</repetition-max>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x0022</instance-id>
- <reliable>
- <port>30506</port>
- </reliable>
- <unreliable>
- <port>31000</port>
- </unreliable>
- <multicast>225.225.225.1</multicast>
- </service>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x0023</instance-id>
- <ports>
- <reliable>30503</reliable>
- </ports>
- <multicast>225.225.225.2</multicast>
- </service>
- </servicegroup>
- <servicegroup>
- <name>extra</name>
- <address>local</address>
- <delays>
- <initial>
- <min>100</min>
- <max>200</max>
- </initial>
- <repetition-base>300</repetition-base>
- <repetition-max>5</repetition-max>
- <cyclic-offer>2500</cyclic-offer>
- <cyclic-request>2221</cyclic-request>
- </delays>
- <service>
- <service-id>0x2277</service-id>
- <instance-id>0x0022</instance-id>
- <ports>
- <reliable>30505</reliable>
- <unreliable>31001</unreliable>
- </ports>
- <multicast>225.225.225.3</multicast>
- </service>
- <service>
- <service-id>0x2266</service-id>
- <instance-id>0x0022</instance-id>
- <ports>
- <reliable>30505</reliable>
- <unreliable>30507</unreliable>
- </ports>
- <multicast>225.225.226.1</multicast>
- </service>
- </servicegroup>
- <servicegroup>
- <name>remote</name>
- <address>10.0.2.23</address>
- <service>
- <service-id>0x4466</service-id>
- <instance-id>0x0321</instance-id>
- <ports>
- <reliable>30506</reliable>
- <unreliable>30444</unreliable>
- </ports>
- <multicast>225.225.228.1</multicast>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>A</host>
- </routing>
- <service-discovery>
- <host>my_application</host>
- <port>30666</port>
- <protocol>tcp</protocol>
- </service-discovery>
- <applications>
- <application>
- <name>A</name>
- </application>
- <application>
- <name>B</name>
- </application>
- </applications>
-</someip> \ No newline at end of file
diff --git a/config/vsomeip-udp-client.json b/config/vsomeip-udp-client.json
new file mode 100644
index 0000000..544778d
--- /dev/null
+++ b/config/vsomeip-udp-client.json
@@ -0,0 +1,86 @@
+{
+ "unicast" : "192.168.56.101",
+ "netmask" : "255.255.255.0",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "true", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "true"
+ },
+ "applications" :
+ [
+ {
+ "name" : "client-sample",
+ "id" : "0x1343"
+ },
+ {
+ "name" : "client-sample",
+ "id" : "0x1344"
+ },
+ {
+ "name" : "client-sample",
+ "id" : "0x1345"
+ },
+ {
+ "name" : "client-sample",
+ "id" : "0x1346"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "remote",
+ "address" : "192.168.56.102",
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "unreliable" : "30509",
+ "events" :
+ [
+ {
+ "event" : "0x0777",
+ "is_field" : "true"
+ },
+ {
+ "event" : "0x0778",
+ "is_field" : "false"
+ },
+ {
+ "event" : "0x0779",
+ "is_field" : "true"
+ }
+ ],
+ "eventgroups" :
+ [
+ {
+ "eventgroup" : "0x4455",
+ "multicast" : "224.225.226.223",
+ "events" : [ "0x777", "0x778" ]
+ },
+ {
+ "eventgroup" : "0x4465",
+ "multicast" : "224.225.226.228",
+ "events" : [ "0x778", "0x779" ]
+ },
+ {
+ "eventgroup" : "0x4555",
+ "multicast" : "224.225.226.233",
+ "events" : [ "0x777", "0x779" ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "routing" : "client-sample",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "multicast" : "224.244.224.224",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+} \ No newline at end of file
diff --git a/config/vsomeip-udp-client.xml b/config/vsomeip-udp-client.xml
deleted file mode 100644
index 4de88de..0000000
--- a/config/vsomeip-udp-client.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.101</address>
- <netmask>24</address>
- <logging>
- <level>trace</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>remote</name>
- <address>192.168.56.102</address>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <unreliable>
- <port>30507</port>
- </unreliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>client-sample</host>
- </routing>
- <service-discovery>
- <enabled>true</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>client-sample</name>
- <id>0x1343</id>
- </application>
- <application>
- <name>second-client-sample</name>
- <id>0x1344</id>
- </application>
- <application>
- <name>third-client-sample</name>
- <id>0x1345</id>
- </application>
- <application>
- <name>fourth-client-sample</name>
- <id>0x1346</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip-udp-service.json b/config/vsomeip-udp-service.json
new file mode 100644
index 0000000..cba6b6e
--- /dev/null
+++ b/config/vsomeip-udp-service.json
@@ -0,0 +1,47 @@
+{
+ "unicast" : "192.168.56.102",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
+ "dlt" : "false",
+ }
+ "applications" :
+ [
+ {
+ "name" : "service-sample",
+ "id" : "0x1277"
+ }
+ ],
+ "servicegroups" :
+ [
+ {
+ "name" : "default",
+ "delays" :
+ {
+ "initial" : { "minimum" : "10", "maximum" : 100 },
+ "repetition-base" : "200",
+ "repetition-max" : "3",
+ "cyclic-offer" : "2000",
+ "cyclic-request" : "2001"
+ },
+ "services" :
+ [
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678"
+ "unreliable" : "30509",
+ }
+ ]
+ }
+ ]
+ "routing" : "service-sample",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "multicast" : "224.244.224.245",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
diff --git a/config/vsomeip-udp-service.xml b/config/vsomeip-udp-service.xml
deleted file mode 100644
index b2684ef..0000000
--- a/config/vsomeip-udp-service.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.102</address>
- <logging>
- <level>trace</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <repetition-max>3</repetition-max>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <unreliable>
- <port>30507</port>
- </unreliable>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>service-sample</host>
- </routing>
- <service-discovery>
- <enabled>true</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>service-sample</name>
- <id>0x1277</id>
- </application>
- </applications>
-</someip>
diff --git a/config/vsomeip.json b/config/vsomeip.json
new file mode 100644
index 0000000..a9cd9a0
--- /dev/null
+++ b/config/vsomeip.json
@@ -0,0 +1,58 @@
+{
+ "unicast" : "192.168.56.101",
+ "logging" :
+ {
+ "level" : "debug",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "false",
+ },
+ "applications" :
+ [
+ {
+ "name" : "client-sample",
+ "id" : "0x1343"
+ },
+ {
+ "name" : "other-client-sample",
+ "id" : "0x1344"
+ },
+ {
+ "name" : "service-sample",
+ "id" : "0x1277"
+ }
+ ]
+ "servicegroups" :
+ [
+ {
+ "name" : "default",
+ "delays" :
+ {
+ "inital" : { minimum : "10", maximum : "100" },
+ "repetition-base" : "200",
+ "repetition-max" : "3",
+ "cyclic-offer" : "2000",
+ "cyclic-request" : "2001"
+ },
+ {
+ "service" : "0x1234",
+ "instance" : "0x5678",
+ "reliable" : { "port" : "30506", "magic-cookies" : false },
+ "unreliable" : "31000"
+ },
+ {
+ "service" : "0x2248",
+ "instance" : "0x5422",
+ "unreliable" : "31010"
+ }
+ }
+ ],
+ "routing" : "client-sample",
+ "service-discovery" :
+ {
+ "enable" : "true",
+ "multicast" : "224.244.224.245",
+ "port" : "30490",
+ "protocol" : "udp"
+ }
+}
diff --git a/config/vsomeip.xml b/config/vsomeip.xml
deleted file mode 100644
index 52ca502..0000000
--- a/config/vsomeip.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<!-- vsomeip test configuration file -->
-<someip>
- <address>192.168.56.101</address>
- <logging>
- <level>trace</level>
- <console>true</console>
- <file>
- <enable>false</enable>
- <path>/tmp/vsomeip.log</path>
- </file>
- <dlt>false</dlt>
- </logging>
- <services>
- <servicegroup>
- <name>default</name>
- <delays>
- <initial>
- <min>10</min>
- <max>100</max>
- </initial>
- <repetition-base>200</repetition-base>
- <repetition-max>3</repetition-max>
- <cyclic-offer>2000</cyclic-offer>
- <cyclic-request>2001</cyclic-request>
- </delays>
- <service>
- <service-id>0x1234</service-id>
- <instance-id>0x5678</instance-id>
- <ports>
- <reliable>30506</reliable>
- <unreliable>31000</unreliable>
- </ports>
- <multicast>225.225.225.1</multicast>
- </service>
- <service>
- <service-id>0x0248</service-id>
- <instance-id>0x5422</instance-id>
- <ports>
- <unreliable>31010</unreliable>
- </ports>
- <multicast>225.225.225.2</multicast>
- </service>
- </servicegroup>
- </services>
- <routing>
- <host>client-sample</host>
- </routing>
- <service-discovery>
- <enabled>true</enabled>
- <protocol>udp</protocol>
- <address>224.244.224.245</address>
- <port>30490</port>
- </service-discovery>
- <applications>
- <application>
- <name>client-sample</name>
- <id>0x1343</id>
- </application>
- <application>
- <name>other-client-sample</name>
- <id>0x1344</id>
- </application>
- <application>
- <name>service-sample</name>
- <id>0x1277</id>
- </application>
- </applications>
-</someip>