Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to genivi-ipc
Hello Team,
I am trying to enable the communication between the two devices but there were some problems and not able to find the cause for the problem.
I am trying to enable the communication between the two devices but there were some problems and not able to find the cause for the problem.
Have you tested communication between two devices outside of your program (i.e. via telnet or netcat)?
And, please put the code and the log entries in CODE tags; otherwise it is too difficult to read.
Have you tested communication between two devices outside of your program (i.e. via telnet or netcat)?
And, please put the code and the log entries in CODE tags; otherwise it is too difficult to read.
Yes, I have teseted the communication between the devices using ping. The ping is successful.
Well, is your application using ping for communicating? If not, then just ping is not a real rest.
In your JSON, I see:
Code:
"port" : "30490",
"protocol" : "udp"
So, let's say your client (let's say, 192.168.1.10) wants to communicate with your server (for example: 192.168.1.11), then you need to test exactly that with nc; for example, from client:
Code:
nc -vu <server_ip> <port>
Here "nc" is netcat command; "-v" is verbose; "u" is for UDP, since you have protocol udp defined in your JSON.
If it is successful, great; if not, there is a different problem, and until you fix that your program is not going to work.
Last edited by dc.901; 05-11-2019 at 09:17 AM.
Reason: fixed typo
I have tried to fed the data to the port from the host(server side to client) but it returns. I hope it should be a blocking call and shall wait for input data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.