readme
1# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
2# This Source Code Form is subject to the terms of the Mozilla Public
3# License, v. 2.0. If a copy of the MPL was not distributed with this
4# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6Build instructions for Hello World example
7------------------------------------------
8
91. Build whole project at first:
10________________________________
11cd <root directory of vSomeIP-Lib>$:
12
13mkdir build
14cd build
15cmake ..
16make
17sudo make install
18
192. Build hello_world target
20___________________________
21cmake --build . --target hello_world
22cd ./examples/hello_world/
23make
24
25Running Hello World Example
26---------------------------
27
28The Hello World Example should be run on the same host.
29The network addresses within the configuration files need to be adapted to match
30the devices addresses.
31
32To start the hello world client and service from their build-directory do:
33
34HOST1:
35VSOMEIP_CONFIGURATION=../helloworld-local.json \
36VSOMEIP_APPLICATION_NAME=hello_world_service \
37./hello_world_service
38
39HOST1:
40VSOMEIP_CONFIGURATION=../helloworld-local.json \
41VSOMEIP_APPLICATION_NAME=hello_world_client \
42./hello_world_client
43
44Expected output service
45-----------------------
462015-04-01 11:31:13.248437 [info] Using configuration file: ../helloworld-local.json
472015-04-01 11:31:13.248766 [debug] Routing endpoint at /tmp/vsomeip-0
482015-04-01 11:31:13.248913 [info] Service Discovery disabled. Using static routing information.
492015-04-01 11:31:13.248979 [debug] Application(hello_world_service, 4444) is initialized.
502015-04-01 11:31:22.705010 [debug] Application/Client 5555 got registered!
51
52Expected output client
53----------------------
542015-04-01 11:31:22.704166 [info] Using configuration file: ../helloworld-local.json
552015-04-01 11:31:22.704417 [debug] Connecting to [0] at /tmp/vsomeip-0
562015-04-01 11:31:22.704630 [debug] Listening at /tmp/vsomeip-5555
572015-04-01 11:31:22.704680 [debug] Application(hello_world_client, 5555) is initialized.
58Sending: World
59Received: Hello World
60
readme_android