gnana-ganesh-tw / vsomeip-sample

This is sample vsomeip application that runs the client and the server.
1 stars 0 forks source link

Communication Between 2 GCP VM Instances #1

Open maramharsha99 opened 4 months ago

maramharsha99 commented 4 months ago

Im trying to establish someip between two VM instances. I created 2 vm instances under single vpc network & created firewall rules for inbound and out bound. I followed same process mentioned here but couldnt establish the connection. Client Side Log 2024-04-28 07:45:51.391070 [info] Using configuration file: "/home/harsha/vsomeip/vsomeip/build/vsomeip-sample/client/config_file.json". 2024-04-28 07:45:51.391787 [info] Parsed vsomeip configuration in 0ms 2024-04-28 07:45:51.391948 [info] Configuration module loaded. 2024-04-28 07:45:51.392464 [info] Security disabled! 2024-04-28 07:45:51.392676 [info] Initializing vsomeip (3.4.10) application "hello_world_client". 2024-04-28 07:45:51.393173 [info] Instantiating routing manager [Host]. 2024-04-28 07:45:51.395286 [info] create_routing_root: Routing root @ /tmp/vsomeip-0 2024-04-28 07:45:51.396370 [info] Service Discovery enabled. Trying to load module. 2024-04-28 07:45:51.399029 [info] Service Discovery module loaded. 2024-04-28 07:45:51.399629 [info] Application(hello_world_client, 1313) is initialized (11, 100). 2024-04-28 07:45:51.400017 [info] Starting vsomeip application "hello_world_client" (1313) using 2 threads I/O nice 255 2024-04-28 07:45:51.401422 [info] Client [1313] routes unicast:104.196.125.236, netmask:255.255.255.0 2024-04-28 07:45:51.403227 [info] Watchdog is disabled! 2024-04-28 07:45:51.404162 [info] io thread id from application: 1313 (hello_world_client) is: 7f62449fc000 TID: 4598 2024-04-28 07:45:51.404710 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:45:51.405235 [info] shutdown thread id from application: 1313 (hello_world_client) is: 7f62438f2700 TID: 4601 2024-04-28 07:45:51.405849 [info] main dispatch thread id from application: 1313 (hello_world_client) is: 7f62440f3700 TID: 4600 2024-04-28 07:45:51.406741 [info] REQUEST(1313): [1111.2222:255.4294967295] 2024-04-28 07:45:51.407763 [info] io thread id from application: 1313 (hello_world_client) is: 7f62428f0700 TID: 4603 2024-04-28 07:45:51.408367 [info] create_local_server: Listening @ /tmp/vsomeip-1313 2024-04-28 07:46:01.405955 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:11.407961 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:21.409662 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:31.412511 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:41.414358 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:51.416143 [info] vSomeIP 3.4.10 | (default) Server Side Log 024-04-28 07:46:11.777049 [info] Using configuration file: "/home/harsha/vsomeip/vsomeip/build/vsomeip-sample/server/config_file.json". 2024-04-28 07:46:11.778057 [info] Parsed vsomeip configuration in 0ms 2024-04-28 07:46:11.778316 [info] Configuration module loaded. 2024-04-28 07:46:11.778478 [info] Security disabled! 2024-04-28 07:46:11.778581 [info] Initializing vsomeip (3.4.10) application "hello_world_service". 2024-04-28 07:46:11.779054 [info] Instantiating routing manager [Host]. 2024-04-28 07:46:11.780986 [info] create_routing_root: Routing root @ /tmp/vsomeip-0 2024-04-28 07:46:11.782156 [info] Service Discovery enabled. Trying to load module. 2024-04-28 07:46:11.785714 [info] Service Discovery module loaded. 2024-04-28 07:46:11.786458 [info] Application(hello_world_service, 1212) is initialized (11, 100). 2024-04-28 07:46:11.786800 [info] Starting vsomeip application "hello_world_service" (1212) using 2 threads I/O nice 255 2024-04-28 07:46:11.787994 [info] Client [1212] routes unicast:127.0.0.1, netmask:255.255.255.0 2024-04-28 07:46:11.790173 [info] Watchdog is disabled! 2024-04-28 07:46:11.791139 [info] io thread id from application: 1212 (hello_world_service) is: 7f1792990ec0 TID: 1626 2024-04-28 07:46:11.792286 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:11.793417 [info] Network interface "lo" state changed: up 2024-04-28 07:46:11.794804 [info] shutdown thread id from application: 1212 (hello_world_service) is: 7f1791086700 TID: 1630 2024-04-28 07:46:11.795510 [info] main dispatch thread id from application: 1212 (hello_world_service) is: 7f1791887700 TID: 1629 2024-04-28 07:46:11.798691 [info] io thread id from application: 1212 (hello_world_service) is: 7f1790084700 TID: 1632 2024-04-28 07:46:11.807677 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 (1703936) local port:30509 2024-04-28 07:46:11.809871 [info] create_local_server: Listening @ /tmp/vsomeip-1212 2024-04-28 07:46:11.810437 [info] OFFER(1212): [1111.2222:0.0] (true) 2024-04-28 07:46:21.793720 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:31.796511 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:41.798199 [info] vSomeIP 3.4.10 | (default) 2024-04-28 07:46:51.799578 [info] vSomeIP 3.4.10 | (default) @gnana-ganesh-tw hello can you help me with this?

gnana-ganesh-tw commented 4 months ago

HI @maramharsha99, Apologies for the delay

are you enabling service discovery, if so you might also have to enable the multicast address on the security groups