Let me see if I understood your question correctly, you are trying to connect to other board, right? (I mean the Galileo as client, and the other board as host)
And you want the Galileo to send a command to the other board, right? Please correct me if wrong.
Regarding your other question, the IDE includes two Ethernet libraries, one works with the onboard Ethernet port and the other with the Ethernet shield.
Thank you for the quick reply,
In my application Galileo is the main board and send data (text commands) in one direction to another boards, I know that the question sound stupid but :
How can I send text througth ethernet connection? I meam someting like "system(send to ......);" of course I know IP and Mask of the board.
Thank you for any advice.
Well that depends on the other board, since what telnet does is set a virtual terminal connection, meaning if you are running telnet on let's say your computer and you are trying to connect to your Galileo, basically what you're doing is displaying your Galileo's console on your computer through your telnet client. Galileo has Linux so you'd be seeing the Linux terminal.
Now since what you're trying to do is using the Galileo as the client it will show the host's console, so it depends on what's within the other board, what's the other board based on?
I think that the informations give are more than sufficient.
Is not important the system on other board, we are talking about a STANDARD ethernet comunication (linux, amiga, windows, could be anysystem)
At this point I have to say that my mistake was thinking that send one bite over ethernet was a simple task,
So, no one had ever try to send one byte at one IP address at the port 23 from a Galileo maybe using the Linux subset "system()"? Really strange...
1 of 1 people found this helpful
You will need to write an EthernetServer client using Arduino. Really simple.
have a look at this example Arduino - EthernetClient
Using the system call is going to be slow, rewrite the above and your good as gold