Privacy Policy
Snippets index

  Raspberry "pigs" - command line socket access to the pigpio daemon

The pigpio library must be running, either by running a program linked with the library or starting the pigpio daemon:

sudo pigpiod

then Open GPIO for bit bang serial data

pigs slro 14 9600 8

and Read bit bang serial data from GPIO:

pigs -a slr 14 100

100 /sid paul ttyS0\x0d\x0a\x0d\x0ag\xfe\xfe#\x97v+\xfd\x87\xde\xf6\xc6xTHGTiYZc\x13\xbf\x94\xf8aul login: \x0d\x0d\x0aRaspbian GNU/Linux stretch/sid paul ttyS0\x0d

Finally, Close GPIO for bit bang serial data:

pigs slrc 14