📜 ⬆️ ⬇️

NB-IoT, Narrow Band Internet of Things. Power saving modes and control commands

Good day to all!


In the previous part, we discussed general information and features of the NB-IoT technology, and here we propose to consider in detail the power saving modes of PSM and eDRX, as well as the commands with which these modes can be controlled.



Energy Saving Modes in NB-IoT


Devices that run on batteries, it is important to consume as little energy as possible. For this, the NB-IoT has two power saving modes: Power Saving Mode, PSM and Extended idle mode DRX, eDRX. Consider them in more detail.


Power Save Mode PSM, Power Saving Mode


According to the 3GPP TS 23.682 specification, Power Saving Mode (PSM) is a power-off mode, in which the device nevertheless remains registered on the network. Curiously, the PSM mode appeared in 3GPP specifications earlier than the NB-IoT in 3GPP Release 12.


The NB-IoT device initiates the PSM mode, including the values ​​of two timers in the ATTACH REQUEST / TAU REQUEST requests sent in the Attach and TAU procedures (TAU, Tracking Area Update is a periodic procedure that is used in LTE to notify the network of the availability and location of the mobile device ).


The first timer - T3324 Active Timer - determines the time during which the device remains available from the network after an Attach, TAU, or data transfer procedure.


The second timer, T3412 Extended periodic TAU Timer , determines the period of the TAU procedure.


PSM mode and timers T3324, T3412 are shown in fig. one:



If the network allows the use of the PSM mode, the values ​​of these timers are included in the ATTACH ACCEPT / TAU ACCEPT response messages. When determining the values ​​of the timers, the network can take into account not only the values ​​requested by the device, but also the local configuration. In other words, the network is not required to confirm exactly the values ​​of the timers that the device requested. But the device must apply the values ​​received from the network.


The duration of a device in PSM mode is defined as the difference between Extended periodic TAU Timer and Active Timer (T3412-T3324). Since the value of T3324 Active Timer can be zero, the maximum theoretical time spent by the device in PSM mode is equal to the maximum time T3412 Extended periodic TAU Timer and is 413 days and 8 hours (!!!) . The maximum T3324 Active Timer is 3 hours and 6 minutes (186 minutes).


When a device is in PSM mode, it is not available from the network side (for the so-called mobile terminating services).


The GSMA recommends that cellular service providers store and transmit to the device (after the last PSM mode exit) at least the last 100-bit data packet.


The device can exit PSM mode at any time (for example, if the device needs to urgently transfer some data, as in the picture above).


EDRX power saving mode (Extended idle mode DRX)


eDRX (Extended idle mode DRX) can be considered an additional power-saving mode of the device, it appeared in 3GPP Release 13 specifications. DRX means discontinuous reception (Discontinuous Receiving). The discontinuous reception method has been known in cellular communication for a long time, and consists in the fact that in order to save energy, the receiving path of the device is turned on periodically at certain intervals, and most of the time is turned off. The network “knows” about this and sends paging signals only at the “right” times. The extended discontinuous reception (eDRX) mode allows you to significantly increase the period of time when the receiving path of the device is turned off. According to the 3GPP TS 23.682 specification, the period of intermittent reception of eDRX in the NB-IoT mode is from 20.48 to 10485.76 seconds (10485 seconds is almost 3 hours).


A comparison of the “old” DRX and the “new” eDRX is presented in Fig. 2:



The NB-IoT device activates the eDRX mode by transmitting the eDRX period length value in ATTACH REQUEST / TAU REQUEST requests sent in Attach and TAU procedures. If the network allows the use of eDRX mode, then the eDRX period value is included in the ATTACH ACCEPT / TAU ACCEPT response messages. The network is not required to confirm the value of the eDRX period requested by the device, but the device must apply the value transmitted by the network.


As in the case of PSM, when using the eDRX mode, the GSMA recommends that operators save and transmit at least the last 100-bit data packet to the device. However, as follows from a survey conducted by the GSM association, the operators intend to save much more downlink data (from application to device).


The eDRX mode can be used simultaneously with the PSM mode.


The PSM and eDRX modes are among the minimum requirements for NB-IoT networks recommended by the GSMA.


NB-IoT device control commands (AT commands)


Standard AT commands are described in the 3GPP TS 27.007 specification. There are a lot of teams in total; here we will consider only those with which you can control the power saving modes of the NB-IoT device. In addition, different manufacturers may interpret standard or invent new commands in their own way. Therefore, for greater certainty, let's see the commands of the NB-IoT-module N21 .


PSM mode control command


To set the PSM mode parameters, use the AT + CPSMS command:


AT+CPSMS=[mode],[Requested_Periodic-RAU],[Requested_GPRS-READY-timer],[Requested_Periodic-TAU],[Requested_Active-Time] 

Parameters of the AT + CPSMS command:



Thus, to configure the PSM parameters in the NB-IoT mode , three parameters are used: mode , Requested_Periodic-TAU and Requested_Active-Time .


The requested duration of a device in PSM mode is the difference between the Requested_Periodic-TAU and Requested_Active-Time values.


Encoding the value of Requested_Active-Time (T3324)


Requested_Active-Time is encoded as a sequence consisting of 8 bits, where the high-order bits 8, 7, 6 are a multiplier, bits 5, 4, 3, 2, 1 are the value.


Table 1. Requested_Active-Time Multipliers (T3324)
Bit 8Bit 7Bit 6Factor
0002 seconds
00one1 minute
0one06 minutes (1/10 hour)
oneoneoneTimer deactivated
Other values ​​should be interpreted as 1 minute (in the current protocol version)

An example of coding the value of Requested_Active-Time (T3324):
00000101 - Requested_Active-Time
000 - multiplier, 2 seconds,
00101 - value, 5,
5 x 2 seconds = 10 seconds - the requested value is Requested_Active-Time.


The maximum Requested_Active-Time (T3324) value is 3 hours and 6 minutes (186 minutes).


Coding the value Requested_Periodic-TAU (T3412)


Requested_Periodic-TAU is encoded as a sequence consisting of 8 bits, where the high-order bits 8, 7, 6 are a multiplier, the low-order bits 5, 4, 3, 2, 1 are the value.


Table 2. Requested_Periodic-TAU multipliers (T3412)
Bit 8Bit 7Bit 6Factor
00010 minutes
00one1 hour
0one010 hours
0oneone2 seconds
one0030 seconds
one0one1 minute
oneone0320 hours Note: this value applies only to T3312 extended and T3412 extended timers (see TS 24.301). If it is received in a message with integrity checking enabled, the value should be interpreted as 320 hours. Otherwise, it should be interpreted as 1 hour.
oneoneoneTimer deactivated

Example of coding the value Requested_Periodic-TAU (T3412):
00100001 - Requested_Periodic-TAU
001 - multiplier, 1 hour,
00010 - value, 2,
2 x 1 hour = 2 hours - Requested_Periodic-TAU requested value


The maximum value of the timer Requested_Periodic-TAU T3412 is 9920 hours or 413 days and 8 hours.


AT + CPSMS command examples


 AT+CPSMS=0 //  PSM  

 AT+CPSMS=1,,,"00100001","00100011" //  PSM , Requested_Periodic-TAU: 2 , Requested_Active-Time: 3 ,  PSM: 1   57  

EDRX mode control command


To set eDRX mode parameters, use the AT + CEDRXS command:


 AT+CEDRXS=[mode],[AcT-type],[Requested_eDRX_value] 

Parameters of the AT + CEDRXS command:


1. mode - mode:



2. AcT-type - radio access technology:



3. Requested_eDRX_value - the duration of the eDRX period. The value is encoded as a binary sequence consisting of 4 bits. According to the 3GPP TS 23.682 specification, the eDRX period in the NB-IoT mode is in the range from 20.48 to 10485.76 seconds. The values ​​of Requested_eDRX_value in the NB-IoT mode are listed in Table 3.


Table 3. The duration of the eDRX period
Requested_eDRX_value in NB-IoT modeThe duration of the period eDRX, with
001020.48
001140.96
010020.48
010181.92
011020.48
011120.48
100020.48
1001163.84
1010327.68
1011655.36
11001310.72
11012621.44
11105242.88
111110485.76


AT + CEDRXS command examples


 AT+CEDRXS=0 //  eDRX  

 AT+CEDRXS=1,5,"0010" //  eDRX ,   - NB-IoT,   eDRX - 20,48  

PS The article does not claim to absolute truth and may contain inaccuracies. If you notice inaccuracies, want to share insider information or just give your opinion - welcome to the comments!


Previous part: NB-IoT, Narrow Band Internet of Things. General information and technology features.

')

Source: https://habr.com/ru/post/435722/


All Articles