1 Reply Latest reply on Apr 23, 2014 6:11 PM by flummer

    Sending bytes to Serial from Linux Terminal


      How can I send bytes to the serial from yocto linux. I have tried "echo -e '\x02' > /dev/ttyGS0" but it only prints, the logic is not understood by the sketches loop.


      The goal is to have a shell script send a specific sequence of bytes to the underlying sketch via telnet.

        • 1. Re: Sending bytes to Serial from Linux Terminal



          I don't think you can do it exactly like that... the sketches loop and the shell script are two "programs" being executed in parallel on the same machine, and I don't think the serial port is the right interprocess communications channel.


          You could maybe have the sketches loop listening on a port on ethernet and then have the shell script connect to it, that would probably work better.


          Just my 2 cents,