Changes between Version 2 and Version 3 of expansion/gw16130


Ignore:
Timestamp:
04/17/2019 05:57:25 PM (5 years ago)
Author:
Ryan Erbstoesser
Comment:

add at commands

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16130

    v2 v3  
    2424
    2525
    26 == FTDI GPIO Control ==
     26== Turning on Modem ==
    2727
    2828An FTDI FT231XQ USB UART Chip is used to communicate with the Iridium Satcom modem via its UART.
    2929
    3030The FTDI GPIO pins control the modem:
    31 
    32 CBUS0: SAT_ON (input to modem; 10k pull-down)
    33 CBUS1: SAT_FND (output from modem)
    34 CBUS2: SAT_SUPPLY_OUT (output from modem)
    35 CBUS3: not connected
     31 * CBUS0: SAT_ON (input to modem; 10k pull-down)
     32 * CBUS1: SAT_FND (output from modem)
     33 * CBUS2: SAT_SUPPLY_OUT (output from modem)
     34 * CBUS3: not connected
    3635
    3736Configure GPIO:
     
    4746echo in > /sys/class/gpio/gpio$((base+2))/direction
    4847}}}
     48
     49== Modem AT Commands
     50The Iridium SBD modems communicate via AT commands over a UART (default 19200 baud)
     51
     52AT Commands via picocom: (only works if there is one ftdi device being used)
     53{{{#!bash
     54DEVICE=/dev/$(basename $(ls -d /sys/bus/usb/drivers/ftdi_sio/*/ttyUSB*))
     55picocom $DEVICE -b 19200 --omap lfcr
     56}}}
     57
     58AT Commands via shell: (only works if there is one ftdi device being used)
     59{{{#!bash
     60DEVICE=/dev/$(basename $(ls -d /sys/bus/usb/drivers/ftdi_sio/*/ttyUSB*))
     61stty -F $DEVICE 19200 ignbrk -brkint -icrnl -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
     62cat $DEVICE &
     63at() { echo -n -e "$1\r" > $DEVICE; }
     64at "AT+GMI" # Manufacturer Identification 'Iridium'
     65at "AT+GMM" # Model Identification 'IRIDIUM 9600 Family SBD Transceiver'
     66at "AT+GMR" # Revision details
     67at "AT+GSN" # serial number (IEMI)
     68at "AT+CSQ" # signal strength (0 to 5): '+CSQ:0'
     69}}}
     70
     71Additional commands:
     72 * Send message to configured email address in modem admin (described above in modem management)
     73{{{
     74AT&K0
     75AT+SBDWT=Hello World
     76AT+SBDIX
     77}}}
     78
     79== Reference Links
     80
     81 * Drifting Buoy Project using 9603 http://mdbuoyproject.wixsite.com/default
     82