Random notes & other stuff…
…about Linux, electronics, digital photography, whatever…
-
cats : serial port cat like utility
Posté le 14th novembre 2009 1 commentaire(une version française de ce post est disponible ici)
For an upcoming project, I needed to be able to ‘cat’ the serial port.
So welcome ‘cats’, a serial cat wannabe.It’s very simple and not much tested for now, but works fine to read from the serial port. So if you give it a try, please send feedback.
Default baud rate is 9600.
Compile :
gcc cats.c -o catsRun :
./cats /dev/ttyUSB0Usage exemple : grabbing your altitude from your serial connected NMEA GPS
./cats /dev/ttyUSB0 | grep GGA | cut -f 10 -d','Grab the source.
EDIT : cats has now a GitHub home http://github.com/leucos/cats
Laisser une réponse


hugo 16th novembre 2009 à 15:29