Changes between Version 38 and Version 39 of wireless/modem
- Timestamp:
- 03/01/2019 09:26:40 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
wireless/modem
v38 v39 196 196 stty -F /dev/ttyUSB0 ignbrk -brkint -icrnl -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke 197 197 cat /dev/ttyUSB0 & 198 echo - e "ATI\n" > /dev/ttyUSB0198 echo -n -e "ATI\r" > /dev/ttyUSB0 199 199 }}} 200 200 … … 1631 1631 [ "\$device" -a -c "\$device" ] && { 1632 1632 logger -t "3g" "Enabling full power mode for \$device" 1633 echo -e -n "at+cfun=1\ 015" > \$device1633 echo -e -n "at+cfun=1\r" > \$device 1634 1634 } 1635 1635 } … … 1827 1827 * Issue a reset command to the card when starting up (varies by card) 1828 1828 {{{#!bash 1829 [ -e /dev/ttyUSBX ] && echo -e -n "AT~RESET\ 015" > /dev/ttyUSBX1829 [ -e /dev/ttyUSBX ] && echo -e -n "AT~RESET\r" > /dev/ttyUSBX 1830 1830 }}} 1831 1831 … … 1869 1869 }}} 1870 1870 1871 To send AT Commands from the Linux Shell, use echo with -e -n and terminate with \ 015. Example below:1872 {{{#!bash 1873 echo -e -n "at+cfun=1\ 015" > /dev/ttyUSB31871 To send AT Commands from the Linux Shell, use echo with -e -n and terminate with \r. Example below: 1872 {{{#!bash 1873 echo -e -n "at+cfun=1\r" > /dev/ttyUSB3 1874 1874 }}} 1875 1875