I need to init, with AT commands, a mobile modem without external libraries using only bash on minimal BusyBox. The mobile modem is on a serial port.
It s working well with python but in case of python issues, the device should be still connected. That's why I want to use bash script.
21 Answer
stty cheatsheet :
To get current configuration :
stty -F /dev/ttymxc0To change baudrate of port to 115200 :
stty -F /dev/ttymxc0 115200Write data to serial port :
echo "HELLO" > /dev/ttymxc0Read data from serial port :
cat /dev/ttymxc0To get statistics on serial port:
cat /proc/tty/driver/<driver_name>