SPI-PIPE(1)
πΈ NAME πΈ
okay so bestie, meet spi-pipe β a full-duplex SPI communication tool. that's it, that's the whole name section, but trust, it does a LOT π
π¦ SYNOPSIS π¦
spi-pipe options...
β¨ DESCRIPTION β¨
so here's the tea: this program lets you do full-duplex communications. it takes data from its standard input, sends it off to the SPI slave, and then puts on its standard output whatever data came back from the SPI port. sending AND receiving at the same time, no cap. both directions, simultaneously, like a true multitasking icon π«Ά
and now the options, because you KNOW we're going through every single one:
-d,--device=DEVICEβ use the Linux spidev character device you pass in here, bestie.-s,--speed=<int>β sets the target SPI speed for the transfer. go fast, go slow, your call β¨-b,--blocksize=<int>β sets the block size, in bytes, for the transfer.-n,--number=<int>β sets how many blocks to transmit. and listen, if you pass-1it just keeps going forever, continuous transfert, no chill π-h,--helpβ shows the help screen and exits. the classic.-v,--versionβ shows the version number and exits.
π EXAMPLES π
these are the moments, bestie. copy them, run them, live them π
Get help:
$ spi-pipe -h
Send and receive at the same time
$ command-1 | spi-pipe --device=/dev/spidev0.0 | command-2
note that command-1, command-2 and spi-pipe run simultaneously in three different processes. three besties, three processes, one vibe π
Send data to the SPI link
$ command-1 | spi-pipe --device=/dev/spidev0.0
Receive data from the SPI link
$ spi-pipe --device=/dev/spidev0.0 < /dev/zero | command-2
you could also just use command-2 < /dev/spidev0.0, but with spi-pipe you get to control what is sent to the device (always 0 here). control freak? no, icon behavior π
Read 40 blocks of 4 bytes from the SPI link
$ spi-pipe --device=/dev/spidev0.0 -b 4 -n 40 < /dev/zero |
command-2
π AUTHOR π
Written by Christophe BLAESS <https://www.blaess.fr/christophe>. yeah, the author, we love them for this π«Ά
π REPORTING BUGS π
Github home page: <https://github.com/cpb-/spi-tools.git>. found a bug? go tell the github, they wanna know, fr fr.
π COPYRIGHT π
Copyright Β© 2014 Christophe Blaess.
Licensed under GPLv2 <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. like, none. zero. nada. so don't come for anyone if it goes sideways π
and that's the whole page, bestie. it's SPI-tools, from way back in August 2014, and it's still serving. go pipe something. mwah π β¨
π¦ where this page comes from
- alpine 3.24: spi-tools-doc 1.0.2-r0 Β· GPL-2.0-or-later
- fedora 43: spi-tools 1.0.2-7.fc43 Β· GPL-2.0-only
- fedora 44: spi-tools 1.0.2-8.fc44 Β· GPL-2.0-only
- nixos 26.05: spi-tools 1.0.2
- opensuse-leap 16.0: spi-tools 1.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: spi-tools 1.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: spi-tools 1.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: spi-tools 1.0.2-bp160.1.12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms