メニュー

Expand
ページを評価:

U-blox Modules with Super SIM

Super SIM does not support NB-IoT.

Initialization

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

Disable NB-IoT

You must first set UMNOPROF to 0 for Super SIM and restart the module:

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

When the module comes back, you can select the Radio Access Technology (RAT):

AT+URAT=7
AT+CFUN=15

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 default filename for profile 0: AT+UHTTPC=0,1,"/","".
    • 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 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",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 step uses a service that returns the IP address of the requester.

Low-power modes

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

  • eDRX: AT+CEDRXS
  • PSM: AT+CPSMS

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.

既知の問題

None at this time.

LARA-R203 / LARA-R211 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.

既知の問題

None at this time.

ページを評価:

ヘルプが必要ですか?

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 Community Forums or browsing the Twilio tag on Stack Overflow.

フィードバックくださりありがとうございます!

We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

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!

ステップ1

Get link

Get a free personal referral link here

ステップ2:

Give $10

Your user signs up and upgrade using link

ステップ3

Get $10

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