Answer by waltinator for How Do I Log USB Modem AT Command Output?
The expect tool is designed for just this sort of task. man expect will get you started.
View ArticleAnswer by pabouk for How Do I Log USB Modem AT Command Output?
Below is an example script with some logic for logging and cleanup when the script terminates (the trap command). Important trick is to keep the input from the serial port open otherwise the input from...
View ArticleHow Do I Log USB Modem AT Command Output?
I want to be able to send the command "AT+CSQ" to /dev/ttyUSB1 every 5 seconds, and log out response to a text file. I can do it manually via screen (screen /dev/ttyUSB1 and type in AT+CSQ and see the...
View Article
More Pages to Explore .....