…about Linux, electronics, digital photography, whatever…
Icône RSS Icône Accueil
  • cats : serial port cat like utility

    Posté le 14th novembre 2009 leucos 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 cats

    Run :

    ./cats /dev/ttyUSB0

    Usage 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

     

    1 réponses à “cats : serial port cat like utility” Icône RSS


    Laisser une réponse

    Security Code: