In this exercise, we will use the Serial LTE Modem application to send AT commands from an external computer to the modem. This way, we can send commands and read the response on a terminal emulator instead of through an application running on the device.
This sample enables the AT Host Library through the config CONFIG_AT_HOST_LIBRARY. This will automatically spawn a thread to handle the AT commands, meaning to utilize this library, the only thing needed in your application is enabling it through the Kconfig.
Important
Some of the terminal output logs displayed below and throughout other exercises will vary depending on your available network provider and network configurations.
We are going to use the Quick Start application to flash this exercise sample to our device.
2. Select the device you are using.
The Quick Start application will search for devices connected to your computer. Select the DK or Thingy:91 X, depending on the board you are using, then select Continue.
3. Program the device.
Go through the steps until the Program section, then select AT Commands. Select Program to continue.
This will program the device with the Serial LTE modem application, which allows us to send AT commands to interface with the modem on the nRF91 Series SiP:
Note
This course builds on the nRF Connect SDK Fundamentals course and focuses on Cellular IoT. You need to read Lesson 1 in the nRF Connect SDK Fundamentals to learn how to install nRF Connect SDK on your machine and build applications. Furthermore, completing the nRF Connect SDK Fundamentals course is strongly advised as it provides a comprehensive understanding of the nRF Connect SDK. The exercises in this course assume you have a basic understanding of the nRF Connect SDK.
1. Open the Serial LTE Modem application in VS Code, by selecting Browse samples -> nRF Connect SDK <version> -> Serial LTE Modem.
Make sure theBuild after generating configuration option is enabled to trigger the build process after clicking on the Build Configuration button.
3. When the build is complete, flash the application to your device.
Important
If you are using the Thingy:91 without an external debugger, make sure to follow the Thingy:91 flash procedure.
4. Open nRF Connect for Desktop and install and launch the Serial Terminal application. This is a terminal emulator for serial port connections and is what we will use to send AT commands to the modem.
4.1 In the upper left-hand corner, select your device. 4.2 Then select Connect to port. 4.3 Send the AT commands in the panel right above the terminal, where it says, “Type and press enter to send.”
The rest of the exericise is split into tabs depending on if you are using a nRF91x1 or nRF9160 device.
5. Subscribe to network status notifications using +CEREG.
We would like to receive unsolicited network status notifications. The command also lets you set how much information you would like in each notification, determined by setting between levels 1 and 5.
Let’s subscribe to a level-5 notification, through +CEREG, by sending
Copy
AT+CEREG=5
When we turn on the modem, you should observe the following regular output printed intermittently.
6. Subscribe to result code notifications using +CSCON.
This command subscribes to unsolicited result code notifications, and the value you set determines how much information the notification contains between levels 1 and 3.
Let’s subscribe to level-1-related unsolicited notifications, through +CSCON, by sending
Copy
AT+CSCON=1
When we turn on the modem, you should observe the following regular output printed intermittently.
Here we can see that the unsolicited notifications (+CEREG: 2) indicate the UE is not registered but is either searching for an operator or trying to attach, and the modem is in RRC Connected mode (+CSCON: 1). Then the UE attaches and is registered with a network (+CEREG: 5), and the modem goes to RRC Idle mode (+CSON: 0).
10. Store the current configurations to flash using +CFUN.
Now that we’ve connected to a network, let’s store all the configurations to flash. This will store certain AT command configurations and the network information so that in the event of a reset, the device does not have to go through the same procedure again, thus speeding up the connection process.
Send the following commands, one after another.
Copy
AT+CFUN=0
Copy
AT+CFUN=1
This will save the current configurations and turn the modem on again.
Note
The state of +CEREG and +CSCON are not stored when running AT+CFUN=0. These commands must be run again if you want these unsolicited notifications.
Error handling
For error handling, let’s enable some error reporting functions through available AT commands
11. Let’s enable the use of the +CME error codes in responses, through +CMEE, by sending
Copy
AT+CMEE=1
12. Confirm this by sending an invalid command that we know returns a +CME error.
Let’s try to set the system mode while the modem is on by sending the following
14. Now we will test the available power-saving technique PSM
14.1 Calculate the timer value for 6 minutes <Active-Time> and 8 hours <Periodic-TAU>.
Recall the table for interpreting the different timers.
Timer value unit <Active-Time>
Timer value unit <Periodic-TAU>
<Active-Time>: Let’s choose the timer value unit corresponding to 6 minutes: 010. Then the timer value should be 1 in binary: 00001. This gives us 01000001.
<Periodic-Tau>: The largest time value unit applicable is 1 hour: 001. To get 8 hours, the timer value should be 8, which in binary is 01000. This gives us 00101000.
14.2 Enable power saving mode and request <Periodic-TAU> be 8 hours and <Active-Time> be 6 minutes, through +CPSMS, by sending
Copy
AT+CPSMS=1,,,"00101000","01000001"
In the above command, we are setting a requested value for the periodic TAU timer and the Active-Time timer. Note that these can be ignored by the network.
Note
AT+CPSMS? will just read the values you are requesting, not the actual values set by the network.
14.3 Now that we’ve requested PSM let’s read out the values to confirm that it was actually enabled by the network. This is done by reading the value of <Active-Time>, either using +CEREG or %XMONITOR. If it is deactivated, you do not have PSM.
Send the following command
Copy
AT%XMONITOR
Below are two examples of response messages, one where PSM was enabled and the requested values granted and the other where PSM was not enabled.
Observe that the PSM values requested in the previous step have not been granted by the network, and the field <Active-Time> is indicating the timer is deactivated (11100000).
PSM has not been enabled by the network and is most likely not supported by the network provider.
15. Now, we will test the available power-saving technique eDRX with PSM.
15.1 Disable PSM by sending the following command
Copy
AT+CPSMS=0
15.2 Enable eDRX by setting the applicable eDRX parameters, through +CEDRXS, by sending
Requesting for LTE-M:
Copy
AT+CEDRXS=2,4,"0010"
Requesting for NB-IoT:
Copy
AT+CEDRXS=2,5,"0010"
The above command sets <mode> to 2 which enables the use of eDRX and enables the unsolicited result code +CEDRXP. <AcT-type> sets for which AcT-type the value configured should apply (either 4 or 5, for LTE-M or NB-IoT, respectively), and requests the eDRX interval of 20,48 seconds (<Requested_eDRX_value> to "0010").
15.3 Now that we’ve requested eDRX let’s read out the values to confirm that it was actually enabled by the network. Similar to +CPSMS, the read command of +CEDRXS will only return the requested values. To read the values from the network, we can either wait for the unsolicited notification (if <mode> is 2) or use +CEDRXRDP.
Send the following command
Copy
AT+CEDRXRDP
Below are two examples of response messages, one where eDRX was enabled and the requested values granted and the other where eDRX was not enabled.
eDRX enabled:
+CEDRXRDP: 5,"0010","0010","0111"
Terminal
Observe the eDRX values
<NW-Provided_eDRX_value>: "0010" (20.48 s)
<Paging_time_window>: "0111" (20.48 s)
eDRX has been granted by the network with the requested eDRX Cycle.
eDRX not enabled:
+CEDRXRDP:5,"0010","",""
Terminal
Observe that the eDRX Cycle requested has not been granted since the response does not contain the parameters.
eDRX has not been enabled by the network and is most likely not supported by the network provider.
If steps 14 and 15 were successful and you were granted both PSM and eDRX, proceed to the next step.
16 (Optional). Let’s enable PSM and check if eDRX and PSM are supported simultaneously by the network provider.
We have been granted both eDRX and PSM from the network.
Now you have practiced using AT commands to establish an LTE connection, read and understand notifications from the network and configure power saving techniques.
Subscribe to notifications
5. Subscribe to network status notifications using +CEREG.
We would like to receive unsolicited network status notifications. The command also lets you set how much information you would like in each notification, determined by setting between levels 1 and 5.
Let’s subscribe to a level-5 notification, through +CEREG, by sending
Copy
AT+CEREG=5
When we turn on the modem, you should observe the following regular output printed intermittently.
6. Subscribe to result code notifications using +CSCON.
This command subscribes to unsolicited result code notifications, and the value you set determines how much information the notification contains between levels 1 and 3.
Let’s subscribe to level-1-related unsolicited notifications, through +CSCON, by sending
Copy
AT+CSCON=1
When we turn on the modem, you should observe the following regular output printed intermittently.
Here we can see that the unsolicited notifications (+CEREG: 2) indicate the UE is not registered but is either searching for an operator or trying to attach, and the modem is in RRC Connected mode (+CSCON: 1). Then the UE attaches and is registered with a network (+CEREG: 5), and the modem goes to RRC Idle mode (+CSON: 0).
10. Store the current configurations to flash using +CFUN.
Now that we’ve connected to a network, let’s store all the configurations to flash. This will store certain AT command configurations and the network information so that in the event of a reset, the device does not have to go through the same procedure again, thus speeding up the connection process.
Send the following commands, one after another.
Copy
AT+CFUN=0
Copy
AT+CFUN=1
This will save the current configurations and turn the modem on again.
Note
The state of +CEREG and +CSCON are not stored when running AT+CFUN=0. These commands must be run again if you want these unsolicited notifications.
Error handling
For error handling, let’s enable some error reporting functions through available AT commands
11. Let’s enable the use of the +CME error codes in responses, through +CMEE, by sending
Copy
AT+CMEE=1
12. Confirm this by sending an invalid command that we know returns a +CME error.
Let’s try to set the system mode while the modem is on by sending the following
14. Now we will test the available power-saving technique PSM
14.1 Calculate the timer value for 6 minutes <Active-Time> and 8 hours <Periodic-TAU>.
Recall the table for interpreting the different timers.
Timer value unit <Active-Time>
Timer value unit <Periodic-TAU>
<Active-Time>: Let’s choose the timer value unit corresponding to 6 minutes: 010. Then the timer value should be 1 in binary: 00001. This gives us 01000001.
<Periodic-Tau>: The largest time value unit applicable is 1 hour: 001. To get 8 hours, the timer value should be 8, which in binary is 01000. This gives us 00101000.
14.2 Enable power saving mode and request <Periodic-TAU> be 8 hours and <Active-Time> be 6 minutes, through +CPSMS, by sending
Copy
AT+CPSMS=1,,,"00101000","01000001"
In the above command, we are setting a requested value for the periodic TAU timer and the Active-Time timer. Note that these can be ignored by the network.
Note
AT+CPSMS? will just read the values you are requesting, not the actual values set by the network.
14.3 Now that we’ve requested PSM let’s read out the values to confirm that it was actually enabled by the network. This is done by reading the value of <Active-Time>, either using +CEREG or %XMONITOR. If it is deactivated, you do not have PSM.
Send the following command
Copy
AT%XMONITOR
Below are two examples of response messages, one where PSM was enabled and the requested values granted and the other where PSM was not enabled.
Observe that the PSM values requested in the previous step have not been granted by the network, and the field <Active-Time> is indicating the timer is deactivated (11100000).
PSM has not been enabled by the network and is most likely not supported by the network provider.
15. Now, we will test the available power-saving technique eDRX with PSM.
15.1 Disable PSM by sending the following command
Copy
AT+CPSMS=0
15.2 Enable eDRX by setting the applicable eDRX parameters, through +CEDRXS, by sending
Requesting for LTE-M:
Copy
AT+CEDRXS=2,4,"0010"
Requesting for NB-IoT:
Copy
AT+CEDRXS=2,5,"0010"
The above command sets <mode> to 2 which enables the use of eDRX and enables the unsolicited result code +CEDRXP. <AcT-type> sets for which AcT-type the value configured should apply (either 4 or 5, for LTE-M or NB-IoT, respectively), and requests the eDRX interval of 20,48 seconds (<Requested_eDRX_value> to "0010").
15.3 Now that we’ve requested eDRX let’s read out the values to confirm that it was actually enabled by the network. Similar to +CPSMS, the read command of +CEDRXS will only return the requested values. To read the values from the network, we can either wait for the unsolicited notification (if <mode> is 2) or use +CEDRXRDP.
Send the following command
Copy
AT+CEDRXRDP
Below are two examples of response messages, one where eDRX was enabled and the requested values granted and the other where eDRX was not enabled.
eDRX enabled:
+CEDRXRDP: 5,"0010","0010","0111"
Terminal
Observe the eDRX values
<NW-Provided_eDRX_value>: "0010" (20.48 s)
<Paging_time_window>: "0111" (20.48 s)
eDRX has been granted by the network with the requested eDRX Cycle.
eDRX not enabled:
+CEDRXRDP:5,"0010","",""
Terminal
Observe that the eDRX Cycle requested has not been granted since the response does not contain the parameters.
eDRX has not been enabled by the network and is most likely not supported by the network provider.
If steps 14 and 15 were successful and you were granted both PSM and eDRX, proceed to the next step.
16 (Optional). Let’s enable PSM and check if eDRX and PSM are supported simultaneously by the network provider.
We have been granted both eDRX and PSM from the network.
Now you have practiced using AT commands to establish an LTE connection, read and understand notifications from the network and configure power saving techniques.
v2.6.2 – v2.4.0
Using AT commands to control the modem
In this exercise, we will use the Serial LTE Modem application to send AT commands from an external computer to the modem. This way, we can send commands and read the response on a terminal emulator instead of through an application running on the device.
This sample enables the AT Host Library through the config CONFIG_AT_HOST_LIBRARY. This will automatically spawn a thread to handle the AT commands, meaning to utilize this library, the only thing needed in your application is enabling it through the Kconfig.
Important
Some of the terminal output logs displayed below and throughout other exercises will vary depending on your available network provider and network configurations.
We are going to use the Quick Start application to flash this exercise sample to our device.
2. Select the nRF91 DK.
The Quick Start application will search for devices connected to your computer. Select the nRF91 DK, then select Continue.
3. Program the device.
Go through the steps until the Program section, then select AT Commands. Select Program to continue.
This will program the device with the Serial LTE modem application, which allows us to send AT commands to interface with the modem on the nRF91 Series SiP:
Note
This course builds on the nRF Connect SDK Fundamentals course and focuses on Cellular IoT. You need to read Lesson 1 in the nRF Connect SDK Fundamentals to learn how to install nRF Connect SDK on your machine and build applications. Furthermore, completing the nRF Connect SDK Fundamentals course is strongly advised as it provides a comprehensive understanding of the nRF Connect SDK. The exercises in this course assume you have a basic understanding of the nRF Connect SDK.
1. Open the Serial LTE Modem application in VS Code, by selecting Browse samples -> nRF Connect SDK <version> -> Serial LTE Modem.
Make sure theBuild after generating configuration option is enabled to trigger the build process after clicking on the Build Configuration button.
3. When the build is complete, flash the application to your device.
Important
If you are using the Thingy:91 without an external debugger, make sure to follow the Thingy:91 flash procedure.
4. Open nRF Connect for Desktop and install and launch the Serial Terminal application. This is a terminal emulator for serial port connections and is what we will use to send AT commands to the modem.
4.1 In the upper left-hand corner, select your device. 4.2 Then select Connect to port. 4.3 Send the AT commands in the panel right above the terminal, where it says, “Type and press enter to send.”
Subscribe to notifications
5. Subscribe to network status notifications using +CEREG.
We would like to receive unsolicited network status notifications. The command also lets you set how much information you would like in each notification, determined by setting between levels 1 and 5.
Let’s subscribe to a level-5 notification, through +CEREG, by sending
Copy
AT+CEREG=5
When we turn on the modem, you should observe the following regular output printed intermittently.
6. Subscribe to result code notifications using +CSCON.
This command subscribes to unsolicited result code notifications, and the value you set determines how much information the notification contains between levels 1 and 3.
Let’s subscribe to level-1-related unsolicited notifications, through +CSCON, by sending
Copy
AT+CSCON=1
When we turn on the modem, you should observe the following regular output printed intermittently.
Here we can see that the unsolicited notifications (+CEREG: 2) indicate the UE is not registered but is either searching for an operator or trying to attach, and the modem is in RRC Connected mode (+CSCON: 1). Then the UE attaches and is registered with a network (+CEREG: 5), and the modem goes to RRC Idle mode (+CSON: 0).
10. Store the current configurations to flash using +CFUN.
Now that we’ve connected to a network, let’s store all the configurations to flash. This will store certain AT command configurations and the network information so that in the event of a reset, the device does not have to go through the same procedure again, thus speeding up the connection process.
Send the following commands, one after another.
Copy
AT+CFUN=0
Copy
AT+CFUN=1
This will save the current configurations and turn the modem on again.
Note
The state of +CEREG and +CSCON are not stored when running AT+CFUN=0. These commands must be run again if you want these unsolicited notifications.
Error handling
For error handling, let’s enable some error reporting functions through available AT commands
11. Let’s enable the use of the +CME error codes in responses, through +CMEE, by sending
Copy
AT+CMEE=1
12. Confirm this by sending an invalid command that we know returns a +CME error.
Let’s try to set the system mode while the modem is on by sending the following
14. Now we will test the available power-saving technique PSM
14.1 Calculate the timer value for 6 minutes <Active-Time> and 8 hours <Periodic-TAU>.
Recall the table for interpreting the different timers.
Timer value unit <Active-Time>
Timer value unit <Periodic-TAU>
<Active-Time>: Let’s choose the timer value unit corresponding to 6 minutes: 010. Then the timer value should be 1 in binary: 00001. This gives us 01000001.
<Periodic-Tau>: The largest time value unit applicable is 1 hour: 001. To get 8 hours, the timer value should be 8, which in binary is 01000. This gives us 00101000.
14.2 Enable power saving mode and request <Periodic-TAU> be 8 hours and <Active-Time> be 6 minutes, through +CPSMS, by sending
Copy
AT+CPSMS=1,,,"00101000","01000001"
In the above command, we are setting a requested value for the periodic TAU timer and the Active-Time timer. Note that these can be ignored by the network.
Note
AT+CPSMS? will just read the values you are requesting, not the actual values set by the network.
14.3 Now that we’ve requested PSM let’s read out the values to confirm that it was actually enabled by the network. This is done by reading the value of <Active-Time>, either using +CEREG or %XMONITOR. If it is deactivated, you do not have PSM.
Send the following command
Copy
AT%XMONITOR
Below are two examples of response messages, one where PSM was enabled and the requested values granted and the other where PSM was not enabled.
Observe that the PSM values requested in the previous step have not been granted by the network, and the field <Active-Time> is indicating the timer is deactivated (11100000).
PSM has not been enabled by the network and is most likely not supported by the network provider.
15. Now, we will test the available power-saving technique eDRX with PSM.
15.1 Disable PSM by sending the following command
Copy
AT+CPSMS=0
15.2 Enable eDRX by setting the applicable eDRX parameters, through +CEDRXS, by sending
Requesting for LTE-M:
Copy
AT+CEDRXS=2,4,"0010"
Requesting for NB-IoT:
Copy
AT+CEDRXS=2,5,"0010"
The above command sets <mode> to 2 which enables the use of eDRX and enables the unsolicited result code +CEDRXP. <AcT-type> sets for which AcT-type the value configured should apply (either 4 or 5, for LTE-M or NB-IoT, respectively), and requests the eDRX interval of 20,48 seconds (<Requested_eDRX_value> to "0010").
15.3 Now that we’ve requested eDRX let’s read out the values to confirm that it was actually enabled by the network. Similar to +CPSMS, the read command of +CEDRXS will only return the requested values. To read the values from the network, we can either wait for the unsolicited notification (if <mode> is 2) or use +CEDRXRDP.
Send the following command
Copy
AT+CEDRXRDP
Below are two examples of response messages, one where eDRX was enabled and the requested values granted and the other where eDRX was not enabled.
eDRX enabled:
+CEDRXRDP: 5,"0010","0010","0111"
Terminal
Observe the eDRX values
<NW-Provided_eDRX_value>: "0010" (20.48 s)
<Paging_time_window>: "0111" (20.48 s)
eDRX has been granted by the network with the requested eDRX Cycle.
eDRX not enabled:
+CEDRXRDP:5,"0010","",""
Terminal
Observe that the eDRX Cycle requested has not been granted since the response does not contain the parameters.
eDRX has not been enabled by the network and is most likely not supported by the network provider.
If steps 14 and 15 were successful and you were granted both PSM and eDRX, proceed to the next step.
16 (Optional). Let’s enable PSM and check if eDRX and PSM are supported simultaneously by the network provider.
We have been granted both eDRX and PSM from the network.
Now you have practiced using AT commands to establish an LTE connection, read and understand notifications from the network and configure power saving techniques.
v2.3.0 – v2.2.0
Using AT commands to control the modem
In this exercise, we will use the Serial LTE Modem application to send AT commands from an external computer to the modem. This way, we can send commands and read the response on a terminal emulator instead of through an application running on the device. This application can be used to emulate a stand-alone LTE modem on the nRF91 Series device.
This sample enables the AT Host Library through the config CONFIG_AT_HOST_LIBRARY. This will automatically spawn a thread to handle the AT commands, meaning to utilize this library, the only thing needed in your application is enabling it through the Kconfig.
Important
Some of the terminal output logs displayed below and throughout other exercises will vary depending on your available network provider and network configurations.
This course builds on the nRF Connect SDK Fundamentals course and focuses on Cellular IoT. You need to read Lesson 1 in the nRF Connect SDK Fundamentals to learn how to install nRF Connect SDK on your machine and build applications. Furthermore, completing the nRF Connect SDK Fundamentals course is strongly advised as it provides a comprehensive understanding of the nRF Connect SDK. The exercises in this course assume you have a basic understanding of the nRF Connect SDK.
1. Open the Serial LTE Modem application in VS Code, by selecting Browse samples -> nRF Connect SDK <version> -> Serial LTE Modem.
Make sure theBuild after generating configuration option is enabled to trigger the build process after clicking on the Build Configuration button.
3. When the build is complete, flash the application to your device.
Note
This course builds on the nRF Connect SDK Fundamentals course and focuses on Cellular IoT. You need to read Lesson 1 in the nRF Connect SDK Fundamentals to learn how to install nRF Connect SDK on your machine and build applications. Furthermore, completing the nRF Connect SDK Fundamentals course is strongly advised as it provides a comprehensive understanding of the nRF Connect SDK. The exercises in this course assume you have a basic understanding of the nRF Connect SDK.
1. Open the Serial LTE Modem application in VS Code, by selecting Browse samples -> nRF Connect SDK <version> -> Serial LTE Modem.
Make sure theBuild after generating configuration option is enabled to trigger the build process after clicking on the Build Configuration button.
3. When the build is complete, flash the application to your device.
Important
If you are using the Thingy:91 without an external debugger, make sure to follow the Thingy:91 flash procedure.
4. Open nRF Connect for Desktop and install and launch the Serial Terminal application. This is a terminal emulator for serial port connections and is what we will use to send AT commands to the modem.
4.1 In the upper left-hand corner, select your device. 4.2 Then select Connect to port. 4.3 Send the AT commands in the panel right above the terminal, where it says, “Type and press enter to send.”
Subscribe to notifications
5. Subscribe to network status notifications using +CEREG.
We would like to receive unsolicited network status notifications. The command also lets you set how much information you would like in each notification, determined by setting between levels 1 and 5.
Let’s subscribe to a level-5 notification, through +CEREG, by sending
Copy
AT+CEREG=5
When we turn on the modem, you should observe the following regular output printed intermittently.
6. Subscribe to result code notifications using +CSCON.
This command subscribes to unsolicited result code notifications, and the value you set determines how much information the notification contains between levels 1 and 3.
Let’s subscribe to level-1-related unsolicited notifications, through +CSCON, by sending
Copy
AT+CSCON=1
When we turn on the modem, you should observe the following regular output printed intermittently.
Here we can see that the unsolicited notifications (+CEREG: 2) indicate the UE is not registered but is either searching for an operator or trying to attach, and the modem is in RRC Connected mode (+CSCON: 1). Then the UE attaches and is registered with a network (+CEREG: 5), and the modem goes to RRC Idle mode (+CSON: 0).
10. Store the current configurations to flash using +CFUN.
Now that we’ve connected to a network, let’s store all the configurations to flash. This will store certain AT command configurations and the network information so that in the event of a reset, the device does not have to go through the same procedure again, thus speeding up the connection process.
Send the following commands, one after another.
Copy
AT+CFUN=0
Copy
AT+CFUN=1
This will save the current configurations and turn the modem on again.
Note
The state of +CEREG and +CSCON are not stored when running AT+CFUN=0. These commands must be run again if you want these unsolicited notifications.
Error handling
For error handling, let’s enable some error reporting functions through available AT commands
11. Let’s enable the use of the +CME error codes in responses, through +CMEE, by sending
Copy
AT+CMEE=1
12. Confirm this by sending an invalid command that we know returns a +CME error.
Let’s try to set the system mode while the modem is on by sending the following
14. Now we will test the available power-saving technique PSM
14.1 Calculate the timer value for 6 minutes <Active-Time> and 8 hours <Periodic-TAU>.
Recall the table for interpreting the different timers.
Timer value unit <Active-Time>
Timer value unit <Periodic-TAU>
<Active-Time>: Let’s choose the timer value unit corresponding to 6 minutes: 010. Then the timer value should be 1 in binary: 00001. This gives us 01000001.
<Periodic-Tau>: The largest time value unit applicable is 1 hour: 001. To get 8 hours, the timer value should be 8, which in binary is 01000. This gives us 00101000.
14.2 Enable power saving mode and request <Periodic-TAU> be 8 hours and <Active-Time> be 6 minutes, through +CPSMS, by sending
Copy
AT+CPSMS=1,,,"00101000","01000001"
In the above command, we are setting a requested value for the periodic TAU timer and the Active-Time timer. Note that these can be ignored by the network.
Note
AT+CPSMS? will just read the values you are requesting, not the actual values set by the network.
14.3 Now that we’ve requested PSM let’s read out the values to confirm that it was actually enabled by the network. This is done by reading the value of <Active-Time>, either using +CEREG or %XMONITOR. If it is deactivated, you do not have PSM.
Send the following command
Copy
AT%XMONITOR
Below are two examples of response messages, one where PSM was enabled and the requested values granted and the other where PSM was not enabled.
Observe that the PSM values requested in the previous step have not been granted by the network, and the field <Active-Time> is indicating the timer is deactivated (11100000).
PSM has not been enabled by the network and is most likely not supported by the network provider.
15. Now, we will test the available power-saving technique eDRX with PSM.
15.1 Disable PSM by sending the following command
Copy
AT+CPSMS=0
15.2 Enable eDRX by setting the applicable eDRX parameters, through +CEDRXS, by sending
Requesting for LTE-M:
Copy
AT+CEDRXS=2,4,"0010"
Requesting for NB-IoT:
Copy
AT+CEDRXS=2,5,"0010"
The above command sets <mode> to 2 which enables the use of eDRX and enables the unsolicited result code +CEDRXP. <AcT-type> sets for which AcT-type the value configured should apply (either 4 or 5, for LTE-M or NB-IoT, respectively), and requests the eDRX interval of 20,48 seconds (<Requested_eDRX_value> to "0010").
15.3 Now that we’ve requested eDRX let’s read out the values to confirm that it was actually enabled by the network. Similar to +CPSMS, the read command of +CEDRXS will only return the requested values. To read the values from the network, we can either wait for the unsolicited notification (if <mode> is 2) or use +CEDRXRDP.
Send the following command
Copy
AT+CEDRXRDP
Below are two examples of response messages, one where eDRX was enabled and the requested values granted and the other where eDRX was not enabled.
eDRX enabled:
+CEDRXRDP: 5,"0010","0010","0111"
Terminal
Observe the eDRX values
<NW-Provided_eDRX_value>: "0010" (20.48 s)
<Paging_time_window>: "0111" (20.48 s)
eDRX has been granted by the network with the requested eDRX Cycle.
eDRX not enabled:
+CEDRXRDP:5,"0010","",""
Terminal
Observe that the eDRX Cycle requested has not been granted since the response does not contain the parameters.
eDRX has not been enabled by the network and is most likely not supported by the network provider.
If steps 14 and 15 were successful and you were granted both PSM and eDRX, proceed to the next step.
16 (Optional). Let’s enable PSM and check if eDRX and PSM are supported simultaneously by the network provider.
We have been granted both eDRX and PSM from the network.
Now you have practiced using AT commands to establish an LTE connection, read and understand notifications from the network and configure power saving techniques.
Nordic Developer Academy Privacy Policy
1. Introduction
In this Privacy Policy you will find information on Nordic Semiconductor ASA (“Nordic Semiconductor”) processes your personal data when you use the Nordic Developer Academy.
References to “we” and “us” in this document refers to Nordic Semiconductor.
2. Our processing of personal data when you use the Nordic Developer Academy
2.1 Nordic Developer Academy
Nordic Semiconductor processes personal data in order to provide you with the features and functionality of the Nordic Developer Academy. Creating a user account is optional, but required if you want to track you progress and view your completed courses and obtained certificates. If you choose to create a user account, we will process the following categories of personal data:
Email
Name
Password (encrypted)
Course progression (e.g. which course you have completely or partly completed)
Certificate information, which consists of name of completed course and the validity of the certificate
Course results
During your use of the Nordic Developer Academy, you may also be asked if you want to provide feedback. If you choose to respond to any such surveys, we will also process the personal data in your responses in that survey.
The legal basis for this processing is GDPR article 6 (1) b. The processing is necessary for Nordic Semiconductor to provide the Nordic Developer Academy under the Terms of Service.
2.2 Analytics
If you consent to analytics, Nordic Semiconductor will use Google Analytics to obtain statistics about how the Nordic Developer Academy is used. This includes collecting information on for example what pages are viewed, the duration of the visit, the way in which the pages are maneuvered, what links are clicked, technical information about your equipment. The information is used to learn how Nordic Developer Academy is used and how the user experience can be further developed.
2.2 Newsletter
You can consent to receive newsletters from Nordic from within the Nordic Developer Academy. How your personal data is processed when you sign up for our newsletters is described in the Nordic Semiconductor Privacy Policy.
3. Retention period
We will store your personal data for as long you use the Nordic Developer Academy. If our systems register that you have not used your account for 36 months, your account will be deleted.
4. Additional information
Additional information on how we process personal data can be found in the Nordic Semiconductor Privacy Policy and Cookie Policy.
Nordic Developer Academy Terms of Service
1. Introduction
These terms and conditions (“Terms of Use”) apply to the use of the Nordic Developer Academy, provided by Nordic Semiconductor ASA, org. nr. 966 011 726, a public limited liability company registered in Norway (“Nordic Semiconductor”).
Nordic Developer Academy allows the user to take technical courses related to Nordic Semiconductor products, software and services, and obtain a certificate certifying completion of these courses. By completing the registration process for the Nordic Developer Academy, you are agreeing to be bound by these Terms of Use.
These Terms of Use are applicable as long as you have a user account giving you access to Nordic Developer Academy.
2. Access to and use of Nordic Developer Academy
Upon acceptance of these Terms of Use you are granted a non-exclusive right of access to, and use of Nordic Developer Academy, as it is provided to you at any time. Nordic Semiconductor provides Nordic Developer Academy to you free of charge, subject to the provisions of these Terms of Use and the Nordic Developer Academy Privacy Policy.
To access select features of Nordic Developer Academy, you need to create a user account. You are solely responsible for the security associated with your user account, including always keeping your login details safe.
You will able to receive an electronic certificate from Nordic Developer Academy upon completion of courses. By issuing you such a certificate, Nordic Semiconductor certifies that you have completed the applicable course, but does not provide any further warrants or endorsements for any particular skills or professional qualifications.
Nordic Semiconductor will continuously develop Nordic Developer Academy with new features and functionality, but reserves the right to remove or alter any existing functions without notice.
3. Acceptable use
You undertake that you will use Nordic Developer Academy in accordance with applicable law and regulations, and in accordance with these Terms of Use. You must not modify, adapt, or hack Nordic Developer Academy or modify another website so as to falsely imply that it is associated with Nordic Developer Academy, Nordic Semiconductor, or any other Nordic Semiconductor product, software or service.
You agree not to reproduce, duplicate, copy, sell, resell or in any other way exploit any portion of Nordic Developer Academy, use of Nordic Developer Academy, or access to Nordic Developer Academy without the express written permission by Nordic Semiconductor. You must not upload, post, host, or transmit unsolicited email, SMS, or \”spam\” messages.
You are responsible for ensuring that the information you post and the content you share does not;
contain false, misleading or otherwise erroneous information
infringe someone else’s copyrights or other intellectual property rights
contain sensitive personal data or
contain information that might be received as offensive or insulting.
Such information may be removed without prior notice.
Nordic Semiconductor reserves the right to at any time determine whether a use of Nordic Developer Academy is in violation of its requirements for acceptable use.
Violation of the at any time applicable requirements for acceptable use may result in termination of your account. We will take reasonable steps to notify you and state the reason for termination in such cases.
4. Routines for planned maintenance
Certain types of maintenance may imply a stop or reduction in availability of Nordic Developer Academy. Nordic Semiconductor does not warrant any level of service availability but will provide its best effort to limit the impact of any planned maintenance on the availability of Nordic Developer Academy.
5. Intellectual property rights
Nordic Semiconductor retains all rights to all elements of Nordic Developer Academy. This includes, but is not limited to, the concept, design, trademarks, know-how, trade secrets, copyrights and all other intellectual property rights.
Nordic Semiconductor receives all rights to all content uploaded or created in Nordic Developer Academy. You do not receive any license or usage rights to Nordic Developer Academy beyond what is explicitly stated in this Agreement.
6. Liability and damages
Nothing within these Terms of Use is intended to limit your statutory data privacy rights as a data subject, as described in the Nordic Developer Academy Privacy Policy. You acknowledge that errors might occur from time to time and waive any right to claim for compensation as a result of errors in Nordic Developer Academy. When an error occurs, you shall notify Nordic Semiconductor of the error and provide a description of the error situation.
You agree to indemnify Nordic Semiconductor for any loss, including indirect loss, arising out of or in connection with your use of Nordic Developer Academy or violations of these Terms of Use. Nordic Semiconductor shall not be held liable for, and does not warrant that (i) Nordic Developer Academy will meet your specific requirements, (ii) Nordic Developer Academy will be uninterrupted, timely, secure, or error-free, (iii) the results that may be obtained from the use of Nordic Developer Academy will be accurate or reliable, (iv) the quality of any products, services, information, or other material purchased or obtained by you through Nordic Developer Academy will meet your expectations, or that (v) any errors in Nordic Developer Academy will be corrected.
You accept that this is a service provided to you without any payment and hence you accept that Nordic Semiconductor will not be held responsible, or liable, for any breaches of these Terms of Use or any loss connected to your use of Nordic Developer Academy. Unless otherwise follows from mandatory law, Nordic Semiconductor will not accept any such responsibility or liability.
7. Change of terms
Nordic Semiconductor may update and change the Terms of Use from time to time. Nordic Semiconductor will seek to notify you about significant changes before such changes come into force and give you a possibility to evaluate the effects of proposed changes. Continued use of Nordic Developer Academy after any such changes shall constitute your acceptance of such changes. You can review the current version of the Terms of Use at any time at https://academy.nordicsemi.com/terms-of-service/
8. Transfer of rights
Nordic Semiconductor is entitled to transfer its rights and obligation pursuant to these Terms of Use to a third party as part of a merger or acquisition process, or as a result of other organizational changes.
9. Third Party Services
To the extent Nordic Developer Academy facilitates access to services provided by a third party, you agree to comply with the terms governing such third party services. Nordic Semiconductor shall not be held liable for any errors, omissions, inaccuracies, etc. related to such third party services.
10. Dispute resolution
The Terms of Use and any other legally binding agreement between yourself and Nordic Semiconductor shall be subject to Norwegian law and Norwegian courts’ exclusive jurisdiction.