CN107172691B - Dormancy method of communication module of meter and meter - Google Patents

Dormancy method of communication module of meter and meter Download PDF

Info

Publication number
CN107172691B
CN107172691B CN201710217890.5A CN201710217890A CN107172691B CN 107172691 B CN107172691 B CN 107172691B CN 201710217890 A CN201710217890 A CN 201710217890A CN 107172691 B CN107172691 B CN 107172691B
Authority
CN
China
Prior art keywords
time
data
preset
communication module
meter
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
CN201710217890.5A
Other languages
Chinese (zh)
Other versions
CN107172691A (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.)
Ennew Digital Technology Co Ltd
Original Assignee
Ennew Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ennew Digital Technology Co Ltd filed Critical Ennew Digital Technology Co Ltd
Priority to CN201710217890.5A priority Critical patent/CN107172691B/en
Publication of CN107172691A publication Critical patent/CN107172691A/en
Application granted granted Critical
Publication of CN107172691B publication Critical patent/CN107172691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a meter and a dormancy method of a communication module of the meter, which are used for solving the technical problems of high energy consumption of the meter and short service life of a battery of the meter in the prior art. The method comprises the following steps: determining whether the communication module executes a second operation within a preset time length taking the time of starting to execute the first operation as a starting time, wherein the first operation and the second operation are any one operation in a preset operation set, and the preset time length is the longest time consumption in time consumption required by executing each operation in the preset operation set; and if the second operation is not executed within the preset time, controlling the communication module to enter a dormant state.

Description

Dormancy method of communication module of meter and meter
Technical Field
The invention relates to the field of Internet of things, in particular to a meter and a dormancy method of a communication module of the meter.
Background
Along with the continuous development of the internet of things technology, the intelligent meter with the automatic meter reading function is gradually popularized, the intelligent meter can send and record stored metering data in a network transmission mode, and the traditional tedious work of manual meter reading by a user in a family-by-family mode is reduced.
In practical application, the meter reading period of the meter is usually long, generally days or weeks, but a communication module of the intelligent meter in the prior art is always in a working state, so that the service life of a battery is reduced, the service life of the communication module of the meter is also reduced, and the maintenance cost is increased.
Therefore, the technical problems of high meter energy consumption and short battery service life of the meter exist in the prior art.
Disclosure of Invention
The embodiment of the invention provides a meter and a dormancy method of a communication module of the meter, which are used for solving the technical problems of high meter energy consumption and short battery service life of the meter in the prior art.
In a first aspect, a sleep method for a communication module of a meter is provided, which includes:
determining whether the communication module executes a second operation within a preset time length by taking the time when a first operation starts to be executed as a starting time, wherein the first operation and the second operation are any one of a preset operation set, and the preset time length is the longest time length in time lengths required by executing each operation in the preset operation set;
and if the second operation is not executed within the preset time, controlling the communication module to enter a dormant state.
In a possible implementation manner, the predetermined operation set includes a network entry operation, and determining time consumption required for executing the network entry operation includes:
and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required for executing the network access operation.
In a possible implementation manner, the predetermined operation set includes a data sending operation, and determining the time consumption required for executing the data sending operation includes:
determining time consumption required for executing the data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining time is used for obtaining the data to be sent.
In a possible implementation manner, determining time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent based on a data type of the data to be sent includes:
and if the data type of the data to be sent is a data type which does not need to be fed back, determining the sum of the preset acquisition time and the second preset waiting time as the consumed time needed for executing the data sending operation.
In a possible implementation manner, determining time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent based on a data type of the data to be sent includes:
and if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and preset receiving time to be the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
In a second aspect, a meter is provided, which includes a main control module and a communication module, wherein the main control module is configured to:
determining whether the communication module executes a second operation within a preset time length by taking the time when a first operation starts to be executed as a starting time, wherein the first operation and the second operation are any one of a preset operation set, and the preset time length is the longest time length in time lengths required by executing each operation in the preset operation set;
and if the second operation is not executed within the preset time, controlling the communication module to enter a dormant state.
In a possible implementation manner, the predetermined operation set includes a network entry operation, and determining time consumption required for executing the network entry operation includes:
and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required for executing the network access operation.
In a possible implementation manner, the predetermined operation set includes a data sending operation, and determining the time consumption required for executing the data sending operation includes:
determining time consumption required for executing the data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining time is used for obtaining the data to be sent.
In a possible implementation manner, determining time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent based on a data type of the data to be sent includes:
and if the data type of the data to be sent is a data type which does not need to be fed back, determining the sum of the preset acquisition time and the second preset waiting time as the consumed time needed for executing the data sending operation.
In a possible implementation manner, determining time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent based on a data type of the data to be sent includes:
and if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and preset receiving time to be the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
The sleep method of the communication module of the meter and the meter provided by the embodiment of the invention have the advantages that the sleep function is added to the communication module of the meter, so that the meter can enter the sleep state when being in the idle state without operation within the preset condition, the efficient use of the communication module of the meter is ensured, the integral energy consumption of the meter is saved, the integral loss of the meter is reduced, and the service life of a battery of the meter can be prolonged.
And, because the communication module enters the sleep state when the second operation is not executed within the predetermined time period starting from the time when the first operation is started, the communication module may have the same time period from the start of the execution of the first operation to the time when the second operation is not executed, and within the predetermined time period, the communication module may have sufficient time for receiving the instruction to execute the second operation, and the time period for receiving the instruction to execute the second operation by the communication module is not affected by the time period to execute the first operation. Therefore, in the embodiment of the present invention, only one uniform predetermined time length needs to be set, which can ensure that the communication module has enough time to receive the instruction for executing the second operation, and does not need to enter an excessively long unnecessary waiting time length after the execution of the first operation is completed.
In addition, because the preset time is the longest time among the time consumed for executing each operation in the preset operation set, the situation that the communication module enters the dormant state when the operation which consumes longer time in the preset operation set is not executed due to the fact that the preset time is set to be too small can be avoided while the preset time for the meter to enter the dormant state is reduced as much as possible, the normal work of the meter is not influenced by the dormancy of the communication module, and the accuracy of the dormancy is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a sleep method of a meter's communication module according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a meter according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention. The embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a sleep method for a communication module of a meter, which can be applied to meters, such as a gas meter, a water meter, an electricity meter, a thermometer, and the like. The flow of the method is described below.
Step 101: and determining whether the communication module executes a second operation within a preset time length by taking the time for starting executing the first operation as a starting time, wherein the first operation and the second operation are any one operation in a preset operation set, and the preset time length is the longest time length in time lengths required for executing each operation in the preset operation set.
In the embodiment of the invention, the communication module can be a single functional physical module used for receiving and sending information in the meter, and the communication module can carry out data transmission with other modules in the meter and can also carry out data transmission with other devices outside the meter. Specifically, the communication module may be a wireless communication module, for example, a LoRaWAN (LoRa Wide-Area Network, LoRa low power consumption Wide Area Network specification) communication module, and the like, which is not limited in this embodiment of the present invention.
In this embodiment of the present invention, the predetermined operation set includes at least one operation, and the operation in the predetermined operation set may be an operation with higher importance among operations that may be executed by the communication module, an operation that a certain specific module in the meter controls the communication module to execute, an operation that takes longer time among operations that may be executed by the communication module, or any operation that is set manually.
In the embodiment of the present invention, the predetermined time length is the longest time length of time lengths required for executing each operation in the predetermined operation set. The time required for executing a certain operation may be the maximum time required for executing the operation, or may be the average time required for executing the operation, and so on. Hereinafter, the maximum time required for performing a certain operation will be described as the time required for performing the operation.
Further, the predetermined time length is determined by determining the time consumption required for executing each operation of the predetermined operation set, and then determining the longest time consumption from the time consumptions required for executing each operation, and taking the longest time consumption as the predetermined time length.
For example, assuming that the predetermined operation set includes an operation a, an operation B, and an operation C, and the time consumed for executing the operation a is any time length of 1 to 3 seconds, since the maximum time consumption is set as the time consumed for executing a certain operation in the embodiment of the present invention, 3 seconds may be determined as the time consumed for executing the operation a, and similarly, assuming that the time consumed for executing the operation B is 5 seconds and the time consumed for executing the operation C is 2.7 seconds, it may be determined that the predetermined time length is the time consumed for executing the operation B, that is, 5 seconds.
Specifically, the predetermined time period may be predetermined by a manual test, calculation, or the like, or may be determined by the meter itself by a test, calculation, or the like when the meter is first operated. The preset time length may not be changed after the meter is set, or may be dynamically adjusted according to the running condition of the meter within a period of time, that is, the preset time length may be fixed all the time or may be dynamically adjusted.
Since the first operation and the second operation are each any operation in a predetermined operation set, the first operation and the second operation may be the same type of operation or different types of operations. For example, when an operation is not successfully executed, the operation may be executed again, wherein if an operation is regarded as a first operation, the operation executed again may be understood as a second operation, and the first operation and the second operation are the same type of operation.
Step 102: and if the communication module does not execute the second operation within the preset time length taking the time for starting to execute the first operation as the starting time, controlling the communication module to enter a dormant state.
In the embodiment of the present invention, a time when an operation in the predetermined operation set starts to be executed is used as a starting time of a predetermined time length for determining whether the communication module enters the sleep state. Also, the start time may be re-determined each time an operation in the predetermined set of operations begins to be performed.
In the embodiment of the present invention, the action of controlling the communication module to enter the dormant state may be that the communication module controls itself to enter the dormant state, or that other specific modules in the meter send a dormant instruction to the communication module to control the communication module to perform dormancy, which is not limited in this embodiment of the present invention. Moreover, the communication module entering the sleep state may refer to that all functions of the communication module are in an off state, that a part of functions of the communication module are in an off state, that the communication module is in a power-down state, or the like.
In a possible implementation manner, the predetermined operation set includes a network entry operation, and the time-consuming manner required for executing the network entry operation may be determined as follows: and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required by the network access operation.
In the embodiment of the present invention, the communication module may be divided into the following two steps when executing the network access operation:
firstly, sending a network access request instruction.
The network access request instruction may include information related to the network access request of the communication module, for example, an equipment identification number of the meter, a physical address of the communication module, time duration information of the network access request, a current operating state of the meter, and the like. Meanwhile, the network access request command may be sent to a specific preset electronic device, or may be sent to a preset electronic device that satisfies a predetermined rule, for example, to a gateway closest to the distance meter, and so on.
And secondly, after the network access request instruction is sent and the first preset waiting time duration passes, receiving network access confirmation information corresponding to the sent network access request instruction within the preset receiving time duration.
In this embodiment of the present invention, the first predetermined waiting duration and/or the predetermined receiving duration may be durations uniformly set for all meters according to a data transmission protocol adopted by the communication module, or may be individually set for each meter, for example, may be determined comprehensively according to a distance between a certain meter and a target electronic device that receives the network access request instruction, a data amount of the network access request instruction and the network access confirmation information, and other factors. In addition, the network access confirmation information received by the communication module may include related confirmation contents of whether the communication module is allowed to communicate with the target electronic device.
In a possible implementation manner, the predetermined operation set includes a data sending operation, and the time-consuming manner required for executing the data sending operation may be determined as follows: determining time consumption required for executing the data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining time is used for obtaining the data to be sent.
In the embodiment of the present invention, the communication module performs the data transmission operation, including the following steps:
the method comprises the first step of obtaining data to be sent within a preset obtaining time.
In the embodiment of the present invention, when the communication module acquires data to be transmitted, the data to be transmitted may be acquired from a module in which data to be transmitted is stored in a meter. For example, the meter may further include a main control module, the main control module and the communication module may be connected through a data transmission interface, and the main control module may be configured to store data to be sent, that is, the main control module may include a data buffer area for storing the data. In addition, the meter may not send data to the communication module through the main control module, at this time, the meter may be a separate data buffer, and the communication module may obtain data to be sent from the separate data buffer. When the communication module performs data transmission operation each time, the communication module can firstly directly read data to be transmitted from the main control module.
The preset obtaining duration can ensure that the communication module obtains all data to be sent. In the above description taking the main control module as an example, the predetermined acquisition duration should be greater than or equal to the duration of the data to be transmitted from the main control module to the communication module. Therefore, in actual application, different predetermined acquisition durations can be set according to the data volume of the data to be transmitted and the transmission rate of the data transmission interface between the main control module and the communication module.
For example, when the data sent by the meter each time does not exceed 50 bytes, and a UART (Universal Asynchronous Receiver/Transmitter) interface is used between the main control module and the communication module, the baud rate of the UART interface is 115200 bits/second, and the minimum value of the predetermined acquisition time period is 50 ÷ (115200 ÷ 8) — 0.00357 seconds. In the embodiment of the present invention, the minimum value of the predetermined obtaining time period is taken as the predetermined obtaining time period, and in this example, the predetermined obtaining time period is 0.00357 seconds.
And secondly, determining the data type of the data to be transmitted.
In the embodiment of the present invention, the data to be sent may include a data type that needs to be fed back, or may include a data type that does not need to be fed back. After determining the data type of the data to be sent, the communication module may execute different steps after sending the data to be sent according to different data types of the data to be sent.
When the data to be sent is of a data type that needs to be fed back, the target electronic device that receives the data to be sent sends, to the communication module, feedback information corresponding to the data to be sent, for example, sends, to the communication module, confirmation information that the data to be sent has been received, or sends, to the communication module, resource information requested in the data to be sent, and the like.
And thirdly, sending data to be sent and waiting for a second preset waiting time.
In the embodiment of the invention, after the communication module sends the data to be sent to the target electronic equipment, the communication module waits for a second preset waiting time, and after the second preset waiting time, the communication module carries out the subsequent steps.
In the embodiment of the invention, the communication module waits for the second preset time after sending the data to be sent, so that sufficient time for the data to be sent to be transmitted to the target electronic equipment can be ensured, and sufficient time for the electronic equipment to respond to the data to be sent can be ensured. The second predetermined waiting time may be a time set for all the meters in a unified manner according to a data transmission protocol adopted by the communication module, or may be set for each meter separately.
In the embodiment of the present invention, when the communication module transmits data to be transmitted that needs to be fed back but does not receive feedback information, it may indicate that the data to be transmitted has failed to be transmitted, at this time, data retransmission may be performed, at this time, the communication module may retransmit the data to be transmitted to the target electronic device again, that is, the communication module performs data retransmission, where a maximum number of times for the communication module to perform retransmission may be preset, and when the communication module still does not receive feedback information after retransmitting the maximum number of times, retransmission is not continued, and the data transmission operation is ended. When the communication module retransmits, the communication module acquires the data to be sent again within the preset acquisition time length, retransmits the data to be sent and waits for a second preset waiting time length.
In a possible implementation manner, determining time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent based on a data type of the data to be sent includes the following manners:
and if the data type of the data to be sent is the data type which does not need to be fed back, determining the sum of the preset acquisition time length and the second preset waiting time length as the time consumption required by executing the data sending operation.
That is to say, if the data type of the data to be sent is a data type that does not need to be fed back, it indicates that the feedback information corresponding to the data to be sent is not received after the data to be sent is sent, and the data to be sent is not sent again. In this case, the sum of the predetermined acquisition period and the second predetermined waiting period may be determined as the elapsed time required to perform the data transmission operation.
In another possible implementation manner, based on the data type of the data to be sent, determining the time consumed for executing the data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending the data to be sent, which includes the following steps:
if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and the preset receiving time as the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
In the embodiment of the present invention, if the data type of the data to be sent is the data type that needs to be fed back, the communication module may execute the action of receiving the feedback information after sending the data to be sent and after a second predetermined waiting time period elapses, or may not execute the action of receiving the feedback information. Wherein the action of the communication module receiving the feedback information indicates that the target electronic device successfully transmits the feedback information to the communication module and the communication module is receiving the feedback information within the predetermined receiving time.
If the communication module receives the feedback information, taking the sum of N times of the predetermined acquisition time, N times of the second predetermined waiting time, and the predetermined receiving time for receiving the feedback information as the time consumed for executing the data sending operation, where N-1 represents the maximum retransmission number of the data to be sent, and N is a positive integer, such as 2, 3, and so on.
If the communication module does not receive the feedback information, taking the sum of N times of the preset acquisition time and N times of the second preset waiting time as the consumed time required by executing the data transmission operation, wherein N-1 represents the maximum retransmission times of the data to be transmitted, and N is a positive integer.
For example, if the data to be sent is data that needs to be fed back, the maximum number of retransmissions is 2, at this time N is 3, the predetermined acquisition duration is 0.00357 seconds, the second predetermined waiting duration is 3 seconds, and the predetermined receiving duration is 3 seconds, then:
when the communication module receives the feedback information, it may be determined that the time taken for the communication module to perform the data transmission operation in this case is (3+0.00357) × 3+3 ═ 12.01071 seconds;
when the communication module does not receive the feedback information, it may be determined that the time taken for the communication module to perform the data transmission operation in this case is (3+0.00357) × 3 ═ 9.01071 seconds.
Compared with the case that the feedback information is not received, since the communication module needs to additionally perform the operation of receiving the feedback information when receiving the feedback information, the predetermined receiving time is consumed, and therefore, when determining the time consumption required for performing the data transmission operation, the time consumption in the case that the communication module receives the feedback information is taken as the time consumption required for performing the data transmission operation.
The dormancy method of the communication module of the meter provided by the embodiment of the invention adds the dormancy function to the communication module of the meter, so that the meter can enter the dormancy state when being in the idle state without operation within the preset condition, the efficient use of the communication module of the meter is ensured, the integral energy consumption of the meter is saved, the integral loss of the meter is reduced, and the service life of the battery of the meter can be prolonged.
And, because the communication module enters the sleep state when the second operation is not executed within the predetermined time period starting from the time when the first operation is started, the communication module may have the same time period from the start of the execution of the first operation to the time when the second operation is not executed, and within the predetermined time period, the communication module may have sufficient time for receiving the instruction to execute the second operation, and the time period for receiving the instruction to execute the second operation by the communication module is not affected by the time period to execute the first operation. Therefore, in the embodiment of the present invention, only one uniform predetermined time length needs to be set, which can ensure that the communication module has enough time to receive the instruction for executing the second operation, and does not need to enter an excessively long unnecessary waiting time length after the execution of the first operation is completed.
In addition, because the preset time is the longest time among the time consumed for executing each operation in the preset operation set, the situation that the communication module enters the dormant state when the operation which consumes longer time in the preset operation set is not executed due to the fact that the preset time is set to be too small can be avoided while the preset time for the meter to enter the dormant state is reduced as much as possible, the normal work of the meter is not influenced by the dormancy of the communication module, and the accuracy of the dormancy is improved.
Based on the same inventive concept, please refer to fig. 2, an embodiment of the invention provides a meter. The meter comprises a main control module 201 and a communication module 202, wherein the main control module 201 is used for:
determining whether the communication module 202 executes a second operation within a predetermined time period starting from a time when the first operation is started to be executed, wherein the first operation and the second operation are any one of a predetermined operation set, and the predetermined time period is the longest time consumption in time consumption required for executing each operation in the predetermined operation set;
if the second operation is not performed within the predetermined time period, the communication module 202 is controlled to enter the sleep state.
In one possible embodiment, the predetermined set of operations includes a network entry operation, and determining a time required to perform the network entry operation includes:
and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required by the network access operation.
In one possible implementation, the predetermined set of operations includes a data sending operation, and determining a time required to perform the data sending operation includes:
determining time consumption required for executing data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining duration is used for obtaining data to be sent.
In a possible implementation manner, determining time consumed for executing a data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending data to be sent based on a data type of the data to be sent includes:
and if the data type of the data to be sent is the data type which does not need to be fed back, determining the sum of the preset acquisition time length and the second preset waiting time length as the time consumption required by executing the data sending operation.
In a possible implementation manner, determining time consumed for executing a data sending operation according to a predetermined acquisition time and a second predetermined waiting time after sending data to be sent based on a data type of the data to be sent includes:
if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and the preset receiving time as the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
Because the principle of solving the problem of the sleep method of the communication module of the meter is similar to that of the meter in the embodiment of the present invention, reference may be made to the sleep method of the communication module of the meter in the embodiment of the present invention for the meter in the embodiment of the present invention, and details are not described here.
The sleep method of the communication module of the meter and the meter provided by the embodiment of the invention have the advantages that the sleep function is added to the communication module of the meter, so that the meter can enter the sleep state when being in the idle state without operation within the preset condition, the efficient use of the communication module of the meter is ensured, the integral energy consumption of the meter is saved, the integral loss of the meter is reduced, and the service life of a battery of the meter can be prolonged.
And, because the communication module enters the sleep state when the second operation is not executed within the predetermined time period starting from the time when the first operation is started, the communication module may have the same time period from the start of the execution of the first operation to the time when the second operation is not executed, and within the predetermined time period, the communication module may have sufficient time for receiving the instruction to execute the second operation, and the time period for receiving the instruction to execute the second operation by the communication module is not affected by the time period to execute the first operation. Therefore, in the embodiment of the present invention, only one uniform predetermined time length needs to be set, which can ensure that the communication module has enough time to receive the instruction for executing the second operation, and does not need to enter an excessively long unnecessary waiting time length after the execution of the first operation is completed.
In addition, because the preset time is the longest time among the time consumed for executing each operation in the preset operation set, the situation that the communication module enters the dormant state when the operation which consumes longer time in the preset operation set is not executed due to the fact that the preset time is set to be too small can be avoided while the preset time for the meter to enter the dormant state is reduced as much as possible, the normal work of the meter is not influenced by the dormancy of the communication module, and the accuracy of the dormancy is improved.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A sleep method for a communication module of a meter, the method comprising:
determining whether the communication module executes a second operation within a preset time length by taking the time when a first operation starts to be executed as a starting time, wherein the first operation and the second operation are any one of a preset operation set, and the preset time length is the longest time length in time lengths required by executing each operation in the preset operation set;
and if the second operation is not executed within the preset time, controlling the communication module to enter a dormant state.
2. The method of claim 1, wherein the predetermined set of operations includes a network entry operation, and wherein determining a time required to perform the network entry operation comprises:
and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required for executing the network access operation.
3. The method of claim 1, wherein the predetermined set of operations includes a data transmission operation, and wherein determining the elapsed time required to perform the data transmission operation comprises:
determining time consumption required for executing the data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining time is used for obtaining the data to be sent.
4. The method of claim 3, wherein determining the time required for executing the data transmission operation according to a predetermined acquisition duration and a second predetermined waiting duration after transmitting the data to be transmitted based on the data type of the data to be transmitted comprises:
and if the data type of the data to be sent is a data type which does not need to be fed back, determining the sum of the preset acquisition time and the second preset waiting time as the consumed time needed for executing the data sending operation.
5. The method of claim 3, wherein determining the time required for executing the data transmission operation according to a predetermined acquisition duration and a second predetermined waiting duration after transmitting the data to be transmitted based on the data type of the data to be transmitted comprises:
and if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and preset receiving time to be the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
6. The meter is characterized by comprising a main control module and a communication module, wherein the main control module is used for:
determining whether the communication module executes a second operation within a preset time length by taking the time when a first operation starts to be executed as a starting time, wherein the first operation and the second operation are any one of a preset operation set, and the preset time length is the longest time length in time lengths required by executing each operation in the preset operation set;
and if the second operation is not executed within the preset time, controlling the communication module to enter a dormant state.
7. The meter of claim 6, wherein the predetermined set of operations includes a network entry operation, and wherein determining the elapsed time required to perform the network entry operation comprises:
and determining the sum of the first preset waiting time and the preset receiving time after the network access request instruction is sent as the consumed time required for executing the network access operation.
8. The meter of claim 6, wherein the predetermined set of operations includes a data transmission operation, and wherein determining the elapsed time required to perform the data transmission operation comprises:
determining time consumption required for executing the data transmission operation according to a preset acquisition time length and a second preset waiting time length after the data to be transmitted are transmitted based on the data type of the data to be transmitted; the preset obtaining time is used for obtaining the data to be sent.
9. The meter of claim 8, wherein determining the time required to perform the data transmission operation based on a predetermined acquisition duration and a second predetermined waiting duration after transmitting the data to be transmitted based on the data type of the data to be transmitted comprises:
and if the data type of the data to be sent is a data type which does not need to be fed back, determining the sum of the preset acquisition time and the second preset waiting time as the consumed time needed for executing the data sending operation.
10. The meter of claim 8, wherein determining the time required to perform the data transmission operation based on a predetermined acquisition duration and a second predetermined waiting duration after transmitting the data to be transmitted based on the data type of the data to be transmitted comprises:
and if the data type of the data to be sent is the data type needing feedback, determining the sum of N times of the preset acquisition time, N times of the second preset waiting time and preset receiving time to be the consumed time required for executing the data sending operation, wherein N-1 represents the maximum retransmission times of the data to be sent, and N is a positive integer.
CN201710217890.5A 2017-04-05 2017-04-05 Dormancy method of communication module of meter and meter Active CN107172691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710217890.5A CN107172691B (en) 2017-04-05 2017-04-05 Dormancy method of communication module of meter and meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710217890.5A CN107172691B (en) 2017-04-05 2017-04-05 Dormancy method of communication module of meter and meter

Publications (2)

Publication Number Publication Date
CN107172691A CN107172691A (en) 2017-09-15
CN107172691B true CN107172691B (en) 2020-11-03

Family

ID=59849406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710217890.5A Active CN107172691B (en) 2017-04-05 2017-04-05 Dormancy method of communication module of meter and meter

Country Status (1)

Country Link
CN (1) CN107172691B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466436A (en) * 2021-12-31 2022-05-10 杭州拓深科技有限公司 Method for prolonging working time of NB smoke alarm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625428A (en) * 2012-04-24 2012-08-01 苏州摩多物联科技有限公司 Time synchronization method of wireless sensor networks
EP2701435A1 (en) * 2012-06-27 2014-02-26 Huawei Technologies Co., Ltd. Parameter configuration method, base station, and user equipment
CN105309014A (en) * 2014-01-10 2016-02-03 Lg电子株式会社 Method for supporting power saving mode and radio device therefor
CN106332248A (en) * 2016-08-19 2017-01-11 深圳市慧联通信技术有限公司 Meter reading method and system with low power consumption

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3886795B2 (en) * 2001-12-10 2007-02-28 株式会社エヌ・ティ・ティ・ドコモ Mobile communication system, mobile communication method, mobile terminal, and communication base station
CN201408033Y (en) * 2009-05-08 2010-02-17 上海润金数码科技发展有限公司 Metering device
US9107046B2 (en) * 2012-05-04 2015-08-11 Fedex Corporate Services, Inc. Systems, methods, and computer-readable media for timer-based management of communication devices
CN102685860B (en) * 2012-05-04 2015-04-08 华为终端有限公司 Method and device for transmitting and receiving data
CN102740427B (en) * 2012-06-15 2014-12-03 无锡必创传感科技有限公司 Method for awakening wireless sensor, wireless sensor and wireless sensor system
US10028272B2 (en) * 2013-02-24 2018-07-17 Lg Electronics Inc. Method and apparatus for exchanging frame for a low-power device in a wireless local area network (WLAN) system
JP6330526B2 (en) * 2014-07-02 2018-05-30 富士通株式会社 Sensing control program and portable terminal device
CN105916196A (en) * 2016-06-16 2016-08-31 硕诺科技(深圳)有限公司 Power-saving stepped wifi control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625428A (en) * 2012-04-24 2012-08-01 苏州摩多物联科技有限公司 Time synchronization method of wireless sensor networks
EP2701435A1 (en) * 2012-06-27 2014-02-26 Huawei Technologies Co., Ltd. Parameter configuration method, base station, and user equipment
CN105309014A (en) * 2014-01-10 2016-02-03 Lg电子株式会社 Method for supporting power saving mode and radio device therefor
CN106332248A (en) * 2016-08-19 2017-01-11 深圳市慧联通信技术有限公司 Meter reading method and system with low power consumption

Also Published As

Publication number Publication date
CN107172691A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN100405260C (en) Reduction of idle power expense in networked battery power supply apparatus
JP4489452B2 (en) Method and apparatus for managing power in a network interface module
JP4267963B2 (en) Method and system for managing power consumption of a network interface module in a wireless computing device
US8355352B2 (en) Access point agitation
US8526346B1 (en) Power save communication mechanism for wireless communication systems
US8310969B2 (en) Mobile device and power saving method thereof
US20140126391A1 (en) Power saving wi-fi tethering
CN102959487B (en) Be provided for the wakeup logic waken up from low-power mode by electronic equipment
EP2789195B1 (en) Using wireless wide area network protocol information for managing a performance level of a processor
US10681615B2 (en) Predictive rate limiting for reliable bluetooth low energy connections
CN102651785A (en) Remote wakeup of application processor of mobile device
US10324513B2 (en) Control of peripheral device data exchange based on CPU power state
WO2020083258A1 (en) Data transmission method, vehicle-mounted communication device, and computer-readable storage medium
CN109982355B (en) Method for saving and restoring network path, apparatus, terminal and storage medium thereof
CN109743717A (en) Data processing method, device, terminal device and storage medium
KR20080006147A (en) Apparatus and method for downloading or transmitting data under the condition of battery power deficit in portable electronic device
CN102984791A (en) Energy-saving method for wireless sensor node
CN107172691B (en) Dormancy method of communication module of meter and meter
KR20190129219A (en) Method And Apparatus for Providing Power Saving Optimization
CN110928586B (en) APP background keep-alive method and device
TW201630394A (en) Method for maintaining transmission control protocol connection and computer system
WO2023082602A1 (en) Remote management method, remote management device, module, and readable storage medium
US8046611B2 (en) Information transmission device, system, and method
EP4224809A1 (en) Message transmission method, terminals and storage medium
CN114996195A (en) Method, system, device and medium for acquiring carbon footprint data

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