How to run single command on 3D printer using picocom
In our previous post How to connect to your 3D printer using picocom we showed how to open an interactive serial session on the command line using picocom. But you can also use picocom to run just a single command such as the M997 firmware update command:
picocom_single_command_acm0.sh
echo "M997" | picocom -b 115200 /dev/ttyACM0 --imap lfcrlf --echoIf your USB serial device is named /dev/ttyUSB0 instead of /dev/ttyACM0 you can use this alternative version:
picocom_single_command_usb0.sh
echo "M997" | picocom -b 115200 /dev/ttyUSB0 --imap lfcrlf --echoCheck out similar posts by category:
3D Printing, Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow