i am using an embedded board (x86) running dd-wrt, with a serial port connected to a counter see here .
I needed to send a command and collect its response, but normal cat and echo of ttyS0 didn't work, either giving me permission denied or missing the response.
/usr/local/usr/bin/socat gopen:/tmp/input.txt!!create:/tmp/output.txt /dev/tts/0,echo=0
where tts/0 is the serial port, and /tmp/input.txt has the command to elicit the response, and /tmp/output.txt catches the response. the create: clause makes it overwrite the output.txt each time you run the command
or explicitly for my board
socat exec:'echo ACA'\!\!- /dev/ttyUSB0,echo=0 | cut -b2-
sometimes my 3g based openwrt system gets in a broken state, and as it is going to be remote, I need a watchdog script to reboot it if the i...
at last, the kind folks in Resol sent me the protocol specification for vbus with openwrt and rrdcollect and rrdcgi, I can now graph the ...
I have been doing some work in GCP recently, both appengine , and GCE. We wanted to make sure all our instances were on private ips and on...