vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Communication between 2 RPIs

Open devashishmishra90 opened this issue 2 years ago • 11 comments

Hello Everyone. I have 2 Raspberry Pis & installed vsomeip on both of them. I have mentioned all the steps below, but I can't communicate between them. & didn't find packets on wireshark that mentioned SOMEIP messages are being communicated. Steps- both RPI are connected to wifi router. both have IP address- 192.168.29.110 RPI A, 192.168.29.202 RPI B BUILD PROCESS [on both RPI i followed ]

  1. cd vsomeip && mkdir build && cd build
  2. for RPI A side, cmake -DUNICAST_ADDRESS=192.168.29.110
  3. for RPI B side, cmake -DUNICAST_ADDRESS=192.168.29.202
  4. now on RPI A side, after running cmake .. && make in examples/helloworld/build. configure hello-world-local.json & put unicast address to 192.168.29.110 & netmask to 255.255.255.0
  5. now on RPI B side, after running cmake .. && make in examples/helloworld/build. configure hello-world-local.json & put unicast address to 192.168.29.202 & netmask to 255.255.255.0
  6. when i run hello_world_service on RPI A side & hello_world_client on RPI B side.

then I don't see any communication in between these two, neithe in command window or wireshark.

what i'm doing wrong please let me know. simple setup it is.

devashishmishra90 avatar Jun 29 '23 09:06 devashishmishra90

@ArslanMunaim Do you have any view on this

devashishmishra90 avatar Jun 29 '23 18:06 devashishmishra90

Hi, can you please share your config .json files??

ArslanMunaim avatar Jun 30 '23 13:06 ArslanMunaim

this is terminal output image

devashishmishra90 avatar Jul 03 '23 09:07 devashishmishra90

this json file image

devashishmishra90 avatar Jul 03 '23 09:07 devashishmishra90

Hi, as you mentioned you have to communicate between different RPi's you have to write config file for each RPi, You have to mention your unicast address and net mask, also updating application name and routing tags. I would suggest you to consult https://github.com/COVESA/vsomeip/wiki/vsomeip-in-10-minutes Communication between two devices part.

ArslanMunaim avatar Jul 03 '23 12:07 ArslanMunaim

when i'm running this I'm getting this one, & after that nothing on wireshark, only one time packet on wireshark. error Doubts related to routing

devashishmishra90 avatar Jul 06 '23 14:07 devashishmishra90

@devashishmishra90 Any update on this? We are facing exactly the same issue and have no clue what can be wrong in our setup or configuration. We are trying to connect from a linux host to an embedded device. :sunglasses:

dprogm avatar Jul 10 '23 09:07 dprogm

did you add the route on your device? im facing same problem with you too

ogkang1201 avatar Oct 10 '23 04:10 ogkang1201

Did you solve it? I have the same problem.

jsb9945 avatar Nov 14 '23 04:11 jsb9945

Please provide json configurations and log files for both devices.

fcmonteiro avatar Nov 14 '23 16:11 fcmonteiro