Changes between Version 38 and Version 39 of wireless/modem


Ignore:
Timestamp:
03/01/2019 09:26:40 PM (5 years ago)
Author:
Cale Collins
Comment:

fix stty/cat/echo example and replace octal with backslash notation

Legend:

Unmodified
Added
Removed
Modified
  • wireless/modem

    v38 v39  
    196196stty -F /dev/ttyUSB0 ignbrk -brkint -icrnl -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
    197197cat /dev/ttyUSB0 &
    198 echo -e "ATI\n" > /dev/ttyUSB0
     198echo -n -e "ATI\r" > /dev/ttyUSB0
    199199}}}
    200200
     
    16311631                        [ "\$device" -a -c "\$device" ] && {
    16321632                                logger -t "3g" "Enabling full power mode for \$device"
    1633                                 echo -e -n "at+cfun=1\015" > \$device
     1633                                echo -e -n "at+cfun=1\r" > \$device
    16341634                        }
    16351635                }
     
    18271827 * Issue a reset command to the card when starting up (varies by card)
    18281828{{{#!bash
    1829 [ -e /dev/ttyUSBX ] && echo -e -n "AT~RESET\015" > /dev/ttyUSBX
     1829[ -e /dev/ttyUSBX ] && echo -e -n "AT~RESET\r" > /dev/ttyUSBX
    18301830}}}
    18311831
     
    18691869}}}
    18701870
    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/ttyUSB3
     1871To send AT Commands from the Linux Shell, use echo with -e -n and terminate with \r. Example below:
     1872{{{#!bash
     1873echo -e -n "at+cfun=1\r" > /dev/ttyUSB3
    18741874}}}
    18751875