rkappler
Posts: 7
Joined: Sat Dec 31, 2011 4:20 pm
Contact: Website

communicating with another Linux box

Mon Feb 11, 2013 9:26 pm

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

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: communicating with another Linux box

Mon Feb 11, 2013 9:55 pm

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
Last edited by ghans on Mon Feb 11, 2013 10:11 pm, edited 1 time in total.
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

rkappler
Posts: 7
Joined: Sat Dec 31, 2011 4:20 pm
Contact: Website

Re: communicating with another Linux box

Mon Feb 11, 2013 10:04 pm

Thanks Ghans. Right after I posted this I discovered the wonderful world of python sockets.

regards, Richard

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: communicating with another Linux box

Tue Feb 12, 2013 8:10 am

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
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Interfacing (DSI, CSI, I2C, etc.)”