CN114363999A - Internet of things downlink instruction sending method and device and storage medium - Google Patents

Internet of things downlink instruction sending method and device and storage medium Download PDF

Info

Publication number
CN114363999A
CN114363999A CN202111506209.1A CN202111506209A CN114363999A CN 114363999 A CN114363999 A CN 114363999A CN 202111506209 A CN202111506209 A CN 202111506209A CN 114363999 A CN114363999 A CN 114363999A
Authority
CN
China
Prior art keywords
internet
things
downlink instruction
sending
downlink
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.)
Granted
Application number
CN202111506209.1A
Other languages
Chinese (zh)
Other versions
CN114363999B (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

Images

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

Abstract

The invention discloses a method and a device for sending a downlink instruction of an Internet of things and a storage medium, 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 internet of things terminal 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 sent overtime and stopping sending the downlink instruction. The method and the device can reduce the loss rate of downlink instruction sending and reduce the waste of resources of the Internet of things.

Description

Internet of things downlink instruction sending method and device and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for sending a downlink instruction of an internet of things and a storage medium.
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 resource consumption of the internet of things, generally, an internet of things terminal in the internet of things supports three Power Saving modes, namely, a Power Saving Mode (PSM), a Discontinuous Reception (DRX) Mode, and an Extended DRX Mode (Extended DRX), and different requirements for energy consumption in different application scenarios are different, and different Power Saving modes of the internet of things terminal can be selected to limit time for the internet of things terminal to receive a downlink instruction, so that an energy Saving effect is achieved.
Currently, a downlink instruction is sent to an internet of things terminal by directly obtaining instruction content from a database and directly issuing the downlink instruction, and when the instruction fails to be issued, the downlink instruction is retransmitted according to a fixed interval time. However, in this sending method, the order of issuing the instructions may be disordered or the sending may be 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 invention is directed to solving at least one of the problems of the prior art. Therefore, the invention 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 downlink instruction sending and reduce the waste of resources of the internet of things.
On one hand, the embodiment of the invention provides a method for sending downlink instructions of the 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 internet of things terminal 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 sent overtime and stopping sending the downlink instruction.
According to some embodiments of the present invention, the root acquiring the power saving mode of the terminal of the internet of things includes:
acquiring a first message of the Internet of things terminal;
judging whether the binding mode carries a flag character or not according to the binding mode in the first message;
when the binding mode carries a flag character, the power saving mode is a PSM mode;
when the binding mode does not carry a flag character, determining whether the first message carries an access point parameter or not 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 access point parameters, acquiring registration information of the Internet of things terminal and determining the power saving mode according to the registration information.
According to some embodiments of the present invention, the determining that the terminal of the internet of things is in the active state according to the power saving mode includes:
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 active state;
and when the power saving mode is determined to be the PSM mode, determining an activation time window according to the receiving time of the uplink message of the Internet of things terminal and a preset time length, wherein the Internet of things terminal is in an activation state in the activation time window currently.
According to some embodiments of the present invention, 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 determined to be in an inactivated 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 invention, the method for sending the downlink instruction 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 a response message of the downlink instruction is received, modifying the waiting confirmation zone bit into a reset state.
According to some embodiments of the present invention, the determining to send the downlink instruction or determining that the downlink instruction is sent overtime and stops sending the downlink instruction according to the transmission mechanism includes:
when the sending times are one, after the downlink instruction is sent for the first time, the response message is not received after the waiting interval time of the first sending, the downlink instruction is determined to be sent overtime, and the downlink instruction is stopped to be sent;
and when the sending times are multiple times, after the downlink instruction is sent for the first time, the response message is not received after waiting for the waiting interval time of the first sending, the downlink instruction is continuously sent for the next time, the response message is not received after waiting for the waiting interval time of the next sending, and the downlink instruction is determined to be sent overtime and the downlink instruction is stopped sending when the response message is not received after waiting for the waiting interval time of the last sending after the downlink instruction is sent for the last time.
According to some embodiments of the present invention, the method for sending the downlink instruction 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 off-line state, determining that the downlink instruction is overtime and stopping sending the downlink instruction.
According to some embodiments of the present invention, the method for sending the downlink instruction 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 and stopping sending the downlink instruction.
On the other hand, an embodiment of the present invention further provides an internet of things downlink instruction sending apparatus, including:
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 enabled to implement the internet of things downlink instruction sending method as described above.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions are configured to cause a computer to execute the method for sending downlink instructions of the internet of things as described above.
The technical scheme of the invention at least has one of the following advantages or beneficial effects: after the downlink instruction is obtained, the corresponding Internet of things terminal is determined according to the downlink instruction, then the power saving mode of the Internet of things terminal is obtained according to the Internet of things terminal, the sending times of the downlink instruction and the waiting interval time transmission mechanism of each sending of the downlink instruction 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 instruction is determined to be sent or the downlink instruction is determined to be sent overtime and the downlink instruction is stopped being sent. The current power saving mode of the terminal of the Internet of things is determined, the current state of the terminal of the Internet of things is determined, and then the downlink instruction is sent by adopting a transmission mechanism corresponding to the power saving mode or the overtime sending is determined according to the transmission mechanism to stop sending, so that the downlink instruction can be sent orderly, the loss rate of the downlink instruction is reduced, the overtime sending is judged to stop sending, and the resource waste of the Internet of things is reduced.
Drawings
Fig. 1 is a flowchart of a method for sending a downlink instruction of an internet of things according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for sending a downlink instruction of the internet of things according to another embodiment of the present invention;
fig. 3 is a schematic diagram of an internet of things downlink instruction sending device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or components having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplicity of description, and does not indicate or imply that the device or element 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 invention.
In the description of the present invention, if there are first, second, etc. described, they are only used for distinguishing technical features, but they are not interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the precedence of the indicated technical features.
For the purpose of clearly explaining the embodiments of the present invention, the following explanations are made to the words in the embodiments of the present invention:
PSM (Power Saving Mode): the internet of things terminal is deeply dormant 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 sends uplink data, is low in power consumption, and is suitable for services without time delay requirements on the downlink data, such as meter reading services.
DRX (Discontinuous Reception mode): the downlink data can 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 the downlink data arrives at one time, so that the power consumption is low, and the method is 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, only in a set paging time window, the terminal of the Internet of things can receive downlink data, the terminal is in a dormant state in other time, the downlink data is not received, and the mode can balance the time delay and the power consumption of the downlink data, such as remotely closing gas service.
APN (Access Point Name, Access Point): the network access technology is a parameter that must be configured when a device accesses the internet, and determines which access method the device accesses the network through.
Referring to fig. 1, the internet of things downlink instruction sending method according to the embodiment of the present invention includes, but is not limited to, step S110, step S120, step S130, step S140, and step S150.
Step S110, acquiring a downlink instruction;
step S120, determining the terminal of the Internet of things according to the downlink instruction;
step S130, acquiring a power saving mode of the terminal of the Internet of things;
step S140, determining a transmission mechanism of the 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 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 a downlink instruction according to a transmission mechanism or determining that the downlink instruction is sent overtime and stopping sending the downlink instruction.
Specifically, after the platform acquires a downlink instruction from the user side or acquires 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 serial number in the downlink instruction, and then the power saving mode currently adopted by the internet of things terminal is acquired. After one of the power saving modes currently adopted by the terminal of the internet of things is obtained, a transmission mechanism corresponding to a downlink instruction can be determined from the storage module according to the power saving mode, then whether the terminal of the internet of things is in an active state or not is judged according to the power saving mode, and when the terminal of the internet of things is in the active state, the downlink instruction is determined to be sent or the downlink instruction is determined to be sent overtime and the downlink instruction is stopped being sent according to the transmission mechanism. Generally, a power saving mode corresponds to a transmission mechanism, where the transmission mechanism is used to determine the sending times of downlink commands and the waiting interval time of each sending, and orderly retransmit the downlink commands according to the transmission mechanism, so as to reduce the loss rate of the downlink commands. Illustratively, a power saving mode currently adopted by the terminal of the internet of things is a PSM mode, a transmission mechanism corresponding to the PSM mode is that the number of sending times is 5, and the waiting time for each sending is 5 seconds, 10 seconds, 20 seconds, 40 seconds and 47 seconds, after the current state of the terminal of the internet of things is determined to be an active state, the terminal of the internet of things directly sends a downlink instruction, if the terminal of the internet of things does not respond after 5 seconds, the downlink instruction is sent again, if the terminal of the internet of things does not respond after 10 seconds, the downlink instruction is sent again, and so on, after the downlink instruction sent for the 5 th time, the terminal of the internet of things waits for 47 seconds and still does not respond, and the downlink instruction is judged to be sent overtime and is stopped. In this embodiment, the current power saving mode of the terminal of the internet of things is determined, the terminal of the internet of things is determined to be in the active state at present, and then the downlink instruction is sent by adopting the transmission mechanism corresponding to the power saving mode or the timeout sending is determined to be stopped according to the transmission mechanism, so that the downlink instruction can be sent orderly, the loss rate of the downlink instruction is reduced, the timeout sending is stopped when the timeout is determined, and the resource waste of the internet of things is reduced.
It should be noted that different power saving modes correspond to different transmission schemes, that is, different power saving modes correspond to different transmission times and different waiting times. For example, the PSM mode may correspond to a transmission mechanism with 5 transmissions, and the latency 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 that the number of sending times is 1, and the sending waiting time 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 sent, the internet of things terminal does not respond after waiting for the eDRX time window of 20 seconds, and then timeout is determined. The DRX mode may correspond to a transmission scheme of 5 transmissions, and the latency for each transmission may be 5 seconds, 10 seconds, 20 seconds, 40 seconds, and 47 seconds, respectively. It is understood that the number of transmissions and the waiting time for each transmission of the transmission scheme corresponding to each power saving mode may be changed according to the requirement.
According to some embodiments of the invention, step S130 includes, but is not limited to, step S210, step S220, step S230, and step S240.
Step S210, acquiring a first message of the terminal of the Internet of things;
step S220, judging whether the binding mode carries a flag character or not 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 flag character, determining whether the first message carries the access point parameter or not according to the first message; when the first message carries 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, the internet of things terminal sends a first message to the platform when accessing the platform, where the first message may include a login message and an update message. The update message or the login message is provided with a binding mode, that is, a binding mode, and then it is determined whether the binding mode carries a flag character, if the binding mode carries the flag character, the power saving mode of the internet of things terminal is a PSM mode, for example, it is determined whether the binding mode carries Q, and if the binding mode carries Q, the power saving mode of the internet of things terminal is the PSM mode. And if the binding mode does not carry the marker characters, determining whether the login message carries access point parameters (APN parameters) according to the login message, namely determining whether the APN information in the login message carries the APN parameters 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 terminal of the internet of things logs in the platform is the same as the power saving mode when the user registers the terminal of the internet of things 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 invention, the 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 active state;
step S320, when the power saving mode is determined to be the PSM mode, determining an activation time window according to the receiving time of the uplink message received from the internet of things terminal and a preset time length, where the internet of things terminal is currently in an activation state in the activation time window.
Specifically, the specific step of judging whether the internet of things terminal is in an activated state according to the power saving mode is as follows: if the power saving mode is the DRX mode or the eDRX mode, it can be determined that the terminal of the Internet of things is always in the active state. If the power saving mode is the PSM mode, determining an activation time window according to the receiving time of the uplink message of the internet of things terminal and a preset time length, wherein the internet of things terminal is in an activation state in the activation time window currently, for example, the internet of things terminal is in an activation time window of 22 seconds after the platform receives the uplink message of the internet of things terminal currently.
According to some specific embodiments of the present invention, after step S130, the method for sending the internet of things downlink instruction according to the embodiments of the present invention further includes, but is not limited to, step S410.
Step S410, when the terminal of the Internet of things is determined to be in an inactivated state according to the power saving mode, a downlink instruction is cached to the tail of the progress 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 internet of things terminal, 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, and compared with a method of storing the downlink instruction in the database, the read-write pressure of the database can be reduced and the read rate can be improved.
According to some specific embodiments of the present invention, the method for sending the internet of things downlink instruction according to the embodiments of the present invention 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 setting state, and caching a downlink instruction to the tail of a 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;
step S530, when receiving the response message of the downlink command, modifying the waiting confirmation flag bit to a reset state.
Specifically, in the downlink instruction sending process, it needs to be determined that the state machine does not currently have other downlink instructions being issued, and then the downlink instruction is sent, where the current waiting confirmation flag is set to indicate that there are other downlink instructions being issued currently, and the current waiting confirmation flag is reset to indicate that there are no other downlink instructions being issued currently. Referring to fig. 2, the specific process is as follows:
step S910, after receiving the downlink instruction, judging whether the power saving mode of the corresponding Internet of things terminal is a PSM mode according to the downlink instruction, and if the power saving mode is the PSM mode, executing step S920; if not the PSM mode, step S930 is performed.
Step S920, judging whether the current activation time window exceeds 22S, if the current activation time window exceeds 22S, executing step S940; if the activation time window of 22S is not exceeded, step S930 is performed.
Step S930, determining whether the current waiting confirmation flag bit (i.e., wait ack parameter) is in a set state, if so, executing step S940; if the status is not set, i.e. the waiting confirmation flag bit is in the reset status, step S950 is executed.
Step S940, the downlink instruction is cached at the tail of the process queue.
Step S950, sending the downlink instruction to the Internet of things terminal for the first time, judging whether the Internet of things terminal responds, and executing step S960 when the Internet of things terminal responds; when the terminal of the internet of things does not respond, step S970 is performed.
Step S960, modifying the waiting confirmation flag bit into a reset state, taking out the first downlink instruction in the process queue, and then executing step S930;
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 step S980;
step S980, determining that the downlink command is sent overtime and stopping sending the downlink command, and then executing step S990.
In step S990, the waiting confirmation flag is modified to be in a reset state, the first downlink instruction in the process queue is fetched, and then step S910 is executed.
It should be noted that, after the downlink instruction is sent for the first time, if the terminal of the internet of things actively responds to the platform, it is indicated that the terminal of the internet of things is in an activated state at this time, and therefore, the next instruction of the terminal of the internet of things can skip the judgment of the power saving mode and be directly issued; after the downlink instruction is sent for the first time, if the internet of things terminal does not actively respond to the platform, and after the retransmission process, the internet of things terminal is not necessarily in the activated state, and therefore whether the internet of things terminal is in the activated state needs to be judged again according to the power saving mode.
According to some embodiments of the present invention, the determining to send the downlink command or determining that the downlink command is sent overtime and stops sending the downlink command in step S150 according to the transmission mechanism includes, but is not limited to, step S610 and step S620.
Step S610, when the sending times is one, after the downlink instruction is sent for the first time, if the waiting interval time of the first sending does not receive the response message, determining that the downlink instruction is overtime and stopping sending the downlink instruction;
step S620, when the sending times are multiple times, after the downlink instruction is sent for the first time, the response message is not received after waiting for the waiting interval time sent for the first time, the downlink instruction is continuously sent for the next time, the response message is not received after waiting for the waiting interval time sent for the next time, until the response message is not received after the downlink instruction is sent for the last time, the downlink instruction is determined to be sent overtime, and the downlink instruction is stopped being sent.
Specifically, the transmission mechanism corresponding to the eDRX mode may be that the number of sending times is 1, and the sending waiting time may be an eDRX time window selected by the terminal of the internet of things, for example, 20 seconds, that is, after the downlink instruction is directly sent, the terminal of the internet of things waits for the eDRX time window of 20 seconds and does not respond, and then timeout is determined. The transmission mechanism corresponding to the PSM mode and the DRX mode may be that the number of sending times is 5, the waiting time for each sending may be 5 seconds, 10 seconds, 20 seconds, 40 seconds, and 47 seconds, respectively, after determining that the terminal of the internet of things is currently in an active state, the downlink instruction is directly sent, if the terminal of the internet of things does not respond after 5 seconds, the downlink instruction is sent again, if the terminal of the internet of things does not respond after 10 seconds, the downlink instruction is sent again, and so on, after the downlink instruction sent for the 5 th time, the terminal of the internet of things waits for 47 seconds and still does not respond, the downlink instruction is judged to be sent overtime and is stopped.
According to some specific embodiments of the present invention, the method for sending the downlink instruction of the internet of things further includes, but is not limited to, step S710 and step S720.
Step S710, acquiring state information of the terminal of the Internet of things;
step S720, if the status information is determined to be in the offline status, it is determined that the downlink command is sent overtime and stops sending the downlink command.
Specifically, the terminal of the internet of things actively sends an offline message to trigger offline, and the sending of the downlink instruction can be directly considered to be overtime.
Specifically, the internet of things terminal based on the LWM2M protocol has an online duration determined by a lifetime value (online duration value) set by the internet of things terminal, and when the lifetime value expires and the platform is not updated, the device is judged to be offline, and it can be directly considered that the downlink instruction is overtime.
According to some specific embodiments of the present invention, the method for sending the internet of things downlink instruction according to the embodiments of the present invention 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 Internet of things terminal changes, determining that 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 IP address in the original first message, it may be determined that the IP address of the internet of things terminal changes, and if the downlink instruction in the previous transmission is not reachable, it is determined that the original downlink instruction transmission fails, and timeout processing is sent according to the downlink instruction.
According to the embodiment, the embodiment of the invention has the following beneficial effects:
the power saving mode is judged in multiple modes, different transmission mechanisms are selected for flexible issuing, and the resource consumption of the Internet of things terminal is reduced as much as possible under the condition that downlink instructions are not lost.
The method comprehensively considers the downlink instruction sending time, the equipment online state and the equipment source address change to judge the instruction overtime, improves the integrity of a single downlink instruction sending flow, and reduces the chaotic condition of downlink instruction sending.
The method and the device have the advantages that the state of the instruction sequence, the retransmission times of a single instruction and whether the instruction sequence is overtime or not are judged by using the timer, namely the downlink sending time in the transmission mechanism, through the mode that the process queue is combined with the state machine, and compared with a database reading mode, the method and the device improve the sending efficiency.
Referring to fig. 3, fig. 3 is a schematic diagram of an internet of things downlink instruction transmitting device according to an embodiment of the present invention. The internet of things downlink instruction sending device in the embodiment of the invention includes one or more control processors and a memory, and fig. 3 illustrates one control processor and one memory as an example.
The control processor and the memory may be connected by a bus or other means, as exemplified by the bus connection in fig. 3.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the control processor, and the remote memory may be connected 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.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 3 does not constitute a limitation of the internet of things downlink instruction transmitting apparatus, and may include more or less components than those shown, or combine some components, or arrange different components.
The non-transitory software program and the instructions required for implementing the sending method of the downlink instruction of the internet of things applied to the sending device of the downlink instruction of the internet of things in the above embodiments are stored in the memory, and when being executed by the control processor, the sending method of the downlink instruction of the internet of things applied to the sending device of the downlink instruction of the internet of things in the above embodiments is executed.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and executed by one or more control processors, so as to enable the one or more control processors to execute the method for sending the downlink instruction of the internet of things in the foregoing method embodiment.
One 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 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 is well known to those of ordinary skill 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 accessed by a computer. In addition, 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 as known to those skilled in the art.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A method for sending downlink instructions of the Internet of things is characterized by comprising 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 internet of things terminal 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 sent overtime and stopping sending the downlink instruction.
2. The internet of things downlink instruction sending method according to claim 1, wherein the obtaining of the power saving mode of the internet of things terminal comprises the following steps:
acquiring a first message of the Internet of things terminal;
judging whether the binding mode carries a flag character or not according to the binding mode in the first message;
when the binding mode carries a flag character, the power saving mode is a PSM mode;
when the binding mode does not carry a flag character, determining whether the first message carries an access point parameter or not 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 access point parameters, acquiring registration information of the Internet of things terminal and determining the power saving mode according to the registration information.
3. The internet of things downlink instruction sending method according to claim 1, wherein the determining that the internet of things terminal is in the active state according to the power saving mode includes:
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 active state;
and when the power saving mode is determined to be the PSM mode, determining an activation time window according to the receiving time of the uplink message of the Internet of things terminal and a preset time length, wherein the Internet of things terminal is in an activation state in the activation time window currently.
4. The internet of things downlink instruction sending method according to claim 3, wherein after the step of obtaining the power saving mode of the internet of things terminal, the internet of things downlink instruction sending method further comprises the steps of:
and when the terminal of the Internet of things is determined to be in an inactivated state according to the power saving mode, caching the downlink instruction to the tail of a process queue.
5. The internet of things downlink instruction sending method according to claim 4, further comprising the steps of:
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 a response message of the downlink instruction is received, modifying the waiting confirmation zone bit into a reset state.
6. The method for sending downlink instructions of the internet of things according to claim 5, wherein the step of determining to send the downlink instructions or determining that the downlink instructions are sent overtime and stop sending the downlink instructions according to the transmission mechanism comprises the following steps:
when the sending times are one, after the downlink instruction is sent for the first time, the response message is not received after the waiting interval time of the first sending, the downlink instruction is determined to be sent overtime, and the downlink instruction is stopped to be sent;
and when the sending times are multiple times, after the downlink instruction is sent for the first time, the response message is not received after waiting for the waiting interval time of the first sending, the downlink instruction is continuously sent for the next time, the response message is not received after waiting for the waiting interval time of the next sending, and the downlink instruction is determined to be sent overtime and the downlink instruction is stopped sending when the response message is not received after waiting for the waiting interval time of the last sending after the downlink instruction is sent for the last time.
7. The internet of things downlink instruction sending method according to claim 2, further comprising the steps of:
acquiring state information of the terminal of the Internet of things;
and if the state information is determined to be in an off-line state, determining that the downlink instruction is overtime and stopping sending the downlink instruction.
8. The internet of things downlink instruction sending method according to claim 2, further comprising the steps of:
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 and stopping sending the downlink instruction.
9. The utility model provides a thing networking downlink instruction sender, its 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 enabled to implement the internet of things downlink instruction transmitting method according to any one of claims 1 to 8.
10. A computer-readable storage medium, in which a program executable by a processor is stored, wherein the program executable by the processor is used for implementing the internet of things downlink instruction transmitting method according to any one of claims 1 to 8 when being 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 true CN114363999A (en) 2022-04-15
CN114363999B 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 (16)

* 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
US20160262041A1 (en) * 2014-06-25 2016-09-08 Telefonaktiebolaget L M Ericsson (Publ) Node and method for buffering downlink data
US20160295504A1 (en) * 2015-04-03 2016-10-06 Interdigital Patent Holdings, Inc System enhancements for using extended drx
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

Patent Citations (16)

* 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
US20160262041A1 (en) * 2014-06-25 2016-09-08 Telefonaktiebolaget L M Ericsson (Publ) Node and method for buffering downlink data
US20160295504A1 (en) * 2015-04-03 2016-10-06 Interdigital Patent Holdings, Inc System enhancements for using extended drx
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 *

Also Published As

Publication number Publication date
CN114363999B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
US8526346B1 (en) Power save communication mechanism for wireless communication systems
KR101580622B1 (en) Power save proxy in communication networks
US8576761B1 (en) Power save delivery mechanism for wireless communication traffic
US20220183075A1 (en) Method and apparatus for receiving target downlink signal, and device and system
US20070202835A1 (en) Power saving method for a wireless communication apparatus
CN106330410B (en) method and device for processing uplink information
US8014323B2 (en) Systems and methods for facilitating communication between communication devices
JP5609990B2 (en) Wireless communication device
JP4737275B2 (en) Wireless communication apparatus, wireless communication system, and wireless communication method
CN107567107B (en) Data transmission method and device
KR101624749B1 (en) Apparatus and method for controlling sleep mode in a communication system based on a packet
US9420539B2 (en) Apparatus and method for controlling transmission of sensor data on media access control (MAC) layer of wireless sensor network
WO2019153125A1 (en) Data transmission method and device, and computer storage medium
CN111211918A (en) Networking method for LoRa private protocol
US20220353813A1 (en) Scheduling method, access point, and station
US20180219646A1 (en) Network Node, Wireless Device and Methods Performed Thereby for the Network Node to Provide Information to the Wireless Device
US20050020272A1 (en) Method and apparatus in a wireless communication system for expediting a request for uplink resources
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
WO2022027413A1 (en) Method and device for managing sidelink transmission
WO2021062660A1 (en) Data transmission method and device, user equipment and storage medium
CN113497681A (en) Method and device for setting active state of DRX (discontinuous reception), user equipment and storage medium
CN111565469B (en) Uplink real-time data transmission method and device of narrow-band Internet of things
WO2013121693A1 (en) Wireless communication terminal, wireless communication method, and wireless communication program
CN113259432B (en) Communication method based on TCP protocol and robot remote control system

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