-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No communication between the Ubuntu PC and IMX93 devices #735
Comments
Did you set multi-cast address of SD in you json configuration file? And did you added multi-cast address in your routing table both on Ubuntu and iMX93 board? Finally please check your routing tables |
https://github.com/COVESA/vsomeip/wiki/vsomeip-in-10-minutes |
Yes, I have set the multicast address of SD in your JSON configuration file. Additionally, I have added the multicast address to your routing table on both Ubuntu and the iMX93 board. On Ubuntu, the command 'sudo route add -nv 224.224.224.245 enp0s31f6' works fine. However, on the iMX93, the command 'route add -nv 224.224.224.245 eth1' doesn't work and returns an error because the iMX93, which uses BusyBox version 1.36.1, doesn't support the '-v' option. I changed the command to 'route add -v 224.224.224.245 eth1,' and the command worked.
I have tested the application before by adding the multicast address in the JSON file and the routing table, but the communication did not work. I tried again and observed the same behavior as before. |
I attached my samples, you may have a reference. In my test environment, the ip address of Ubuntu.x86 is "10.68.128.155" and the ip address of Ubuntu.aarch64 is "10.68.128.159" And please check following key points: 2."unicast" in vsomeip-service.json of my samples, you may read it and compare the configuration file of "10.68.128.155" in HelloWorld.155.tar.gz with the configuration file of "10.68.128.159" in HelloWorld.159tar.gz 3.test stub and proxy of my samples
on "10.68.128.159", issues following shell cmd:
Of course, on my test environment the samples run very well! If you still have this running problems, you may use Wireshark to capture SOME/IP packages online to check the stub and proxy of your test environment run result and analyze the exact root cause of this running problem. By the way, if you still can't solve this issue you may use tcpdump to grab a pcap file of both your Ubuntu and IMX93, and use Wireshark do a off-line check and analysis. Good luck! |
biggoldenbee Thanks a lot for the sample application you had shared! I was able to run the HelloWorld client server application in two docker containers running on a Ubuntu VM. Is there a way to configure the Ubuntu VM as a router so that the two docker containers can join the multicast group, which would help me to test the event scenarios also. Your help is very much appreciated. Thanks in advance! |
you have to be aware of how to configure Ubuntu router parameters correctly, as below: |
1.Your two dockers have the same IP address segment, it's ok. By the way, why you need two multicast IP addresses? All applications of vsomeip what are running on different dockers or other network nodes in the same IP address segment set conversation on the appointed same multicast IP addresses. The different multicast IP addresses they don't know each other, unless you may let "224.0.0.22" communicate with "224.224.224.245" freely and with no gap. Of course you may modify source code of vsomeip to join over two different multicast IP addresses and handle all message, then you will achieve the goal, this will be a vsomeip hybrid version. |
Maybe you have to study
Hope upon may give you some help |
vSomeip Version
v3.3.8
Boost Version
Ubuntu PC : 1.71 and iMX93 : 1.81
Environment
Ubuntu 20.04 and Embedded linux (IMX BSP 6.1.55.2.2 - mickledore)
Describe the bug
I want to establish SomeIP communication between an Ubuntu PC and an iMX93 EVK. To achieve this, I used the request-sample and response-sample from the examples folder. After running the applications, the communication doesn't start between the PC and the iMX93. From the logs, I can see the network interface is up, but there is no routing. I added a route for the multicast IP address with "route add -host 224.224.224.245 dev ", but the issue persists.
However, when testing the same examples between two Ubuntu PCs, the communication works. I don't understand why communication fails between the iMX93 and the Ubuntu PC despite using the same SomeIP version and examples.
Reproduction Steps
Installation
On Ubuntu PC : I have followed installation steps mentioned in https://github.com/COVESA/vsomeip/tree/master
On iMX93 : I have used the yocto recipe, to install someip on the target. (https://git.openembedded.org/meta-openembedded/tree/meta-networking/recipes-protocols/vsomeip/vsomeip_3.3.8.bb?h=nanbield)
Running application
Ubuntu PC
iMX93
IP address are changed in the json file.
Expected behaviour
Need to establish a communication between IMX93 and Ubuntu PC by using request-response example
Logs and Screenshots
Ubuntu PC
iMX93
The text was updated successfully, but these errors were encountered: