Menu

Expand
Rate this page:

U-blox Modules with Super SIM

Super SIM does not support NB-IoT.

Firmware

Update your R5’s firmware to version 3.15 or above for use with Super SIM. You can check the installed version with AT+GMR. Please see the R5’s AT commands manual to learn how to update the module.

Initialization

The SARA-R5 supports LTE Cat-M1 and NB-IoT in bands 1, 2, 3, 4, 5, 8, 12, 13, 18, 19, 20, 25, 26, 28, 66, 71 and 85. Super SIM is compatible with Cat-M1 but not NB-IoT. It’s therefore important to ensure that your SARA-R5 is set to operate only using Cat-M1.

SARA-R5 supports the use of only a single RAT at a time, so if Cat-M1 is selected and no suitable network is available, the module will not attempt to connect using NB-IoT. Consequently, if you have set the module to use NB-IoT, it will never connect until Cat-M1 is set as the favored RAT.

By default, all current SARA-R5 variants prioritize Cat-M1, but you can set this manually by issuing the command AT+URAT and specifying the value 7. You should apply the value using the following command sequence:

AT+CFUN=0
AT+URAT=7
AT+CFUN=16

The value 16 in the last command tells the modem to reboot and persist the specified RAT value.

Establish a data connection

The following commands can be used to establish a PDP context once the APN has been set as shown on the Knowledgebase overview page:

AT+CGACT=1,1
AT+UPSD=0,0,0
AT+UPSD=0,100,1
AT+UPSDA=0,3

Line two must match the PDP type set in the AT+CGDCONT command. For example, the latter includes "IP" to select IPv4, so the final parameter of AT+UPSD=0,0,0 must also indicate IPv4, i.e., 0.

Line three maps the module’s internal packet-switched data (PSD) profile, 0, to the PDP context ID, 1, set with the AT+CGDCONT command as shown on the Knowledgebase overview page.

Line four activates PSD profile 0.

Perform a ping

Issue AT+UPING=<TARGET_IP_ADDRESS_OR_NAME>. This will yield, for example:

AT+UPING="8.8.8.8"
OK

+UUPING: 1,32,"dns.google","8.8.8.8",109,1105
+UUPING: 2,32,"dns.google","8.8.8.8",109,271
+UUPING: 3,32,"dns.google","8.8.8.8",109,238
+UUPING: 4,32,"dns.google","8.8.8.8",109,216

Perform an HTTP GET

To perform an HTTP GET using the built-in HTTP client:

  1. Set up a data connection as described above.
  2. Reset the parameters of HTTP profile 0 to the defaults: AT+UHTTP=0.
  3. Configure the HTTP server name: AT+UHTTP=0,1,"api.ipify.org".
  4. Perform a GET request using profile 0 and store the result in the file test.ffs: AT+UHTTPC=0,1,"/","test.ffs".
    • The modem will respond with +UUHTTPCR: 0,1,1.

Now you can read the file containing the response from the server by requesting the file test.ffs for profile 0. Do so by issuing AT+URDFILE="test.ffs". This will yield:

+URDFILE: "test.ffs",178,"HTTP/1.1 200 OK
Server: Cowboy
Connection: close
Content-Type: text/plain
Vary: Origin
Date: Mon, 14 Mar 2022 11:54:03 GMT
Content-Length: 11
Via: 1.1 vegur

3.239.194.9"
OK

This example uses a service that returns the IP address of the requester.

Low-power modes

The SARA-R5 supports eDRX and PSM for low-power operation. The commands to enable each of these are, respectively:

AT+CEDRXS=1
AT+CPSMS=1

Using these features, but especially PSM, can make the modem inaccessible to the terminal during its sleep time. It’s best to experiment with these features with the modem local. To disable all power saving, send:

AT+CEDRXS=0
AT+CPSMS=0

You can learn more about implementing these modes in our low-power usage documentation.

Super SIM does not support NB-IoT.

Initialization

You must only configure the modem’s Radio Access Technology (RAT) preference for Cat-M1 when connecting via LTE. To apply this setting, issue AT+URAT=7.

Disable NB-IoT

First de-register from the network, set UMNOPROF to 0, and then restart the module:

AT+COPS=2
AT+UMNOPROF=0
AT+CFUN=15

When the module comes back, select the correct RAT:

AT+URAT=7
AT+CFUN=15

If you are using the SARA-R410M-02B variant, you are in the US, and you are experiencing exceptionally long (50 minutes) attachment times, u-blox recommends setting UMNOPROF to 100 rather than 0. MNO profile 100 is defined as “standard Europe”, but u-blox says this the best generic configuration for this variant.

Perform an HTTP GET

To perform an HTTP GET using the built-in HTTP client:

  1. Configure the APN: AT+CGDCONT=1,"IP","super".
  2. Reset profile 0’s parameters to the defaults: AT+UHTTP=0.
  3. Configure the HTTP server name: AT+UHTTP=0,1,"api.ipify.org".
  4. Set the network port to 443: AT+UHTTP=0,5,443.
  5. Apply TLS encryption: AT+UHTTP=0,6,1.
  6. Perform a GET request and store the result in the file test.ffs: AT+UHTTPC=0,1,"/","test.ffs".
    • The modem will respond with +UUHTTPCR: 0,1,1.

Now you can request the file containing the response from the server by issuing AT+URDFILE="test.ffs". This will yield:

+URDFILE: "http_last_response_0",179,"HTTP/1.1 200 OK
Server: Cowboy
Connection: close
Content-Type: text/plain
Vary: Origin
Date: Tue, 05 Jan 2021 18:31:02 GMT
Content-Length: 12
Via: 1.1 vegur

3.86.104.174"
OK

This example uses a service that returns the IP address of the requester.

Low-power modes

The SARA-R4 supports eDRX and PSM for low-power operation. The commands to enable each of these are, respectively:

AT+CEDRXS=1
AT+CPSMS=1

Using these features, but especially PSM, can make the modem inaccessible to the terminal during its sleep time. It’s best to experiment with these features with the modem local. To disable all power saving, send:

AT+CEDRXS=0
AT+CPSMS=0

You can learn more about implementing these modes in our low-power usage documentation.

The use of a PIN-protected SIM card and PSM is not supported on the SARA-R410M. If the SIM has a PIN set, the module will not enter PSM.

LARA-R2 Cat-1/2G/3G

Initialization

First, configure the APN with AT+CGDCONT=1,"IP","super".

Next, bring up the initial PDP context — this is required for both the ping and HTTP GET examples, below:

  1. Check the GPRS attachment status, which should be 1: AT+CGATT?.
  2. Configure the APN for GPRS profile 0: AT+UPSD=0,1,"super".
  3. Optionally, save the GPRS config to non-volatile memory (NVM): AT+UPSDA=0,1.
  4. Activate the GPRS connection: AT+UPSDA=0,3.
    • The modem will respond with: +UUPSDA: 0,"100.64.80.24".
  5. Ensure the GPRS connection is up: AT+UPSND=0,8.
    • The modem will respond with: +UPSND: 0,8,1. The final parameter of the response will be 1 if the GPRS connection is up.
  6. Optionally, request the currently assigned IP address: AT+UPSND=0,0.
    • This will generate a response like: +UPSND: 0,0,"100.64.80.24".

Perform a ping

Issue AT+UPING="8.8.8.8". This will yield:

+UUPING: 1,32,"dns.google","8.8.8.8",111,95
+UUPING: 2,32,"dns.google","8.8.8.8",111,101
+UUPING: 3,32,"dns.google","8.8.8.8",111,88
+UUPING: 4,32,"dns.google","8.8.8.8",111,95

Perform an HTTP GET

To perform an HTTP GET using the built-in HTTP client:

  1. Reset profile 0’s parameters to the defaults: AT+UHTTP=0.
  2. Configure the HTTP server name: AT+UHTTP=0,1,"api.ipify.org".
  3. Set the network port to 443: AT+UHTTP=0,5,443.
  4. Apply TLS encryption: AT+UHTTP=0,6,1.
  5. Perform a GET request and store the result in the default filename for profile 0: AT+UHTTPC=0,1,"/","".
    • The modem will respond with +UUHTTPCR: 0,1,1. The modem will respond with: +UUHTTPCR: 0,1,1 — the final parameter of this response indicates success (1) or failure (0).

Now you can read the file containing the response from the server by requesting the file with the default name for profile 0, "http_last_response_0". Do so by issuing AT+URDFILE="http_last_response_0". This will yield:

+URDFILE: "http_last_response_0",180,"HTTP/1.1 200 OK
Server: Cowboy
Connection: close
Content-Type: text/plain
Vary: Origin
Date: Tue, 05 Jan 2021 20:54:44 GMT
Content-Length: 13
Via: 1.1 vegur

54.81.145.161"
OK

This step uses a service that returns the IP address of the requester.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more