"SOME/IP"- The client is capable of discovering the presence and absence of the server. But the client is not initiating the function call (rpc).

1,380 views
Skip to first unread message

siddhartha v

unread,
Jan 22, 2020, 3:26:48 AM1/22/20
to Franca

I have just started working on SOME/IP protocol. “Our objective is having two PCs connected With the ethernet cable and achieve inter-PC communication”.
The current setup:

  1. 2 PCs with Ubuntu 18.04
  2. Common API, VsomeIP, Boost library, SOME/IP has been installed.
  3. Configured static IP(locally) for both the PCs.

Followed below links as a part of our study:

[1] https://genivi-oss.atlassian.net/wiki/spaces/COMMONAPICPP/pages/547232 /CommonAPI+C+SOME+IP+in+10+minutes
[2] https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes

We have successfully achieved the Client-Server communication on a single machine for both VSOMEIP alone[2] and also common API SOME/IP[1]. But during inter-PC communication we are facing a serious issue.

i.e. On running Client and Server on two different machines connected through ethernet cable, The client is capable of discovering the presence and absence of the server. But the client is not capable of initiating the function call (rpc).

We thought the issue might be in the json file and tried a multiple experiments on json for a week. But even then we were not able to achieve communication. (We are using the JSON as given in the link [2] )

Service.json

     {
"unicast" : "192.168.56.11",
"logging" :
{ 
    "level" : "debug",
    "console" : "true",
    "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
    "dlt" : "false"
},
"applications" : 
[
    {
        "name" : "World",
        "id" : "0x1212"
    }
],
"services" :
[
    {
        "service" : "0x1234",
        "instance" : "0x5678",
        "unreliable" : "30509"
    }
],
"routing" : "World",
"service-discovery" :
{
    "enable" : "true",
    "multicast" : "224.224.224.225",
    "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.json:

        {
"unicast" : "192.168.56.10",
"logging" :
{
    "level" : "debug",
    "console" : "true",
    "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" },
    "dlt" : "false"
},
"applications" : 
[
    {
        "name" : "Hello",
        "id" : "0x1313"
    } 
],
"routing" : "Hello",
"service-discovery" :
{
    "enable" : "true",
    "multicast" : "224.224.224.245",
    "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"
}

}

Service-log:

     2020-01-21 16:05:15.525192 [info] Parsed vsomeip configuration in 0ms
     2020-01-21 16:05:15.525242 [info] Using configuration file: "../vsomeip.json".
     2020-01-21 16:05:15.525255 [info] Default configuration module loaded.
    2020-01-21 16:05:15.525262 [info] Initializing vsomeip application "World".
    2020-01-21 16:05:15.525324 [info] SOME/IP client identifier configured. Using 1212 (was: 1212) and UID/GID=1000/1000
    2020-01-21 16:05:15.525335 [info] Instantiating routing manager [Host].
    2020-01-21 16:05:15.525362 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
    2020-01-21 16:05:15.525421 [info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
    2020-01-21 16:05:15.525436 [info] Service Discovery enabled. Trying to load module.
    2020-01-21 16:05:15.525636 [info] Service Discovery module loaded.
    2020-01-21 16:05:15.525668 [info] Application(World, 1212) is initialized (11, 100).
    2020-01-21 16:05:15.525752 [info] OFFER(1212): [1234.5678:1.0]
    2020-01-21 16:05:15.525804 [info] Starting vsomeip application "World" (1212) using 2 threads I/O nice 255
    Successfully Registered Service!
     Waiting for calls... (Abort with CTRL+C)
   2020-01-21 16:05:15.525981 [info] Watchdog is disabled!
   2020-01-21 16:05:15.525996 [info] main dispatch thread id from application: 1212 (World) is: 7fcb8ab6f700 TID: 30817
   2020-01-21 16:05:15.526026 [info] io thread id from application: 1212 (World) is: 7fcb8b370700 TID: 30816
   2020-01-21 16:05:15.526015 [info] shutdown thread id from application: 1212 (World) is: 7fcb8a36e700 TID: 30818
   2020-01-21 16:05:15.526050 [info] io thread id from application: 1212 (World) is: 7fcb8936c700 TID: 30820
   2020-01-21 16:05:15.526172 [info] vSomeIP 2.14.16 | (default)
   2020-01-21 16:05:15.526219 [info] Network interface "enp1s0" state changed: up
    2020-01-21 16:05:15.526266 [info] Route "default route (0.0.0.0/0) if: enp1s0 gw: 10.30.87.1" state changed: up
   2020-01-21 16:05:15.526295 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992
   2020-01-21 16:05:15.526341 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992
   2020-01-21 16:05:15.526356 [info] SOME/IP routing ready.
C2020-01-21 16:05:18.093699 [info] Stopping vsomeip application "World" (1212).
2020-01-21 16:05:18.094531 [info] utility::auto_configuration_exit: munmap succeeded.
2020-01-21 16:05:18.094636 [info] Exiting vsomeip application...



Client-log:
 2020-01-21 16:05:15.525192 [info] Parsed vsomeip configuration in 0ms
 2020-01-21 16:05:15.525242 [info] Using configuration file: "../vsomeip.json".
 2020-01-21 16:05:15.525255 [info] Default configuration module loaded.
2020-01-21 16:05:15.525262 [info] Initializing vsomeip application "World".
2020-01-21 16:05:15.525324 [info] SOME/IP client identifier configured. Using 1212 (was: 1212) and UID/GID=1000/1000
2020-01-21 16:05:15.525335 [info] Instantiating routing manager [Host].
2020-01-21 16:05:15.525362 [info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
2020-01-21 16:05:15.525421 [info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
2020-01-21 16:05:15.525436 [info] Service Discovery enabled. Trying to load module.
2020-01-21 16:05:15.525636 [info] Service Discovery module loaded.
2020-01-21 16:05:15.525668 [info] Application(World, 1212) is initialized (11, 100).
2020-01-21 16:05:15.525752 [info] OFFER(1212): [1234.5678:1.0]
2020-01-21 16:05:15.525804 [info] Starting vsomeip application "World" (1212) using 2 threads I/O nice 255
Successfully Registered Service!
 Waiting for calls... (Abort with CTRL+C)
 2020-01-21 16:05:15.525981 [info] Watchdog is disabled!
 2020-01-21 16:05:15.525996 [info] main dispatch thread id from application: 1212 (World) is: 7fcb8ab6f700 TID: 30817
  2020-01-21 16:05:15.526026 [info] io thread id from application: 1212 (World) is: 7fcb8b370700 TID: 30816
  2020-01-21 16:05:15.526015 [info] shutdown thread id from application: 1212 (World) is: 7fcb8a36e700 TID: 30818
  2020-01-21 16:05:15.526050 [info] io thread id from application: 1212 (World) is: 7fcb8936c700 TID: 30820
   2020-01-21 16:05:15.526172 [info] vSomeIP 2.14.16 | (default)
   2020-01-21 16:05:15.526219 [info] Network interface "enp1s0" state changed: up
    2020-01-21 16:05:15.526266 [info] Route "default route (0.0.0.0/0) if: enp1s0 gw: 10.30.87.1" state changed: up
    2020-01-21 16:05:15.526295 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992
    2020-01-21 16:05:15.526341 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992
    2020-01-21 16:05:15.526356 [info] SOME/IP routing ready.
    2020-01-21 16:05:15.526356 [info] udp_client_endpoint_impl::connect    SO_RCVBUF is: 212992
    Available.........,
    Got message: ' '
    2020-01-21 16:05:15.526356 [info]  RELEASE(1313): [1234:5678]

On running Client and Server on two different machines connected through ethernet cable, The client is capable of discovering the presence and absence of the server. But the client is not capable of initiating the function call (rpc).

Any suggestion will help me a lot.

thanks,
Siddhartha V

Reply all
Reply to author
Forward
0 new messages