Giter Site home page Giter Site logo

covesa / vsomeip Goto Github PK

View Code? Open in Web Editor NEW
1.1K 87.0 664.0 12.06 MB

An implementation of Scalable service-Oriented MiddlewarE over IP

License: Mozilla Public License 2.0

CMake 6.23% C++ 88.89% Shell 4.45% Makefile 0.21% C 0.11% Python 0.10%
someip vsomeip automotive service-discovery

vsomeip's Introduction

vsomeip

Copyright

Copyright (C) 2015-2022, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

vsomeip Overview

The vsomeip stack implements the http://some-ip.com/ (Scalable service-Oriented MiddlewarE over IP (SOME/IP)) protocol. The stack consists out of:

  • a shared library for SOME/IP (libvsomeip3.so)
  • a shared library for SOME/IP's configuration module (libvsomeip3-cfg.so)
  • a shared library for SOME/IP's service discovery (libvsomeip3-sd.so)
  • a shared library for SOME/IP's E2E protection module (libvsomeip3-e2e.so)

Optional:

  • a shared library for compatibility with vsomeip v2 (libvsomeip.so)
Build Instructions for Linux
Dependencies
  • A C++14 enabled compiler is needed (default for gcc >= v6.1).
  • vsomeip uses CMake as buildsystem.
  • vsomeip uses Boost >= 1.55.0:

For the tests Google's test framework https://code.google.com/p/googletest/[gtest] is needed. -- URL: https://googletest.googlecode.com/files/gtest-.zip

To build the documentation asciidoc, source-highlight, doxygen and graphviz is needed: --sudo apt-get install asciidoc source-highlight doxygen graphviz

Compilation

For compilation call:

mkdir build
cd build
cmake ..
make

To specify a installation directory (like --prefix= if you're used to autotools) call cmake like:

cmake -DCMAKE_INSTALL_PREFIX:PATH=$YOUR_PATH ..
make
make install
Compilation with predefined unicast and/or diagnosis address

To predefine the unicast address, call cmake like:

cmake -DUNICAST_ADDRESS=<YOUR IP ADDRESS> ..

To predefine the diagnosis address, call cmake like:

cmake -DDIAGNOSIS_ADDRESS=<YOUR DIAGNOSIS ADDRESS> ..

The diagnosis address is a single byte value.

Compilation with custom default configuration folder

To change the default configuration folder, call cmake like:

cmake -DDEFAULT_CONFIGURATION_FOLDER=<DEFAULT CONFIGURATION FOLDER> ..

The default configuration folder is /etc/vsomeip.

Compilation with custom default configuration file

To change the default configuration file, call cmake like:

cmake -DDEFAULT_CONFIGURATION_FILE=<DEFAULT CONFIGURATION FILE> ..

The default configuration file is /etc/vsomeip.json.

Compilation with signal handling

To compile vsomeip with signal handling (SIGINT/SIGTERM) enabled, call cmake like:

cmake -DENABLE_SIGNAL_HANDLING=1 ..

In the default setting, the application has to take care of shutting down vsomeip in case these signals are received.

Build Instructions for Android
Dependencies
  • vsomeip uses Boost >= 1.55. The boost libraries (system, thread and log) must be included in the Android source tree and integrated into the build process with an appropriate Android.bp file.
Compilation

In general for building the Android source tree the instructions found on the pages from the Android Open Source Project (AOSP) apply (https://source.android.com/setup/build/requirements).

To integrate the vsomeip library into the build process, the source code together with the Android.bp file has to be inserted into the Android source tree (by simply copying or by fetching with a custom platform manifest). When building the Android source tree, the Android.bp file is automatically found and considered by the build system.

In order that the vsomeip library is also included in the Android image, the library has to be added to the PRODUCT_PACKAGES variable in one of a device/target specific makefile:

PRODUCT_PACKAGES += \
    libvsomeip \
    libvsomeip_cfg \
    libvsomeip_sd \
    libvsomeip_e2e \

vsomeip's People

Contributors

alexlarsson avatar brenkem avatar chachoi avatar dhuss avatar diogopedrozza avatar doschropa avatar fietzero avatar fscr avatar fynnwilliam avatar genivivsomeipmaintainer avatar goncaloalmeida avatar green-hand-xu avatar herobone avatar ims0 avatar janbernloehr avatar jimmy-drod avatar juergengehring avatar kheaactua avatar lutzbichler avatar maosltr avatar mwarning avatar pdodzweit avatar pgawro avatar phiwer avatar reymor avatar ricardoroldaoctw avatar ruig19 avatar sebastianbergt avatar seokhee-lee avatar ziyangfu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vsomeip's Issues

vsomeip tests fail on qemuarm64 target in meta-ivi

Hi, I'm having troubles running vsomeip tests in meta-ivi-test meta layer with the test-image on qemuarm64. It works on both qemux86 and qemux86-64. This is the log output from running the tests:

root@qemuarm64:/opt/tests# ./test-fw.sh vsomeip 2
##########
vSOMEIP
##########
[ run_2 ]
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from someip_big_payload_test
[ RUN      ] someip_big_payload_test.send_ten_messages_to_service
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from someip_big_payload_test
[ RUN      ] someip_big_payload_test.receive_ten_messages_and_send_reply
2018-08-21 10:16:27.378363 [info] Parsed vsomeip configuration in 153ms
2018-08-21 10:16:27.427728 [info] Using configuration file: "big_payload_test_local.json".
2018-08-21 10:16:27.428725 [info] Default configuration module loaded.
2018-08-21 10:16:27.429397 [info] Initializing vsomeip application "big_payload_test_client".
2018-08-21 10:16:27.420495 [info] Parsed vsomeip configuration in 173ms
2018-08-21 10:16:27.445158 [info] Using configuration file: "big_payload_test_local.json".
2018-08-21 10:16:27.446132 [info] Default configuration module loaded.
2018-08-21 10:16:27.446794 [info] Initializing vsomeip application "big_payload_test_service".
2018-08-21 10:16:27.458546 [info] SOME/IP client identifier configured. Using 1344 (was: 1344)
2018-08-21 10:16:27.478102 [info] Instantiating routing manager [Proxy].
2018-08-21 10:16:27.479967 [info] Client [1344] is connecting to [0] at /tmp/vsomeip-0
2018-08-21 10:16:27.489694 [error] Routing manager with id 4727 already exists.
2018-08-21 10:16:27.490707 [error] Couldn't acquire client identifier
/usr/src/debug/vsomeip/2.10.21-r0/git/test/big_payload_tests/big_payload_test_service.cpp:51: Failure
Failed
Couldn't initialize application
2018-08-21 10:16:27.513366 [info] Listening at /tmp/vsomeip-1344
2018-08-21 10:16:27.514339 [info] Application(big_payload_test_client, 1344) is initialized (11, 100).terminate called without an active exception

2018-08-21 10:16:27.554078 [info] Starting...
2018-08-21 10:16:27.565797 [info] Starting vsomeip application "big_payload_test_client" using 2 threads
./big_payload_test_local_starter.sh: line 43:  1524 Aborted                 (core dumped) ./big_payload_test_service $1
2018-08-21 10:16:27.600386 [info] main dispatch thread id from application: 1344 (big_payload_test_client) is: 7f84382140 TID: 1530
2018-08-21 10:16:27.594687 [info] shutdown thread id from application: 1344 (big_payload_test_client) is: 7f83b81140 TID: 1531
2018-08-21 10:16:27.613252 [info] io thread id from application: 1344 (big_payload_test_client) is: 7f84be9010 TID: 1525
2018-08-21 10:16:27.614680 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:27.625731 [info] io thread id from application: 1344 (big_payload_test_client) is: 7f83380140 TID: 1532
2018-08-21 10:16:28.660003 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:28.665612 [info] Application/Client 1344: Reconnecting to routing manager.
2018-08-21 10:16:28.768359 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:29.771354 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:29.772984 [info] Application/Client 1344: Reconnecting to routing manager.
2018-08-21 10:16:29.875960 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:30.879405 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:30.983928 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:31.987656 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:32.092063 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:33.095378 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:33.199916 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:34.203794 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:34.308329 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:35.311628 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:35.416176 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:36.419452 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:36.523978 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:37.527418 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:37.632015 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:38.635722 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:38.739969 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:39.743374 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:39.847915 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:40.851772 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:40.956325 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:41.959322 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:42.063916 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:43.067298 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:43.171896 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:44.175329 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:44.176960 [info] Application/Client 1344: Reconnecting to routing manager.
2018-08-21 10:16:44.280293 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:45.283795 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:45.388101 [info] Client 1344 successfully connected to routing  ~> registering..
2018-08-21 10:16:46.089517 [info] Application/Client 1344: Reconnecting to routing manager.
2018-08-21 10:16:46.192791 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:46.200436 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:46.308322 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:46.310698 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:46.391763 [warning] Client 0x1344 register timeout! : Restart route to stub!
2018-08-21 10:16:46.797533 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:46.802290 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:47.208926 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:47.213648 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:48.021089 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:48.025877 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:49.633169 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:49.637901 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:51.245016 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:51.249645 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:52.857185 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:52.862063 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:54.472992 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:54.476383 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:56.085957 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:56.090162 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:57.696131 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:57.697825 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:16:59.305037 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:16:59.309586 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:00.917184 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:00.922001 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:02.533047 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:02.537831 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:04.145165 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:04.149849 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
^Croot@qemuarm64:/opt/tests# 2018-08-21 10:17:05.757158 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:05.761950 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:07.368173 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:07.369506 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:08.977771 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:08.981846 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:10.589174 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:10.593696 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2018-08-21 10:17:12.201166 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2018-08-21 10:17:12.205587 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED

Availability handler is called only once

Hello,

I want to write functions on a Raspberry Pi for testing a real ECU. But my first try doesn't work, because the availability handler is only called once at application start. Each change is logged on stderr but there is no output on stdout:

image

The application looks currently similar to the example like this:
image

Best regards,
Conny

How to build in MacOS[Query]

Dear Authors,
Sorry to be noob !!!
I have been trying to build someip stack on macOS, i cannot complete cmake properly.
Could you please help me ... Attached is the Terminal Log

i have installed asciidoc, graphviz via brew
i have successfully compiled googletest

`Thees-iMac:build theetech$ cmake ..
CMake Warning at /Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:83 (find_package)

CMake Warning at /Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:83 (find_package)

CMake Warning at /Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_COMPONENT_DEPENDENCIES)
/Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:83 (find_package)

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.11/Modules/FindBoost.cmake:1956 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:83 (find_package)

-- Boost was not found!
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Systemd was not found, watchdog disabled!
Predefined unicast address: 127.0.0.1
Predefined diagnosis address: 0x00
Predefined routing application: vsomeipd
dot found
CMake Warning at CMakeLists.txt:354 (message):
asciidoc is not installed. Readme can not be built.

GTEST_ROOT is set. GTEST_ROOT = /Downloads/gtest1.7.0/googletest
CMake Error at CMakeLists.txt:425 (add_subdirectory):
add_subdirectory given source "/Downloads/gtest1.7.0/googletest" which is
not an existing directory.

CMake Warning at CMakeLists.txt:452 (message):
TEST_IP_MASTER and/or TEST_IP_SLAVE isn't set. Only local tests will be
runnable Please specify them via for example -DTEST_IP_MASTER=10.0.3.1
-DTEST_IP_SLAVE=10.0.3.125

CMake Warning at CMakeLists.txt:470 (message):
TEST_UID and/or TEST_GID isn't set. Security Tests are not runnable Please
specify them for example -DTEST_UID=1000 -DTEST_GID=1000

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/daemon
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/tools
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/examples
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test
used as include directory in directory /Users/theetech/Downloads/vsomeip/test

-- Configuring incomplete, errors occurred!
See also "/Users/theetech/Downloads/vsomeip/build/CMakeFiles/CMakeOutput.log".
Thees-iMac:build theetech$
`

max_used_client_ids_index - misleading name

Small one:
max_used_client_ids_index in struct configuration_data_t (internal.hpp) is a misleading name.
It is actually the count of used client ids, or the index of the next free client id, but not what it implies (the maximum index of used client IDs).

Not able to set up communication between two devices

I followed the instructions given in VSOMEIP in 10 and its is working fine on one host. But it is not working when I am trying to do it on two ubuntu machines.
My files are:
World.cpp
#include <vsomeip/vsomeip.hpp>

#define SAMPLE_SERVICE_ID 0x1234
#define SAMPLE_INSTANCE_ID 0x5678

std::shared_ptr< vsomeip::application > app;

int main() {

app = vsomeip::runtime::get()->create_application("World");
app->init();
app->offer_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID);
app->start();

}

Hello.cpp
#include
#include

#include <vsomeip/vsomeip.hpp>

#define SAMPLE_SERVICE_ID 0x1234
#define SAMPLE_INSTANCE_ID 0x5678

std::shared_ptr< vsomeip::application > app;

void on_availability(vsomeip::service_t _service, vsomeip::instance_t _instance, bool _is_available) {
std::cout << "Service ["
<< std::setw(4) << std::setfill('0') << std::hex << _service << "." << _instance
<< "] is " << (_is_available ? "available." : "NOT available.") << std::endl;
}

int main() {

app = vsomeip::runtime::get()->create_application("Hello");
app->init();
app->register_availability_handler(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, on_availability);
app->request_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID);
app->start();

}

I used the same json files as in the tutorial(with unicast changed according to my machines) and named them s.json and c.json.

I have the executables and the json files in the same folder from that folder I used the following commands:

env VSOMEIP_CONFIGURATION=./s.json VSOMEIP_APPLICATION_NAME=World ./World (on host 1)
env VSOMEIP_CONFIGURATION=./c.json VSOMEIP_APPLICATION_NAME=Hello ./Hello (on host 2)

I also used the command: route add -nv 224.224.224.245 dev eth0

But the applications keep running and do not communicate with each other.

Outpost on host1:

2018-07-23 17:36:41.523536 [info] Parsed vsomeip configuration in 2ms
2018-07-23 17:36:41.523640 [info] Using configuration file: "s.json".
2018-07-23 17:36:41.523669 [info] Default configuration module loaded.
2018-07-23 17:36:41.523680 [info] Initializing vsomeip application "World".
2018-07-23 17:36:41.523737 [warning] Routing Manager seems to be inactive. Taking over...
2018-07-23 17:36:41.523832 [info] SOME/IP client identifier configured. Using 0009 (was: 1212)
2018-07-23 17:36:41.523840 [info] Instantiating routing manager [Host].
2018-07-23 17:36:41.523887 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-07-23 17:36:41.523936 [info] Client [9] is connecting to [0] at /tmp/vsomeip-0
2018-07-23 17:36:41.523946 [info] Service Discovery enabled. Trying to load module.
2018-07-23 17:36:41.527714 [info] Service Discovery module loaded.
2018-07-23 17:36:41.527828 [info] Application(World, 9) is initialized (11, 100).
2018-07-23 17:36:41.527843 [info] OFFER(0009): [1234.5678:0.0]
2018-07-23 17:36:41.528033 [info] Starting vsomeip application "World" using 2 threads
2018-07-23 17:36:41.528956 [info] main dispatch thread id from application: 0009 (World) is: 7ffff59b2700 TID: 13161
2018-07-23 17:36:41.528982 [info] shutdown thread id from application: 0009 (World) is: 7ffff3978700 TID: 13162
2018-07-23 17:36:41.529005 [info] Watchdog is disabled!
2018-07-23 17:36:41.529070 [info] io thread id from application: 0009 (World) is: 7ffff7fcd740 TID: 13160
2018-07-23 17:36:41.529126 [info] io thread id from application: 0009 (World) is: 7fffdffff700 TID: 13164
2018-07-23 17:36:41.529206 [info] vSomeIP 2.10.21 | (default)
2018-07-23 17:36:41.529281 [info] Network interface "eth0" state changed: up
2018-07-23 17:36:41.529325 [info] Route "default route (0.0.0.0/0) if: eth0 gw: 10.24.34.1" state changed: up
2018-07-23 17:36:41.529421 [info] SOME/IP routing ready.
2018-07-23 17:36:41.529488 [warning] Route "224.224.224.245/32 if: eth0 gw: n/a" state changed: up
2018-07-23 17:36:44.729077 [warning] Releasing client identifier 1212. Its corresponding application went offline while no routing manager was running.
2018-07-23 17:36:44.729153 [info] Application/Client 1212 is deregistering.
Outpost on host2:
\2018-07-23 17:37:31.607453 [info] Parsed vsomeip configuration in 1ms
2018-07-23 17:37:31.607502 [info] Using configuration file: "c.json".
2018-07-23 17:37:31.607511 [info] Default configuration module loaded.
2018-07-23 17:37:31.607520 [info] Initializing vsomeip application "Hello".
2018-07-23 17:37:31.607547 [warning] Routing Manager seems to be inactive. Taking over...
2018-07-23 17:37:31.607570 [info] SOME/IP client identifier configured. Using 000a (was: 1313)
2018-07-23 17:37:31.607576 [info] Instantiating routing manager [Host].
2018-07-23 17:37:31.607610 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-07-23 17:37:31.607637 [info] Client [a] is connecting to [0] at /tmp/vsomeip-0
2018-07-23 17:37:31.607645 [info] Service Discovery enabled. Trying to load module.
2018-07-23 17:37:31.608834 [info] Service Discovery module loaded.
2018-07-23 17:37:31.608866 [info] Application(Hello, a) is initialized (11, 100).
2018-07-23 17:37:31.608882 [info] REQUEST(000a): [1234.5678:255.4294967295]
2018-07-23 17:37:31.608941 [info] Starting vsomeip application "Hello" using 2 threads
2018-07-23 17:37:31.609086 [info] Watchdog is disabled!
2018-07-23 17:37:31.609264 [info] shutdown thread id from application: 000a (Hello) is: 7ffff3978700 TID: 13584
2018-07-23 17:37:31.609291 [info] io thread id from application: 000a (Hello) is: 7ffff7fcd740 TID: 13582
2018-07-23 17:37:31.609371 [info] io thread id from application: 000a (Hello) is: 7fffe7fff700 TID: 13586
2018-07-23 17:37:31.609381 [info] main dispatch thread id from application: 000a (Hello) is: 7ffff59b2700 TID: 13583
2018-07-23 17:37:31.609390 [info] vSomeIP 2.10.21 | (default)
Service [1234.5678] is NOT available.
2018-07-23 17:37:31.609509 [info] Network interface "eth0" state changed: up
2018-07-23 17:37:31.609539 [info] Route "default route (0.0.0.0/0) if: eth0 gw: 10.24.34.1" state changed: up
2018-07-23 17:37:31.609645 [info] SOME/IP routing ready.
2018-07-23 17:37:31.609664 [warning] Route "224.224.224.245/32 if: eth0 gw: n/a" state changed: up
2018-07-23 17:37:34.809112 [warning] Releasing client identifier 0009. Its corresponding application went offline while no routing manager was running.
2018-07-23 17:37:34.809141 [info] Application/Client 0009 is deregistering.

Communication stops after about 4 to 5 minutes

When I run response-sample and request-sample executables on two different computers the communication works fine for more than 4 minutes and less than 5 minutes, but then it stops and doesn't restart until the client (request-sample) is restarted. This doesn't happen if both executables are running on the same computer (in 2 virtual machines using different IP address).
Is this a known issue and if so, is there any known workaround for it?

Compile error on x64-Linux

First a warning:

vsomeip/implementation/helper/boost/asio/detail/handler_type_requirements_ext.hpp:223:41: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
vsomeip/implementation/helper/boost/asio/basic_datagram_socket_ext.hpp:347:5: note: in expansion of macro ‘BOOST_ASIO_WRITE_HANDLER_CHECK’

(several instances of that)

Then compile errors:

In file included from vsomeip/implementation/endpoints/src/netlink_connector.cpp:13:0:
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator==(const vsomeip::nl_endpoint&, const vsomeip::nl_endpoint&)’:
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp:101:28: error: no match for ‘operator==’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
return e1.sockaddr == e2.sockaddr;
~~~~~~~~~~~~^~~~~~~~~~~~~~
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator!=(const vsomeip::nl_endpoint&, const vsomeip::nl_endpoint&)’:
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp:108:30: error: no match for ‘operator==’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
return !(e1.sockaddr == e2.sockaddr);
~~~~~~~~~~~~^~~~~~~~~~~~~~
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator<(const vsomeip::nl_endpoint&, const vsomeip::nl_endpoint&)’:
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp:115:28: error: no match for ‘operator<’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
return e1.sockaddr < e2.sockaddr;
~~~~~~~~~~~~^~~~~~~~~~~~~
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator>(const vsomeip::nl_endpoint&, const vsomeip::nl_endpoint&)’:
vsomeip/implementation/endpoints/src/../include/netlink_connector.hpp:122:28: error: no match for ‘operator<’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
return e2.sockaddr < e1.sockaddr;
~~~~~~~~~~~~^~~~~~~~~~~~~

I'm a bit puzzled why you would want to compare sockaddr_nl in the first place, to be honest.
Especially for <. That makes no sense to me. But for what it's worth, I added this code:

static bool operator==(const struct sockaddr_nl& a,const struct sockaddr_nl& b) {
  return (a.nl_family == b.nl_family &&
          a.nl_pid == b.nl_pid &&
          a.nl_groups == b.nl_groups);
}   

static bool operator<(const struct sockaddr_nl& a,const struct sockaddr_nl& b) {
  if (a.nl_family < b.nl_family) return true;
  if (a.nl_family > b.nl_family) return false;
  if (a.nl_pid < b.nl_pid) return true;
  if (a.nl_pid > b.nl_pid) return false;
  return a.nl_groups < b.nl_groups;
}   

that made it compile.

No offer service multicast on Windows

Hello.

Under Linux vsomeip works as expected but I have difficulties as we also would like to use this library together with CommonAPI on Windows.
The problem I'm experiencing is the lack of OFFER_SERVICE multicast messages. There are simply not sent while in contrast to that FIND_SERVICE messages are visible using wireshark.

I've tested using Win 7 (64 Bit) and Win 10.
All was compiled using Visual Studio 14 (2015).
I have used Boost 1.61 for this.

Is this a common problem? As it was buildable for Windows I've assumed that this port is also runnable.
I even checked multicast settings but as the FIND_SERVICE messages are correctly sent using multicast I assume this is not the problem.

My project is based on the examples I could find here:
capicxx-someip-tools/tree/master/CommonAPI-Examples

build errors on msys2

Hi:
After install boost on msys2 by below command:

pacman -S mingw-w64-x86_64-boost

I am trying to build vsomip on msys2 by command as below:

mkdir build
cd build
cmake -G "MSYS Makefiles" ..
make

But encounter below errors:

[  1%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/client_endpoint_impl.cpp.obj
[  2%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/credentials.cpp.obj
[  4%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/endpoint_definition.cpp.obj
[  5%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/endpoint_impl.cpp.obj
In file included from D:/repository/vsomeip/implementation/helper/boost/asio/basic_datagram_socket_ext.hpp:24:0,
                 from D:/repository/vsomeip/implementation/helper/boost/asio/ip/udp_ext.hpp:20,
                 from D:/repository/vsomeip/implementation/endpoints/src/endpoint_impl.cpp:8:
D:/repository/vsomeip/implementation/helper/boost/asio/datagram_socket_service_ext.hpp:31:11: fatal error: detail/win_iocp_socket_service_ext.hpp: No such file or directory
 # include "detail/win_iocp_socket_service_ext.hpp"
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/vsomeip.dir/build.make:135: CMakeFiles/vsomeip.dir/implementation/endpoints/src/endpoint_impl.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:209: CMakeFiles/vsomeip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I have checked that there is no file win_iocp_socket_service_ext.hpp under vsomip directory or under directory of libboost.

can anyone tell me where can I find this missing files?

How does the server pass structures to the client ?

I learned "vsomeip in 10 minutes" and can run hello world sever/client on my device. But sever and client comunite with string data, I don't know how to pass structures, that's my real purpose. Could anyone tell me how to implement that on vsomeip? Thanks very much!

vsomeip does not compile with boost 1.66

Hi,

I'm porting meta-ivi to yocto sumo release and they have bumped versions of boost to version 1.66 and I've run into some issues with compiling vsomeip with that version of boost. From what I can gather they changed some of the header files of asio among other things. Here's an example:


| FAILED: CMakeFiles/vsomeip-sd.dir/implementation/service_discovery/src/service_discovery_impl.cpp.o
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DVSOMEIP_VERSION=\"2.10.10\" -Dvsomeip_sd_EXPORTS -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/interface -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include/dlt -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0=/usr/src/debug/vsomeip/2.10.21-r0 -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot= -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden  -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot -DUSE_DLT -DLINUX -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DBOOST_LOG_DYN_LINK -g  -std=c++11  -Wl,-export-dynamic -Wl,--version-script=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/exportmap.gcc -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/vsomeip-sd.dir/implementation/service_discovery/src/service_discovery_impl.cpp.o -MF CMakeFiles/vsomeip-sd.dir/implementation/service_discovery/src/service_discovery_impl.cpp.o.d -o CMakeFiles/vsomeip-sd.dir/implementation/service_discovery/src/service_discovery_impl.cpp.o -c /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/service_discovery/src/service_discovery_impl.cpp
| In file included from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper/boost/asio/datagram_socket_service_ext.hpp:33:0,
|                  from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper/boost/asio/basic_datagram_socket_ext.hpp:24,
|                  from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper/boost/asio/ip/udp_ext.hpp:20,
|                  from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/service_discovery/src/../../endpoints/include/udp_server_endpoint_impl.hpp:10,
|                  from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/service_discovery/src/service_discovery_impl.cpp:31:
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper/boost/asio/detail/reactive_socket_service_ext.hpp:29:10: fatal error: boost/asio/detail/addressof.hpp: No such file or directory
|  #include <boost/asio/detail/addressof.hpp>
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| FAILED: CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DVSOMEIP_VERSION=\"2.10.10\" -Dvsomeip_EXPORTS -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/interface -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include/dlt -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0=/usr/src/debug/vsomeip/2.10.21-r0 -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot= -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden  -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot -DUSE_DLT -DLINUX -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DBOOST_LOG_DYN_LINK -g  -std=c++11  -Wl,-export-dynamic -Wl,--version-script=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/exportmap.gcc -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o -MF CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o.d -o CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o -c /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/netlink_connector.cpp
| In file included from /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/netlink_connector.cpp:14:0:
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/../include/netlink_connector.hpp:136:46: error: expected ')' before '&' token
|      netlink_connector(boost::asio::io_service& _io, boost::asio::ip::address _address,
| FAILED: CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_client_endpoint_impl.cpp.o
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DVSOMEIP_VERSION=\"2.10.10\" -Dvsomeip_EXPORTS -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/interface -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/include -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/helper -I/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot/usr/include/dlt -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0=/usr/src/debug/vsomeip/2.10.21-r0 -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot= -fdebug-prefix-map=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden  -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/recipe-sysroot -DUSE_DLT -DLINUX -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DBOOST_LOG_DYN_LINK -g  -std=c++11  -Wl,-export-dynamic -Wl,--version-script=/home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/exportmap.gcc -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_client_endpoint_impl.cpp.o -MF CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_client_endpoint_impl.cpp.o.d -o CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_client_endpoint_impl.cpp.o -c /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/local_client_endpoint_impl.cpp
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/local_client_endpoint_impl.cpp: In member function 'virtual void vsomeip::local_client_endpoint_impl::connect()':
| /home/osan/Projects/bit/qemuarm64/build/tmp/work/aarch64-poky-linux/vsomeip/2.10.21-r0/git/implementation/endpoints/src/local_client_endpoint_impl.cpp:128:64: error: 'class boost::asio::basic_stream_socket<boost::asio::local::stream_protocol>' has no member named 'native'
|                          credentials::send_credentials(socket_->native(),

Currently vsomeip is unbuildable with sumo releases.

Multiple vsomeip services configuration with secutiry

Description of configuration I work on:
we have multiple services on linux device. Let‘s say:

  • TheFirstService – the_first_service vsomeip name.
  • TheSecondService – the_second_service vsomeip name

We‘re using local unix sockets with security switched on to control the access.
Client connects from the docker image. I think this is no so important. The client just needs to have access to unix socket files as an client started directly on linux device.

It is not clear to me whether I need to have vsomeipd daemon started. Except both services.
Do I need to write separate configuration files for each service and its clients? For example:
/etc/vsomeip/vsomeip-first-service.json
/etc/vsomeip/vsomeip-second-service.json

I‘m able to connect to the first one from client using configuration inside just one config file /etc/vsomeip/vsomeip-services.json. But just to one of them. The second one refuses to offer a service durring the startup.
So, the main question is how to correctly configure multiple vsomeip services using local unix sockets with security implementation based on UNIX credentials.

  • Do I need configuration file for each service?
  • Do I need started vsomeipd daemon vith its own configuration(e.g. /etc/vsomeip.json)?

My configuration files are in attached vsomeipValeo.tar.gz
archive:
configs/vsomeip–services.json – multiple services configuration in one config
configs/vsomeip–first–service.json – the first service configuration
configs/vsomeip–second–service.json – the second service configuration
logs/TheFirstServiceLog.txt – FirstService console output.
logs/TheSecondServiceLog.txt – SecondService console output.
logs/ServiceExampleConnectionLog.txt – Client console output.

symbol not found under alpine

I am trying to build vsomeip in a alpine:3.6 docker image.

first of all BIG_ENDIAN and LITTLE_ENDIAN is not defined.
so i changed StringEncoder.hpp so it will be set.

after this you can build it, but you get the following error :

/ # ldd /usr/local/lib/libvsomeip-sd.so.2.7.0 
	ldd (0x564db5b5f000)
	libvsomeip.so.2 => /usr/local/lib/libvsomeip.so.2 (0x7f0afb5c5000)
	libboost_system-mt.so.1.62.0 => /usr/lib/libboost_system-mt.so.1.62.0 (0x7f0afb3c1000)
	libboost_log-mt.so.1.62.0 => /usr/lib/libboost_log-mt.so.1.62.0 (0x7f0afb0ed000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f0afad9b000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f0afab89000)
	libc.musl-x86_64.so.1 => ldd (0x564db5b5f000)
	libboost_thread-mt.so.1.62.0 => /usr/lib/libboost_thread-mt.so.1.62.0 (0x7f0afa961000)
	libboost_filesystem-mt.so.1.62.0 => /usr/lib/libboost_filesystem-mt.so.1.62.0 (0x7f0afa748000)
Error relocating /usr/local/lib/libvsomeip-sd.so.2.7.0: _ZN7vsomeip12payload_implC1Ev: symbol not found

Failed build with gcc8 compiler

/home/ykhokhulya/work/packages/vSomeIP/implementation/endpoints/src/../include/netlink_connector.hpp: In member function ‘vsomeip::nl_endpoint<Protocol>::data_type* vsomeip::nl_endpoint<Protocol>::data()’:
/home/ykhokhulya/work/packages/vSomeIP/implementation/endpoints/src/../include/netlink_connector.hpp:70:17: error: cannot convert ‘sockaddr_nl*’ to ‘vsomeip::nl_endpoint<Protocol>::data_type*’ {aka ‘sockaddr*’} in return
         return &sockaddr;
                 ^~~~~~~~

GCC version: 8.1.0

crypto support

Hello GENIVI team,

This issue is only a -know how- about crypto offering in SOME/IP. I went through the Autosar SOME/IP spec and however failed to see the underlying crypto and configuration support to enable this one.

It looks like the above CommonAPI layer hides in the underlying serialization and transport method and for the applications using the CommonAPI the communication will simply look like a function call rather an actual serialize -> send -> receive -> deserailize call. So there is no way knowing the encoded wire-data that is being communicated.

Specifically i am looking for:

  1. crypto algorithm to be used / key lengths
  2. cert storage path / configuration
  3. configuration in choosing the authenticate vs encryption (symmetric and asymmetric)

I am not really sure if this support already is present in this version of vsomeip here. If possible could you please point me towards the link / source file /configuration about such implementation ?

Thanks,
Dev

[error] udp_server_endpoint_impl::join:set_option: Invalid argument

I tried to set up a connection between two hosts.

From a fresh git clone on both hosts, according 1:
$ cd vsomeip
$ mkdir build
$ cd build
$ cmake -DENABLE_SIGNAL_HANDLING=1 ..
$ make
$ make install

$ cd ../examples/hello_world
$ cd build
$ cmake ..
$ make

  • config both hosts and json-configs (see [service] and [client])

$ VSOMEIP_CONFIGURATION=../service.json VSOMEIP_APPLICATION_NAME=hello_world_service ./hello_world_service

2018-09-10 16:09:42.836345 [info] Using configuration file: "../service.json".

2018-09-10 16:09:42.837289 [info] Network interface "enx0080c83cef81" state changed: up
2018-09-10 16:09:42.837353 [info] Route "192.168.255.0/24 if: enx0080c83cef81 gw: n/a" state changed: up
2018-09-10 16:09:42.837424 [error] udp_server_endpoint_impl::join:set_option: Invalid argument
2018-09-10 16:09:42.837471 [info] SOME/IP routing ready.

$ VSOMEIP_CONFIGURATION=../client.json VSOMEIP_APPLICATION_NAME=hello_world_client ./hello_world_client --tcp

2018-09-10 16:26:02.159666 [info] Using configuration file: "../client.json".
2018-09-10 16:26:02.159768 [info] Default configuration module loaded.
2018-09-10 16:26:02.159805 [info] Initializing vsomeip application "hello_world_client".
2018-09-10 16:26:02.159972 [info] SOME/IP client identifier configured. Using 5555 (was: 5555)
2018-09-10 16:26:02.160007 [info] Instantiating routing manager [Host].
2018-09-10 16:26:02.160108 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-09-10 16:26:02.160272 [info] Client [5555] is connecting to [0] at /tmp/vsomeip-0
2018-09-10 16:26:02.160328 [info] Service Discovery enabled. Trying to load module.
2018-09-10 16:26:02.160873 [info] Service Discovery module loaded.
2018-09-10 16:26:02.161067 [info] Application(hello_world_client, 5555) is initialized (11, 100).
2018-09-10 16:26:02.161178 [info] Starting vsomeip application "hello_world_client" using 2 threads
2018-09-10 16:26:02.161508 [info] shutdown thread id from application: 5555 (hello_world_client) is: 7faaa14e6700 TID: 3818
2018-09-10 16:26:02.161617 [info] Watchdog is disabled!
2018-09-10 16:26:02.161910 [info] io thread id from application: 5555 (hello_world_client) is: 7faaa4313740 TID: 3816
2018-09-10 16:26:02.161979 [info] main dispatch thread id from application: 5555 (hello_world_client) is: 7faaa1ce7700 TID: 3817
2018-09-10 16:26:02.162124 [info] REQUEST(5555): [1111.2222:255.4294967295]
2018-09-10 16:26:02.162150 [info] vSomeIP 2.10.21 | (default)
2018-09-10 16:26:02.162402 [info] Network interface "enp0s25" state changed: up
2018-09-10 16:26:02.162694 [info] Route "192.168.255.0/24 if: enp0s25 gw: n/a" state changed: up
2018-09-10 16:26:02.162902 [info] io thread id from application: 5555 (hello_world_client) is: 7faa9bfff700 TID: 3820
2018-09-10 16:26:02.162995 [error] udp_server_endpoint_impl::join:set_option: Invalid argument
2018-09-10 16:26:02.163136 [info] SOME/IP routing ready.
^C2018-09-10 16:26:03.350641 [info] RELEASE(5555): [1111.2222]
2018-09-10 16:26:03.350730 [info] Stopping vsomeip application "hello_world_client".
2018-09-10 16:26:03.351452 [info] utility::auto_configuration_exit: munmap succeeded.

As you can see a error occurred and no communication happens.
I could not find a complete documentation or a example that describes how to set up the communication between two hosts, including configuration. Is there one available?

[service]:
$ ip addr show dev enx0080c83cef81

inet 192.168.255.253/24 brd 192.168.255.255 scope global enx0080c83cef81

$ route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface

192.168.255.0 * 255.255.255.0 U 100 0 0 enx0080c83cef81

$ cat service.json
{
"unicast":"192.168.255.253",
"logging":
{
"level":"debug",
"console":"true"
},

"applications":
[
    {
        "name":"hello_world_service",
        "id":"0x4444"
    }
],

"services":
[
    {
        "service":"0x1111",
        "instance":"0x2222",
        "unreliable":"30509"
    }
],

"routing":"hello_world_service",
"service-discovery":
{
    "enable" : "true",
    "multicast" : "192.168.255.254",
    "port" : "30490",
    "protocol" : "udp",
    "initial_delay_min" : "10",
    "initial_delay_max" : "100",
    "repetitions_base_delay" : "200",
    "repetitions_max" : "3",
    "ttl" : "3",
    "cyclic_offer_delay" : "2000",
    "request_response_delay" : "1500"
}

}


[client]:
$ ip addr show dev enp0s25

inet 192.168.255.250/24 brd 192.168.255.255 scope global enp0s25

$ route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface

192.168.255.0 * 255.255.255.0 U 100 0 0 enp0s25

$ cat client.json
{
"unicast":"192.168.255.250",
"logging":
{
"level":"debug",
"console":"true"
},

"applications":
[
    {
        "name":"hello_world_client",
        "id":"0x5555"
    }
],
"routing":"hello_world_client",
"service-discovery":
{
    "enable" : "true",
    "multicast" : "192.168.255.254",
    "port" : "30490",
    "protocol" : "udp",
    "initial_delay_min" : "10",
    "initial_delay_max" : "100",
    "repetitions_base_delay" : "200",
    "repetitions_max" : "3",
    "ttl" : "3",
    "cyclic_offer_delay" : "2000",
    "request_response_delay" : "1500"
}

}

[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)

Dear all,
I was trying to make the vsomeip examples run on two devices.
Device1: x86_64 Ubuntu16.04
Device2: ARM Linux
I followed the instructions in /vsomeip/examples/readme.txt.
And I added route with:
route add 224.244.224.245 dev eth0
route add 224.225.226.233 dev eth0
Finally after I started the executable,I got an error and there's no communication succeeded.
【Device1】:
cloud@ubuntu:/someip/vsomeip/examples/build$ export VSOMEIP_CONFIGURATION=vsomeip-local.json
cloud@ubuntu:
/someip/vsomeip/examples/build$ export VSOMEIP_APPLICATION_NAME=client-sample
cloud@ubuntu:~/someip/vsomeip/examples/build$ ./request-sample
2019-01-23 19:22:27.012182 [info] Parsed vsomeip configuration in 0ms
2019-01-23 19:22:27.012478 [info] Using configuration file: "vsomeip-local.json".
2019-01-23 19:22:27.012524 [info] Default configuration module loaded.
2019-01-23 19:22:27.012545 [info] Initializing vsomeip application "client-sample".
2019-01-23 19:22:27.012967 [info] SOME/IP client identifier configured. Using 1344 (was: 1344)
2019-01-23 19:22:27.013060 [info] Instantiating routing manager [Proxy].
2019-01-23 19:22:27.013457 [info] Client [1344] is connecting to [0] at /tmp/vsomeip-0
2019-01-23 19:22:27.013966 [info] Listening at /tmp/vsomeip-1344
2019-01-23 19:22:27.014002 [info] Application(client-sample, 1344) is initialized (11, 100).
Client settings [protocol=UDP:quiet=false:cycle=1000]
2019-01-23 19:22:27.014092 [info] Starting vsomeip application "client-sample" using 2 threads
2019-01-23 19:22:27.014214 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:27.014283 [info] io thread id from application: 1344 (client-sample) is: 7f6e4ae8a740 TID: 8278
2019-01-23 19:22:27.014327 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:27.014513 [info] main dispatch thread id from application: 1344 (client-sample) is: 7f6e482e8700 TID: 8280
2019-01-23 19:22:27.015160 [info] shutdown thread id from application: 1344 (client-sample) is: 7f6e47ae7700 TID: 8281
2019-01-23 19:22:27.015391 [info] io thread id from application: 1344 (client-sample) is: 7f6e472e6700 TID: 8282
2019-01-23 19:22:27.115622 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:27.115800 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:27.317420 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:27.317527 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:27.719074 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:27.719418 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:28.520667 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:28.520817 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:30.122305 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:30.122379 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:31.724830 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:31.725134 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
2019-01-23 19:22:33.326825 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2019-01-23 19:22:33.326977 [info] routing_manager_proxy::on_disconnect: Client 0x1344 calling host_->on_state with DEREGISTERED
^C2019-01-23 19:22:34.596693 [info] Stopping vsomeip application "client-sample".
2019-01-23 19:22:34.599389 [info] utility::auto_configuration_exit: munmap succeeded.

【Device2】:
root@s32v234evb:/mnt/someip/samples# export VSOMEIP_CONFIGURATION=vsomeip-local.json
root@s32v234evb:/mnt/someip/samples# export VSOMEIP_APPLICATION_NAME=service-sample
root@s32v234evb:/mnt/someip/samples# ./response-sample
2018-09-05 03:24:52.368665 [info] Parsed vsomeip configuration in 6ms
2018-09-05 03:24:52.369233 [info] Using configuration file: "vsomeip-local.json".
2018-09-05 03:24:52.369366 [info] Default configuration module loaded.
2018-09-05 03:24:52.369425 [info] Initializing vsomeip application "service-sample".
2018-09-05 03:24:52.369790 [info] SOME/IP client identifier configured. Using 1277 (was: 1277)
2018-09-05 03:24:52.369852 [info] Instantiating routing manager [Host].
2018-09-05 03:24:52.370221 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-09-05 03:24:52.370473 [info] Client [1277] is connecting to [0] at /tmp/vsomeip-0
2018-09-05 03:24:52.370617 [info] Service Discovery enabled. Trying to load module.
2018-09-05 03:24:52.741474 [info] Service Discovery module loaded.
2018-09-05 03:24:52.741891 [info] Application(service-sample, 1277) is initialized (11, 100).
Static routing OFF
2018-09-05 03:24:52.742157 [info] Starting vsomeip application "service-sample" using 2 threads
2018-09-05 03:24:52.742532 [info] main dispatch thread id from application: 1277 (service-sample) is: 7f9e4f21d0 TID: 993
2018-09-05 03:24:52.742586 [info] shutdown thread id from application: 1277 (service-sample) is: 7f9dcf21d0 TID: 994
2018-09-05 03:24:52.742894 [info] Watchdog is disabled!
Application service-sample is registered.
2018-09-05 03:24:52.743103 [info] io thread id from application: 1277 (service-sample) is: 7f9f68b890 TID: 990
2018-09-05 03:24:52.743260 [info] OFFER(1277): [1234.5678:0.0]
2018-09-05 03:24:52.744192 [info] OFFER(1277): [1235.5678:0.0]
2018-09-05 03:24:52.744193 [info] io thread id from application: 1277 (service-sample) is: 7f9ccf21d0 TID: 996
2018-09-05 03:24:52.749561 [info] vSomeIP 2.10.21 | (default)
2018-09-05 03:24:52.749777 [info] Network interface "eth0" state changed: up
2018-09-05 03:24:52.750064 [info] Route "224.244.224.245/32 if: eth0 gw: n/a" state changed: up
2018-09-05 03:24:52.750436 [info] Port configuration missing for [1235.5678]. Service is internal.
2018-09-05 03:24:52.750557 [info] SOME/IP routing ready.
2018-09-05 03:25:02.745021 [info] STOP OFFER(1277): [1234.5678:0.0]
2018-09-05 03:25:02.745478 [info] STOP OFFER(1277): [1235.5678:0.0]
2018-09-05 03:25:02.749762 [info] vSomeIP 2.10.21 | (default)
2018-09-05 03:25:12.746270 [info] OFFER(1277): [1234.5678:0.0]
2018-09-05 03:25:12.746582 [info] OFFER(1277): [1235.5678:0.0]
2018-09-05 03:25:12.746656 [info] Port configuration missing for [1235.5678]. Service is internal.
2018-09-05 03:25:12.749861 [info] vSomeIP 2.10.21 | (default)

Could anyone please help with this ?
Looking forward to your answer.
Thanks a lot. ^_^
Sincerely Cloud +86 19921955259

Subscription_status_handler not called

Hello,

I have the following problem:
A service is offered on the ServiceProvider side. Accordingly, a subscription_status_handler is registered here (register_subscription_status_handler(...)) in order to be aware when a client is subscribed to a specific event group.

On the client side subscribe(...) is called accordingly.

In both cases I can't see an error from the logs. Nevertheless, the subscription_status_handler is never called, although I can see in the log that the subscribe() call is confirmed with a SUBSCRIBE ACK.

If I use a subscription_handler (register_subscription_handler) it is called every time a client subscribed, but unfortunately I don't know which event group it is.

Is there anything else to note here?

PS: The service-discovery is activated.

I hope somebody can help me.
Thank you in advance.

Building vsomeip for 32 bit architechture

Can you provide the procedure for building it for 32 bit architecture in Ubuntu 16. I tried adding CXX flags as -m32, but I am facing issues with boost libraries

Client-Sever communication failed

While trying to run the hello-world client -server code(source-https://github.com/GENIVI/vsomeip/tree/master/examples/hello_world) on two different ubuntu pc the communication between the client-server is failing.
Attached the client-server logs and client-server json file for further reference.
I could see in the server log as
Port configuration missing for [1111.2222]. Service is internal
Need to know what should be the ip address and port no. for the client and server.
whether the client will have its own ip in the json file or the server's ip address or vice-versa.
Any help would be appreciated.

clientjson.txt
clientlog.txt
serverjson.txt
serverlog.txt

Unable to build on OSX High Sierra

cmake runs fine but when I run make, I get:

[ 1%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/client_endpoint_impl.cpp.o
In file included from :357:
:4:9: error: macro name must be an identifier
#define -DBOOST_LOG_DYN_LINK 1

cmake and gcc versions:

cmake version 3.14.4
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Unable to receive "Service NOT available"

Hi,
The subscribe-sample --tcp is not receiving "Service NOT available" from the remote service.

In case of using a the service and the client into the same machine, the event is triggered as it should.

Thank you,
Catalin

Does vsomeip have plans to support Android?

I want to import vsomeip into the android system, but I have encountered many problems, such as shared memory functions are not supported. Does vsomeip have plans to support android system?

FTBS using gcc 7

vsomeip fails to build using gcc7 (fedora26).
I've tried vsomeip 2.5.3 and 2.6.2

Build errors follows:

[ 11%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o
In file included from /home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/netlink_connector.cpp:13:0:
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator==(const vsomeip::nl_endpoint<Protocol>&, const vsomeip::nl_endpoint<Protocol>&)’:
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp:101:28: error: no match for ‘operator==’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
         return e1.sockaddr == e2.sockaddr;
                ~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator!=(const vsomeip::nl_endpoint<Protocol>&, const vsomeip::nl_endpoint<Protocol>&)’:
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp:108:30: error: no match for ‘operator==’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
         return !(e1.sockaddr == e2.sockaddr);
                  ~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator<(const vsomeip::nl_endpoint<Protocol>&, const vsomeip::nl_endpoint<Protocol>&)’:
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp:115:28: error: no match for ‘operator<’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
         return e1.sockaddr < e2.sockaddr;
                ~~~~~~~~~~~~^~~~~~~~~~~~~
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp: In function ‘bool vsomeip::operator>(const vsomeip::nl_endpoint<Protocol>&, const vsomeip::nl_endpoint<Protocol>&)’:
/home/julo/Downloads/vsomeip-2.6.2/implementation/endpoints/src/../include/netlink_connector.hpp:122:28: error: no match for ‘operator<’ (operand types are ‘const sockaddr_nl’ and ‘const sockaddr_nl’)
         return e2.sockaddr < e1.sockaddr;
                ~~~~~~~~~~~~^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/vsomeip.dir/build.make:207: CMakeFiles/vsomeip.dir/implementation/endpoints/src/netlink_connector.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:241: CMakeFiles/vsomeip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

[Consultation] Which IDE in Ubuntu should I use to manage the vsomeip source code?

Dear all,

I am using Ubuntu 16.04,and I want to put the vsomeip source code in an IDE so it would be easy to trace the call to a function or the reference to a variable.
I tried Eclipse and built a Makefile project with existing code but the project cannot be built,showing:
make all
make: *** No rule to make target 'all'. Stop.
I guess it's a problem with the project configuration but don't know how to fix it.
So I wonder is there any recommanded IDE for this vsomeip project?
I want to manage both the source code of vsomeip itself and its application demos.

Thanks a lot. ^_^

Reboot detection vs. TR_SOMEIP_00256

Looking at service_discovery_impl::is_reboot(), I don't think the reboot detection is lining up with TR_SOMEIP_00256, which states:

The information for the reboot flag and the Session ID shall be
kept for multicast and unicast separately as well as for every sender-receiver-relation
(i.e. source address and destination address).

As I can see, the reboot flag is not kept separately for multicast and unicast (the sessionID is kept separately, but not the reboot flag).
This leads to issues once multicast and unicast reboot flags have different values.

How to communicate between two devices with ipv6?

I am testing the hello world sample json config file with ipv6. But it is not working when I am trying to do it on two ubuntu machines. (Setting the unicast address to ipv4 succeeded.)

target 1 ethernet interface (service (world application))
eth0 Link encap:Ethernet HWaddr 00:0c:29:f7:76:3d
inet addr:192.168.232.129 Bcast:192.168.232.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef7:763d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:490 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50521 (50.5 KB) TX bytes:21200 (21.2 KB)

target 2 ethernet interface (client (hello application))
eth0 Link encap:Ethernet HWaddr 00:0c:29:68:ea:d8
inet addr:192.168.232.130 Bcast:192.168.232.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe68:ead8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:404 errors:0 dropped:0 overruns:0 frame:0
TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39038 (39.0 KB) TX bytes:17689 (17.6 KB)

target1 world json file
{
"unicast":"fe80::20c:29ff:fef7:763d",
"logging":
{
"level":"debug",
"console":"true"
},
"applications":
[
{
"name":"hello",
"id":"0x5555"
}
],
"services":
[
{
"service":"0x1111",
"instance":"0x2222",
"unicast":"fe80::20c:29ff:fef7:763d",
"unreliable":"30509"
}
],
"routing":"hello",
"service-discovery":
{
"enable":"false"
}
}

target2 hello json file
{
"unicast":"fe80::20c:29ff:fe68:ead8",
"logging":
{
"level":"debug",
"console":"true"
},
"applications":
[
{
"name":"hello",
"id":"0x5555"
}
],
"services":
[
{
"service":"0x1111",
"instance":"0x2222",
"unicast":"fe80::20c:29ff:fef7:763d",
"unreliable":"30509"
}
],
"routing":"hello",
"service-discovery":
{
"enable":"false"
}
}

How to communicate between two devices with ipv6?
Any advice would be appreciated!!! Thanks a lot!!!

Connect without service discovery

Is it possible to establish a connection between two Linux machines without service discovery? When I trying use vsomeip with service discovery it works. But I need to statically configure IP addresses. I try to implement one-to-one communication and I know both IP addresses before executing.

Registering application: 3 failed. It is already registered!

I'm working with CommonAPI IPC (vsomeip binding) and I've found strange behaviour in working of IPC.
At least such behaviour is not described in documentation (I looked only https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes).

If start more than 2 applications communicating via vsomeip; and after that stop
first started one (according to logs and code review it's HOST routing manager, others are PROXIES), then:

  1. Communication between PROXIES will freeze untill new application is not started (Could you clarify is that OK?)
  2. IPC communication will continue after starting of new application (will be started as HOST).
  3. New HOST routing manager generates ids for new clients begining from 0. If start new application it gets already used client id.

At the 3rd step I have a lot such messages in HOST routing manager log:

  [2017-09-21 20:58:11.728455] [0x00007f9e2ffff700] [error] Registering application: 2 failed. It is already registered!
  [2017-09-21 20:58:11.728658] [0x00007f9e2f7fe700] [info]  REGISTERED_ACK(0002)
  [2017-09-21 20:58:12.828707] [0x00007f9e2f7fe700] [info]  Application/Client 0002 is registering.
  [2017-09-21 20:58:12.828772] [0x00007f9e2ffff700] [error] Registering application: 2 failed. It is already registered!
  [2017-09-21 20:58:12.829487] [0x00007f9e35d93700] [info]  REGISTERED_ACK(0002)
  [2017-09-21 20:58:13.929462] [0x00007f9e2f7fe700] [info]  Application/Client 0002 is registering.
  [2017-09-21 20:58:13.929886] [0x00007f9e2ffff700] [error] Registering application: 2 failed. It is already registered!
  [2017-09-21 20:58:13.930407] [0x00007f9e2f7fe700] [info]  REGISTERED_ACK(0002)
  [2017-09-21 20:58:15.030011] [0x00007f9e2f7fe700] [info]  Application/Client 0002 is registering.
  [2017-09-21 20:58:15.030079] [0x00007f9e2ffff700] [error] Registering application: 2 failed. It is already registered!

log of application started with conflicting client id:

  [2017-09-21 20:58:08.033699] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:11.728563] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:12.828908] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:13.930035] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:15.030237] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:16.130970] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:17.231244] [0x00007f57cb7fe700] [info] Application/Client 2 is registered.
  [2017-09-21 20:58:18.770072] [0x00007f57d72e3800] [info] Stopping vsomeip application "".
  [2017-09-21 20:58:18.770767] [0x00007f57cb7fe700] [info] Application/Client 2 is deregistered.

log of application with this client id:

  [2017-09-21 20:58:13.828746] [0x00007f28415f0700] [warning] Client 0x2 register timeout! : Restart route to stub!
  [2017-09-21 20:58:13.929072] [0x00007f28415f0700] [info]    Client 2 successfully connected to routing  ~> registering..
  [2017-09-21 20:58:14.929274] [0x00007f28415f0700] [warning] Client 0x2 register timeout! : Restart route to stub!
  [2017-09-21 20:58:15.029648] [0x00007f283b7fe700] [info]    Client 2 successfully connected to routing  ~> registering..
  [2017-09-21 20:58:16.029976] [0x00007f28415f0700] [warning] Client 0x2 register timeout! : Restart route to stub!
  [2017-09-21 20:58:16.130399] [0x00007f28415f0700] [info]    Client 2 successfully connected to routing  ~> registering..
  [2017-09-21 20:58:17.130571] [0x00007f28415f0700] [warning] Client 0x2 register timeout! : Restart route to stub!
  [2017-09-21 20:58:17.230908] [0x00007f283b7fe700] [info]    Client 2 successfully connected to routing  ~> registering..
  [2017-09-21 20:58:17.724841] [0x00007f284748d800] [info]    Stopping vsomeip application "".
  [2017-09-21 20:58:18.725383] [0x00007f283bfff700] [warning] 2 registering timeout on stop
  [2017-09-21 20:58:18.725963] [0x00007f28415f0700] [info]    utility::auto_configuration_exit: munmap succeeded.

Attached simple test applications enough for the issue reproducing.
vsomeip-test.zip

Communication between two devices

Hej there,

i followed the vsomeip in 10 minutes tutorial, but can't get any communication between two devices (skipped step Subscribe/Notify ). I tried two Raspberry Pi 3 as well as two virtual machines (Xubuntu 16.04 and Ubuntu 16.04). Though internal (on one device) communication works, also when using a config.json.

I copied the given examples. Changed the routing manager in the client-config.json to World (the name of the service application, which should be responsible for routing - imho)
When using 'local' or the network devices own IP address for unicasting, a payload is transmitted.
Tcpdump or Wireshark show nothing except for the service discovery multicasts.

When running the service on a different device (vm) the client reports:

[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)

Well, indeed the socket /tmp/vsomeip-0 is on a different device in it's /tmp directory.

How can i get this working? Any further information required?

Regards,
Robin

vSOMEIP example does not work correctly.

I'm running vSOMEIP example in the diff devices with ubuntu os. two devices connected by LAN.

devices A vSOMEIP service:

example running by cmd :
env VSOMEIP_CONFIGURATION=../../config/vsomeip-local-tcp-service.json VSOMEIP_APPLICATION_NAME=service-sample ./response-sample
running log info :
app name : service-sample
2019-07-01 20:31:21.944028 [info] Parsed vsomeip configuration in 0ms
2019-07-01 20:31:21.944132 [info] Using configuration file: "../../config/vsomeip-tcp-service.json".
2019-07-01 20:31:21.944183 [info] Default configuration module loaded.
2019-07-01 20:31:21.944210 [info] Initializing vsomeip application "service-sample".
2019-07-01 20:31:21.944358 [info] SOME/IP client identifier configured. Using 1277 (was: 1277)
2019-07-01 20:31:21.944385 [info] Instantiating routing manager [Host].
2019-07-01 20:31:21.944462 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2019-07-01 20:31:21.944577 [info] Client [1277] is connecting to [0] at /tmp/vsomeip-0
2019-07-01 20:31:21.944612 [info] Service Discovery enabled. Trying to load module.
2019-07-01 20:31:21.944887 [info] Service Discovery module loaded.
2019-07-01 20:31:21.945006 [info] Application(service-sample, 1277) is initialized (11, 100).
Static routing OFF
2019-07-01 20:31:21.945073 [info] Starting vsomeip application "service-sample" using 2 threads
2019-07-01 20:31:21.945279 [info] shutdown thread id from application: 1277 (service-sample) is: 7fdf2b418700 TID: 4123
2019-07-01 20:31:21.945371 [info] Watchdog is disabled!
2019-07-01 20:31:21.945307 [info] main dispatch thread id from application: 1277 (service-sample) is: 7fdf2bc19700 TID: 4122
Application service-sample is registered.
2019-07-01 20:31:21.945551 [info] OFFER(1277): [1234.5678:0.0]
2019-07-01 20:31:21.945560 [info] io thread id from application: 1277 (service-sample) is: 7fdf2c4d0e40 TID: 4120
2019-07-01 20:31:21.945600 [info] io thread id from application: 1277 (service-sample) is: 7fdf2a416700 TID: 4125
2019-07-01 20:31:21.945684 [info] vSomeIP 2.10.21 | (default)
2019-07-01 20:31:21.945749 [info] OFFER(1277): [1235.5678:0.0]
2019-07-01 20:31:21.945859 [info] Network interface "enp2s0" state changed: up
2019-07-01 20:31:21.945990 [info] Route "default route (0.0.0.0/0) if: enp2s0 gw: 192.168.5.30" state changed: up
2019-07-01 20:31:21.946231 [info] SOME/IP routing ready.
2019-07-01 20:31:21.946304 [warning] Route "224.244.224.245/32 if: enp2s0 gw: n/a" state changed: up
2019-07-01 20:31:26.505856 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:28.706029 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:30.906159 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:31.945799 [info] vSomeIP 2.10.21 | (default)
2019-07-01 20:31:31.946643 [info] STOP OFFER(1277): [1234.5678:0.0]
2019-07-01 20:31:31.946837 [info] STOP OFFER(1277): [1235.5678:0.0]
2019-07-01 20:31:33.106299 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:35.306428 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:37.506561 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:39.706693 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:41.906838 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:41.945929 [info] vSomeIP 2.10.21 | (default)
2019-07-01 20:31:41.947766 [info] OFFER(1277): [1234.5678:0.0]
2019-07-01 20:31:41.947919 [info] OFFER(1277): [1235.5678:0.0]
2019-07-01 20:31:44.106970 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:46.307099 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:48.507234 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-01 20:31:50.707361 [warning] Didn't receive a multicast SD message for 2200ms.
^C2019-07-01 20:31:51.016388 [info] Stopping vsomeip application "service-sample".
2019-07-01 20:31:51.017109 [info] utility::auto_configuration_exit: munmap succeeded.
2019-07-01 20:31:51.017178 [info] Exiting vsomeip application...

devices B vSOMEIP client:

example running by cmd
env VSOMEIP_CONFIGURATION=../../config/vsomeip-local-tcp-client.json VSOMEIP_APPLICATION_NAME=client-sample ./request-sample
running log info :
app name : client-sample
2019-07-02 08:31:32.083397 [info] Parsed vsomeip configuration in 0ms
2019-07-02 08:31:32.083475 [info] Using configuration file: "../../config/vsomeip-tcp-client.json".
2019-07-02 08:31:32.083488 [info] Default configuration module loaded.
2019-07-02 08:31:32.083546 [info] Initializing vsomeip application "client-sample".
2019-07-02 08:31:32.083607 [info] SOME/IP client identifier configured. Using 1343 (was: 1343)
2019-07-02 08:31:32.083629 [info] Instantiating routing manager [Host].
2019-07-02 08:31:32.083659 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2019-07-02 08:31:32.083721 [info] Client [1343] is connecting to [0] at /tmp/vsomeip-0
2019-07-02 08:31:32.083736 [info] Service Discovery enabled. Trying to load module.
2019-07-02 08:31:32.083857 [info] Service Discovery module loaded.
2019-07-02 08:31:32.083903 [info] Application(client-sample, 1343) is initialized (11, 100).
Client settings [protocol=UDP:quiet=false:cycle=1000]
2019-07-02 08:31:32.083924 [info] Starting vsomeip application "client-sample" using 2 threads
2019-07-02 08:31:32.084068 [info] main dispatch thread id from application: 1343 (client-sample) is: 7fbbfbdd5700 TID: 6126
2019-07-02 08:31:32.084224 [info] shutdown thread id from application: 1343 (client-sample) is: 7fbbfb5d4700 TID: 6127
2019-07-02 08:31:32.084277 [info] Watchdog is disabled!
Service [1234.5678] is NOT available.
Service [1235.5678] is NOT available.
2019-07-02 08:31:32.084393 [info] io thread id from application: 1343 (client-sample) is: 7fbbfc684800 TID: 6124
2019-07-02 08:31:32.084417 [info] REQUEST(1343): [1234.5678:255.4294967295]
2019-07-02 08:31:32.084457 [info] io thread id from application: 1343 (client-sample) is: 7fbbfa5d2700 TID: 6129
2019-07-02 08:31:32.084639 [info] vSomeIP 2.10.21 | (default)
2019-07-02 08:31:32.084672 [info] Sent READY to systemd watchdog
2019-07-02 08:31:32.084715 [info] Network interface "eth1" state changed: up
2019-07-02 08:31:32.084750 [info] Route "default route (0.0.0.0/0) if: eth1 gw: 192.168.5.30" state changed: up
2019-07-02 08:31:32.084875 [info] SOME/IP routing ready.
2019-07-02 08:31:32.084934 [warning] Route "224.244.224.245/32 if: eth1 gw: n/a" state changed: up
Service [1234.5678] is available.
2019-07-02 08:31:32.113485 [error] Routing info for remote service could not be found! (1343): [1234.5678.0421] 0001
Client/Session [1343/0001] sent a request to Service [1234.5678]
Service [1235.5678] is available.
2019-07-02 08:31:34.995823 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-02 08:31:39.754184 [warning] tcp_client_endpoint receive_cbk: End of file(2) local: 192.168.5.30:41234 remote: 192.168.5.20:30509
2019-07-02 08:31:39.754381 [warning] tcp_client_endpoint receive_cbk restarting.
Service [1234.5678] is NOT available.
2019-07-02 08:31:39.754768 [warning] tce::restart: local: remote: 192.168.5.20:30509
Service [1235.5678] is NOT available.
2019-07-02 08:31:41.955513 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-02 08:31:42.085020 [info] vSomeIP 2.10.21 | (default)
2019-07-02 08:31:44.157430 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-02 08:31:46.357795 [warning] Didn't receive a multicast SD message for 2200ms.
2019-07-02 08:31:48.558917 [warning] Didn't receive a multicast SD message for 2200ms.
Service [1235.5678] is available.
Service [1234.5678] is available.
2019-07-02 08:31:49.797453 [error] Routing info for remote service could not be found! (1343): [1234.5678.0421] 0001
Client/Session [1343/0001] sent a request to Service [1234.5678]
2019-07-02 08:31:52.085135 [info] vSomeIP 2.10.21 | (default)
^C2019-07-02 08:31:54.177018 [info] Stopping vsomeip application "client-sample".
2019-07-02 08:31:54.177318 [info] Sent STOPPING to systemd watchdog
2019-07-02 08:31:54.177613 [info] utility::auto_configuration_exit: munmap succeeded.
2019-07-02 08:31:54.177643 [info] Exiting vsomeip application...

device B client running error with this message:

2019-07-02 08:31:49.797453 [error] Routing info for remote service could not be found! (1343): [1234.5678.0421] 0001
And have no request send to service

Routing information has been added:
sudo route add -host 224.244.224.245 dev eth1
sudo route add -net 224.0.0.0/4 dev eth1

vsomeip error "libvsomeip-cfg.so.2 "

I try to run the "first application" from the vsomeip git hub page and I get the following error when i do ./service-example :

[0x00007f2275b62740] [error] Loading failed: (libvsomeip-cfg.so.2: cannot open shared object file: No such file or directory)
Service Discovery module could not be loaded!

I'm running it on a VM

Service crashes on port scan

I am using vsomeip on Windows 7 with boost_1_65_1 and it works but I tride https://www.advanced-port-scanner.com/ to scan TCP port 51234 and the service crashed with error "vector subscript out of range". My guess is that in \vsomeip-2.10.21\implementation\endpoints\src\local_server_endpoint_impl.cpp line 323 the index used is out of range.

Help required on porting the implementation of netlink_connector on QNX

Hello,

I am trying to port the implementation of vsomeip on QNX. For building the apps I had commented the code of netlink_connector as it was including #include <linux/netlink.h> and #include <linux/rtnetlink.h>. I am able to set up the communication with server running on QNX and client on LINUX but not the other way round. From what I understand the reason is that the client is using the code of netlink_connector to listen to the ethernet port. I will be grateful if somebody can advice on how to do this for QNX.

Thanks

Project does not build on Windows

I did what is written in https://docs.microsoft.com/en-us/cpp/vcpkg and managed to get a .sln but the code has errors.
Is it possible someone to provide the way to build vsomeip for Windows?

First error is
Error C1083 Cannot open include file: 'boost/asio/detail/addressof.hpp': No such file or directory vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_ext.hpp 29

'boost/asio/detail/addressof.hpp' such a file does not exist in the latest boost package(boost_1_67_0.7z). I removed the include for it.

After this a lot of new errors:
Severity Code Description Project File Line Suppression State

Error C2660 'boost::asio::detail::socket_ops::poll_write': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 195

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 38

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "bind" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 41

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 48

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 55

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 60

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "native" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 65

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "is_open" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 89

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "shutdown" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 91

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "shutdown_both" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 91

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "close" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 92

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "is_open" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 99

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "reuse_address" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 183

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 186

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "reuse_address" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 196

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 199

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 238

Error (active) E0135 class "boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp, boost::asio::datagram_socket_service_extboost::asio::ip::udp>" has no member "set_option" vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 242

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\impl\socket_ops_ext.ipp 141

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvfrom_op_ext.hpp 94

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recv_op_ext.hpp 85

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvmsg_op_ext.hpp 86

Error C2660 'boost::asio::detail::socket_ops::poll_write': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 195

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 266

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 347

Error C2977 'boost::asio::basic_socket': too many template arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 47

Error C2955 'boost::asio::basic_socket': use of class template requires template argument list vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 48

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\impl\socket_ops_ext.ipp 141

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvfrom_op_ext.hpp 94

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recv_op_ext.hpp 85

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvmsg_op_ext.hpp 86

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 266

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 347

Error C2977 'boost::asio::basic_socket': too many template arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 47

Error C2955 'boost::asio::basic_socket': use of class template requires template argument list vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 48

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\impl\socket_ops_ext.ipp 141

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvfrom_op_ext.hpp 94

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recv_op_ext.hpp 85

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvmsg_op_ext.hpp 86

Error C2660 'boost::asio::detail::socket_ops::poll_write': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 195

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 266

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 347

Error C2977 'boost::asio::basic_socket': too many template arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 47

Error C2955 'boost::asio::basic_socket': use of class template requires template argument list vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 48

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 38

Error C2039 'bind': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 41

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 48

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 55

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 60

Error C2039 'native': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 65

Error C2039 'is_open': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 89

Error C2039 'shutdown': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 91

Error C2039 'shutdown_both': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 91

Error C2065 'shutdown_both': undeclared identifier vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 91

Error C2039 'close': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 92

Error C2039 'is_open': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 99

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error C2039 'reuse_address': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error C3861 'reuse_address': identifier not found vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 182

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 183

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 183

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 186

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 186

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error C2039 'reuse_address': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error C3861 'reuse_address': identifier not found vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 195

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 196

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 196

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 199

Error C2039 '__this': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 199

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 238

Error C2039 'set_option': is not a member of 'boost::asio::basic_datagram_socket_ext<boost::asio::ip::udp,boost::asio::datagram_socket_service_ext>' vsomeip \vsomeip-2.10.21\implementation\endpoints\src\udp_server_endpoint_impl.cpp 242

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\impl\socket_ops_ext.ipp 141

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvfrom_op_ext.hpp 94

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recv_op_ext.hpp 85

Error C2061 syntax error: identifier 'io_service_impl' vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_recvmsg_op_ext.hpp 86

Error C2660 'boost::asio::detail::socket_ops::poll_write': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 195

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 266

Error C2660 'boost::asio::detail::socket_ops::poll_read': function does not take 3 arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\detail\reactive_socket_service_base_ext.hpp 347

Error C2977 'boost::asio::basic_socket': too many template arguments vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 47

Error C2955 'boost::asio::basic_socket': use of class template requires template argument list vsomeip \vsomeip-2.10.21\implementation\helper\boost\asio\basic_datagram_socket_ext.hpp 48

Register subscription status handler

Is it possible to register a subscription status handler from CommonAPI/SomeIP?

In vsomeip, the function application_impl::register_subscription_status_handler registers
all subscriptions, but when ACK is received, the function application_impl::deliver_subscription_state is never reached.
The received event id is always ANY_EVENT in the function application_impl::on_subscription_status, , which doesn't match the event ids saved in subscription_state map. So for all ACKs I get errors like:
[trace] 1343 application_impl::on_subscription_status: Received a subscription status without subscribe for 65/1/cc/ffff/error=0

How to set payload when using offer_event with a none_zero _cycle parameter?Thanks!

Dear all,

According to the defination of offer_event in application.hpp:
/** * * \brief Offers a SOME/IP event or field. * * A user application must call this method for each event/field it wants * to offer. The event is registered at the vsomeip routing component that * enables other applications to subscribe to the event/field as well as * to get and set the field value. * * This version of offer_event adds some additional functionalities: * - It is possible to configure a cycle time. The notification message of * this event is then resent cyclically. * - The parameter _change_resets_cycle is available to control how event * notification works in case the data is updated by the application. If * set to true, an update of the data immediately leads to a * notification. Otherwise, the updated data is sent only after the * expiration of the cycle time. * - It is possible to specify callback function that can be used to * implement a predicate that determines whether or not two event values * are considered different. Field notifications are only sent if the * predicate evaluates to true (or if a notify method is called with the * force flag being set). * * \param _service Service identifier of the interface containing the * event. * \param _instance Instance identifier of the interface containing the * event. * \param _event Event identifier of the offered event. * \param _eventgroups List of eventgroup identifiers of the eventgroups * that contain the event. * \param _is_field Selector for event or field. * \param _cycle Sets the cycle time of the event. If nonzero, data is * resent cyclically after the cycle time expired. * \param _change_resets_cycle Tells if a change immediately leads to * a notification. * \param _epsilon_change_func Predicate that determines if two given * payloads are considered different. * * Note: The different versions of offer_event exist for compatibility * reasons. They will be merged with the next major vsomeip version. */ virtual void offer_event(service_t _service, instance_t _instance, event_t _event, const std::set<eventgroup_t> &_eventgroups, bool _is_field, std::chrono::milliseconds _cycle, bool _change_resets_cycle, const epsilon_change_func_t &_epsilon_change_func) = 0;
if I set a none zero _cycle parameter, the notification message would be resent cyclically. So I understanded it as I don't need to call notify manually in this situation. But the notify function need to know the updated data (payload). So if I don't call notify manually,how could the notify function know what the payload is? Is there any function to call to set the payload for my offer_event?

I checked the source code but only found a function named set_payload which pathetically could not be called from user app.
Any advice would be appreciated!!! Thanks a lot!!!

[email protected]
+86 19921955259

Error building with latest Boost 1.66

The latest boost library comes with interface changes that are not backward compatible with VsomeIp implementation. The VSomeIp README file says supported boost version is => 1.55, but this is not valid at the moment.

Below are some errors from my build attempt:

[ 1%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/endpoint_impl.cpp.o In file included from /home/samueli/workspace/vsomeip/implementation/helper/boost/asio/datagram_socket_service_ext.hpp:33:0, from /home/samueli/workspace/vsomeip/implementation/helper/boost/asio/basic_datagram_socket_ext.hpp:24, from /home/samueli/workspace/vsomeip/implementation/helper/boost/asio/ip/udp_ext.hpp:20, from /home/samueli/workspace/vsomeip/implementation/endpoints/src/endpoint_impl.cpp:8: /home/samueli/workspace/vsomeip/implementation/helper/boost/asio/detail/reactive_socket_service_ext.hpp:29:10: fatal error: boost/asio/detail/addressof.hpp: No such file or directory #include <boost/asio/detail/addressof.hpp> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[2]: *** [CMakeFiles/vsomeip.dir/build.make:135: CMakeFiles/vsomeip.dir/implementation/endpoints/src/endpoint_impl.cpp.o] Error 1 [ 2%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_client_endpoint_impl.cpp.o /home/samueli/workspace/vsomeip/implementation/endpoints/src/local_client_endpoint_impl.cpp: In member function ‘virtual void vsomeip::local_client_endpoint_impl::connect()’: /home/samueli/workspace/vsomeip/implementation/endpoints/src/local_client_endpoint_impl.cpp:128:64: error: ‘class boost::asio::basic_stream_socket<boost::asio::local::stream_protocol>’ has no member named ‘native’ credentials::send_credentials(socket_->native(),

[ 4%] Building CXX object CMakeFiles/vsomeip.dir/implementation/endpoints/src/local_server_endpoint_impl.cpp.o /home/samueli/workspace/vsomeip/implementation/endpoints/src/local_server_endpoint_impl.cpp: In constructor ‘vsomeip::local_server_endpoint_impl::local_server_endpoint_impl(std::shared_ptr<vsomeip::endpoint_host>, vsomeip::server_endpoint_impl<boost::asio::local::stream_protocol>::endpoint_type, boost::asio::io_service&, uint32_t, uint32_t, vsomeip::configuration::endpoint_queue_limit_t)’: /home/samueli/workspace/vsomeip/implementation/endpoints/src/local_server_endpoint_impl.cpp:52:53: error: ‘boost::asio::local::stream_protocol::acceptor {aka class boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>}’ has no member named ‘native’ credentials::activate_credentials(acceptor_.native());

/home/samueli/workspace/vsomeip/implementation/endpoints/src/local_server_endpoint_impl.cpp:211:44: error: ‘vsomeip::server_endpoint_impl<boost::asio::local::stream_protocol>::socket_type {aka class boost::asio::basic_stream_socket<boost::asio::local::stream_protocol>}’ has no member named ‘native’ new_connection_socket.native(), uid, gid); ^~~~~~

Is anyone looking into updating vsomeip to fix this issue?

TCP example and large data with UDP

Hi

I'm trying to transfer data between devices, so far I can only transfer small data (<1400B) with UDP. Autosar's specification mentioned someip should be able to transfer large data with "Segmentation functionality (SOME/IP-TP)", but I have no idea how to use it.

As for TCP, I can't even get the request/response examples working. (The subscribe/notification examples seem to work) The service and client were connected, but when the client tries to send request, the following error occur:
[error] Routing info for remote service could not be found! (1343): [1234.5678.0421] 0001

I tried modify some settings in the json file with no luck.
I'm new to this, any help would be appreciated!

How to create a Service which offers an event as well as subscribes for another event using VSOMEIP

I created 2 services:

  1. hybrid_service:
    This service would be the routing manager. It would offer an event and also subscribes to an event offered by hybrid_client

  2. hybrid_client:
    This service would NOT be the routing manager. It offers an event which first_service is interested in.

Both the services are able to find each other and even connect but when hybrid_client notifies the hybrid_service with events, hybrid_service is unable to receive the events.

A strange log that gets printed in hybrid_service side is as follows:
2019-03-28 19:52:06.212659 [info] Notify one event 778 to client 6789 failed. Event payload not set!

I am attaching the code, config and code files here.
Any help in what wrong I am doing would be appreciated.

hybrid.zip

[error]Routing info for remote service could not be found! (1313): [1234.5678.0421] 0001

Dear all,

I followed the Tutorial in this page:
https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes#devices
In testing demo [Request/Reponse], I met a problem I cann't solve.
And I've been stuck here for more than three days, so I am sincerely in sore need for any of your help.
Please contact me if you can help me in any ways.Thanks a lot!
Email: [email protected]
TEL: +86 19921955259

I want the demo to run on two devices:
[Device 1]: PC 64bit VMware Ubuntu16.04
[Device 2]: EVB ARM64bit Linux4.13.4
In reference to the Tutorial, I only changed the unicast IP address to 192.168.0.5(service) and 192.168.0.4(client) in .json file. And I do route add 224.224.224.245 dev eth0 on both sides.
I didn't change anything else but i got the error on client side as shown in title.
Here are the running log: (I started sevice first.)
【Device 2 service log】
export VSOMEIP_CONFIGURATION=rr_service.json
export VSOMEIP_APPLICATION_NAME=service-exmple
./service-example
2018-09-05 03:27:44.420443 [info] Parsed vsomeip configuration in 4ms
2018-09-05 03:27:44.420992 [info] Using configuration file: "rr_service.json".
2018-09-05 03:27:44.421090 [info] Default configuration module loaded.
2018-09-05 03:27:44.421146 [info] Initializing vsomeip application "World".
2018-09-05 03:27:44.421498 [info] SOME/IP client identifier configured. Using 1212 (was: 1212)
2018-09-05 03:27:44.421556 [info] Instantiating routing manager [Host].
2018-09-05 03:27:44.421852 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-09-05 03:27:44.422060 [info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
2018-09-05 03:27:44.422138 [info] Service Discovery enabled. Trying to load module.
2018-09-05 03:27:45.034345 [info] Service Discovery module loaded.
2018-09-05 03:27:45.034785 [info] Application(World, 1212) is initialized (11, 100).
2018-09-05 03:27:45.034877 [info] OFFER(1212): [1234.5678:0.0]
2018-09-05 03:27:45.035226 [info] Starting vsomeip application "World" using 2 threads
2018-09-05 03:27:45.035680 [info] shutdown thread id from application: 1212 (World) is: 7fbdf891d0 TID: 997
2018-09-05 03:27:45.035727 [info] main dispatch thread id from application: 1212 (World) is: 7fbe7891d0 TID: 996
2018-09-05 03:27:45.035958 [info] Watchdog is disabled!
2018-09-05 03:27:45.036108 [info] io thread id from application: 1212 (World) is: 7fbf122890 TID: 995
2018-09-05 03:27:45.036163 [info] io thread id from application: 1212 (World) is: 7fbcf891d0 TID: 999
2018-09-05 03:27:45.043158 [info] vSomeIP 2.10.21 | (default)
2018-09-05 03:27:45.043636 [info] Network interface "eth0" state changed: up
2018-09-05 03:27:45.044058 [info] Route "default route (0.0.0.0/0) if: eth0 gw: 192.168.0.1" state changed: up
2018-09-05 03:27:45.044745 [info] SOME/IP routing ready.
2018-09-05 03:27:45.045008 [warning] Route "224.224.224.245/32 if: eth0 gw: n/a" state changed: up
2018-09-05 03:27:55.043298 [info] vSomeIP 2.10.21 | (default)
2018-09-05 03:27:57.229318 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:27:59.429635 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:28:01.629848 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:28:03.830072 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:28:05.043451 [info] vSomeIP 2.10.21 | (default)
2018-09-05 03:28:06.030368 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:28:08.230573 [warning] Didn't receive a multicast SD message for 2200ms.
2018-09-05 03:28:10.430785 [warning] Didn't receive a multicast SD message for 2200ms.
^C2018-09-05 03:28:12.038404 [info] Stopping vsomeip application "World".
2018-09-05 03:28:12.039255 [info] utility::auto_configuration_exit: munmap succeeded.
2018-09-05 03:28:12.039410 [info] Exiting vsomeip application...

【Device 1 client log】
export VSOMEIP_CONFIGURATION=rr_client.json
export VSOMEIP_APPLICATION_NAME=client-example
./client-example
2019-01-26 12:27:28.503500 [info] Parsed vsomeip configuration in 13ms
2019-01-26 12:27:28.503774 [info] Using configuration file: "rr_client.json".
2019-01-26 12:27:28.503824 [info] Default configuration module loaded.
2019-01-26 12:27:28.504045 [info] Initializing vsomeip application "Hello".
2019-01-26 12:27:28.504353 [info] SOME/IP client identifier configured. Using 1313 (was: 1313)
2019-01-26 12:27:28.504447 [info] Instantiating routing manager [Host].
2019-01-26 12:27:28.506022 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2019-01-26 12:27:28.506386 [info] Client [1313] is connecting to [0] at /tmp/vsomeip-0
2019-01-26 12:27:28.506494 [info] Service Discovery enabled. Trying to load module.
2019-01-26 12:27:28.532966 [info] Service Discovery module loaded.
2019-01-26 12:27:28.533192 [info] Application(Hello, 1313) is initialized (11, 100).
2019-01-26 12:27:28.533348 [info] REQUEST(1313): [1234.5678:255.4294967295]
2019-01-26 12:27:28.533704 [info] Starting vsomeip application "Hello" using 2 threads
2019-01-26 12:27:28.535067 [info] main dispatch thread id from application: 1313 (Hello) is: 7f9b42801700 TID: 2940
2019-01-26 12:27:28.535801 [info] Watchdog is disabled!
2019-01-26 12:27:28.536112 [info] shutdown thread id from application: 1313 (Hello) is: 7f9b42000700 TID: 2941
2019-01-26 12:27:28.536194 [info] io thread id from application: 1313 (Hello) is: 7f9b455fc740 TID: 2938
CLIENT: Service [1234.5678] is NOT available.
2019-01-26 12:27:28.536527 [info] vSomeIP 2.10.21 | (default)
2019-01-26 12:27:28.536614 [error] Routing info for remote service could not be found! (1313): [1234.5678.0421] 0001
2019-01-26 12:27:28.536753 [info] Network interface "ens33" state changed: up
2019-01-26 12:27:28.536794 [info] io thread id from application: 1313 (Hello) is: 7f9b40ffe700 TID: 2943
2019-01-26 12:27:28.536864 [info] Route "default route (0.0.0.0/0) if: ens33 gw: 192.168.0.1" state changed: up
2019-01-26 12:27:28.540263 [info] SOME/IP routing ready.
2019-01-26 12:27:28.540501 [warning] Route "224.224.224.245/32 if: ens33 gw: n/a" state changed: up
CLIENT: Service [1234.5678] is available.
2019-01-26 12:27:38.536993 [info] vSomeIP 2.10.21 | (default)
2019-01-26 12:27:46.792381 [warning] Didn't receive a multicast SD message for 2200ms.
2019-01-26 12:27:48.537441 [info] vSomeIP 2.10.21 | (default)
2019-01-26 12:27:48.560026 [info] update_routing_info: elapsed=1000 : delete service/instance 1234.5678
CLIENT: Service [1234.5678] is NOT available.
2019-01-26 12:27:49.002506 [warning] Didn't receive a multicast SD message for 2200ms.
2019-01-26 12:27:51.212555 [warning] Didn't receive a multicast SD message for 2200ms.
^C2019-01-26 12:27:52.181039 [info] Stopping vsomeip application "Hello".
2019-01-26 12:27:52.183005 [info] utility::auto_configuration_exit: munmap succeeded.
2019-01-26 12:27:52.183206 [info] Exiting vsomeip application...

Unable to communicate between two HOSTs

I build the libraries and the examples. I was able to set up a communication on the same host. But not between two separate devices.
I configured the network as described (see [1] and [2]). But when I run [3] and [4] there is no communication over the network. also there SD 244.244.244.245 is quiet.

[1] Service:
$ ip addr show dev enx0080c83cef81
6: enx0080c83cef81: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:80:c8:3c:ef:81 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/16 brd 192.168.255.255 scope global enx0080c83cef81
valid_lft forever preferred_lft forever
inet6 fe80::70a9:4e3a:2659:1bda/64 scope link
valid_lft forever preferred_lft forever

$ route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface

192.168.0.0 * 255.255.0.0 U 100 0 0 enx0080c83cef81
224.224.224.245 * 255.255.255.255 UH 0 0 0 enx0080c83cef81

$ head ../../config/vsomeip-tcp-service.json
{
"unicast" : "192.168.1.2",
"netmask" : "255.255.0.0",
"logging" :
{
"level" : "debug",
"console" : "true",
"file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
"dlt" : "false"
},

[2] Client:
$ ip addr show dev enp0s31f6
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether c8:d3:ff:6c:de:9a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/16 brd 192.168.255.255 scope global enp0s31f6
valid_lft forever preferred_lft forever
inet6 fe80::982:347a:a527:95d3/64 scope link
valid_lft forever preferred_lft forever

$ route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 1000 0 0 enp0s31f6
192.168.0.0 * 255.255.0.0 U 100 0 0 enp0s31f6
244.244.244.245 * 255.255.255.255 UH 0 0 0 enp0s31f6

$ head ../../config/vsomeip-tcp-client.json
{
"unicast" : "192.168.1.1",
"netmask" : "255.255.0.0",
"logging" :
{
"level" : "info",
"console" : "true",
"file" : { "enable" : "true", "path" : "/var/log/vsomeip.log" },
"dlt" : "true"
},

[3] client:
$ vsomeip/build/examples$ env VSOMEIP_CONFIGURATION=../../config/vsomeip-tcp-service.json VSOMEIP_APPLICATION_NAME=service-sample ./response-sample
2018-08-06 17:46:03.896483 [info] Parsed vsomeip configuration in 2ms
2018-08-06 17:46:03.897237 [info] Using configuration file: "../../config/vsomeip-tcp-service.json".
2018-08-06 17:46:03.897319 [info] Default configuration module loaded.
2018-08-06 17:46:03.897349 [info] Initializing vsomeip application "service-sample".
2018-08-06 17:46:03.897508 [info] SOME/IP client identifier configured. Using 1277 (was: 1277)
2018-08-06 17:46:03.897538 [info] Instantiating routing manager [Host].
2018-08-06 17:46:03.897624 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-08-06 17:46:03.897783 [info] Client [1277] is connecting to [0] at /tmp/vsomeip-0
2018-08-06 17:46:03.897882 [info] Service Discovery enabled. Trying to load module.
2018-08-06 17:46:03.898705 [info] Service Discovery module loaded.
2018-08-06 17:46:03.898859 [info] Application(service-sample, 1277) is initialized (11, 100).
Static routing OFF
2018-08-06 17:46:03.898966 [info] Starting vsomeip application "service-sample" using 2 threads
2018-08-06 17:46:03.899223 [info] shutdown thread id from application: 1277 (service-sample) is: 7f1ba7e9d700 TID: 17438
2018-08-06 17:46:03.899324 [info] Watchdog is disabled!
2018-08-06 17:46:03.899526 [info] io thread id from application: 1277 (service-sample) is: 7f1bab4b5740 TID: 17435
2018-08-06 17:46:03.899583 [info] io thread id from application: 1277 (service-sample) is: 7f1ba6e9b700 TID: 17440
2018-08-06 17:46:03.899773 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:46:03.899922 [info] Network interface "enx0080c83cef81" state changed: up
2018-08-06 17:46:03.900771 [info] main dispatch thread id from application: 1277 (service-sample) is: 7f1ba869e700 TID: 17437
Application service-sample is registered.
2018-08-06 17:46:03.901006 [info] OFFER(1277): [1234.5678:0.0]
2018-08-06 17:46:03.901394 [info] OFFER(1277): [1235.5678:0.0]
2018-08-06 17:46:13.899908 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:46:13.903145 [info] STOP OFFER(1277): [1234.5678:0.0]
2018-08-06 17:46:13.903309 [info] STOP OFFER(1277): [1235.5678:0.0]
2018-08-06 17:46:23.900479 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:46:23.906339 [info] OFFER(1277): [1234.5678:0.0]
2018-08-06 17:46:23.906683 [info] OFFER(1277): [1235.5678:0.0]

[4] service:
$ vsomeip/build/examples$ env VSOMEIP_CONFIGURATION=../../config/vsomeip-tcp-client.json VSOMEIP_APPLICATION_NAME=client-sample ./request-sample
2018-08-06 17:52:35.999589 [info] Parsed vsomeip configuration in 0ms
2018-08-06 17:52:35.999686 [info] Using configuration file: "../../config/vsomeip-tcp-client.json".
2018-08-06 17:52:35.999712 [info] Default configuration module loaded.
2018-08-06 17:52:35.999729 [info] Initializing vsomeip application "client-sample".
2018-08-06 17:52:35.999800 [info] SOME/IP client identifier configured. Using 1343 (was: 1343)
2018-08-06 17:52:35.999815 [info] Instantiating routing manager [Host].
2018-08-06 17:52:35.999855 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2018-08-06 17:52:35.999928 [info] Client [1343] is connecting to [0] at /tmp/vsomeip-0
2018-08-06 17:52:35.999948 [info] Service Discovery enabled. Trying to load module.
2018-08-06 17:52:36.000151 [info] Service Discovery module loaded.
2018-08-06 17:52:36.000205 [info] Application(client-sample, 1343) is initialized (11, 100).
Client settings [protocol=UDP:quiet=false:cycle=1000]
2018-08-06 17:52:36.000250 [info] Starting vsomeip application "client-sample" using 2 threads
2018-08-06 17:52:36.000368 [info] shutdown thread id from application: 1343 (client-sample) is: 7fa02982d700 TID: 17760
2018-08-06 17:52:36.000375 [info] main dispatch thread id from application: 1343 (client-sample) is: 7fa02a02e700 TID: 17759
2018-08-06 17:52:36.000446 [info] Watchdog is disabled!
Service [1234.5678] is NOT available.
Service [1235.5678] is NOT available.
2018-08-06 17:52:36.000536 [info] io thread id from application: 1343 (client-sample) is: 7fa02ce59740 TID: 17756
2018-08-06 17:52:36.000540 [info] REQUEST(1343): [1234.5678:255.4294967295]
2018-08-06 17:52:36.000551 [info] io thread id from application: 1343 (client-sample) is: 7fa02882b700 TID: 17762
2018-08-06 17:52:36.000658 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:52:36.000726 [info] Network interface "enp0s31f6" state changed: up
2018-08-06 17:52:46.001025 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:52:56.001504 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:53:06.002083 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:53:16.002653 [info] vSomeIP 2.10.21 | (default)
2018-08-06 17:53:26.003242 [info] vSomeIP 2.10.21 | (default)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.