vsomeip
vsomeip copied to clipboard
Communication between two devices without service discovery
I'm trying to establish communication between two devices (device1 10.10.1.91/32 and device2 10.10.1.92/32).
i've added static routing using below command ip route add 10.10.1.92 via 10.10.1.92
Application are running in both devices, but device2 is not able find the service provided by device1. can someone support me on how to establish communication between two device with static routing and no service discovery ?
As far as I know, you have to enter the Service ID and Instance ID along with the IP address and port in the configuration JSON of the other device.
But even then I don't think events will work.
~~Service Discovery uses UDP Multicast to communicate between different devices. You might also need to run this command to enable multicast:~~
ip route add multicast 224.0.0.0/4 dev yourinterface
~~Replace yourinterface
with the name of the network interface used by both of your devices.~~
Edit: My bad, wasn't paying attention to the title.