Renesas RYZ014 Manual
Hide thumbs Also See for RYZ014:
Table of Contents

Advertisement

Quick Links

RYZ014 Modules
Use Cases with AT Commands
Introduction
This document will provide RYZ014-based platform users with practical use cases of AT commands.
Target Device
RYZ014 modules.
Contents
1.
Introduction .............................................................................................................................. 4
2.
Network Connection ................................................................................................................ 4
2.1
Check that the SIM Card is Ready .......................................................................................................... 4
2.1.1
Feature Description ............................................................................................................................... 4
2.1.2
Use Cases ............................................................................................................................................. 4
2.1.3
Error Handling ....................................................................................................................................... 7
2.2
Configure the Operator Mode .................................................................................................................. 7
2.2.1
Feature Description ............................................................................................................................... 7
2.2.2
Use Cases ............................................................................................................................................. 8
2.2.3
Error Handling ..................................................................................................................................... 10
2.3
Connect to the Network and Check that Attach is Done ....................................................................... 10
2.3.1
Feature Description ............................................................................................................................. 10
2.3.2
Use Cases ........................................................................................................................................... 10
2.3.3
Error Handling ..................................................................................................................................... 12
3.
How to Manage TLS Certificates ............................................................................................ 14
3.1
Feature Description ............................................................................................................................... 14
3.2
Use Cases with Certificates .................................................................................................................. 14
3.2.1
Identify a Free Certificate Index Entry ................................................................................................. 14
3.2.2
Add Certificate at Index 19 .................................................................................................................. 16
3.2.3
Read Certificate at Index 19 ................................................................................................................ 16
3.2.4
Remove Certificate at Index 19 ........................................................................................................... 16
3.3
Use Cases with Private Keys ................................................................................................................. 16
3.3.1
Upload a Private Key at Index 1 .......................................................................................................... 16
3.3.2
Read the Private Key at Index 1 .......................................................................................................... 17
3.3.3
Remove the Private Key at Index 1 ..................................................................................................... 17
3.4
Use Cases to Setup a Security Profile .................................................................................................. 17
3.4.1
With a Private Key Stored in the Non-Volatile Memory (NVM) ........................................................... 17
3.5
Error Handling........................................................................................................................................ 18
4.
Proprietary FOTA................................................................................................................... 18
Aug.29.22
Application Note
Page 1 of 67

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RYZ014 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas RYZ014

  • Page 1: Table Of Contents

    Application Note RYZ014 Modules Use Cases with AT Commands Introduction This document will provide RYZ014-based platform users with practical use cases of AT commands. Target Device RYZ014 modules. Contents Introduction ..........................4 Network Connection ........................ 4 Check that the SIM Card is Ready ......................4 2.1.1...
  • Page 2 RYZ014 Modules Use Cases with AT Commands Feature Description ..........................18 Use Cases ............................. 19 4.2.1 Synchronous Upgrade using HTTPS Protocol ..................19 4.2.2 Synchronous Upgrade using HTTPS Protocol with Certificates ............20 4.2.3 Asynchronous Upgrade using HTTPS Protocol .................. 20 4.2.4...
  • Page 3 RYZ014 Modules Use Cases with AT Commands 6.6.1 Feature Description ..........................37 6.6.2 Use Cases ............................37 How to Use MQTT(S) Commands ......................38 6.7.1 Feature Description ..........................38 6.7.2 MQTT Server ............................39 6.7.3 Use Cases ............................41 6.7.4 Error Handling .............................
  • Page 4: Introduction

    2.1 Check that the SIM Card is Ready 2.1.1 Feature Description Any RYZ014 module supports two SIM slots (internal and external). If an internal SIM is soldered, the AT+CSUS command switches from one slot to the other. This section details how to check the SIM card state, as well as how to and lock or unlock the SIM card using the PIN or PUK code.
  • Page 5 RYZ014 Modules Use Cases with AT Commands Command Response Comment AT+CSUS? +CSUS: 1 The internal SIM slot is configured Change the SIM slot to external. First ensure that the modem is in the +CFUN=0 state, otherwise change it with AT+CFUN=0...
  • Page 6 RYZ014 Modules Use Cases with AT Commands 2.1.2.5 Disable SIM Lock with PIN Code Command Response Comment Unlock SIM with correct PIN code AT+CPIN="000 "0000": PIN code 0" Disable SIM lock with correct PIN code. "SC": SIM (lock SIM/UICC card installed in the currently selected card AT+CLCK="SC"...
  • Page 7: Error Handling

    2.2 Configure the Operator Mode 2.2.1 Feature Description RYZ014 modules support up to 17 LTE bands. Scanning all the bands takes several minutes. Specifically, cell detection duration per candidate EARFCN is 30 ms/18 mJ (1.3 µAh). Scanning the full 17 bands will take 186 seconds and consume 115J (8.4 mAh).
  • Page 8: Use Cases

    RYZ014 Modules Use Cases with AT Commands • Roaming availability Note: When roaming is disabled, CEREG: 5 does not work. Only CEREG: 1 is supported. • Feature group in UE capability • PDN configuration • LwM2M support AT+SQNBANDSEL? command returns the list of the predefined operator modes and their respective scan configuration.
  • Page 9 RYZ014 Modules Use Cases with AT Commands Command Response Comment +SQNBANDSEL: 0,telstra,"3,28" +SQNBANDSEL: 0,telus,"12,4,5" +SQNBANDSEL: 0,truphone,"1,2,4,8,12,20" +SQNBANDSEL: 0,verizon-no- roaming,"4,13" +SQNBANDSEL: 0,verizon,"13,4,5,12,17,20" +SQNBANDSEL: 0,vodafone,"20,8" (...) Reduce the number of bands to be scanned Scan is limited to bands 3, 8 and 20.
  • Page 10: Error Handling

    RYZ014 Modules Use Cases with AT Commands 2.2.3 Error Handling The AT+SQNBANDSEL command only limits the number of bands to be scanned compared to the default configuration. You cannot add a new band to scan with this command. If you enter the AT+SQNBANDSEL command with a band that was not set for a specific operator mode, is ignored: the command will not return any error, but the band will not be scanned.
  • Page 11 RYZ014 Modules Use Cases with AT Commands Command Response Comment PDP context with cid 1 is activated +CGACT: 1,1 +CGACT: 2,0 +CGACT: 3,0 +CGACT: 4,0 2.3.2.4 Activate the PDP Context Command Response Comment 1: activate PDP context 3: cid 3...
  • Page 12: Error Handling

    RYZ014 Modules Use Cases with AT Commands 2.3.2.7 Force an Attachment to a Specific Operator (AT+COPS) Command Response Comment AT+COPS is available only when the modem is set to full functionality (CFUN: 1 state) AT+CFUN=1 +CEREG: 2 Deregister from the network...
  • Page 13 RYZ014 Modules Use Cases with AT Commands 2.3.3.3 If AT+CEREG? returns status 3 If AT+CEREG? returns status 3, the registration is denied. Command Response Comment Query network registration status AT+CEREG? +CEREG: 2,3 Possible causes: • Illegal mobile equipment • IMSI unknown at HLR (Home Location Register) •...
  • Page 14: How To Manage Tls Certificates

    Electronic Mail) format. To delete a certificate or a private key, the user simply writes a ‘0’-byte certificate or private key using file ID as <index>. A RYZ014 module holds 20 slots to store certificates and 20 slots for private keys. These files are stored on the file system of the module.
  • Page 15 RYZ014 Modules Use Cases with AT Commands Command Response Comment 00:00:00","36/07/16 23:59:59","sha1RSA","000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000","sha1","52b1 d7e64e2e1a453322ced6aa1c993bcb11f187" +SQNSNVR: "certificate",2,"/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA","0000000000000000","/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA","06/11/10 00:00:00","31/11/10 00:00:00","sha1RSA","000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000","sha1","9aacd9b54b2f972ef2e1bd488eb550afcc462d46" +SQNSNVR: "certificate",3,"/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA","0000000000000000","/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA","06/11/10 00:00:00","31/11/10 00:00:00","sha1RSA","000000000000000000000000000000000000000000000000000000000000000...
  • Page 16: Add Certificate At Index 19

    RYZ014 Modules Use Cases with AT Commands 3.2.2 Add Certificate at Index 19 Command Response Comment Upload a certificate type file with size 1078 bytes into the file system. AT+SQNSNVW="certificate",0,1078 > After prompt '>', enter the data from certificate file and type enter in the end.
  • Page 17: Read The Private Key At Index 1

    RYZ014 Modules Use Cases with AT Commands Command Response Comment h46R1gIvDPGBeS0r7Ex4ILu WCYDIWrQ740KaxODp8+z10GfqFzKMq7eVFBl6gBtzU1JMs7L12qnx7U+rJqf0zL7 /yoN9g25RqCbUczK1h9gkwky1TVKnZDK2+gE JJjNhnbp8T4zgPiS8X/V0YypVeTnu2Yl7oXFDeHeci77DKXcGz5eWMo = -----END RSA PRIVATE KEY----- 3.3.2 Read the Private Key at Index 1 Command Response Comment Read the private key at index 1 AT+SQNSNVR="privatekey",1 +SQNSNVR: 1,"-----BEGIN RSA PRIVATE KEY----- MIIEpQIB (...) Gz5eWMo=...
  • Page 18: Error Handling

    RYZ014 Modules Use Cases with AT Commands Command Response Comment -----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEA0DeexyAY2TP1LeRL/MR7nVXzq+eQysfvZCzZVy39KXPtSaGL 5gHjlGS2ufB9ZB3KgOxSMlF+W7oqB6xa5FLMD4YQfgQiUux6kmuQZ4r3yvCUlOxD (…) h46R1gIvDPGBeS0r7Ex4Ilu WCYDIWrQ740KaxODp8+z10GfqFzKMq7eVFBl6gBtzU1JMs7L12qnx7U+rJqf0zL7/ yoN9g25RqCbUczK1h9gkwky1TVKnZDK2+gE JJjNhnbp8T4zgPiS8X/ V0YypVeTnu2Yl7oXFDeHeci77DKXcGz5eWMo= ---END RSA PRIVATE KEY----- Setup the security profile with both certificate and private key Note that there is no requirement for the certificate sequence; the module will send everything at the certificate/privatekey index mentioned in the secure profile to the server as is.
  • Page 19: Use Cases

    RYZ014 Modules Use Cases with AT Commands needs to prepare the firmware package containing only the differences between the old and new firmware version. This reduces the amount of data transmission and accelerates the firmware upgrade. Note: A device reboot is required to finalize the system upgrade. This can be triggered through the <reboot>...
  • Page 20: Synchronous Upgrade Using Https Protocol With Certificates

    RYZ014 Modules Use Cases with AT Commands 4.2.2 Synchronous Upgrade using HTTPS Protocol with Certificates Command Response Comment Set the security profile to be used, pointing AT+SQNSPCFG=1,0,"0x002F;0 +SQNSPCFG: to the right certificate x003C;0x0035;0x003D",1,5 1,0,"0x002F;0x003C;0x0035;0x ,,,"", "",0 003D",1,5,,,"","",0 The device will reboot automatically after AT+SQNSUPGRADE="https://ec23-134-42-3.us-east-...
  • Page 21: Cancel Asynchronous Upgrade With Https Protocol

    RYZ014 Modules Use Cases with AT Commands Command Response Comment +SQNSUPGRADE: “downloading”,40 +SQNSUPGRADE: “downloading”,50 +SQNSUPGRADE: “downloading”,60 +SQNSUPGRADE: “downloading”,70 +SQNSUPGRADE: “downloading”,80 +SQNSUPGRADE: “downloading”,90 +SQNSUPGRADE: “downloading”,100 Device is rebooting and will +SQNSUPGRADE: “rebooting” enter updater mode to finish the upgrade Device is upgraded to the new +SQNSUPGRADE: “installed”...
  • Page 22: Cancel Asynchronous Upgrade With Ftp Protocol

    RYZ014 Modules Use Cases with AT Commands Command Response Comment +SQNSUPGRADE: "downloading",0 +SQNSUPGRADE: "downloading",10 +SQNSUPGRADE: "downloading",20 +SQNSUPGRADE: "downloading",30 +SQNSUPGRADE: "downloading",40 +SQNSUPGRADE: "downloading",50 +SQNSUPGRADE: "downloading",60 +SQNSUPGRADE: "downloading",70 +SQNSUPGRADE: "downloading",80 +SQNSUPGRADE: "downloading",90 +SQNSUPGRADE: "downloading",100 +SQNSUPGRADE: "rebooting" +SQNSUPGRADE: "installed" +SYSSTART 4.2.6 Cancel Asynchronous Upgrade with FTP protocol...
  • Page 23: Error Handling

    RYZ014 Modules Use Cases with AT Commands +SQNSUPGRADE: "downloading",0 +SQNSUPGRADE: "downloading",10 +SQNSUPGRADE: "downloading",20 +SQNSUPGRADE: "downloading",30 +SQNSUPGRADE: "downloading",40 +SQNSUPGRADE: "downloading",50 +SQNSUPGRADE: "downloading",60 +SQNSUPGRADE: "downloading",70 +SQNSUPGRADE: "downloading",80 +SQNSUPGRADE: "downloading",90 +SQNSUPGRADE: "downloading",100 +SQNSUPGRADE: "rebooting" +SQNSUPGRADE: "installed" +SYSSTART 4.3 Error Handling If an error code (code:529) is received while the modem is trying to download the firmware files and verify downloaded firmware reports a corrupted image, first check that the correct firmware file is used.
  • Page 24: Use Cases

    A maximum of six sessions can be opened in parallel, with one session per socket. A socket is created by the RYZ014 module and not by the host MCU. UDP and TCP sockets can be opened with either in command or online modes: In command mode, the UART transmits AT commands and responses.
  • Page 25: How To Send Data With Udp

    RYZ014 Modules Use Cases with AT Commands Figure 1. Escape Sequence from Online Mode to Command Mode AT+SQNSO <connId> command resumes the online mode for connection <connId>, provided the socket timer has not expired. Sockets support both text data and HEX data formats. TCP/UDP listening port is supported in specific way that is different from a typical server.
  • Page 26: Use Cases In Online Mode

    RYZ014 Modules Use Cases with AT Commands 6.1.2 Use Cases in Online Mode Command Response Comment Ensure that UE is attached to LTE network. You can then configure the socket. Configure socket with default configuration. AT+SQNSCFG=1,1,0,0,600,50 Configure extra socket parameters with default...
  • Page 27: Accept Any Remote Option

    RYZ014 Modules Use Cases with AT Commands Command Response Comment Shutdown connection AT+SQNSH=1 6.1.4 Accept Any Remote Option The following examples show how to receive packets coming from another IP address/port and how to send packets to another IP address/port.
  • Page 28: Error Handling

    RYZ014 Modules Use Cases with AT Commands Command Response Comment Check that you get “hello1” on the server#1 (port 5001) even though the remote port configured for the socket is 5000 Run below command on the server#2 to listen to packets on port 5002 : nc -lu 5002 AT+SQNSSEND=1,"172.16.72.8",5002...
  • Page 29: Use Cases In Online Mode

    RYZ014 Modules Use Cases with AT Commands TCP Typical Setup Figure 2. Note: The connection to the server is opened from another machine by running netcat (shorten as nc) program as follows: ”nc -l 8008”. Data from the server are also typed manually.
  • Page 30: Use Cases In Command Mode With Text Data

    RYZ014 Modules Use Cases with AT Commands Command Response Comment +SQNSS:1,2,"192.168.13.3",491 65, "192.168.13.1",8008 +SQNSS:2,0 +SQNSS:3,0 +SQNSS:4,0 +SQNSS:5,0 +SQNSS:6,0 Restore the socket in online mode. AT+SQNSO=1 Success indication CONNECT Suspend the socket. Got again Send data again from the server. URC to indicate data from remote +SQNSRING: 1 host.
  • Page 31: Use Cases In Command Mode With Hex Data

    RYZ014 Modules Use Cases with AT Commands Command Response Comment Shutdown connection AT+SQNSH=1 6.2.4 Use Cases in Command Mode with Hex Data In hex mode, data is represented as a sequence of hexadecimal numbers from 00 to FF. This is usually used to send a binary file.
  • Page 32: How To Setup A Secure Socket Connection

    RYZ014 Modules Use Cases with AT Commands 6.3 How to Setup a Secure Socket Connection 6.3.1 Feature Description It is possible to combine the use of SSL/TLS with a TCP or SSL/DTLS with a UDP socket for a secure connection. Two additional commands are needed: •...
  • Page 33: How To Send Data On Http Connection

    The user can set up a HTTPS connection with or without certificate validation. When you access a website using HTTPS, a certificate chain should be provided. The RYZ014 module does not store it in flash memory by default. Therefore, the user needs to retrieve and load the correct certificate to use the HTTPS feature.
  • Page 34: Use Cases In Synchronous Mode With +Sqnhttp Commands

    RYZ014 Modules Use Cases with AT Commands 6.4.2 Use Cases in Synchronous Mode with +SQNHTTP Commands 6.4.2.1 Send a GET Request Command Response Comment Type this command to configure the HTTP connection without SSL enabled. AT+SQNHTTPCFG=1,"httpbin.org",80,0,"","",0,120,1 Read command of HTTP configuration AT+SQNHTTPCFG? +SQNHTTPCFG: 0,"",80,0,"","",0,120,3...
  • Page 35: Use Case With +Sqnfget Command

    RYZ014 Modules Use Cases with AT Commands Set <post_param> to “3:boundary=—-WebKitFormBoundaryv9K2Q6NJOnI5kAZX”, then the request will contain “Content-Type: multipart/form-data; boundary=—- WebKitFormBoundaryv9K2Q6NJOnI5kAZX” header line. AT+SQNHTTPSND=0,0,"/upload.php",336,"3:boundary=----WebKitFo rmBoundaryv9K2Q6NJOnI5kAZX" In the example above, data length is 336. And after you get a ">" prompt, enter 336 bytes as content with boundary string as a separator.
  • Page 36: Use Case With +Sqnfput Command

    RYZ014 Modules Use Cases with AT Commands 6.4.4 Use Case with +SQNFPUT Command 6.4.4.1 Send POST request with AT+SQNFPUT The AT+SQNFPUT command performs a HTTP POST or PUT request with file content to server. When an answer from HTTP server is received, you will see +SQNHTTPRING URC with information.
  • Page 37: How To Use Tftp At Commands

    RYZ014 Modules Use Cases with AT Commands 6.5 How to Use TFTP AT Commands 6.5.1 Feature Description The user can send data on TFTP connection in two different modes, asynchronous mode and synchronous mode. The AT commands for TFTP support are: •...
  • Page 38: How To Use Mqtt(S) Commands

    [Data] 6.7 How to Use MQTT(S) Commands 6.7.1 Feature Description 6.7.1.1 AT Commands Renesas provides the following set of dedicated AT commands to implement MQTT protocol: • Configure MQTT client: +SQNSMQTTCFG • Initiate a MQTT client connection to a broker: +SQNSMQTTCONNECT •...
  • Page 39: Mqtt Server

    RYZ014 Modules Use Cases with AT Commands The AT command AT+SQNSNVW should be used to upload the certificates on the device. The AT command AT+SQNSPCFG sets the security profile parameters required to configure the following SSL/TLS connections properties. 6.7.2 MQTT Server AWS IoT platform, Cloud IoT Core, Azure, or any other MQTT server can be used tests and usage.
  • Page 40 RYZ014 Modules Use Cases with AT Commands You need then to upload the two certificates and the private on your device using the AT+SQNSNVW commands. Then, set a security profile (with AT+SQNSPCFG) using the two certificates and the private key you just uploaded.
  • Page 41: Use Cases

    RYZ014 Modules Use Cases with AT Commands Please refer to Section 6.7.3.3 to connect to Cloud IoT core server, subscribe and publish to a topic. Pay attention to the following: • The client id parameter to be set in the +SQNSMQTTCFG command is formatted in this way:...
  • Page 42 RYZ014 Modules Use Cases with AT Commands Command Response Comment AT+SQNSMQTTSUBSCRIBE= 0,"sqn/ test",1 Notification that subscribing operation is finished. +SQNSMQTTONSUBSCRIB E:0,"sqn/test",0 Publish a payload into a topic on a test Mosquitto broker. The command responses the prompt ‘>’ and waits for the data to send.
  • Page 43 RYZ014 Modules Use Cases with AT Commands Command Response Comment Configure the security profile: • If the remote server does not support one of the cipher suites configured in the <cipherSpecs> list, the handshake fails. • For security reason, it is recommended to reduce the list to the minimum to avoid “man in the middle” attack like.
  • Page 44 RYZ014 Modules Use Cases with AT Commands Command Response Comment AT+SQNSMQTTRCVMESSAGE {"msg": "hello from IoT device"} "sqn/test",1 Disconnect from a test Mosquitto broker. AT+SQNSMQTTDISCONNECT URC notifies about drop of MQTT connection for +SQNSMQTTONDISCONNE client 0. CT:0, 6.7.3.3 Encrypted and Client Certificate Required MQTT server can also require clients to provide a certificate to authenticate their connection.
  • Page 45: Error Handling

    UEs. The RYZ014 module uses SMS over NAS, also called SMS over SG, with 3GPP format (3GPP2 format is not supported with SMS over NAS) to send or receive SMS. SMS over NAS complies with 3GPP specification 27.005.
  • Page 46 RYZ014 Modules Use Cases with AT Commands • Text mode: This is the most basic type of SMS. It is easy to use but has less options and features than PDU mode. • PDU mode: This is an advanced type of SMS. It provides control of features like concatenated (multi- segment) SMS but it is more complex to create than a plain text mode.
  • Page 47: How To Send And Receive Sms In Text Mode

    RYZ014 Modules Use Cases with AT Commands 7.1 How to Send and Receive SMS in Text Mode 7.1.1 Feature Description This section details the operations required to send and receive a short message, with standard or Asian characters. Related AT commands are: •...
  • Page 48: How To Send And Receive A Sms In Pdu Mode

    RYZ014 Modules Use Cases with AT Commands Command Response Comment Configure UE for EPS combined attach AT+CEMODE=2 AT+CFUN=1 +CEREG:2 +CEREG:1,”0002”,”01A2 2002”,7 Configure UTF-8 encoding AT+CSCS="UTF-8" Configure SMS in text mode AT+CMGF=1 7.2 How to Send and Receive a SMS in PDU Mode 7.2.1 Feature Description...
  • Page 49: How To Manage Sms Storage

    AT+CMGR=0 +CMGR: 1,,23 04a11132f30405a11132f30000f0c020f0e2400007c8329bfd06c500 OK 7.3 How to Manage SMS Storage 7.3.1 Feature Description There are two storage areas for short messages on a RYZ014-based device: • The SIM card • The modem or device itself Use AT+CPMS (Preferred Message Storage) command to: •...
  • Page 50 RYZ014 Modules Use Cases with AT Commands Command Response Comment Configure storage area to SIM AT+CPMS="ME","ME","SM" +CPMS: 1,10,1,10,0,20 Send two more messages to yourself AT+CMGS="+11000000151" again > bbbb <CTRL-Z> +CMGS: 4 +CMTI: "SM",1 AT+CPMS? +CPMS: "ME",1,10,"ME",1,10,"SM",1,20 AT+CMGS="+11000000151" > ccccc <CTRL-Z>...
  • Page 51: Error Handling

    UE will not be able to receive any SMS (text or PDU-mode) 8. Low Power with eDRX and PSM Please refer to the power consumption measurements application note for more details on low power mode with RYZ014 modules. 8.1 How to Use eDRX Feature 8.1.1 Feature Description eDRX (extended Discontinuous Reception) in RRC Idle State provides two enhancements, compared to “regular”...
  • Page 52 • URC +CEDRXP Note: RYZ014 modules support both the legacy 3GPP command (AT+CEDRXS) and a proprietary AT command (AT+SQNEDRX) to configure eDRX. It is recommended to use AT+SQNEDRX as it provides more options such as the possibility to change the value of the paging time window (PTW).
  • Page 53: Use Cases

    RYZ014 Modules Use Cases with AT Commands E-UTRAN eDRX cycle length duration WB-S1 PTW Value NB-S1 PTW Value 2621.44 seconds 17.92 seconds 35.84 seconds 5242.88 seconds (see note 19.20 seconds 38.4 seconds 10485.76 seconds (see note 20.48 seconds 40.96 seconds Note: 1.
  • Page 54: How To Use Psm Feature

    RYZ014 Modules Use Cases with AT Commands 8.2 How to Use PSM Feature 8.2.1 Feature Description A UE may use the PSM (Power Saving Mode) to reduce its power consumption. Behavior in PSM Figure 8. When the device is dormant, the UE is not reachable from the network. However, it remains registered to the network and there is no need to re-attach or re-establish PDN connections at wake up.
  • Page 55: Use Case

    RYZ014 Modules Use Cases with AT Commands Table 6 presents the mapping for the T3412 timer. Bits 4 to 0 represent the binary coded timer value and bits 5 to 7 define the timer value unit for the GPRS timer.
  • Page 56: Edrx And Psm Troubleshooting

     Every URC on all the UART configured as AT ports have been read by the host MCU • The estimated sleep duration is long enough  RYZ014 module will not enter Deep Sleep mode if a timer is scheduled to fire within a few 10 of a second 8.4 Maximum Transmission Power Reduction...
  • Page 57: Informal Network Scan

    RYZ014 Modules Use Cases with AT Commands Note: These settings should be re-entered after each reboot. Command Response Comment AT+CFUN=0 AT+SQNDPR=0,1 Limit to 22 dBm AT+SQNTXPWR=0,20,2200,0 AT+CFUN=1 9. Informal Network Scan 9.1 Feature Description Two different AT commands can be used to get information on the serving and neighboring cells.
  • Page 58: Error Handling

    10. Hardware Configuration 10.1 UART Interfaces RYZ014 modules can be controlled via a serial interface UART using standard AT commands. The serial AT interface can be connected using HW flow control or not. Please refer to the System Integration Guide for more details.
  • Page 59: How To Configure Modem Alarms

    RYZ014 Modules Use Cases with AT Commands 10.3 How to Configure Modem Alarms 10.3.1 Feature Description In some cases, MCU needs to set timers in the module and get an alarm when expired. AT+CALA and AT+CALD are 3GPP standard AT commands defined in specification 27.007.
  • Page 60 RYZ014 Modules Use Cases with AT Commands Command Response Comment Compared with above date, it is now AT+CALA? +CALA: "19/01/01,00:01:00",0,0, “19/01/02”. "first alarm",0 +CALA: "19/01/02,00:01:30",1,0,"second ", "1,2,3,4,5,6,7",1 10.3.2.4 Set Alarm - Format Time Recurring Selected Days Command Response Comment Set date/time by +CCLK AT+CCLK="19/01/01,00...
  • Page 61 11. Manufacturing 11.1 How to Configure GPIOs Alternate Functions 11.1.1 Feature Description Several of the RYZ014 module GPIO signals have alternate functions that can be configured with AT+SQNHWCFG. The following functions can be achieved on RYZ014 module pins: • Wake signal detection (wakeId = "wake0", "wake1", "wakeRTS0", "wakeRTS1", "wakeSim0") function control •...
  • Page 62 RYZ014 Modules Use Cases with AT Commands By default, WAKE0 and WAKE1 are configured as GPIOs (GPIO11 and GPIO12 respectively). The GPIO’s function should first be deactivated before being able to use these pins as wake sources. Command Response Comment...
  • Page 63 RYZ014 Modules Use Cases with AT Commands 11.1.2.2 Antenna Tuning On small PCBs, it is difficult to design a proper antenna matching circuit for a wide range of frequencies. One option consists of tuning the antenna matching dynamically, according to the active RF band. The configuration command AT+SQNHWCFG=”antennaTuning”...
  • Page 64 +SYSSHDN +SYSTART Switch to Manufacturing Mode AT+CFUN=5 AT+SQNHWCFG="lpm" +SQNHWCFG: lpm: disabled 11.1.2.5 UART Configuration There are three UARTs available in RYZ014 modules, each of them is configurable. Command Response Comment AT+CFUN=5 Switch to Manufacturing Mode AT+SQNHWCFG="uart0" +SQNHWCFG: uart0: enable, flowcontrol: rtscts, baudrate:...
  • Page 65 RYZ014 Modules Use Cases with AT Commands 12. Appendix. Glossary and Abbreviations Term Description Analog to Digital Converter Airplane mode Device mode where the modem is ON, but the RF functions are OFF Prefix for AT commands. Historical prefix for Hayes commands, meaning “Attention”...
  • Page 66 RYZ014 Modules Use Cases with AT Commands Term Description LwM2M Lightweight Machine to Machine Packet Error Rate USIM Universal Subscriber Identity Module R19AN0075EU0200 Rev.2.00 Page 66 of 67 Aug.29.22...
  • Page 67 RYZ014 Modules Use Cases with AT Commands Revision History Description Rev. Date Page Summary 1.00 Apr.16.21 — Initial release 1.50 Mar.15.22 — Overall update 2.00 Aug.29.22 — Updated section 5, section 6.3, 6.4, section 8.4, section 11. General updates overall.
  • Page 68 Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.

Table of Contents