Closed WSYGJR closed 1 month ago
here is my json file
service: { "unicast" : "192.168.1.11", "logging" : { "level" : "debug", "console" : "true", "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" }, "dlt" : "false" }, "applications" : [ { "name" : "World", "id" : "0x4444" } ], "services" : [ { "service" : "0x1234", "instance" : "0x5678", "unreliable" : "30509" } ], "routing" : "World", "service-discovery" : { "enable" : "true", "multicast" : "224.224.224.245", "port" : "5001", "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: { "unicast" : "192.168.1.10", "logging" : { "level" : "debug", "console" : "true", "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" }, "dlt" : "false" }, "applications" : [ { "name" : "Hello", "id" : "0x5555" } ], "routing" : "Hello", "service-discovery" : { "enable" : "true", "multicast" : "224.224.224.245", "port" : "5001", "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" } }
please help me!!!
Hi @WSYGJR,
The example you followed is not up to date, but it should work anyway. If you are interested you can use the request /response example present in https://github.com/COVESA/vsomeip/tree/master/examples .
@anaritarodrigues oh , I sloved this problem. Because TDA4VM has firewall. After I close it. They can communicate.
vSomeip Version
v3.4.10
Boost Version
1.71
Environment
Ubuntu 20.04
Describe the bug
I use https://github.com/COVESA/vsomeip/wiki/vsomeip-in-10-minutes Request / Response code and json file, Just change the unicast, but when I run service in TDA4VM and run client in VBOX, they cannot connect each other ,but the ping work. both of service and client is reporting vSomeIP 3.4.10 | (default). What should I do to cover this ?
Reproduction Steps
VBOX just compile , TDA4VM cross-compile, I push the executable file to TDA4VM and add multicast address.
Expected behaviour
No response
Logs and Screenshots
service: 2023-05-02 16:11:12.479826 [info] Using configuration file: "world.json". ... 2023-05-02 16:11:12.484013 [info] create_routing_root: Routing root @ /tmp/vsomeip-0 2023-05-02 16:11:12.496247 [info] Client [4444] routes unicast:192.168.1.11, netmask:255.255.255.0 ... 2023-05-02 16:11:12.499466 [info] io thread id from application: 4444 (World) is: ffff950e41c0 TID 2023-05-02 16:11:12.500120 [info] vSomeIP 3.4.10 | (default) 2023-05-02 16:11:12.500861 [info] vSomeIP 3.4.10 | (default) 2023-05-02 16:11:12.501647 [info] vSomeIP 3.4.10 | (default)
client: 2024-03-28 14:19:06.938190 [info] Using configuratation dile :"hello.json" ... 024-03-28 14:19:06.943316 [info] Service Discovery modlue loaded. 2024-03-28 14:19:06.943819 [info] Application(Hello,5555) is initalized(11, 100). ... 024-03-28 14:19:06.945320 [info] Starting vsomeip application "Hello" (5555) using 2 threads I/O nice 255 [info] Client [5555] routes unicast:192.168.1.10, netmask 255.255.255.0 [info] Network interface "enp0s3" state changed: up [error] Routing info for remote service could not be found!(5555): CLIENT: Service [1234.5678] is NOT available. [info] vSomeIP 3.4.10 | (default)