Page 1 of 1

communicating with another Linux box

Posted: Mon Feb 11, 2013 9:26 pm
by rkappler
I have a raspberry pi and a laptop running ubuntu 12.04, building a robot for my kids. How do I get the rpi to communicate with the laptop over "network"? (which was probably not the right way to ask this.

Example: If I connect the rpi to the laptop via either a crossover cable or through a hub, how do I send data back and forth between the two?

regards, Richard

Re: communicating with another Linux box

Posted: Mon Feb 11, 2013 9:55 pm
by ghans
You can do whatever you want.
SSH (secure shell to execute Linux ommands) ,
SFTP (Secure file transfer , part of SSH),
FTP ( "The" file transfer protocol) ,
HTTP (normally used for Web pages) , SMB (Windows File Sharing) ,
NFS ( UNIX file sharing) , AFP (Apple File Sharing ) etc.


I believe what you really wanted to ask is how to code
apps which can communicate over a network.

If you use Python , XML-RPC might be a start. There are
many many very high-level and abstract solutions to this problem
called Remote Procedure Call.

You have the maximum of freedom , because you develop
the applications yourself. You could go low-lewel and
invent your own protocol , if you deem necessary !

ghans

Re: communicating with another Linux box

Posted: Mon Feb 11, 2013 10:04 pm
by rkappler
Thanks Ghans. Right after I posted this I discovered the wonderful world of python sockets.

regards, Richard

Re: communicating with another Linux box

Posted: Tue Feb 12, 2013 8:10 am
by ghans
Yes , sockets are the way to go if you want to set up
your own protocol. You have to admit that the request for
"sending data" and "communicating" was a bit broad :D .

Have fun !

ghans