vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Communication between two devices without service discovery

Open govarthananram96 opened this issue 1 year ago • 2 comments

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 ?

govarthananram96 avatar Aug 08 '23 08:08 govarthananram96

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.

doschropa avatar Aug 09 '23 08:08 doschropa

~~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.

BrunoLSilvaCTW avatar Aug 09 '23 08:08 BrunoLSilvaCTW