CN110730084B - Control method of communication module of meter, microcontroller and meter - Google Patents

Control method of communication module of meter, microcontroller and meter Download PDF

Info

Publication number
CN110730084B
CN110730084B CN201810815622.8A CN201810815622A CN110730084B CN 110730084 B CN110730084 B CN 110730084B CN 201810815622 A CN201810815622 A CN 201810815622A CN 110730084 B CN110730084 B CN 110730084B
Authority
CN
China
Prior art keywords
communication module
meter
interaction
server
data interaction
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
CN201810815622.8A
Other languages
Chinese (zh)
Other versions
CN110730084A (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 CN201810815622.8A priority Critical patent/CN110730084B/en
Publication of CN110730084A publication Critical patent/CN110730084A/en
Application granted granted Critical
Publication of CN110730084B publication Critical patent/CN110730084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a control method of a communication module of a meter, a microcontroller and the meter, wherein the method is applied to the microcontroller of the meter and comprises the following steps: when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not more than the preset threshold value, executing: s1, controlling a communication module to be powered on and attach to a network to connect with a server; s2, controlling the communication module to perform data interaction with a connected server; s3, after the communication module and the connected server complete data interaction, the current output by the power module of the control meter to the communication module is steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode; s4, executing S2 when the sleep time of the communication module entering the low-power consumption mode reaches a preset interaction period. By the technical method, when the communication module of the meter interacts with the server at a higher frequency, the power consumption of the communication module of the meter can be reduced.

Description

Control method of communication module of meter, microcontroller and meter
Technical Field
The invention relates to the technical field of the internet of things, in particular to a control method of a communication module of a meter, a microcontroller and the meter.
Background
With the continuous development of the internet of things technology, various novel meters (such as gas meters, water meters, electric meters and the like) with an automatic meter reading function are widely used, and the meters can interact with a server through an internal communication module to realize automatic meter reading and other services.
At present, after the communication module of the meter finishes data interaction with the server each time and a certain network disconnection delay is performed, the communication module is usually required to be powered down by a microcontroller of the meter so as to reduce the power consumption of the meter to a certain extent.
However, when the communication module performs data interaction with the server each time, the communication module needs to be powered on again and attach to the network to connect with the server, and the communication module consumes a large amount of electricity when the communication module performs data interaction with the server at a high frequency, so that the power consumption of the communication module of the meter is greatly increased.
Disclosure of Invention
The invention provides a control method of a communication module of a meter, a microcontroller and the meter, and the power consumption of the communication module of the meter can be reduced when the communication module of the meter interacts with a server at a higher frequency.
In a first aspect, the present invention provides a method for controlling a communication module of a meter, applied to a microcontroller of the meter, comprising:
when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not more than a preset threshold value, executing:
s1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
s2, controlling the communication module to perform data interaction with the connected server;
s3, after the communication module and the connected server complete data interaction, controlling a power module of the meter to output a steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode;
and S4, executing the S2 when the sleep time of the communication module entering the low-power consumption mode reaches a preset interaction period.
Preferably, the method comprises the steps of,
before S2, further comprising: determining data interaction time of the communication module and the server for data interaction;
then the first time period of the first time period,
the S2 further includes: recording the current interaction time of the communication module for carrying out data interaction with the connected service;
the step S3 comprises the following steps: and when the recorded current interaction time reaches the data interaction time, controlling the current output by the power supply module of the meter to the communication module to be the steady-state current corresponding to the communication module.
Preferably, the method comprises the steps of,
the S1 comprises the following steps:
and controlling a power supply module of the meter to periodically output paging current and idle current to the communication module, so that the communication module is attached to a network according to the periodically received paging current and idle current to connect the server, wherein the paging current and idle current are both larger than the steady-state current.
Preferably, the method comprises the steps of,
before S1, further comprising:
when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is determined to be larger than a preset threshold value, executing:
a1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
a2, controlling the communication module to perform data interaction with the connected server;
a3, after the communication module and the connected server complete data interaction and a preset network disconnection delay, controlling the communication module to be powered off;
and A4, executing the A1 when the power-down time length of the communication module reaches the preset interaction period.
In a second aspect, the present invention provides a microcontroller for use with a meter, comprising:
the mode selection unit is used for triggering the network control module when determining that the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not greater than a preset threshold value;
the network control unit is used for controlling the communication module to be electrified and attach a network under the triggering of the mode selection unit so as to connect the server and triggering the interaction control unit;
the interaction control unit is used for controlling the communication module to perform data interaction with the connected server under the triggering of the network control unit or the interaction wake-up unit, and triggering the low-power consumption control unit;
the low-power consumption control unit is used for controlling the current output by the power supply module of the meter to the communication module to be steady-state current corresponding to the communication module after the communication module and the connected server complete data interaction, so that the communication module enters a low-power consumption mode;
the interactive wake-up unit is used for triggering the interactive control unit when the sleep time of the communication module entering the low-power consumption mode reaches a preset interactive period.
Preferably, the method comprises the steps of,
further comprises: an interaction time determination unit; wherein,,
the interaction time determining unit is used for determining the data interaction time of the communication module and the server for data interaction;
then the first time period of the first time period,
the interaction control unit is further used for recording the current interaction time of the communication module for carrying out data interaction with the connected service;
and the low-power consumption control unit is used for controlling the current output by the power supply module of the meter to the communication module to be the steady-state current corresponding to the communication module when the current interaction time recorded by the interaction control unit reaches the data interaction time.
Preferably, the method comprises the steps of,
the network control unit is used for controlling the power supply module of the meter to periodically output paging current and idle current to the communication module under the triggering of the mode selection unit, so that the communication module attaches to a network to connect the server according to the paging current and the idle current which are periodically received, wherein the paging current and the idle current are both larger than the steady-state current.
Preferably, the method comprises the steps of,
further comprises: a power-down processing unit; wherein,,
the mode selection unit is further used for triggering the network control unit when determining that a preset interaction period for data interaction between the communication module of the meter and the corresponding server is larger than a preset threshold;
the network control unit is further used for controlling the communication module to be electrified and attach to a network under the triggering of the interaction waking unit so as to be connected with the server, and triggering the interaction control unit;
the interaction control unit is further used for controlling the communication module to perform data interaction with the connected server under the triggering of the network control unit and triggering the power-down processing unit;
the power-down processing unit is used for controlling the communication module to be powered down and triggering the interactive awakening unit after the communication module and the connected server complete data interaction and a preset network disconnection delay;
the interactive wake-up unit is further configured to trigger the network control unit when the power-down duration of the communication module reaches the preset interactive period.
In a third aspect, an embodiment of the present invention provides a meter, including:
a communication module, a power module and a microcontroller as in any of the second aspects; wherein,,
the communication module and the power supply module are connected with the microcontroller.
The invention provides a control method of a communication module of a meter, a microcontroller and the meter, wherein the method is applied to the microcontroller of the meter, when the preset interaction period for carrying out data interaction between the communication module of the meter and a corresponding server is not larger than a preset threshold value, namely when the frequency of carrying out data interaction between the communication module of the meter and the corresponding server is higher, the communication module is firstly controlled to be electrified and attached to a network to be connected with the server, then the communication module is controlled to carry out data interaction with the connected server, and after the communication module and the server finish the data interaction, the power module of the meter is controlled to output steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode, no power-down processing is carried out on the communication module which finishes the data interaction, and when the dormancy time of the communication module entering the low-power consumption mode each time reaches the preset interaction period, the communication module and the connected server are controlled again, thereby realizing the data interaction between the communication module and the server in the preset interaction period. In summary, the communication module of the meter is controlled by the technical scheme of the invention, so that when the communication module of the meter performs data interaction with the server at a higher frequency, the communication module only needs to be electrified once and attached to the network to be connected with the server, and when the communication module does not perform data interaction with the server after being connected with the server, the communication module can be in a low-power consumption mode, and the communication module of the meter does not need to repeatedly electrified at a higher frequency and attached to the network to be connected with the server, thereby reducing the power consumption of the communication module of the meter.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present description, the drawings that are required for the embodiments or the prior art description will be briefly described below, it being apparent that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a flow chart of a control method of a communication module of a meter according to an embodiment of the invention;
FIG. 2 is a flow chart of a control method of a communication module of another meter according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a micro-controller according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another micro-controller according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a gauge according to an embodiment of the present invention.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present specification, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
As shown in fig. 1, an embodiment of the present invention provides a control method of a communication module of a meter, which is applied to a microcontroller of the meter, and includes:
s0, determining whether a preset interaction period for data interaction between a communication module of the meter and a corresponding server is not more than a preset threshold value, and if so, sequentially executing S1-S4;
s1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
s2, controlling the communication module to perform data interaction with the connected server;
s3, after the communication module and the connected server complete data interaction, controlling a power module of the meter to output a steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode;
and S4, executing the S2 when the sleep time of the communication module entering the low-power consumption mode reaches a preset interaction period.
In the embodiment shown in fig. 1, the method is applied to a microcontroller of the meter, when it is determined that a preset interaction period for performing data interaction between a communication module of the meter and a corresponding server is not greater than a preset threshold, that is, when it is determined that the frequency of performing data interaction between the communication module of the meter and the corresponding server is high, the communication module is firstly controlled to power up and attach to a network to connect the server, then the communication module is controlled to perform data interaction with the connected server, and after the communication module and the server complete the data interaction for this time, a power supply module of the meter is controlled to output steady-state current corresponding to the communication module, so that the communication module enters a low-power mode, power down processing is not performed on the communication module completing the data interaction any more, and when the sleep time of the communication module entering the low-power mode each time reaches the preset interaction period, the communication module is controlled to perform data interaction with the connected server again, thereby realizing control of the communication module to perform data interaction with the server in the preset interaction period. In summary, the communication module of the meter is controlled by the technical scheme of the invention, so that when the communication module of the meter performs data interaction with the server at a higher frequency, the communication module only needs to be electrified once and attached to the network to be connected with the server, and when the communication module does not perform data interaction with the server after being connected with the server, the communication module can be in a low-power consumption mode, and the communication module of the meter does not need to repeatedly electrified at a higher frequency and attached to the network to be connected with the server, thereby reducing the power consumption of the communication module of the meter.
It is understood that the server corresponding to the meter with the communication module is located at the network side, that is, the server can be in network connection with the base station of the micro cell or the macro cell where the meter with the communication module is located, and the process of controlling the communication module to power on and attach to the network to connect the server essentially refers to the process of outputting current to the communication module according to the operation parameters of the base station by the corresponding power-on rule, so that the communication module can receive and respond (i.e. perform network searching operation) to the paging message broadcasted by the base station according to the received current to establish connection with the base station.
Obviously, when the communication module and the server perform data interaction, on one hand, the operation data, the abnormal data and the like of the meter with the communication module can be used as uplink data, and the corresponding server is reported through a base station for establishing connection, so that the automatic meter reading and other services are realized; on the other hand, the method can receive downlink data such as an operation instruction, configuration information and the like issued by the corresponding server through the base station for establishing connection, such as instruction information for controlling the corresponding gas valve to be closed.
It should be understood by those skilled in the art that, when executing S1, general initialization setting procedures such as bandwidth setting and scrambling code setting should be performed, where these initialization setting procedures determine whether the communication module can attach to the network and perform network searching operation to implement the speed of attaching to the network, and these initialization setting procedures should be based on the operation parameters of the base station of the micro cell or the macro cell where the meter with the communication module is located, and will not be described in detail herein.
In the above embodiment, the steady-state current corresponding to the communication module specifically refers to the minimum operating current capable of ensuring that the communication module is kept connected to the server (connected to the server through the base station connected to the communication module), and the steady-state current corresponding to the communication module in the meter is extremely small (about 5 μa) for the meter having the communication module such as the gas meter, the water meter, and the electricity meter, so that when the communication module receives the corresponding steady-state current and is in the low power consumption mode, the consumed electric quantity is extremely small, that is, the power consumption is extremely small.
Based on the embodiment shown in fig. 1, in order to ensure that the communication module can immediately enter the low power consumption mode to reduce the power consumption of the communication module when the communication module does not interact with the connected server in a subsequent period of time after the communication module is powered on once and attaches to the network, in a preferred embodiment of the present invention, before S2, the method further includes: determining data interaction time of the communication module and the server for data interaction;
then the first time period of the first time period,
the S2 further includes: recording the current interaction time of the communication module for carrying out data interaction with the connected service;
the step S3 comprises the following steps: and when the recorded current interaction time reaches the data interaction time, controlling the current output by the power supply module of the meter to the communication module to be the steady-state current corresponding to the communication module.
It should be noted that, in a part of service scenarios, after the communication module completes data interaction with the server, a certain overflow time can be reserved for the communication module, the communication module can continue to receive downlink data issued by the server in an idle time period corresponding to the overflow time, but cannot send uplink data to the server, so that the meter can be ensured to completely receive the downlink data issued by the server through the communication module.
Based on the embodiment shown in fig. 1, a specific implementation of S1 includes: and controlling a power supply module of the meter to periodically output paging current and idle current to the communication module, so that the communication module is attached to a network according to the periodically received paging current and idle current to connect the server, wherein the paging current and idle current are both larger than the steady-state current.
In this embodiment, the period of the power module of the microcontroller control meter outputting the paging current and the idle current to the communication module should be based on the operation parameters of the base station, so that the power module periodically alternates between the paging state and the idle state, and the communication module can receive the paging message broadcasted by the base station when in the paging state and respond accordingly, so as to receive the downlink data issued by the base station in the subsequent idle state and respond again to establish a connection with the base station, that is, to implement attachment to connect with the server corresponding to the meter with the communication module.
The steady-state current corresponding to the communication module in the low power consumption mode is extremely small, but the electric quantity consumed in the low power consumption mode is in a proportional relation with the sleep time (namely the preset interaction period) of the communication module in the low power consumption mode, so that in order to realize the preset interaction period for carrying out data interaction between the communication module and the server according to the meter, the power consumption of the communication module is reduced more reasonably and effectively, and in a preferred embodiment of the invention, the method further comprises the following steps:
when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is determined to be larger than a preset threshold value, executing:
a1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
a2, controlling the communication module to perform data interaction with the connected server;
a3, after the communication module and the connected server complete data interaction and a preset network disconnection delay, controlling the communication module to be powered off;
and A4, executing the A1 when the power-down time length of the communication module reaches the preset interaction period.
In this embodiment, the workflow corresponding to A1 to A4 is a discontinuous reception mode generally adopted by the existing communication module, and when the preset period of data interaction between the meter of the communication module and the corresponding server is large, the discontinuous reception mode has a better power saving effect.
Those skilled in the art will understand that, the contents executed by A1 and A2 are similar to those executed by S1 and S2, and in other embodiments of the present invention, the contents executed by S1 and S2 have been analyzed and described, and will not be described in detail herein.
In the above embodiments, the specific service logic of selectively executing S1-S4 or executing A1-A4 by the microcontroller according to the preset interaction period may be at least implemented in the following manner X or manner Y.
Mode X includes:
x1, presetting a preset threshold value by a microcontroller;
x2, the microcontroller receives a preset interaction period of data interaction between a communication module of the meter input from the outside and a corresponding server;
x3, the microcontroller judges whether the received preset interaction period is not greater than a preset threshold value, if so, S1-S4 are executed; otherwise, A1-A4 are performed.
The implementation Y includes:
y0, the user determines whether the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not greater than a preset threshold value, if yes, a low-power consumption selection instruction is input to the microcontroller, and if not, a discontinuous reception selection instruction is input to the micro-control;
y1, executing S1-S4 when the microcontroller receives a low power consumption selection instruction input by a user; and when receiving a discontinuous reception selection instruction input by a user, executing A1-A4.
The implementation mode X and the implementation mode Y can be selected by a user in combination with actual service requirements, and generally, in order to meet the access mode of the communication module defined when an operator opens a card, a large amount of data interaction between the communication module and a base station is avoided so as to realize connection with a server through the base station, so that the communication module can be more rapidly attached to a network, and the implementation mode Y has better effect; on the contrary, in order to improve user experience, subjective comparison between a preset interaction period and a corresponding preset threshold value is avoided, and the effect of the implementation mode X is better.
In order to achieve a preset interaction period for performing data interaction between a communication module and a server according to a meter, and more reasonably and effectively reduce power consumption of the communication module, as shown in fig. 2, an embodiment of the present invention provides another control method for the communication module of the meter, which is also applied to a microcontroller of the meter, and specifically may include the following steps.
And step 21, the microcontroller presets a preset threshold value and determines the data interaction time of the communication module and the server for data interaction.
Step 22, the microcontroller receives a preset interaction period of data interaction between the communication module of the meter input from the outside and the corresponding server.
Step 23, the microcontroller judges whether the received preset interaction period is not greater than a preset threshold value, if so, step 24n1 is executed; otherwise, step 24m1 is performed.
In step 24n1, the power module of the microcontroller control meter periodically outputs paging current and idle current to the communication module, so that the communication module attaches to the network to connect to the server according to the periodically received paging current and idle current.
Wherein, paging current and idle current are both greater than steady state current.
In step 24n2, the microcontroller controls the communication module to perform data interaction with the connected server, and records the current interaction time of the communication module to perform data interaction with the connected service.
And step 24n3, when the recorded current interaction time reaches the data interaction time, the microcontroller controls the power supply module of the meter to output the current corresponding to the steady-state current to the communication module.
The communication module enters a low power consumption mode when receiving the corresponding steady-state current.
In step 24n4, the microcontroller executes 24n2 when the sleep time of the communication module entering the low power mode reaches the preset interaction period.
In step 24m1, the power module of the microcontroller control meter periodically outputs paging current and idle current to the communication module, so that the communication module attaches to the network to connect to the server according to the periodically received paging current and idle current.
In step 24m2, the microcontroller controls the communication module to perform data interaction with the connected server, and records the current interaction time of the communication module to perform data interaction with the connected service.
And step 24m3, after the recorded current interaction time reaches the data interaction time and the preset network disconnection delay, the microcontroller controls the communication module to be powered off.
And step 24m4, when the power-down time of the communication module reaches a preset interaction period, the microcontroller executes step 24m1.
It should be noted that, in the embodiment shown in fig. 2 and other embodiments of the present invention, the preset threshold corresponding to the preset interaction period should be reasonably set in combination with the operation parameters of the communication module of the specific meter and the operation parameters of the base station in the actual service scenario. When the communication module of the meter is tested in an actual service scene or is operated in a discontinuous receiving mode by other modes, the time length of powering on and attaching the meter is 9S, the corresponding off-network delay time when the power-down processing is carried out on the data module after the data interaction is completed is 5S, the paging current and the idle current which are periodically output by the communication module in the processes of powering on and attaching the meter and the off-network delay time are respectively 60mA and 6mA (the paging current and the idle current depend on the operation parameters of a micro base station or a macro base station with the meter of the communication module), and the data interaction time of the communication module and a server is 4S for example; then, in order to comprehensively consider that the microcontroller controls the communication module through the S1-S4 or the A1-A4 to reduce the power consumption of the communication module, the microcontroller needs to consider the first electric quantity consumed by the communication module in the low power consumption mode in a preset interaction period, the second electric quantity consumed by the communication module when the communication module is powered on and attaches to the network, and the third electric quantity consumed by the communication module in the off-network delay period, and when the sum of the second electric quantity and the third electric quantity is greater than the first electric quantity, the microcontroller controls the communication module in the S1-S4 mode, otherwise, the microcontroller controls the communication module in the A1-A4 mode; the sum of the second electric quantity and the electric three electric quantity is specifically: 60mA (9s+5s)/2+6ma (9s+5s)/2=0.462a×s; when the communication module is in the low power consumption mode, if the consumption of 0.460 a/5 μa= 92400s needs to last for a period of time, the consumption of 0.460 a/s is 0.462 a/5 μa= 92400s; obviously, when the communication module of the meter needs to interact with the server in a relatively high frequency, namely, when the preset interaction period of data interaction between the communication module of the meter and the corresponding server is not more than 92400S, the microcontroller of the meter can control the communication module of the meter through S1-S4; conversely, when the communication module of the meter needs to interact with the server in a relatively low frequency, that is, when the preset interaction period of data interaction between the communication module of the meter and the corresponding server is greater than 92400s, the microcontroller of the meter can control the communication module of the meter through A1-A4; therefore, the preset interaction period for carrying out data interaction between the communication module and the server according to the meter is realized, and the power consumption of the communication module is reduced more reasonably and effectively.
Based on the same concept as the method embodiment of the present invention, please refer to fig. 3, the embodiment of the present invention provides a microcontroller, which is applied to a meter, and includes:
a mode selection unit 301, configured to trigger the network control module 302 when it is determined that a preset interaction period for performing data interaction between the communication module of the meter and a server corresponding to the communication module is not greater than a preset threshold;
the network control unit 302 is configured to control the communication module to power up and attach to a network to connect to the server under the triggering of the mode selection unit 301, and trigger the interaction control unit 303;
the interaction control unit 303 is configured to control the communication module to perform data interaction with the connected server under the triggering of the network control unit 302 or the interaction wake-up unit 305, and trigger the low power consumption control unit 304;
the low-power consumption control unit 304 is configured to control, after the communication module and the connected server complete data interaction, a current output by the power module of the meter to the communication module to be a steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode;
the interaction wake-up unit 305 is configured to trigger the interaction control unit 303 when the sleep time of the communication module entering the low power consumption mode reaches a preset interaction period.
Referring to fig. 4, in one embodiment of the present invention, the microcontroller further includes: an interaction time determination unit 401; wherein,,
the interaction time determining unit 401 is configured to determine a data interaction time of the communication module for performing data interaction with the server;
then the first time period of the first time period,
the interaction control unit 303 is further configured to record a current interaction time of the communication module for performing data interaction with the connected service;
the low power consumption control unit 304 is configured to control a current output by the power module of the meter to the communication module to be a steady-state current corresponding to the communication module when the current interaction time recorded by the interaction control unit 303 reaches the data interaction time.
In one embodiment of the present invention, the network control unit 302 is configured to control the power module of the meter to periodically output a paging current and an idle current to the communication module under the triggering of the mode selection unit 301, so that the communication module attaches to a network to connect to the server according to the paging current and the idle current that are periodically received, where the paging current and the idle current are both greater than the steady-state current.
In one embodiment of the present invention, further comprising: a power-down processing unit; wherein,,
the mode selection unit 301 is further configured to trigger the network control unit 302 when it is determined that a preset interaction period for performing data interaction between the communication module of the meter and the corresponding server is greater than a preset threshold;
the network control unit 302 is further configured to control the communication module to power on and attach to a network under the trigger of the interaction wake-up unit 305 to connect to the server, and trigger the interaction control unit 303;
the interaction control unit 303 is further configured to control the communication module to perform data interaction with the connected server under the triggering of the network control unit 302, and trigger the power-down processing unit;
the power-down processing unit is configured to control the communication module to power down and trigger the interaction wake-up unit 305 after the communication module completes data interaction with the connected server and a preset off-network delay;
the interaction wake-up unit 305 is further configured to trigger the network control unit 302 when the power-down duration of the communication module reaches the preset interaction period.
As shown in fig. 5, an embodiment of the present invention provides a meter including:
a communication module 501, a power module 502, and a microcontroller 503 provided in any of the embodiments of the present invention; wherein,,
the communication module 501 and the power module 502 are both connected to the microcontroller 503.
The microcontroller and the meter provided by the embodiment of the invention are based on the same conception as the embodiment of the method of the invention, and the cooperative flow between each module and unit in the microcontroller and the meter is not repeated here; meanwhile, the above microcontrollers are described as being functionally divided into various units or modules, and the functions of the units or modules can be implemented in one or more pieces of software and/or hardware when the technical scheme provided by the embodiments of the present invention is implemented.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the microcontroller and meter embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the partial description of the method embodiments being relevant.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (7)

1. A method for controlling a communication module of a meter, applied to a microcontroller of the meter, comprising:
when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not more than a preset threshold value, executing:
s1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
s2, controlling the communication module to perform data interaction with the connected server;
s3, after the communication module and the connected server complete data interaction, controlling a power module of the meter to output a steady-state current corresponding to the communication module, so that the communication module enters a low-power consumption mode;
s4, executing the S2 when the sleep time of the communication module entering the low-power consumption mode reaches a preset interaction period;
when the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is determined to be larger than a preset threshold value, executing:
a1, controlling the communication module to be powered on and attach to a network so as to connect with the server;
a2, controlling the communication module to perform data interaction with the connected server;
a3, after the communication module and the connected server complete data interaction and a preset network disconnection delay, controlling the communication module to be powered off;
and A4, executing the A1 when the power-down time length of the communication module reaches the preset interaction period.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
before S2, further comprising: determining data interaction time of the communication module and the server for data interaction;
then the first time period of the first time period,
the S2 further includes: recording the current interaction time of the communication module for carrying out data interaction with the connected service;
the step S3 comprises the following steps: and when the recorded current interaction time reaches the data interaction time, controlling the current output by the power supply module of the meter to the communication module to be the steady-state current corresponding to the communication module.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the S1 comprises the following steps:
and controlling a power supply module of the meter to periodically output paging current and idle current to the communication module, so that the communication module attaches a network to connect the server according to the paging current and the idle current which are periodically received, wherein the paging current and the idle current are both larger than the steady-state current.
4. A microcontroller for use with a meter, comprising:
the mode selection unit is used for triggering the network control module when determining that the preset interaction period for carrying out data interaction between the communication module of the meter and the corresponding server is not greater than a preset threshold value;
the network control unit is used for controlling the communication module to be electrified and attach a network under the triggering of the mode selection unit so as to connect the server and triggering the interaction control unit;
the interaction control unit is used for controlling the communication module to perform data interaction with the connected server under the triggering of the network control unit or the interaction wake-up unit, and triggering the low-power consumption control unit;
the low-power consumption control unit is used for controlling the current output by the power supply module of the meter to the communication module to be steady-state current corresponding to the communication module after the communication module and the connected server complete data interaction, so that the communication module enters a low-power consumption mode;
the interactive wake-up unit is used for triggering the interactive control unit when the sleep time of the communication module entering the low-power consumption mode reaches a preset interactive period;
further comprises: a power-down processing unit; wherein,,
the mode selection unit is further used for triggering the network control unit when determining that a preset interaction period for data interaction between the communication module of the meter and the corresponding server is larger than a preset threshold;
the network control unit is further used for controlling the communication module to be electrified and attach to a network under the triggering of the interaction waking unit so as to be connected with the server, and triggering the interaction control unit;
the interaction control unit is further used for controlling the communication module to perform data interaction with the connected server under the triggering of the network control unit and triggering the power-down processing unit;
the power-down processing unit is used for controlling the communication module to be powered down and triggering the interactive awakening unit after the communication module and the connected server complete data interaction and a preset network disconnection delay;
the interactive wake-up unit is further configured to trigger the network control unit when the power-down duration of the communication module reaches the preset interactive period.
5. The microcontroller of claim 4 wherein the controller is configured to,
further comprises: an interaction time determination unit; wherein,,
the interaction time determining unit is used for determining the data interaction time of the communication module and the server for data interaction;
then the first time period of the first time period,
the interaction control unit is further used for recording the current interaction time of the communication module for carrying out data interaction with the connected service;
and the low-power consumption control unit is used for controlling the current output by the power supply module of the meter to the communication module to be the steady-state current corresponding to the communication module when the current interaction time recorded by the interaction control unit reaches the data interaction time.
6. The microcontroller of claim 4 wherein the controller is configured to,
the network control unit is used for controlling the power supply module of the meter to periodically output paging current and idle current to the communication module under the triggering of the mode selection unit, so that the communication module attaches to a network to connect the server according to the paging current and the idle current which are periodically received, wherein the paging current and the idle current are both larger than the steady-state current.
7. A meter, comprising:
a communication module, a power module and a microcontroller as claimed in any one of claims 4 to 6; wherein,,
the communication module and the power supply module are connected with the microcontroller.
CN201810815622.8A 2018-07-17 2018-07-17 Control method of communication module of meter, microcontroller and meter Active CN110730084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810815622.8A CN110730084B (en) 2018-07-17 2018-07-17 Control method of communication module of meter, microcontroller and meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810815622.8A CN110730084B (en) 2018-07-17 2018-07-17 Control method of communication module of meter, microcontroller and meter

Publications (2)

Publication Number Publication Date
CN110730084A CN110730084A (en) 2020-01-24
CN110730084B true CN110730084B (en) 2023-05-02

Family

ID=69217475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810815622.8A Active CN110730084B (en) 2018-07-17 2018-07-17 Control method of communication module of meter, microcontroller and meter

Country Status (1)

Country Link
CN (1) CN110730084B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411658A (en) * 2016-11-17 2017-02-15 深圳市思享云创新技术有限公司 Communication method and communication device
CN107969009A (en) * 2017-11-06 2018-04-27 宇龙计算机通信科技(深圳)有限公司 The method, apparatus and terminal of control terminal communication

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101160376B1 (en) * 2006-02-06 2012-06-26 삼성전자주식회사 Power Saving Method of Dual Mode Communication Terminal
CN102547933B (en) * 2010-12-30 2016-01-20 中国移动通信集团公司 A kind of power-economizing method and terminal
CN102684743A (en) * 2012-04-20 2012-09-19 国网电力科学研究院 Low-power-consumption dormancy activation communication power saving method for electric transmission lines
CN106102139A (en) * 2016-05-26 2016-11-09 宁波大学 A kind of method for realizing low power consumption of NFC pre-payment instrument
CN106332248B (en) * 2016-08-19 2020-06-05 深圳市慧联通信技术有限公司 Low-power-consumption meter reading method and system
CN107613389A (en) * 2017-08-31 2018-01-19 成都市斯达鑫辉视讯科技有限公司 A kind of automatic standby of set top box control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411658A (en) * 2016-11-17 2017-02-15 深圳市思享云创新技术有限公司 Communication method and communication device
CN107969009A (en) * 2017-11-06 2018-04-27 宇龙计算机通信科技(深圳)有限公司 The method, apparatus and terminal of control terminal communication

Also Published As

Publication number Publication date
CN110730084A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN101802750B (en) Apparatus and method for reducing power consumption in system on chip
US8286013B2 (en) Portable communication device with multi-tiered power save operation
CN101495958B (en) System and method for controlling processor low power states
WO2016041468A1 (en) Wakeup method, device and terminal
KR100958230B1 (en) Conveying a content delivery schedule to mobile terminals
CN103218033B (en) A kind of method and device waking hardware device up
CN105072292A (en) Application control method and terminal
CN101635650B (en) Method and equipment for managing power saving mode
US9525464B2 (en) Wireless power supply device, electronic device capable of receiving wireless power, and method for controlling transmission of wireless power
WO2012138655A1 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
CN101427534A (en) Method of controlling wakeup frequency in a wireless communication system
CN107490155B (en) Air-conditioning method for controlling timed power on/off, device, remote control device and system
CN103049319A (en) Method for managing background application program in divided period and terminal thereof
CN109192208A (en) A kind of control method of electrical equipment, system, device, equipment and medium
CN104219746B (en) Method, device and terminal for autonomously adjusting wake-up time
CN109982355B (en) Method for saving and restoring network path, apparatus, terminal and storage medium thereof
CN114172563A (en) Communication satellite dormancy control method, heaven-earth integrated communication network and storage medium
CN114422992A (en) Dual-system Bluetooth device and electronic equipment
CN108377484A (en) A kind of bluetooth controller power consumption control method and device
CN106598193B (en) Power consumption control method and device
JP2016127734A (en) Charge control device, electric power system, terminal device, charge control method and charge control program
CN110730084B (en) Control method of communication module of meter, microcontroller and meter
CN111104289B (en) System and method for checking efficiency of GPU (graphics processing Unit) cluster
CN112910038A (en) Power conversion device and method and electronic equipment
CN116825013A (en) Control device, control method and related equipment of display screen

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