CN113645646B - Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment - Google Patents

Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment Download PDF

Info

Publication number
CN113645646B
CN113645646B CN202111196833.6A CN202111196833A CN113645646B CN 113645646 B CN113645646 B CN 113645646B CN 202111196833 A CN202111196833 A CN 202111196833A CN 113645646 B CN113645646 B CN 113645646B
Authority
CN
China
Prior art keywords
executed
instruction
request
instructions
queue
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
CN202111196833.6A
Other languages
Chinese (zh)
Other versions
CN113645646A (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.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing 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 Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN202111196833.6A priority Critical patent/CN113645646B/en
Publication of CN113645646A publication Critical patent/CN113645646A/en
Application granted granted Critical
Publication of CN113645646B publication Critical patent/CN113645646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • 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/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • 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 embodiment of the application discloses a communication optimization method and device of low-power-consumption equipment. Some embodiments of the method include: receiving a first request sent by first equipment through an access network, wherein the first request is used for requesting at least one first instruction to be executed; obtaining at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of first equipment; generating a first response message according to at least one first instruction to be executed; and sending the first reply message to the first device through the access network. The embodiment reduces the power consumption of the device and improves the communication efficiency.

Description

Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment
Technical Field
The embodiment of the application relates to the field of communication, in particular to a communication optimization method of low-power-consumption equipment, a communication optimization device of the low-power-consumption equipment, a server and a communication system.
Background
Narrowband Internet of Things (NB-IoT) is an emerging technology of Internet of Things (NB-IoT) and can be deployed in an access network, such as a cellular network. However, NB-IoT terminals or NB-IoT devices in NB-IoT still face the problems of high power consumption and low communication efficiency when performing NB-IoT communication.
Disclosure of Invention
The embodiment of the application provides a communication optimization method of low-power-consumption equipment, a communication optimization device of the low-power-consumption equipment, the equipment, a server and a communication system.
In a first aspect, an embodiment of the present application provides a communication optimization method for a low power consumption device. The method comprises the following steps: receiving a first request sent by first equipment through an access network, wherein the first request is used for requesting at least one first instruction to be executed; obtaining the at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of the first device; generating a first response message according to the at least one first instruction to be executed; and sending the first reply message to the first device through the access network.
In some embodiments, the first request includes at least one of a first number to indicate a first maximum number of numbers of executed instructions in the first device, a first threshold to indicate a first number of executable instructions in the first device, and a second number to indicate a number of first retry instructions in the first device.
In some embodiments, the obtaining the at least one first instruction to be executed from the first queue to be sent includes: when the first request comprises the first number and the first threshold value, obtaining a first threshold number of instructions from the first queue to be sent, wherein the number of the first threshold number of instructions is greater than the first number, and using the first threshold number of instructions as the at least one first instruction to be executed.
In some embodiments, the obtaining the at least one first instruction to be executed from the first queue to be sent includes: and when the first request comprises the second number, acquiring the first retry instruction from the first queue to be sent according to the second number, and using the first retry instruction as the at least one first instruction to be executed.
In some embodiments, the method further comprises: and receiving an execution result of the at least one first instruction to be executed, which is sent by the first device through the access network.
In some embodiments, the method further comprises: and simultaneously receiving an execution result of the at least one first instruction to be executed and a second request sent by the first device through the access network, wherein the second request is used for requesting at least one second instruction to be executed.
In some embodiments, the second request comprises at least one of a third number to indicate a second maximum number of numbers of executed instructions in the first device, a second threshold to indicate a second number of executable instructions in the first device, and a fourth number to indicate a number of second retry instructions in the first device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number is different from or the same as the second number.
In some embodiments, the plurality of instructions to be executed in the first queue to be sent are arranged according to a priority of the instructions or the plurality of instructions to be executed in the first queue to be sent are arranged according to a time element of the instructions.
In a second aspect, an embodiment of the present application provides a communication optimization method for a low power consumption device. The method comprises the following steps: sending a first request to a server through an access network, wherein the first request is used for requesting at least one first instruction to be executed; and receiving a first response message sent by the server through the access network, wherein the first response message comprises the at least one first instruction to be executed.
In some embodiments, the first request includes at least one of a first number indicating a first maximum number of numbers of executed instructions in the low power consumption device, a first threshold value indicating a first number of executable instructions in the low power consumption device, and a second number indicating a number of first retry instructions in the low power consumption device.
In some embodiments, the method further comprises: and sending an execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the method further comprises: a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions; b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution; c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue; circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue; reading an execution result of the at least one first instruction to be executed from the reply queue; and sending an execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the method further comprises: and synchronously sending an execution result of the at least one first instruction to be executed and a second request to the server through the access network, wherein the second request is used for requesting at least one second instruction to be executed.
In some embodiments, the second request includes at least one of a third number indicating a second maximum number of numbers of executed instructions in the low power consumption device, a second threshold value indicating a second number of executable instructions in the low power consumption device, and a fourth number indicating a number of second retry instructions in the low power consumption device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number is different from or the same as the second number.
In a third aspect, an embodiment of the present application provides a communication optimization apparatus for a low power consumption device. The device includes: the first receiving module is configured to receive a first request sent by a first device through an access network, wherein the first request is used for requesting at least one first to-be-executed instruction; the generating module is configured to acquire the at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of the first device; generating a first response message according to the at least one first instruction to be executed; and a first sending module configured to send the first reply message to the first device through the access network.
In some embodiments, the first request includes at least one of a first number to indicate a first maximum number of numbers of executed instructions in the first device, a first threshold to indicate a first number of executable instructions in the first device, and a second number to indicate a number of first retry instructions in the first device.
In some embodiments, the generation module is configured to, when the first request includes the first number and the first threshold, obtain a first threshold number of instructions from the first queue to be sent, where the number of the first threshold number of instructions is greater than the first number, and treat the first threshold number of instructions as the at least one first instruction to be executed.
In some embodiments, the generation module is configured to, when the first request includes the second number, obtain the first retry instruction from the first queue to be sent according to the second number, and use the first retry instruction as the at least one first instruction to be executed.
In some embodiments, the first receiving module is configured to receive an execution result of the at least one first instruction to be executed sent by the first device through the access network.
In some embodiments, the first receiving module is configured to simultaneously receive an execution result of the at least one first instruction to be executed and a second request, which is sent by the first device through the access network, and the second request is used for requesting at least one second instruction to be executed.
In some embodiments, the second request comprises at least one of a third number to indicate a second maximum number of numbers of executed instructions in the first device, a second threshold to indicate a second number of executable instructions in the first device, and a fourth number to indicate a number of second retry instructions in the first device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number is different from or the same as the second number.
In a fourth aspect, an embodiment of the present application provides a communication optimization apparatus for a low power consumption device. The device includes: a second sending module configured to send a first request to a server through an access network, the first request being used for requesting at least one first instruction to be executed; and a second receiving module configured to receive a first reply message sent by the server through the access network, the first reply message including the at least one first instruction to be executed.
In some embodiments, the first request includes at least one of a first number indicating a first maximum number of numbers of executed instructions in the low power consumption device, a first threshold value indicating a first number of executable instructions in the low power consumption device, and a second number indicating a number of first retry instructions in the low power consumption device.
In some embodiments, the second sending module is configured to: and sending an execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the apparatus is configured to: a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions; b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution; c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue; circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue; reading an execution result of the at least one first instruction to be executed from the reply queue; and sending an execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the second sending module is configured to: and synchronously sending an execution result of the at least one first instruction to be executed and a second request to the server through the access network, wherein the second request is used for requesting at least one second instruction to be executed.
In some embodiments, the second request includes at least one of a third number indicating a second maximum number of numbers of executed instructions in the low power consumption device, a second threshold value indicating a second number of executable instructions in the low power consumption device, and a fourth number indicating a number of second retry instructions in the low power consumption device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number is different from or the same as the second number.
In a fifth aspect, the present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method as described in any implementation manner of the first aspect or the second aspect.
In a sixth aspect, the present application provides a processor, configured to execute a program, where the program executes to perform the method described in any implementation manner of the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a communication optimization device for a low power consumption device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation of the first aspect.
In an eighth aspect, an embodiment of the present application provides a server, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation of the second aspect.
In a ninth aspect, an embodiment of the present application provides a communication system, including: the apparatus described in the seventh aspect; accessing a network; and the server described in the eighth aspect.
According to the method, the device, the equipment, the server and the system provided by the embodiment of the application, the equipment can request at least one first instruction to be executed in one request, such as the first request, so that the execution of at least one instruction to be executed can be realized in one communication process. The execution of at least one instruction to be executed is realized in one communication process, so that the communication efficiency is improved on one hand, and the active time of the equipment can be reduced on the other hand, thereby reducing the power consumption of the equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some examples or embodiments of the present application, and that for a person skilled in the art, other drawings can be obtained from the provided drawings without inventive effort, and that the present application can also be applied to other similar scenarios from the provided drawings. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
Fig. 1 is a schematic illustration of an application scenario according to some embodiments of the present application.
Fig. 2 is a signaling diagram of a communication method according to the prior art.
Fig. 3 is a flow diagram of a method for communication optimization of a low power device according to some embodiments of the present application.
Fig. 4 is a flow diagram of a method for communication optimization of a low power device according to some embodiments of the present application.
Fig. 5 is a flow diagram of a method for communication optimization of a low power device according to some embodiments of the present application.
Fig. 6 is a flow diagram of a method for communication optimization of a low power device according to some embodiments of the present application.
Fig. 7 is a flow diagram of a method for communication optimization of a low power device according to some embodiments of the present application.
Fig. 8 is a flow diagram of a method for communication optimization for a low power device according to some embodiments of the present application.
Fig. 9 is a flow diagram of a method for communication optimization for a low power device according to some embodiments of the present application.
Fig. 10 is a signaling diagram of a communication method according to some embodiments of the present application.
Fig. 11 is a block diagram of a communication optimization apparatus of a low power device according to some embodiments of the present application.
Fig. 12 is a block diagram of a communication optimization apparatus of a low power device according to some embodiments of the present application.
FIG. 13 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. The described embodiments are only some embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be understood that "system", "apparatus", "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
Fig. 1 is a schematic illustration of an application scenario according to some embodiments of the present application. As shown in fig. 1, the application scenario includes a server 11, an access network 12, and a plurality of devices 131 and 134.
The server 11 may provide various services.
The server 11 may be implemented by hardware, or the server 11 may be implemented by software.
When the server 11 is implemented using hardware, the server 11 may be implemented as a distributed server cluster of multiple servers or as a single server. As shown in FIG. 1, server 11 may be implemented as a distributed server cluster of servers 111 and 112. It should be understood that, on the basis of fig. 1, the server 11 may also be implemented as a distributed server cluster consisting of three servers or more than three servers. Server 11 may also be implemented as a single server, for example, server 11 may be implemented as server 111 or server 112 in fig. 1.
When the server 11 is implemented using software, the server 11 may be implemented as a plurality of pieces of software or software modules or as a single piece of software or software module. The software or software modules may be implemented on a computing device, such as a server or a cluster of servers.
Access network 12 may include a plurality of access network devices. As shown in FIG. 1, access network 12 includes access network device 121 and 122. It should be understood that on the basis of fig. 1, the access network 12 may also include three access network devices or more than three access network devices; access network 12 may also include a single access network device.
The access network 12 may be a gsm (global System for Mobile communications) System, umts (universal Mobile communications System), lte (long Term evolution) System, 5G NR (New Radio) System, or the like. Access network 12 may also be any communication technology that evolves or develops in the future. The access network 12 is not limited in the embodiment of the present application.
Access network 12 may also be a network of WI-fi (wireless fidelity), bluetooth, or other gateway technology.
Access network devices 121 and 122 of access network 12 and server 11 communicate with each other via some interface technology or protocol. For example, the access network device 121 and the server 11 communicate with each other through an Advanced Message Queuing Protocol (Advanced Message Queuing Protocol).
Access network device 121 and 122 may be base stations. A base station is a device deployed in access network 12 to provide wireless communication functionality for devices 131 and 134. The base stations may include various forms of macro base stations, micro base stations, relay stations, access points, and the like. In systems using different radio access technologies, the names of devices with base station functionality may differ, for example in LTE systems, called eNodeB or eNB; in the 5G NR system, it is called a gbnodeb or a gNB. The name "base station" may describe, and may change as communications technologies evolve or evolve. For convenience of the embodiments of the present application, the above-mentioned apparatuses providing a wireless communication function for a device are collectively referred to as access network devices.
Access network device 121 and 122 may be WI-FI devices or gateways.
The device 131 and 134 may be implemented by hardware or the device 131 and 134 may be implemented by software.
When the device 131-.
The device 131 and 134, when implemented using software, may be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. The embodiment of the present application does not set any limit to the specific type of the electronic device.
The access network devices 121 and 122 and the devices 131 and 134 communicate with each other through some technology, such as NB-IoT, Bluetooth or Wi-Fi.
Device 131 and 134 have an NB-IoT module to utilize the NB-IoT module for NB-IoT communications with access network device 121 and 122.
The device 131 and 134 may also have a bluetooth low energy module for bluetooth communication with the access network device 121 and 122.
The device 131 and 134 may also have a low power Wi-Fi module to perform Wi-Fi communication with the access network device 121 and 122 by using the low power Wi-Fi module. It should be understood that the number of devices, access networks, and servers in fig. 1 is merely illustrative. There may be any number of devices, access networks, and servers, as desired for implementation.
The following embodiments explain and illustrate the present application in the NB-IoT primary manner. It should be understood that the embodiments described below in this application can be easily implemented in other communication scenarios such as bluetooth and Wi-Fi, and are not described in detail herein.
Fig. 2 is a signaling diagram of a communication method according to the prior art. Device 13 consumes significant power when conducting NB-IoT upstream and downstream communications with access network 12; in addition, device 13 does not always have instructions to execute, and therefore NB-IoT communications are not always performed, and device 13 is not always in an active state. The device 13 is typically in a low power state. The communication link (with access network 12) of device 13 in the low power consumption state is not maintained in real time. The device 13 is timed to establish communication with the access network 12 and thus with the server 11 to execute instructions or complete tasks, as necessary. Therefore, the server 11 needs to cache the instructions to be executed. When the device 13 establishes communication with the server 11, the server 11 sends the instruction to be executed to the device 13 via the access network 12. The device 13 receives the instruction and returns the processing result to the server 11 via the access network 12.
Specifically, as shown in fig. 2, in 21, a plurality of instructions are cached in the server 11. The plurality of instructions need to be sent to the device 13 to complete execution at the device 13. The server 11 needs to wait for the device 13 to enter the active state, i.e. to establish a communication link with the server 11, before sending it to the device 13. In 22 the device 13 establishes a communication link with the access network 12 and the server 11 and sends a message to the access network 12 requesting an instruction, e.g. getCmd may be sent to the access network 12. In 23 the access network 12 forwards the message to the server 11, e.g. getCmd may be forwarded to the server 11. At 24, the server 11 sequentially reads the instructions from the cache and sends the instructions to the access network 12, e.g. Cmd may be sent to the access network 12. In 25 the access network 12 forwards the instruction to the device 13, e.g. may forward Cmd to the device 13. The device 13 executes the instructions. At 26, device 13 sends a response to the instruction to access network 12, e.g., may send a cmdRsp to access network 12. At 27, access network 12 forwards the response to the instruction to server 11, which may forward a cmdRsp to server 11, for example.
The inventor of the application finds out through research that: the equipment sends a request to the server through the access network, the server returns an instruction to the equipment through the access network, and the equipment executes the instruction and returns an execution result of the instruction to the server through the access network; in the above process, one instruction is executed in one communication process of sending a request-response request to send an instruction-feedback instruction execution result, and the communication efficiency is low; if redundant communication resources exist in the execution process of one instruction or one communication process, the bandwidth resources cannot be fully utilized, so that the bandwidth resources cannot be fully utilized; in NB-IoT communications, the inefficiency of communications further results in the device requiring more active time to complete a specified instruction or task, thus further increasing the power consumption of the device.
In order to solve the above problem, according to the embodiment of the present application, the device 13 may request at least one instruction according to its own communication status in one communication process; in addition, the device 13 converts the above sequential serial manner into a pipelined manner when executing instructions.
The method of the embodiments of the present application is described below from a server-side perspective.
With continued reference to fig. 3, a flow 300 of a method for communication optimization of a low power device is shown, in accordance with some embodiments of the present application. Specifically, as shown in FIG. 3, the process 300 includes 302, 304, 306, and 308.
A first request sent by a first device over an access network is received 302.
The first request is for at least one first instruction to be executed.
The first device is only for convenience of description herein. In this application, the first device is any of the devices described above or any of the devices described below. In addition, the device described in the present application may also be understood as a terminal.
At least one first instruction to be executed is fetched 304 from the first queue to be sent.
The first to-be-transmitted queue buffers a plurality of to-be-executed instructions of the first device.
And 306, generating a first response message according to the at least one first instruction to be executed.
A first reply message is sent 308 to the first device over the access network.
According to the method provided by the embodiment of the application, the device can request at least one first instruction to be executed in one request, such as the first request, so that the execution of at least one instruction to be executed can be realized in one communication process. The execution of at least one instruction to be executed is realized in one communication process, so that the communication efficiency is improved on one hand, and the active time of the equipment can be reduced on the other hand, thereby reducing the power consumption of the equipment.
In some embodiments, the device establishes a communication link with the access network before sending the first request to the access network; thereby establishing a communication link with the server via the access network. The device sends a first request to the access network. The access network forwards the first request to the server. And the server generates a response message according to the first request and sends the response message to the access network. The access network forwards the response message to the device.
In some embodiments, the first request includes at least one of a first number, a first threshold, and a second number. The first number is used to indicate a first largest number of numbers of executed instructions in the first device. The first threshold is used to indicate a first number of executable instructions in the first device. The second number is used to indicate the number of the first retry instruction in the first device.
In some embodiments of the present application, 304 may include: when the first request comprises a first number and a first threshold value, acquiring the instructions with the first threshold value number from the first queue to be sent, wherein the number of the instructions with the first threshold value number is larger than the first number, and taking the instructions with the first threshold value number as at least one first instruction to be executed.
In some embodiments of the present application, 304 may include: and when the first request comprises the second number, acquiring a first retry instruction from the first queue to be sent according to the second number, and using the first retry instruction as at least one first instruction to be executed.
For example, the device sends a request getCmd to the server via the access network, and carries at least one of the first number max _ id, the first threshold cmd _ count, and the third number seq _ id in the getCmd.
It should be understood that each instruction has a unique number in the device, access network, and server, and that multiple instructions may be numbered in order of execution and executed sequentially according to the number.
For example, the device has executed 4 instructions, i.e., instructions with id equal to 1, 2, 3, and 4. At this time, the first maximum number of numbers 1, 2, 3 and 4 of executed instructions in the device is 4, and max _ id is equal to 4; the device has executed 5 instructions, i.e. instructions with id equal to 1, 2, 3, 4 and 5. At this time, the first maximum number of numbers 1, 2, 3, 4, and 5 of executed instructions in the device is 5, and max _ id is equal to 5. It should be understood that this example is intended to illustrate the meaning of the first number. The specific value of the first number may be different according to an actual scene.
The first threshold cmd _ count represents the number of instructions that the device wishes the server to be able to return, or the number of instructions that the device can process at that time. The device may dynamically adjust the first threshold based on its own network conditions, thereby reducing retries of instructions.
The third number seq _ id indicates that when a device processes a certain instruction, the instruction is processed incorrectly and needs to retry the instruction, and at this time, the device can request to retransmit the instruction with the third number seq _ id.
According to the method of the embodiment of the application, at least one instruction can be specified according to at least one of the first number, the first threshold value and the second number; meanwhile, the first threshold value can be dynamically adjusted according to the network condition of the equipment, so that retry of the instruction is reduced, and further the communication efficiency is improved.
It should be understood that if multiple instructions are requested, the server may send the multiple instructions in combination, or may send the instructions one by one. The multiple instructions are sent in a combined mode or one instruction is sent according to the size of the data packet sent. For example, if the bandwidth of the NB-IoT is 512 bytes and a single instruction is 100 bytes in length, multiple instructions may be combined into a packet of data to be sent to the device.
With continued reference to fig. 4, a flow 400 of a method for communication optimization of a low power device is shown, in accordance with some embodiments of the present application. Specifically, as shown in FIG. 4, the process 400 includes 402, 404, 406, 408, and 410.
A first request sent by a first device over an access network is received 402.
The first request is for at least one first instruction to be executed.
At least one first instruction to be executed is fetched 404 from the first queue to be sent.
The first to-be-transmitted queue buffers a plurality of to-be-executed instructions of the first device.
406, a first reply message is generated according to the at least one first instruction to be executed.
A first reply message is sent 408 to the first device over the access network.
And 410, receiving an execution result of at least one first instruction to be executed sent by the first device through the access network.
According to the method, the execution result of at least one first instruction to be executed can be fed back in one communication process, so that the communication efficiency is further improved, and the power consumption of the equipment is reduced.
With continued reference to fig. 5, a flow 500 of a method for communication optimization of a device low power consumption device is shown, in accordance with some embodiments of the present application. Specifically, as shown in fig. 5, the process 500 includes 502, 504, 506, 508, and 510.
A first request sent by a first device over an access network is received 502.
The first request is for at least one first instruction to be executed.
At least one first instruction to be executed is fetched 504 from the first queue to be sent.
The first to-be-transmitted queue buffers a plurality of to-be-executed instructions of the first device.
A first reply message is generated 506 in accordance with the at least one first instruction to be executed.
The first reply message is sent 508 to the first device over the access network.
And 510, receiving an execution result of at least one first instruction to be executed and a second request sent by the first device through the access network, where the second request is used for requesting at least one second instruction to be executed.
According to the method, the execution result of at least one first to-be-executed instruction can be fed back in one communication process, and meanwhile, a next round of instruction can be requested, so that the communication efficiency is further improved, and the power consumption of equipment is reduced.
The second request includes at least one of a third number, a second threshold, and a fourth number. The third number is used to indicate the second largest number of the numbers of executed instructions in the first device. The second threshold is used to indicate a second number of executable instructions in the first device. The fourth number is used to indicate the number of the second retry instruction in the first device.
The meaning of the third number in the second request is the same as the meaning of the first number in the first request. The meaning of the fourth number in the above-mentioned second request is the same as that of the second number in the above-mentioned first request. The meaning of the second threshold in the second request is the same as the meaning of the first threshold in the first request. Accordingly, the same meaning of the parameters will not be described herein.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number may be different from or the same as the second number.
The first maximum number is different from the second maximum number, which indicates that the instruction currently executed by the equipment has changed; the first maximum number is the same as the second maximum number, which indicates that the instruction currently executed by the device is in error. The first number is different from the second number, which indicates that the current network condition of the equipment changes; the first number is the same as the second number, which indicates that the current network condition of the device has not changed.
In some embodiments of the present application, the plurality of instructions to be executed in the first queue to be sent are arranged according to a priority of the instructions, or the plurality of instructions to be executed in the first queue to be sent are arranged according to a time element of the instructions. The time element may be the time of generation of the instruction, the time at which the instruction is required to be executed, or the time at which the instruction takes effect and ends, etc.
In embodiments of the application, the server may detect whether the device is online. If the device is online, the server may send a plurality of to-be-executed instructions in the to-be-sent queue corresponding to the device according to the method in the above embodiment. If the equipment is not on-line, the server caches the instruction to be executed of the equipment into a queue to be sent corresponding to the equipment; and after the equipment is on line, the server sends a plurality of instructions to be executed in the queue to be sent of the equipment to the equipment.
In one practical scenario, for example, the device may be a smart lock. The instructions to be executed by the device may include: time sensitive password, password modification, ota (over the Air technology) upgrade wait. The execution sequence can be screened based on multiple dimensions such as timeliness, importance level, time consumption and the like, so that the queue to be sent is sorted. For example, a time sensitive password may be ranked in a prioritized position.
The method of the embodiment of the present application is explained above from the perspective of the server side. The method of the embodiments of the present application is described below from the perspective of the device side.
With continued reference to fig. 6, a flow 600 of a method for communication optimization of a device low power consumption device is shown, in accordance with some embodiments of the present application. Specifically, as shown in FIG. 6, the process 600 includes 602 and 604.
A first request is sent 602 to a server over an access network.
The first request is for at least one first instruction to be executed.
604, a first reply message sent by a server over an access network is received.
The first reply message comprises at least one first instruction to be executed.
According to the method provided by the embodiment of the application, the device can request at least one first instruction to be executed in one request, such as the first request, so that the execution of at least one instruction to be executed can be realized in one communication process. The execution of at least one instruction to be executed is realized in one communication process, so that the communication efficiency is improved on one hand, and the active time of the equipment can be reduced on the other hand, thereby reducing the power consumption of the equipment.
In some embodiments, the first request includes at least one of a first number, a first threshold, and a second number. The first number is used to indicate a first maximum number among numbers of executed instructions in the low power consumption device. The first threshold is used to indicate a first number of executable instructions in the low power device. The second number is used to indicate the number of the first retry instruction in the low power consumption device. The meaning of each parameter in the first request may refer to the above embodiments, and is not described herein again.
With continued reference to fig. 7, a flow 700 of a method for communication optimization of a low power device of the device is shown, in accordance with some embodiments of the present application. Specifically, as shown in FIG. 7, the process 700 includes 702, 704, and 706.
A first request is sent 702 to a server over an access network.
The first request is for at least one first instruction to be executed.
And 704, receiving a first response message sent by the server through the access network.
The first reply message comprises at least one first instruction to be executed.
And 706, sending the execution result of the at least one first instruction to be executed to the server through the access network.
According to the method provided by the embodiment of the application, the execution result of at least one first instruction to be executed can be fed back in one communication process, so that the communication efficiency is further improved, and the power consumption of the equipment is reduced.
With continued reference to fig. 8, a flow 800 of a method for communication optimization of a low power device of the device is shown, in accordance with some embodiments of the present application. Specifically, the communication method may be further optimized on the device side. The process 800 includes:
at least one first instruction to be executed is added to an instruction queue to be executed, the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time element of the instructions. The arrangement mode can refer to the arrangement mode of the queue at the server side; the queue arrangement mode of the server side can be different, and the equipment can be adjusted according to the self calculation function.
And 802, when at least one first instruction to be executed is added into the instruction queue to be executed, acquiring the instruction to be executed from the instruction queue to be executed for execution.
803, when the instruction to be executed is executed, adding the execution result of the previous instruction of the instruction to be executed to the reply queue;
804, the execution 801,802,803 is looped until the execution results of the at least one first to-be-executed instruction are all added to the reply queue.
805, the execution result of the at least one first instruction to be executed is read from the reply queue.
And 806, sending the execution result of the at least one first instruction to be executed to the server through the access network.
The queue of instructions to be executed, the queue of instructions to be replied, can be understood as 3 pools. The above-described pipelining is performed between 3 tanks.
According to the communication method of the embodiment of the application, the device divides the processing of the instruction into three stages: to be executed, to be executed and to be replied.
After receiving at least one first instruction to be executed, the equipment adds the at least one first instruction to be executed into a local instruction queue. A plurality of instructions to be executed are arranged in the instruction queue.
The device obtains the instructions in the instruction queue for execution and places the execution results in a reply queue in preparation for reply.
The device determines whether to continue sending the second request to request at least one second instruction to be executed according to the current load condition of the queue (instruction queue and/or reply queue). That is, the device determines whether to continue requesting at least one instruction from the server based on the current load condition of the queue.
If the device determines not to send a second request to request at least one second instruction to be executed according to the current load condition of the queue, the performance of the device is saturated. In this case, the apparatus may send the execution result of the at least one first instruction to be executed alone. Or the device waits for a period of time and then independently sends the execution result of at least one first instruction to be executed.
If the equipment decides to send a second request to request at least one second instruction to be executed according to the current load condition of the queue, the performance of the equipment still has redundancy. In this case, the device may send the execution result of the at least one first instruction to be executed and the second request in the reply queue simultaneously.
According to the method, the device changes the sequential serial communication mode into the pipeline communication mode, so that the communication efficiency is further improved, the power supply time of the communication module in the device is reduced, and the power consumption of the device is further reduced.
With continued reference to fig. 9, a flow 900 of a method for communication optimization of a device low power consumption device is shown, in accordance with some embodiments of the present application. Specifically, as shown in FIG. 9, the process 900 includes
A first request is sent 902 to a server over an access network.
The first request is for at least one first instruction to be executed.
A first reply message sent by the server over the access network is received 904.
The first reply message comprises at least one first instruction to be executed.
And 906, synchronously sending an execution result of the at least one first instruction to be executed and a second request to the server through the access network, wherein the second request is used for requesting the at least one second instruction to be executed.
The second request may refer to any of the above embodiments, and is not described herein again.
The following describes a communication method according to an embodiment of the present application with reference to the timing chart.
Fig. 10 is a signaling diagram of a communication method according to some embodiments of the present application. As shown in fig. 10, the explanation will be given by taking the request for two instructions as an example.
At 131, a plurality of instructions are cached in the server 11. The plurality of instructions are sequentially arranged in accordance with the execution order to wait until the device 13 is on-line for transmission.
At 132, device 13 sends a message to access network 12 requesting two instructions. The message may include at least one of the first number, the first threshold, and the second number.
For example, the message may include a first number, a first threshold, and a second number, with the second number specifying one instruction, and with the first number and the first threshold specifying another instruction.
For example, the message may include a first number and a first threshold by which two instructions are specified.
In 133, the access network 12 forwards the message to the server 11.
At 134, the server 11 issues an instruction to the access network 12.
At 135, access network 12 forwards an instruction to device 13.
At 136, the server 11 issues another instruction to the access network 12.
At 137, access network 12 forwards another instruction to device 13.
It should be understood that the server 11 may also send both instructions to the access network 12 via one data packet, which is then forwarded by the access network 12 to the device 13 via one data packet.
At 138, device 13 enqueues the received instruction in an instruction queue.
At 139, device 13 executes the instructions in the instruction queue.
In 1310, device 13 adds the execution results to a reply queue.
At 1311, device 13 sends an instruction response to access network 12.
In 1312, the access network 12 forwards an instructed response to the server 11.
In 1313, device 13 sends a response to another instruction to access network 13.
In 1314, the access network 13 forwards a response to the further instruction to the server 11.
It should be understood that the device 13 may send the response of the two instructions to the access network 12 via one data packet, and then the access network 12 forwards the response to the server 11 via one data packet.
With further reference to fig. 12, as an implementation of the methods shown in some of the above figures, the present application provides a communication optimization apparatus for a low power consumption device. This device embodiment corresponds to the method embodiment shown in fig. 3-5. As shown in fig. 11, the apparatus includes: a first receiving module 1102 configured to receive a first request sent by a first device through an access network, where the first request is used to request at least one first to-be-executed instruction; the generating module 1104 is configured to obtain at least one first instruction to be executed from a first queue to be sent, where the first queue to be sent stores a plurality of instructions to be executed of the first device; generating a first response message according to at least one first instruction to be executed; and a first sending module 1106 configured to send the first reply message to the first device over the access network.
In some embodiments, the first request includes at least one of a first number to indicate a first maximum number of numbers of executed instructions in the first device, a first threshold to indicate a first number of executable instructions in the first device, and a second number to indicate a number of first retry instructions in the first device.
In some embodiments, the generation module 1104 is configured to, when the first request includes the first number and the first threshold, obtain a first threshold number of instructions from the first queue to be sent, the number of the first threshold number of instructions being greater than the first number, and treat the first threshold number of instructions as the at least one first instruction to be executed.
In some embodiments, the generating module 1104 is configured to, when the first request includes the second number, obtain the first retry instruction from the first queue to be sent according to the second number, and treat the first retry instruction as the at least one first instruction to be executed.
In some embodiments, the first receiving module 1106 is configured to receive an execution result of at least one first instruction to be executed sent by the first device through the access network.
In some embodiments, the first receiving module 1106 is configured to simultaneously receive an execution result of at least one first instruction to be executed and a second request, which is sent by the first device through the access network, the second request requesting at least one second instruction to be executed.
In some embodiments, the second request includes at least one of a third number to indicate a second maximum number of numbers of executed instructions in the first device, a second threshold to indicate a second number of executable instructions in the first device, and a fourth number to indicate a number of second retry instructions in the first device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number may be different from or the same as the second number.
With further reference to fig. 12, as an implementation of the methods shown in some of the above figures, the present application provides a communication optimization apparatus for a low power consumption device. This device embodiment corresponds to the method embodiment shown in fig. 6-9. As shown in fig. 12, the apparatus includes: a second sending module 1202, configured to send a first request to the server through the access network, where the first request is used to request at least one first to-be-executed instruction; and a second receiving module 1204 configured to receive a first reply message sent by the server through the access network, the first reply message including at least one first instruction to be executed.
In some embodiments, the first request includes at least one of a first number indicating a first maximum number of numbers of executed instructions in the low power consumption device, a first threshold value indicating a first number of executable instructions in the low power consumption device, and a second number indicating a number of first retry instructions in the low power consumption device.
In some embodiments, the second sending module 1202 is configured to: and sending the execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the apparatus is configured to: a, adding at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions; b, when at least one first instruction to be executed is added into the instruction queue to be executed, acquiring the instruction to be executed from the instruction queue to be executed for execution; c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue; circularly executing a, b and c until the execution result of at least one first instruction to be executed is completely added into the reply queue; reading an execution result of at least one first instruction to be executed from a reply queue; and sending the execution result of the at least one first instruction to be executed to the server through the access network.
In some embodiments, the second sending module 1202 is configured to: and synchronously sending an execution result of at least one first instruction to be executed and a second request to the server through the access network, wherein the second request is used for requesting at least one second instruction to be executed.
In some embodiments, the second request includes at least one of a third number to indicate a second maximum number of numbers of executed instructions in the low power consumption device, a second threshold value to indicate a second number of executable instructions in the low power consumption device, and a fourth number to indicate a number of second retry instructions in the low power consumption device.
In some embodiments, the first maximum number is different from or the same as the second maximum number; or the first number may be different from or the same as the second number.
It should be understood that details of the above device embodiments may refer to corresponding method embodiments, which are not described herein again.
The device on the device side and the device on the server side may be chips, components or modules. The chip, component or module is located in a device or in a server. The apparatus may include a processor and a memory.
The first receiving module 1102, the generating module 1104 and the first sending module 1106, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.
The second sending module 1202, the second receiving module 1204, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor may include a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the method embodiment of the device side or the method embodiment of the server side can be executed by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
With further reference to fig. 10, a timing diagram of an embodiment of a communication system is shown. The communication system comprises a device 13, an access network 12 and a server 11. The functions performed by the device 13, the access network 12 and the server 11 may refer to any of the related embodiments described above, and are not described herein again.
Referring now to FIG. 13, shown is a schematic diagram of an electronic device 1700 suitable for use in implementing some embodiments of the present application. The electronic device shown in fig. 13 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application. The structure of the electronic device described below is applicable to the above device and also to the above server.
As shown in fig. 13, the electronic device 1700 may include a processor 1701, a memory 1702, a communication interface 1703, an input unit 1704, an output unit 1705, and a communication bus 1706. The processor 1701 and the memory 1702 are coupled to each other via a communication bus 1706. A communication interface 1703, an input unit 1704 and an output unit 1705 are also connected to the communication bus 1706.
The communication interface 1703 may be an interface of a communication module, such as an NB-IoT module, among others. Communication interface 1703 may be used to send a first request; and receiving the reply message.
In the present embodiment, the processor 1701 may be a Central Processing Unit (CPU), an application-specific integrated circuit (ASIC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device.
In one possible implementation, the memory 1702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as transmitting, receiving, and processing information, etc.), and the like; the storage data area may store data, such as instructions, execution results, etc., created according to the use of the computer.
Additionally, the memory 1702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The processor 1701 may invoke a program stored in the memory 1702 and, in particular, the processor 1701 may perform the communication method shown in any of the embodiments of fig. 3 through 13 above.
The memory 1702 is used for storing one or more programs, which may include program codes including computer operation instructions, and in this embodiment, the memory 1702 stores at least the following programs for implementing the following functions: receiving a first request sent by first equipment through an access network, wherein the first request is used for requesting at least one first instruction to be executed; obtaining the at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of the first device; generating a first response message according to the at least one first instruction to be executed; and sending the first reply message to the first device through the access network.
Or the memory 1702 is used for storing one or more programs, the programs may include program codes including computer operation instructions, and in this embodiment, the memory 1702 stores at least the programs for implementing the following functions: sending a first request to a server through an access network, wherein the first request is used for requesting at least one first instruction to be executed; and receiving a first response message sent by the server through the access network, wherein the first response message comprises the at least one first instruction to be executed.
The present application may further include an input unit 1705, where the input unit 1705 may include at least one of a touch sensing unit that senses a touch event on the touch display panel, a keyboard, a mouse, a camera, a microphone, and the like.
The output unit 1704 may include: at least one of a display, a speaker, a vibration mechanism, a light, and the like. The display may comprise a display panel, such as a touch display panel or the like. In one possible case, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The vibration mechanism may displace the electronic device 700 during operation, and in one possible implementation, the vibration mechanism includes a motor and an eccentric vibrator, and the motor drives the eccentric vibrator to rotate so as to generate vibration. The brightness and/or color of the lamp can be adjusted, in a possible implementation manner, different information can be embodied through at least one of the on-off, brightness and color of the lamp, for example, the alarm information can be embodied through red light emitted by the lamp.
Of course, the structure of the electronic device 1700 shown in fig. 13 does not constitute a limitation of the electronic device in the embodiment of the present application, and in practical applications, the electronic device may include more or less components than those shown in fig. 13, or some components in combination.
The present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the communication method described in the above method embodiments.
The embodiment of the present application provides a processor, which is configured to execute a program, where the program executes to implement the communication method described in the above method embodiments.
The present application also provides a computer program product which, when executed on a data processing apparatus, causes the data processing apparatus to implement the communication method described in the above method embodiments.
In addition, the electronic device, the processor, the computer-readable medium, or the computer program product provided in the foregoing embodiments of the present application may be all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device, the processor, the computer-readable medium, or the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and the technical principles applied, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. The scope of the invention according to the present application is not limited to the specific combinations of the above-described features, and may also cover other embodiments in which the above-described features or their equivalents are arbitrarily combined without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (13)

1. A communication optimization method for a low power consumption device, comprising:
the server receives a first request sent by a first device through an access network, wherein the first request is used for requesting at least one first instruction to be executed, the first request comprises a first number, a first threshold value and a second number, the first number is used for indicating a first maximum number in the numbers of the executed instructions in the first device, the first threshold value is used for indicating a first number of the executable instructions in the first device, and the second number is used for indicating the number of a first retry instruction in the first device;
the server acquires the at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of the first equipment;
the server generates a first response message according to the at least one first instruction to be executed;
the server sends the first response message to the first device through the access network; and
the server receives an execution result of the at least one first instruction to be executed sent by the first device through the access network, or the server receives an execution result of the at least one first instruction to be executed and a second request simultaneously sent by the first device through the access network, wherein the second request is used for requesting at least one second instruction to be executed,
the first device feeds back for the first reply message by:
a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions;
b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution;
c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue;
circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue;
determining whether to continuously request at least one instruction from the server according to the current load conditions of the instruction queue to be executed and the reply queue;
if the second request is not sent to request at least one second instruction to be executed according to the load condition, reading an execution result of the at least one first instruction to be executed from the reply queue, and sending the execution result of the at least one first instruction to be executed to the server through the access network; and
and if the second request is determined to be sent to request the at least one second instruction to be executed according to the load condition, synchronously sending the execution result of the at least one first instruction to be executed and the second request to the server through the access network.
2. The communication optimization method for low-power-consumption equipment according to claim 1, wherein the obtaining the at least one first instruction to be executed from the first queue to be transmitted includes:
when the first request comprises the first number and the first threshold value, obtaining a first threshold number of instructions from the first queue to be sent, wherein the number of the first threshold number of instructions is greater than the first number, and using the first threshold number of instructions as the at least one first instruction to be executed.
3. The communication optimization method for low-power-consumption equipment according to claim 1 or 2, wherein the obtaining the at least one first instruction to be executed from the first queue to be transmitted includes:
and when the first request comprises the second number, acquiring the first retry instruction from the first queue to be sent according to the second number, and using the first retry instruction as the at least one first instruction to be executed.
4. The communication optimization method for low power consumption devices according to claim 1,
the second request includes a third number, a second threshold value, and a fourth number,
the third number is used to indicate a second largest number of numbers of executed instructions in the first device,
the second threshold is indicative of a second number of executable instructions in the first device, an
The fourth number is used to indicate the number of a second retry instruction in the first device.
5. The communication optimization method for low power consumption devices according to claim 4,
the first maximum number is different from or the same as the second maximum number; or
The first number is different from or the same as the second number.
6. The communication optimization method for low power consumption devices according to claim 1,
the multiple instructions to be executed in the first queue to be sent are arranged according to the priority of the instructions, or
The plurality of instructions to be executed in the first queue to be sent are arranged according to the time element of the instructions.
7. A communication optimization method for a low power consumption device, comprising:
sending a first request to a server through an access network, wherein the first request is used for requesting at least one first instruction to be executed, the first request comprises a first number, a first threshold value and a second number, the first number is used for indicating a first maximum number in numbers of executed instructions in the low-power consumption equipment, the first threshold value is used for indicating a first number of executable instructions in the low-power consumption equipment, and the second number is used for indicating a number of first retry instructions in the low-power consumption equipment;
receiving a first response message sent by the server through the access network, wherein the first response message comprises the at least one first instruction to be executed;
a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions;
b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution;
c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue;
circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue;
determining whether to continuously request at least one instruction from the server according to the current load conditions of the instruction queue to be executed and the reply queue;
if the second request is not sent to request at least one second instruction to be executed according to the load condition, reading an execution result of the at least one first instruction to be executed from the reply queue, and sending the execution result of the at least one first instruction to be executed to the server through the access network; and
and if the second request is determined to be sent to request the at least one second instruction to be executed according to the load condition, synchronously sending the execution result of the at least one first instruction to be executed and the second request to the server through the access network.
8. The communication optimization method for low power consumption devices according to claim 7,
the second request includes a third number, a second threshold value, and a fourth number,
the third number is used to indicate the second largest number among the numbers of executed instructions in the low power consumption device,
the second threshold is indicative of a second number of executable instructions in the low power device, an
The fourth number is used for indicating the number of a second retry instruction in the low-power consumption equipment.
9. The communication optimization method for low power consumption devices according to claim 8,
the first maximum number is different from or the same as the second maximum number; or
The first number is different from or the same as the second number.
10. An apparatus for optimizing communication of a low power consumption device, comprising:
a first receiving module configured to receive a first request sent by a first device through an access network, where the first request is used to request at least one first instruction to be executed, the first request includes a first number, a first threshold and a second number, the first number is used to indicate a first maximum number in numbers of executed instructions in the first device, the first threshold is used to indicate a first number of executable instructions in the first device, and the second number is used to indicate a number of first retry instructions in the first device;
the generating module is configured to acquire the at least one first instruction to be executed from a first queue to be sent, wherein the first queue to be sent caches a plurality of instructions to be executed of the first device; generating a first response message according to the at least one first instruction to be executed; and
a first transmitting module configured to transmit the first reply message to the first device over the access network,
the first receiving module is further configured to receive an execution result of the at least one first instruction to be executed sent by the first device through the access network, or simultaneously receive an execution result of the at least one first instruction to be executed and a second request sent by the first device through the access network, the second request being used for requesting at least one second instruction to be executed,
the first device is configured to feed back for the first reply message by:
a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions;
b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution;
c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue;
circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue;
determining whether to continuously request at least one instruction from a server according to the current load conditions of the instruction queue to be executed and the reply queue;
if the second request is not sent to request at least one second instruction to be executed according to the load condition, reading an execution result of the at least one first instruction to be executed from the reply queue, and sending the execution result of the at least one first instruction to be executed to the server through the access network; and
and if the second request is determined to be sent to request the at least one second instruction to be executed according to the load condition, synchronously sending the execution result of the at least one first instruction to be executed and the second request to the server through the access network.
11. An apparatus for optimizing communication of a low power consumption device, comprising:
a second sending module configured to send a first request to a server through an access network, where the first request is used to request at least one first instruction to be executed, the first request includes a first number, a first threshold and a second number, the first number is used to indicate a first maximum number in numbers of executed instructions in the low-power-consumption device, the first threshold is used to indicate a first number of executable instructions in the low-power-consumption device, and the second number is used to indicate a number of first retry instructions in the low-power-consumption device;
a second receiving module configured to receive a first reply message sent by the server through the access network, the first reply message including the at least one first instruction to be executed;
the apparatus is configured to: a, adding the at least one first instruction to be executed into an instruction queue to be executed, wherein the instruction queue to be executed comprises a plurality of instructions to be executed, and the plurality of instructions to be executed are arranged according to the priority of the instructions or according to the time elements of the instructions; b, when the at least one first instruction to be executed is added into the instruction queue to be executed, acquiring an instruction to be executed from the instruction queue to be executed for execution; c, when the instruction to be executed is executed, adding an execution result of a previous instruction of the instruction to be executed into a reply queue; circularly executing a, b and c until the execution result of the at least one first instruction to be executed is completely added into the reply queue; determining whether to continuously request at least one instruction from the server according to the current load conditions of the instruction queue to be executed and the reply queue;
the second sending module is further configured to, if it is determined according to the load condition that a second request is not sent to request at least one second instruction to be executed, read an execution result of the at least one first instruction to be executed from the reply queue, and send the execution result of the at least one first instruction to be executed to the server through the access network; and if the second request is determined to be sent to request the at least one second instruction to be executed according to the load condition, synchronously sending the execution result of the at least one first instruction to be executed and the second request to the server through the access network.
12. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-9.
13. A communication optimization device for a low power device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 7-9.
CN202111196833.6A 2021-10-14 2021-10-14 Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment Active CN113645646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111196833.6A CN113645646B (en) 2021-10-14 2021-10-14 Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111196833.6A CN113645646B (en) 2021-10-14 2021-10-14 Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment

Publications (2)

Publication Number Publication Date
CN113645646A CN113645646A (en) 2021-11-12
CN113645646B true CN113645646B (en) 2022-03-22

Family

ID=78426879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111196833.6A Active CN113645646B (en) 2021-10-14 2021-10-14 Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment

Country Status (1)

Country Link
CN (1) CN113645646B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557572A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for sending multiple requests by using one alternation
EP3667494A1 (en) * 2018-12-14 2020-06-17 Lendinvest Limited Instruction allocation and processing system and method
CN112506570A (en) * 2020-12-03 2021-03-16 长沙树根互联技术有限公司 Equipment instruction issuing method, system and server
CN113065034A (en) * 2021-03-29 2021-07-02 上海安畅网络科技股份有限公司 Distributed system number generation method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557572A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for sending multiple requests by using one alternation
EP3667494A1 (en) * 2018-12-14 2020-06-17 Lendinvest Limited Instruction allocation and processing system and method
CN112506570A (en) * 2020-12-03 2021-03-16 长沙树根互联技术有限公司 Equipment instruction issuing method, system and server
CN113065034A (en) * 2021-03-29 2021-07-02 上海安畅网络科技股份有限公司 Distributed system number generation method and system

Also Published As

Publication number Publication date
CN113645646A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN109981155B (en) Beam training method and related equipment
US9998406B2 (en) Method and apparatus for performing finite memory network coding in an arbitrary network
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN112106395B (en) Method and device for reporting user equipment capability and computer readable storage medium
CN111818493A (en) Data transmission method, wireless network system, node and readable storage medium
CN107770239B (en) Method and apparatus for communicating over a network
CN112449425B (en) Communication method and device
CN112422497A (en) Message transmission method and device and computer equipment
CN113645646B (en) Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment
CN111641565B (en) Method, device and system for transmitting Ethernet message
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
US20210289572A1 (en) Direct connection communication method, amf, access network functional entity and terminal
CN108924773B (en) Message processing method and device
CN114051030B (en) Communication method, communication device, intelligent community system and storage medium
JP2021517432A (en) Physical uplink control channel resource determination method and communication device
US20190116597A1 (en) Mobile device and uplink data transmission method thereof
CN110247808B (en) Information transmission method, device, equipment and readable storage medium
CN111314036B (en) CPU (Central processing Unit) occupation time determination method and device for multi-PDCCH (physical Downlink control channel) repeated transmission scene, storage medium and terminal
US11258862B2 (en) Intelligent persistent mobile device management
US20180359727A1 (en) Wireless communication apparatus, wireless communication method, and computer readable medium
WO2020103633A1 (en) Method for sending and receiving control information, and terminal device
CN108243091B (en) Information sharing device and information sharing method
US11330596B2 (en) Method and device for indicating transmission resources and storage medium
CN111279729A (en) Data transmission method and BLE equipment
CN114503467A (en) Data transmission method and device

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100094 room 1101, 11 / F, building 1, zone 2, 81 Beiqing Road, Haidian District, Beijing

Patentee after: Yunding Network Technology (Beijing) Co.,Ltd.

Address before: 100094 room 1101, 11 / F, building 1, zone 2, 81 Beiqing Road, Haidian District, Beijing

Patentee before: YUN DING NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.