Data Over GPIO Protocol - send data over the GPIO ports on a Raspberry Pi. Useful for when UART ports are non-functional, already in use, or otherwise not available. RPi PINOUT DIAGRAM:
+ +
+ +
.
.
.
dO +
tO +
+ +
+ +
+ dI
+ tI
d = data t = timer
O = out I = in
- open two shells on the RPi or have two windows ssh'd into the RPi
- navigate to the directory that DOGProtocol.py is in using
cd
- enter the python3 shell in both windows:
python3
- enter the following series of imports in both shells:
import RPi.GPIO as GPIO import DOGProtocol as DOG
- enter the following command:
GPIO.setmode(GPIO.BCM)
- in one shell, call
DOG.receive()
- in the other, call
DOG.send(<string to send>)
- profit