CN114363999B - Method, device and storage medium for sending downlink instructions of Internet of things - Google Patents

Method, device and storage medium for sending downlink instructions of Internet of things Download PDF

Info

Publication number
CN114363999B
CN114363999B CN202111506209.1A CN202111506209A CN114363999B CN 114363999 B CN114363999 B CN 114363999B CN 202111506209 A CN202111506209 A CN 202111506209A CN 114363999 B CN114363999 B CN 114363999B
Authority
CN
China
Prior art keywords
internet
things
downlink
terminal
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111506209.1A
Other languages
Chinese (zh)
Other versions
CN114363999A (en
Inventor
柳青
朱明�
任勇强
丁霞
王世杰
张煦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202111506209.1A priority Critical patent/CN114363999B/en
Publication of CN114363999A publication Critical patent/CN114363999A/en
Application granted granted Critical
Publication of CN114363999B publication Critical patent/CN114363999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
    • H04W52/288TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission taking into account the usage mode, e.g. hands-free, data transmission, telephone
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method, a device and a storage medium for sending downlink instructions of an Internet of things, and relates to the technical field of communication. The method for sending the downlink instruction of the Internet of things comprises the following steps: acquiring a downlink instruction; determining an Internet of things terminal according to the downlink instruction; acquiring a power saving mode of the terminal of the Internet of things; determining a transmission mechanism of a downlink instruction according to the power saving mode, wherein the transmission mechanism is used for determining the sending times of the downlink instruction and the waiting interval time of each sending; and when the terminal of the Internet of things is determined to be in an activated state according to the power saving mode, determining to send the downlink instruction or determining that the downlink instruction is overtime to send and stopping sending the downlink instruction according to the transmission mechanism. The application can reduce the loss rate of the downlink instruction transmission and reduce the waste of resources of the Internet of things.

Description

Method, device and storage medium for sending downlink instructions of Internet of things
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a storage medium for sending downlink instructions of an internet of things.
Background
The narrowband internet of things has the characteristics of wide coverage and low power consumption, and becomes an important branch of the internet of everything. In order to save the resource consumption of the internet of things, in general, the internet of things terminal in the internet of things supports three power saving modes, namely PSM (Power Saving Mode ), DRX (Discontinuous Reception, discontinuous reception mode), eDRX (Extended DRX, extended discontinuous reception mode), and different requirements on energy consumption in different application scenarios, and different power saving modes of the internet of things terminal can be selected to limit the time for the internet of things terminal to receive downlink instructions, so as to achieve the energy saving effect.
At present, a downlink instruction is sent to an internet of things terminal in a manner of directly acquiring instruction content from a database and directly sending the downlink instruction, and when the instruction fails to be sent, the downlink instruction is retransmitted according to fixed interval time. However, in the transmission mode, the order of the issued instructions is disordered or the transmission is abnormal because the terminal of the internet of things is in different power saving modes, so that the resource consumption of the internet of things is increased.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides a method, a device and a storage medium for sending downlink instructions of the Internet of things, which can reduce the loss rate of the downlink instruction sending and reduce the waste of resources of the Internet of things.
In one aspect, the embodiment of the application provides a method for sending downlink instructions of an internet of things, which comprises the following steps:
acquiring a downlink instruction;
determining an Internet of things terminal according to the downlink instruction;
acquiring a power saving mode of the terminal of the Internet of things;
determining a transmission mechanism of a downlink instruction according to the power saving mode, wherein the transmission mechanism is used for determining the sending times of the downlink instruction and the waiting interval time of each sending;
and when the terminal of the Internet of things is determined to be in an activated state according to the power saving mode, determining to send the downlink instruction or determining that the downlink instruction is overtime to send and stopping sending the downlink instruction according to the transmission mechanism.
According to some embodiments of the application, the root obtaining the power saving mode of the terminal of the internet of things comprises the following steps:
acquiring a first message of the terminal of the Internet of things;
judging whether the binding mode carries a mark character according to the binding mode in the first message;
when the binding mode carries the mark character, the power saving mode is a PSM mode;
when the binding mode does not carry the mark character, determining whether the first message carries the access point parameter according to the first message; when the first message carries access point parameters, determining the power saving mode according to the access point parameters; and when the first message does not carry the access point parameters, acquiring the registration information of the terminal of the Internet of things and determining the power saving mode according to the registration information.
According to some embodiments of the present application, the determining that the terminal of the internet of things is in an active state according to the power saving mode includes the following steps:
when the power saving mode is determined to be a DRX mode or an eDRX mode, the terminal of the Internet of things is in an activated state;
and when the power saving mode is the PSM mode, determining an activation time window according to the receiving time of the uplink message of the terminal of the Internet of things and the preset time length, wherein the terminal of the Internet of things is in an activation state in the activation time window.
According to some embodiments of the present application, after the step of obtaining the power saving mode of the terminal of the internet of things, the method for sending the downlink instruction of the internet of things further includes the following steps:
and when the terminal of the Internet of things is in an inactive state according to the power saving mode, caching the downlink instruction to the tail of a process queue.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes the following steps:
determining that the current waiting confirmation flag bit is in a set state, and caching the downlink instruction to the tail of a process queue;
determining that the current waiting confirmation flag bit is in a reset state, and modifying the waiting confirmation flag bit into a set state after sending the downlink instruction;
and when receiving the response message of the downlink instruction, modifying the waiting confirmation flag bit into a reset state.
According to some embodiments of the present application, the determining to send the downlink instruction or determining that the downlink instruction is sent overtime and stopping sending the downlink instruction according to the transmission mechanism includes the following steps:
when the number of times of transmission is one, after the downlink instruction is transmitted for the first time, the waiting interval time for waiting for the first transmission does not receive the response message, and determining that the transmission of the downlink instruction is overtime and stopping transmitting the downlink instruction;
and when the transmission times are multiple, after the downlink instruction is transmitted for the first time, the waiting interval time waiting for the first time does not receive the response message, continuing to transmit the downlink instruction for the next time, and after the waiting interval time waiting for the next time does not receive the response message until the downlink instruction is transmitted for the last time, the waiting interval time waiting for the last time does not receive the response message, and determining that the downlink instruction is overtime to transmit and stopping transmitting the downlink instruction.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes the following steps:
acquiring state information of the terminal of the Internet of things;
and if the state information is determined to be in an offline state, determining that the downlink instruction is overtime in transmission and stopping transmitting the downlink instruction.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes the following steps:
receiving a second message newly sent by the terminal of the Internet of things;
determining whether the network address of the terminal of the Internet of things is changed according to the network address in the first message and the network address in the second message;
and when the network address of the terminal of the Internet of things is changed, determining that the downlink instruction is overtime in transmission and stopping transmitting the downlink instruction.
On the other hand, the embodiment of the application also provides a downlink instruction sending device of the internet of things, which comprises the following steps:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method for sending downlink instructions of the internet of things as described above.
In another aspect, an embodiment of the present application further provides a computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions are configured to cause a computer to perform the method for sending downlink instructions of an internet of things as described above.
The technical scheme of the application has at least one of the following advantages or beneficial effects: after the downlink command is acquired, the corresponding internet of things terminal is determined according to the downlink command, then the power saving mode of the internet of things terminal is acquired according to the internet of things terminal, the transmission times of the downlink command for determining the downlink command and the transmission mechanism of waiting interval time for each transmission are determined according to the power saving mode, and after the internet of things terminal is determined to be in an activated state according to the power saving mode, the downlink command is determined to be transmitted or the downlink command is determined to be transmitted overtime and the downlink command is stopped to be transmitted according to the transmission mechanism. The current power saving mode of the terminal of the Internet of things is determined, the terminal of the Internet of things is in the active state, and then a downlink instruction is sent by adopting a transmission mechanism corresponding to the power saving mode or the sending is determined to stop sending overtime according to the transmission mechanism, so that the downlink instruction can be sent orderly, the loss rate of the downlink instruction is reduced, the sending is stopped by judging overtime, and the resource waste of the Internet of things is reduced.
Drawings
Fig. 1 is a flowchart of a method for sending downlink instructions of an internet of things according to an embodiment of the present application;
fig. 2 is a flowchart of a method for sending downlink instructions of an internet of things according to another embodiment of the present application;
fig. 3 is a schematic diagram of an internet of things downlink instruction sending device provided by an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
In the description of the present application, it should be understood that the direction or positional relationship indicated with respect to the description of the orientation, such as up, down, left, right, etc., is based on the direction or positional relationship shown in the drawings, is merely for convenience of describing the present application and simplifying the description, and does not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application.
In the description of the present application, the description of first, second, etc. is for the purpose of distinguishing between technical features only, and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
For clarity of explanation of embodiments of the present application, the following explanation is made for terms in the embodiments of the present application:
PSM (Power Saving Mode, power save mode): the internet of things terminal is in deep dormancy in a non-service period, does not receive downlink data, can receive the downlink data cached by the internet of things platform only when the internet of things terminal actively transmits uplink data, has low power consumption, and is suitable for services without delay requirements on the downlink data, such as meter reading services.
DRX (Discontinuous Reception, discontinuous reception mode): the downlink data can be considered to reach the internet of things terminal at any time, and in each DRX period (for example, 1 second, 2 seconds, 4 seconds or 8 seconds), the internet of things terminal can detect whether downlink data arrives at one time, so that the method is low in power consumption and suitable for services with high requirements on time delay, such as street lamp services.
eDRX (Extended DRX), extended discontinuous reception mode): in each eDRX period, the terminal of the Internet of things can receive downlink data only in a set paging time window, the rest of the terminals are in a dormant state and not receive the downlink data, and the mode can balance between downlink data delay and power consumption, such as remote shutdown of gas service.
APN (Access Point Name, access point): refers to a network access technology, which is a parameter that must be configured when a device accesses the network, and determines which access mode the device accesses the network.
Referring to fig. 1, the method for sending the downlink command of the internet of things according to the embodiment of the application includes, but is not limited to, step S110, step S120, step S130, step S140 and step S150.
Step S110, obtaining a downlink instruction;
step S120, determining an Internet of things terminal according to a downlink instruction;
step S130, obtaining a power saving mode of the terminal of the Internet of things;
step S140, determining a transmission mechanism of a downlink instruction according to a power saving mode, wherein the transmission mechanism is used for determining the sending times of the downlink instruction and the waiting interval time of each sending;
and step S150, when the terminal of the Internet of things is determined to be in an activated state according to the power saving mode, determining to send the downlink instruction according to the transmission mechanism or determining that the downlink instruction is overtime to send and stopping sending the downlink instruction.
Specifically, after the platform obtains the downlink instruction from the user side or obtains the downlink instruction from the process queue, the internet of things terminal to which the downlink instruction is to be sent is determined according to the Mac address or the number in the downlink instruction, and then the current power saving mode adopted by the internet of things terminal is obtained, and generally, the power saving modes supported by the internet of things terminal include a PSM mode, a DRX mode and an eDRX mode. After one of the current power saving modes adopted by the internet of things terminal is obtained, a transmission mechanism corresponding to the downlink instruction can be determined from the storage module according to the power saving mode, then whether the internet of things terminal is in an activated state currently is judged according to the power saving mode, and when the internet of things terminal is determined to be in the activated state, the downlink instruction is determined to be sent according to the transmission mechanism or the downlink instruction is determined to be sent overtime and the downlink instruction is stopped to be sent. Generally, a power saving mode corresponds to a transmission mechanism, and the transmission mechanism is used for determining the sending times of the downlink instruction and the waiting interval time of each sending, and sequentially retransmitting the downlink instruction according to the transmission mechanism, so as to reduce the loss rate of the downlink instruction. The current power saving mode adopted by the internet of things terminal is a PSM mode, the transmission mechanism corresponding to the PSM mode is a transmission time of 5 times, the waiting time of each transmission is 5 seconds, 10 seconds, 20 seconds, 40 seconds and 47 seconds respectively, after the current activation state of the internet of things terminal is determined, a downlink instruction is directly transmitted, if the internet of things terminal does not respond after 5 seconds, the downlink instruction is retransmitted, if the internet of things terminal does not respond after 10 seconds, the downlink instruction is retransmitted, and so on, after the downlink instruction transmitted for the 5 th time, the internet of things terminal still does not respond, the downlink instruction is judged to be transmitted overtime and the transmission is stopped. In this embodiment, by determining the current power saving mode of the terminal of the internet of things and determining that the terminal of the internet of things is currently in an active state, then adopting a transmission mechanism corresponding to the power saving mode to send a downlink instruction or determining that sending is overtime to stop sending according to the transmission mechanism, the downlink instruction can be sent orderly, the loss rate of the downlink instruction is reduced, the sending is stopped when judging overtime, and the resource waste of the internet of things is reduced.
It should be noted that different power saving modes correspond to different transmission mechanisms, i.e. different power saving modes correspond to different transmission times and different waiting times. For example, the transmission mechanism corresponding to the PSM mode may be a transmission number of 5 times, and the waiting time of each transmission may be 5 seconds, 10 seconds, 20 seconds, 40 seconds, and 47 seconds, respectively; the transmission mechanism corresponding to the eDRX mode may be the number of times of transmission is 1, the waiting time of transmission may be an eDRX time window selected by the internet of things terminal, for example, 20 seconds, that is, after the downlink instruction is directly transmitted, the internet of things terminal does not respond after waiting for the eDRX time window of 20 seconds, and then judging to be overtime. The transmission mechanism corresponding to the DRX mode may be a number of transmissions of 5, and the waiting time of each transmission may be 5 seconds, 10 seconds, 20 seconds, 40 seconds, and 47 seconds, respectively. It is understood that the number of transmissions of the transmission mechanism and the waiting time for each transmission corresponding to each power saving mode may be changed according to the need.
According to some embodiments of the present application, step S130 includes, but is not limited to, step S210, step S220, step S230, and step S240.
Step S210, a first message of an Internet of things terminal is obtained;
step S220, judging whether the binding mode carries a mark character according to the binding mode in the first message;
step S230, when the binding mode carries the flag character, the power saving mode is PSM mode;
step S240, when the binding mode does not carry the sign character, determining whether the first message carries the access point parameter according to the first message; when the first message carries the access point parameters, determining a power saving mode according to the access point parameters; and when the first message does not carry the access point parameters, acquiring the registration information of the terminal of the Internet of things and determining the power saving mode according to the registration information.
Specifically, when accessing the platform, the terminal of the internet of things sends a first message to the platform, wherein the first message can comprise a login message and an update message. The update message or the login message is provided with a binding mode, namely a binding mode, so that whether the binding mode carries a flag character or not is determined, if the binding mode carries the flag character or not, the power saving mode of the internet of things terminal is a PSM mode, for example, whether the binding mode carries Q or not is determined, and if the binding mode carries Q, the power saving mode of the internet of things terminal is the PSM mode. If the binding mode does not carry the flag character, determining whether the login message carries an access point parameter (APN parameter) according to the login message, namely determining whether APN information in the login message carries an APN parameter for determining the power saving mode. When the login message carries access point parameters, determining a power saving mode according to the access point parameters; and when the login message does not carry the access point parameters, acquiring the registration information of the terminal of the Internet of things on the platform and determining the power saving mode according to the registration information. Generally, the power saving mode in the access point parameters when the internet of things terminal logs in the platform is the same as the power saving mode when the user registers the internet of things terminal on the platform. It should be noted that the binding mode is a binding mode in the LWM2M standard protocol.
According to some embodiments of the present application, determining that the terminal of the internet of things is in the active state according to the power saving mode in step S150 includes, but is not limited to, step S310 and step S320.
Step S310, when the power saving mode is determined to be a DRX mode or an eDRX mode, the terminal of the Internet of things is in an activated state;
step S320, when the power saving mode is determined to be PSM mode, determining an activation time window according to the receiving time of the uplink message of the received terminal of the Internet of things and the preset time length, wherein the terminal of the Internet of things is in an activated state currently in the activation time window.
Specifically, the specific steps of judging whether the terminal of the internet of things is in an activated state according to the power saving mode are as follows: if the power saving mode is a DRX mode or an eDRX mode, the terminal of the Internet of things can be determined to be in an active state all the time. If the power saving mode is the PSM mode, determining an activation time window according to the receiving time and the preset time length of the uplink message of the received terminal of the Internet of things, wherein the terminal of the Internet of things is in an activated state in the activation time window currently, for example, the current time is in the activation time window of 22 seconds after the platform receives the uplink message of the terminal of the Internet of things, and the terminal of the Internet of things is in the activated state.
According to some embodiments of the present application, after step S130, the method for sending downlink instructions of the internet of things according to the embodiment of the present application further includes, but is not limited to, step S410.
In step S410, when it is determined that the terminal of the internet of things is in an inactive state according to the power saving mode, the downlink instruction is cached to the tail of the process queue.
Specifically, if the power saving mode is the PSM mode and the current time exceeds the activation time window after the platform receives the uplink message of the terminal of the internet of things, the downlink instruction is cached in the process queue to wait for the next transmission. In this embodiment, the downlink instruction is cached in the process queue, so that compared with the manner of storing the downlink instruction in the database, the read-write pressure of the database can be reduced and the read rate can be increased.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes, but is not limited to, step S510, step S520, and step S530.
Step S510, determining that the current waiting confirmation flag bit is in a set state, and caching the downlink instruction to the tail of the process queue;
step S520, determining that the current waiting confirmation flag bit is in a reset state, and modifying the waiting confirmation flag bit into a set state after sending a downlink instruction;
in step S530, when receiving the response message of the downlink instruction, the waiting acknowledgement flag bit is modified to be in a reset state.
Specifically, in the process of sending the downlink instruction, it needs to determine that the state machine does not have other downlink instructions being sent currently, and then sends the downlink instruction, and the current waiting confirmation flag bit is in a set state, which indicates that there are other downlink instructions being sent currently, and the current waiting confirmation flag bit is in a reset state, which indicates that there are no other downlink instructions being sent currently. Referring to fig. 2, the specific process is:
step S910, after receiving the downlink instruction, judging whether the power saving mode of the corresponding terminal of the Internet of things is a PSM mode according to the downlink instruction, and if so, executing step S920; if not, step S930 is performed.
Step S920, judging whether the activation time window of 22S is exceeded currently, if the activation time window of 22S is exceeded, executing step S940; if the activation time window of 22S is not exceeded, step S930 is performed.
Step S930, determining whether the currently waiting for confirmation flag bit (i.e. wait ack parameter) is in the set state, if so, executing step S940; if not in the set state, i.e., the wait for acknowledgement flag bit is in the reset state, step S950 is performed.
Step S940, the downlink instruction is cached at the tail of the process queue.
Step S950, firstly, a downlink instruction is sent to the terminal of the Internet of things, whether the terminal of the Internet of things responds or not is judged, and when the terminal of the Internet of things responds, step S960 is executed; when the internet of things terminal does not respond, step S970 is performed.
Step S960, the waiting confirmation flag bit is modified to be in a reset state, a first downlink instruction in the process queue is taken out, and then step S930 is executed;
step S970, retransmitting the downlink instruction according to the transmission mechanism, judging whether the terminal of the Internet of things responds in the process of retransmitting the downlink instruction, and executing step S960 when the terminal of the Internet of things responds in the process of retransmitting the downlink instruction; when the terminal of the Internet of things does not respond in the process of retransmitting the downlink instruction, executing the step S980;
step S980, determining that the downlink command transmission has timed out and stopping transmitting the downlink command, and then executing step S990.
Step S990, the waiting for confirmation flag bit is modified to be in a reset state, and the first downlink instruction in the process queue is fetched, and then step S910 is executed.
After the downlink instruction is sent for the first time, if the terminal of the internet of things actively responds to the platform, the terminal of the internet of things is in an activated state at the moment, so that the next instruction of the terminal of the internet of things can skip the judgment of the power saving mode and can be directly sent; after the downlink command is sent for the first time, if the terminal of the internet of things does not actively respond to the platform, and after the terminal of the internet of things is in an activated state in the retransmission process, whether the terminal of the internet of things is in the activated state or not needs to be judged again according to the power saving mode.
According to some embodiments of the present application, determining to transmit a downlink instruction or determining that the downlink instruction is transmitted over time and stopping transmitting the downlink instruction in step S150 includes, but is not limited to, step S610 and step S620.
Step S610, when the number of times of transmission is one, after the downlink instruction is transmitted for the first time, waiting for the waiting interval time of the first transmission to not receive the response message, determining that the transmission of the downlink instruction is overtime and stopping transmitting the downlink instruction;
in step S620, when the number of times of transmission is multiple, after the downlink command is transmitted for the first time, waiting for the waiting interval time of the first time to receive the response message, continuing to transmit the downlink command for the next time, waiting for the waiting interval time of the next time to receive the response message, until after the downlink command is transmitted for the last time, waiting for the waiting interval time of the last time to receive the response message, determining that the downlink command is transmitted overtime and stopping transmitting the downlink command.
Specifically, the transmission mechanism corresponding to the eDRX mode may be the number of times of transmission is 1, the waiting time of transmission may be an eDRX time window selected by the internet of things terminal, for example, 20 seconds, that is, after the downlink instruction is directly transmitted, the internet of things terminal does not respond after waiting for the eDRX time window of 20 seconds, and then judging timeout. The transmission mechanism corresponding to the PSM mode and the DRX mode may be the number of transmissions for 5 times, and the waiting time of each transmission may be 5 seconds, 10 seconds, 20 seconds, 40 seconds and 47 seconds, respectively, after determining that the internet of things terminal is currently in an active state, directly transmitting a downlink instruction, if the internet of things terminal does not respond after 5 seconds, retransmitting the downlink instruction, if the internet of things terminal does not respond after 10 seconds, retransmitting the downlink instruction, and so on, and after waiting for the 47 seconds of the downlink instruction transmitted for 5 seconds, determining that the transmission of the downlink instruction is overtime and stopping.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes, but is not limited to, step S710 and step S720.
Step S710, acquiring state information of an Internet of things terminal;
step S720, if the state information is determined to be in an offline state, determining that the downlink instruction is overtime in transmission and stopping transmitting the downlink instruction.
Specifically, the terminal of the internet of things actively sends an offline message to trigger offline, and can directly consider that the downlink instruction is overtime to send.
Specifically, based on the internet of things terminal of the LWM2M protocol, the online time length of the internet of things terminal is determined by the set life time value (online time length value), when the life time value expires, the platform which is not updated can judge that the equipment is offline, and the downlink instruction can be directly considered to send overtime.
According to some embodiments of the present application, the method for sending downlink instructions of the internet of things further includes, but is not limited to, step S810, step S820, and step S830.
Step S810, receiving a second message newly sent by the terminal of the Internet of things;
step S820, determining whether the network address of the terminal of the Internet of things is changed according to the network address in the first message and the network address in the second message;
step S830, when the network address of the terminal of the Internet of things is changed, determining that the sending of the downlink instruction is overtime and stopping sending the downlink instruction.
Specifically, if the internet of things device actively sends a second message of the data message or the update message, if the source IP address in the second message changes from the original IP address in the first message, it can be determined that the IP address of the internet of things terminal is changed, and if the downlink instruction in the previous downlink is not reachable, it is determined that the original downlink instruction fails to be issued, and the overtime processing is sent according to the downlink instruction.
According to the embodiment, the embodiment of the application has the following beneficial effects:
the power saving mode judgment is realized in a plurality of modes, different transmission mechanisms are selected according to the power saving mode judgment, and the resource consumption of the terminal of the Internet of things is reduced as much as possible under the condition that the downlink instruction is not lost aiming at the terminal of the Internet of things under different scenes.
And the sending time of the downlink instruction, the online state of the equipment and the source address change of the equipment are comprehensively considered to judge the overtime of the instruction, so that the integrity of a single downlink instruction sending flow is improved, and the disorder condition of the downlink instruction sending is reduced.
By combining the process queue and the state machine, the state of the instruction sequence, the retransmission times of a single instruction and whether overtime exists or not are judged by using a timer, namely the downlink sending time in a transmission mechanism.
Referring to fig. 3, fig. 3 is a schematic diagram of an internet of things downlink instruction sending device according to an embodiment of the present application. The downlink instruction sending device of the internet of things in the embodiment of the application comprises one or more control processors and a memory, and in fig. 3, one control processor and one memory are taken as an example.
The control processor and the memory may be connected by a bus or otherwise, for example in fig. 3.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located from the control processor, the remote memory being connectable to the internet of things downstream instruction transmitting device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It will be appreciated by those skilled in the art that the arrangement shown in fig. 3 is not limiting of the downlink instruction transmitting apparatus of the internet of things, and may include more or fewer components than shown, or may be a combination of certain components, or a different arrangement of components.
The non-transient software program and the instructions required for implementing the internet of things downlink instruction sending method applied to the internet of things downlink instruction sending device in the above embodiment are stored in the memory, and when executed by the control processor, the internet of things downlink instruction sending method applied to the internet of things downlink instruction sending device in the above embodiment is executed.
In addition, an embodiment of the present application further provides a computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions are executed by one or more control processors, and the one or more control processors may be caused to perform the method for sending downlink instructions of the internet of things in the embodiment of the method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present application have been described in detail with reference to the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present application.

Claims (8)

1. The method for sending the downlink instruction of the Internet of things is characterized by comprising the following steps of:
acquiring a downlink instruction;
determining an Internet of things terminal according to the downlink instruction;
acquiring a power saving mode of the terminal of the Internet of things;
determining a transmission mechanism of a downlink instruction according to the power saving mode, wherein the transmission mechanism is used for determining the sending times of the downlink instruction and the waiting interval time of each sending;
when the terminal of the Internet of things is determined to be in an activated state according to the power saving mode, determining to send the downlink instruction or determining that the downlink instruction is overtime to send and stopping sending the downlink instruction according to the transmission mechanism;
the determining that the terminal of the internet of things is in an activated state according to the power saving mode comprises the following steps:
when the power saving mode is determined to be a DRX mode or an eDRX mode, the terminal of the Internet of things is in an activated state;
when the power saving mode is determined to be a PSM mode, determining an activation time window according to the receiving time of the uplink message of the terminal of the Internet of things and the preset time length, wherein the terminal of the Internet of things is in an activation state in the activation time window currently;
the transmission mechanism corresponding to the power saving mode being the eDRX mode is as follows: the sending times are once, after the downlink instruction is sent for the first time, the waiting interval time for waiting for the first sending does not receive the response message, and the sending timeout of the downlink instruction is determined and the downlink instruction is stopped to be sent, wherein the waiting interval time in a transmission mechanism corresponding to the eDRX mode is an eDRX time window;
the transmission mechanism corresponding to the power saving mode being the PSM mode or the DRX mode is as follows: and after the downlink instruction is transmitted for the last time, the waiting interval time for the last transmission does not receive the response message, and the downlink instruction is determined to be overtime and the downlink instruction is stopped being transmitted.
2. The method for sending the downlink command of the internet of things according to claim 1, wherein the step of obtaining the power saving mode of the terminal of the internet of things comprises the following steps:
acquiring a first message of the terminal of the Internet of things;
judging whether the binding mode carries a mark character according to the binding mode in the first message;
when the binding mode carries the mark character, the power saving mode is a PSM mode;
when the binding mode does not carry the mark character, determining whether the first message carries the access point parameter according to the first message; when the first message carries access point parameters, determining the power saving mode according to the access point parameters; and when the first message does not carry the access point parameters, acquiring the registration information of the terminal of the Internet of things and determining the power saving mode according to the registration information.
3. The internet of things downlink instruction transmitting method according to claim 1, wherein after the step of obtaining the power saving mode of the internet of things terminal, the internet of things downlink instruction transmitting method further comprises the steps of:
and when the terminal of the Internet of things is in an inactive state according to the power saving mode, caching the downlink instruction to the tail of a process queue.
4. The method for sending downlink instructions of the internet of things according to claim 3, wherein the method for sending downlink instructions of the internet of things further comprises the following steps:
determining that the current waiting confirmation flag bit is in a set state, and caching the downlink instruction to the tail of a process queue;
determining that the current waiting confirmation flag bit is in a reset state, and modifying the waiting confirmation flag bit into a set state after sending the downlink instruction;
and when receiving the response message of the downlink instruction, modifying the waiting confirmation flag bit into a reset state.
5. The method for sending downlink instructions of the internet of things according to claim 2, wherein the method for sending downlink instructions of the internet of things further comprises the following steps:
acquiring state information of the terminal of the Internet of things;
and if the state information is determined to be in an offline state, determining that the downlink instruction is overtime in transmission and stopping transmitting the downlink instruction.
6. The method for sending downlink instructions of the internet of things according to claim 2, wherein the method for sending downlink instructions of the internet of things further comprises the following steps:
receiving a second message newly sent by the terminal of the Internet of things;
determining whether the network address of the terminal of the Internet of things is changed according to the network address in the first message and the network address in the second message;
and when the network address of the terminal of the Internet of things is changed, determining that the downlink instruction is overtime in transmission and stopping transmitting the downlink instruction.
7. The utility model provides a thing networking downstream instruction sending device which characterized in that includes:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method for sending downlink instructions of the internet of things according to any one of claims 1 to 6.
8. A computer-readable storage medium in which a processor-executable program is stored, wherein the processor-executable program is for implementing the internet of things downlink instruction transmission method according to any one of claims 1 to 6 when executed by the processor.
CN202111506209.1A 2021-12-10 2021-12-10 Method, device and storage medium for sending downlink instructions of Internet of things Active CN114363999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111506209.1A CN114363999B (en) 2021-12-10 2021-12-10 Method, device and storage medium for sending downlink instructions of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111506209.1A CN114363999B (en) 2021-12-10 2021-12-10 Method, device and storage medium for sending downlink instructions of Internet of things

Publications (2)

Publication Number Publication Date
CN114363999A CN114363999A (en) 2022-04-15
CN114363999B true CN114363999B (en) 2023-10-03

Family

ID=81098538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111506209.1A Active CN114363999B (en) 2021-12-10 2021-12-10 Method, device and storage medium for sending downlink instructions of Internet of things

Country Status (1)

Country Link
CN (1) CN114363999B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009124475A1 (en) * 2008-04-08 2009-10-15 深圳华为通信技术有限公司 A method, a system and a terminal of supporting working in a power-saving mode
CN103338500A (en) * 2012-12-24 2013-10-02 上海华为技术有限公司 Method, device and system for data transmission, network side equipment and terminal equipment
WO2017036246A1 (en) * 2015-09-02 2017-03-09 华为技术有限公司 Internet of things communication method, network side device and internet of things terminal
CN108260192A (en) * 2017-12-21 2018-07-06 中国联合网络通信集团有限公司 A kind of method of adjustment of internet-of-things terminal and its battery saving mode
WO2019047895A1 (en) * 2017-09-08 2019-03-14 西安中兴新软件有限责任公司 Method for networking, terminal, and internet-of-things platform
CN109661020A (en) * 2018-11-07 2019-04-19 深圳市有方科技股份有限公司 Adjusting method, adjustment equipment and the computer readable storage medium of Internet of Things battery saving mode
CN109756523A (en) * 2017-08-24 2019-05-14 中国移动通信有限公司研究院 A kind of data cache method, device and SCEF entity
CN110022577A (en) * 2018-01-08 2019-07-16 中国移动通信有限公司研究院 Honeycomb IOT downlink business sending method, device and computer readable storage medium
CN110267296A (en) * 2019-05-17 2019-09-20 中国联合网络通信集团有限公司 A kind of condition detection method and equipment
CN110557765A (en) * 2018-06-04 2019-12-10 中国移动通信集团山东有限公司 Power consumption mode adjusting method and device
CN110636592A (en) * 2018-05-30 2019-12-31 中国电信股份有限公司 User equipment power consumption mode notification method and device and UE
CN110913423A (en) * 2019-11-11 2020-03-24 天翼物联科技有限公司 Terminal reachability identification method, data transmission method, device and storage medium
CN111194011A (en) * 2018-10-29 2020-05-22 中国移动通信有限公司研究院 Data sending method, data receiving method, platform server and terminal
CN111385773A (en) * 2020-03-24 2020-07-07 武汉科技大学 Intelligence water gauge control circuit based on NB-IOT

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2953258C (en) * 2014-06-25 2021-02-23 Telefonaktiebolaget Lm Ericsson (Publ) Node and method for buffering downlink data
KR102460562B1 (en) * 2015-04-03 2022-10-27 인터디지탈 패튼 홀딩스, 인크 System enhancements for extended DRX usage

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009124475A1 (en) * 2008-04-08 2009-10-15 深圳华为通信技术有限公司 A method, a system and a terminal of supporting working in a power-saving mode
CN103338500A (en) * 2012-12-24 2013-10-02 上海华为技术有限公司 Method, device and system for data transmission, network side equipment and terminal equipment
WO2017036246A1 (en) * 2015-09-02 2017-03-09 华为技术有限公司 Internet of things communication method, network side device and internet of things terminal
CN109756523A (en) * 2017-08-24 2019-05-14 中国移动通信有限公司研究院 A kind of data cache method, device and SCEF entity
WO2019047895A1 (en) * 2017-09-08 2019-03-14 西安中兴新软件有限责任公司 Method for networking, terminal, and internet-of-things platform
CN108260192A (en) * 2017-12-21 2018-07-06 中国联合网络通信集团有限公司 A kind of method of adjustment of internet-of-things terminal and its battery saving mode
CN110022577A (en) * 2018-01-08 2019-07-16 中国移动通信有限公司研究院 Honeycomb IOT downlink business sending method, device and computer readable storage medium
CN110636592A (en) * 2018-05-30 2019-12-31 中国电信股份有限公司 User equipment power consumption mode notification method and device and UE
CN110557765A (en) * 2018-06-04 2019-12-10 中国移动通信集团山东有限公司 Power consumption mode adjusting method and device
CN111194011A (en) * 2018-10-29 2020-05-22 中国移动通信有限公司研究院 Data sending method, data receiving method, platform server and terminal
CN109661020A (en) * 2018-11-07 2019-04-19 深圳市有方科技股份有限公司 Adjusting method, adjustment equipment and the computer readable storage medium of Internet of Things battery saving mode
CN110267296A (en) * 2019-05-17 2019-09-20 中国联合网络通信集团有限公司 A kind of condition detection method and equipment
CN110913423A (en) * 2019-11-11 2020-03-24 天翼物联科技有限公司 Terminal reachability identification method, data transmission method, device and storage medium
CN111385773A (en) * 2020-03-24 2020-07-07 武汉科技大学 Intelligence water gauge control circuit based on NB-IOT

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP. "45820-101".3GPP tsg_geran\TSG_GERAN.2015,全文. *

Also Published As

Publication number Publication date
CN114363999A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US8526346B1 (en) Power save communication mechanism for wireless communication systems
KR101712302B1 (en) Reducing power consumption in connected mode discontinuous reception
US8576761B1 (en) Power save delivery mechanism for wireless communication traffic
US20220183075A1 (en) Method and apparatus for receiving target downlink signal, and device and system
US20190349970A1 (en) Data transmission method, device and system
KR20140030338A (en) Power save proxy in communication networks
CN106330410B (en) method and device for processing uplink information
US8014323B2 (en) Systems and methods for facilitating communication between communication devices
US20070202835A1 (en) Power saving method for a wireless communication apparatus
CN107567107B (en) Data transmission method and device
JP5609990B2 (en) Wireless communication device
TWI795537B (en) Communication method and device based on relay equipment, terminal and base station
US10512102B2 (en) Method and apparatus for triggering an active time to monitor for discontinuous reception
KR101624749B1 (en) Apparatus and method for controlling sleep mode in a communication system based on a packet
US20150003308A1 (en) Method, System, and Device for Transmitting Information
CN111436094A (en) Communication method and device
CN114363999B (en) Method, device and storage medium for sending downlink instructions of Internet of things
JP4651440B2 (en) Wireless communication terminal and method for managing transmission / reception function thereof
CN110798887A (en) Method and system for improving paging response probability
EP4135237A1 (en) Method and apparatus for configuring drx active state, user equipment, and storage medium
WO2022027413A1 (en) Method and device for managing sidelink transmission
CN110533897B (en) Socket-based coffee roasting communication method
CN116210346A (en) Method, device, equipment and medium for starting discontinuous reception retransmission timer
WO2023283826A1 (en) Codebook feedback method, apparatus, device, and readable storage medium
CN111565469B (en) Uplink real-time data transmission method and device of narrow-band Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant