ikram
Posts: 85
Joined: Fri May 20, 2016 10:37 am

communication between two raspberry

Thu Aug 18, 2016 11:29 am

Hi,
i have two card raspberry
it's possible to use a variable (programm python) in the first card raspberry in onother (program python) in the second card
hwo can i communicate two card raspberry ?

PiGraham
Posts: 4495
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: communication between two raspberry

Thu Aug 18, 2016 12:11 pm

Communicating over the network is the obvious hoice. Take at look at simple chat client/server examples. Here's one:
http://blog.whaleygeek.co.uk/raspberry- ... in-python/

Another option is to connect the serial ports between two Pis. Search for serial communication.

Another option is to use a network share to host a file that one Pi will write values to and the other will read values out. That's just network share configuration (search NFS or Samba share) and basic file I/O.

Return to “Français”