Sierra Wireless AirCard 313U

From Jeremy Bryan Smith
Jump to navigation Jump to search

Using with Ting

Reference: https://mycusthelp.net/SIERRAWIRELESS/_cs/AnswerDetail.aspx?aid=44
See also: https://www.sierrawireless.com/resources/documents/support/2130617_supported_at_command_reference-v2.4.pdf

  • First, make sure the SIM card is activated with ting
  • Then, find the USB tty device. its usually the 3rd device created after plugging it in. so if you didn't have any ttyUSB* devices, it would be ttyS3 (starts at 1)
    • From Linux:
      sudo screen /dev/ttyUSB3 115200
    • From pfSense:
      cu -l /dev/cuaU0.3
  • To verify modem is responding type ati5. It shows modem IMEI and Firmware
ati5
  • set ting APN:
at+cgdcont=1,"IP","wholesale"

That should do it. If you have a network manager running, you should use it to configure the device. Otherwise:

  • dhclient <dev>

Other useful commands:

  • Set GSM mode:
at!band=05
  • Turn radio on:
at+cfun=1 
  • Turn radio off:
at+cfun=0

To manual connect: at!scact=1,<profile>. e.g:

at!scact=1,1

To manual disconnect: at!scact=0,<profile>. e.g.:

at!scact=0,1

Get status:

AT!GSTATUS?
!GSTATUS:
Current Time:  10791291         Temperature: 30
Bootup Time:   10413476         Mode:        ONLINE
System mode:   GSM              PS state:    Attached
GSM band:      PCS1900
GSM channel:   693
GMM (PS) state:REGISTERED       NORMAL SERVICE
MM (CS) state: IDLE             NORMAL SERVICE

Serving Cell:  693 (GSM 1900   )
RX level (dBm):-100.6875                LAC:         3BA9 (15273)
GPRS State:    GPRS STANDBY     Cell ID:     00002EC5 (11973)


OK
  • Reset the entire modem:
at!RESET

NOTE: After executing any of these commands that make changes (e.g. RESET and changing settings), you may have to wait up to 10 seconds for changes to apply and for the modem to be responsive.

Using with pfSense

To use this device with pfSense:

  • Login to pfsense web portal and go to Interfaces -> PPPs
  • Click Add and use the following:
    • Link Type: PPP
    • Link Interfaces: /dev/cuaU0.3 (adjust if you have other USB tty devices)
  • The rest will depend on your provider, but for Ting I use:
    • Country: United States
    • Provider: T-Mobile
    • Plan: LTE - fast.t-mobile.com
    • Username/Password: leave empty
    • Phone number: *99#
    • APN: wholesale
    • The rest: defaults
  • Click Save
  • Go to Interfaces -> Assign
  • For Available network ports, choose "PPP0(cuaU0.3)" and click Add
  • It named mine OPT1
  • Click OPT1 to edit it and then use:
    • Enable: [x] (checked)
    • Description: WWAN
    • IPv4 Configuration Type: DHCP
    • IPv6 Configuration Type: DHCP6 (doesn't seem to support IPv6)
  • Click Save

To set up as a failover internet access:

  • Go to System -> Routing -> Gateway Groups
  • Click Add and use the following:
  • Group Name: INTERNET
  • Gateway Priority:
    • [WWAN_DHCP] [Tier 2] [Interface Address] [Interface WWAN_DHCP Gateway]
    • [WAN_DHCP] [Tier 1] [Interface Address] [Interface WWAN_DHCP Gateway]
    • Trigger Level: Member down
    • The rest: defaults
  • Click Save
  • Go to System -> Routing -> Gateways and click on WWAN to edit
  • Change the monitor IP to something different since the default won't work (I use 8.8.8.8)
  • Click Save

You can now test the failover functionality by unplugging your WAN connection and see if your internet access works

GPS

Stolen from http://whirlpool.net.au/wiki/hw_model_1210 (but does not appear to work):

Enabling the GPS

Note: These instructions are not supported by Whirlpool or Sierra Wireless. Using them is entirely at your own risk!

To enable the GPS, connect to the appropriate port with a terminal emulator (such as Hyperterm on Windows, or minicom on Linux) and issue the following AT commands:
AT!ENTERCND="A710"
AT!CUSTOM="GPSENABLE",1
Firmware 1_4_5_0AP or later requires this additional command:
AT!CUSTOM="GPSREFLOC",1

Alternatively, to disable GPS:
AT!ENTERCND="A710"
AT!CUSTOM="GPSENABLE",0

Once the modem is reconnected, you will have an additional serial device for accessing the GPS.
Note: On Linux this becomes device ttyUSB2, so you will need to connect to ttyUSB3 to send commands to the modem and ttyUSB4 for PPP connections if the GPS is enabled.

To test the GPS, you can use the following AT command:
AT!GPSFIX=1,30,10

This requests a non-assisted GPS fix with a 30 second timeout to within 10 metre accuracy. These options can be adjusted as required, AT!GPSFIX=? will give a list of valid values.

To read the position, use the command AT!GPSLOC?

Other GPS commands of interest:
AT!GPSSTATUS?
AT!GPSTRACK


Cheers,
Jeremy ;-)