I have a serial device running on 115200 baud at /dev/ttyUSB0. I need to Pipe the output of a command to it. I Need somthing like:
command-that-gives-stdout | command-that-puts-stdin-to-serial --baud 115200 /dev/ttyUSB0
Thanks Ahead for your help!
Additional info:
I have a grbl Sheild runing off of an arduino. It controlls a CNC machine. I Can send GCode to the arduino via the serial connection (/dev/ttyUSB0 running on 115200 baud). I normally send gcode via the arduino ide's serial monitor. I have Several python files for generating gcode, and they output to the stdout. I could just copy&paste the gcode, but a lot of people that will be using it may get confused by this.
No comments:
Post a Comment