CN108762468B - Low-power consumption control method and device - Google Patents

Low-power consumption control method and device Download PDF

Info

Publication number
CN108762468B
CN108762468B CN201810474904.6A CN201810474904A CN108762468B CN 108762468 B CN108762468 B CN 108762468B CN 201810474904 A CN201810474904 A CN 201810474904A CN 108762468 B CN108762468 B CN 108762468B
Authority
CN
China
Prior art keywords
working
mode
sleep
power consumption
period
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
CN201810474904.6A
Other languages
Chinese (zh)
Other versions
CN108762468A (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.)
Shenzhen Friendcom Technology Co Ltd
Original Assignee
Shenzhen Friendcom 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 Shenzhen Friendcom Technology Co Ltd filed Critical Shenzhen Friendcom Technology Co Ltd
Priority to CN201810474904.6A priority Critical patent/CN108762468B/en
Publication of CN108762468A publication Critical patent/CN108762468A/en
Application granted granted Critical
Publication of CN108762468B publication Critical patent/CN108762468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The embodiment of the invention provides a low-power-consumption control method and device. The method is applied to a metering platform, and a working period and a sleep period are preset in the metering platform. The method comprises the following steps: judging whether the current time is in a working period or a sleep period, wherein the proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time; entering a sleep mode when the current time is in a sleep period; and when the current time is in a working cycle, entering a working mode or a dormant mode according to the working state of the peripheral equipment, wherein the peripheral equipment comprises internal equipment in the metering platform, and metering equipment and communication equipment which are connected with the metering platform. The metering platform is in a low-power consumption sleep mode in the sleep period, and the low-power consumption working mode and the sleep mode are jointly managed in the working period, so that the power consumption of the metering platform can be reduced.

Description

Low-power consumption control method and device
Technical Field
The invention relates to the technical field of communication, in particular to a low-power-consumption control method and device.
Background
At present, the traditional meter reading mode consumes manpower, and the wireless meter reading system has the characteristics of high efficiency and low cost, so the traditional meter reading mode is replaced by the meter reading system. However, in the existing wireless meter reading system, the metering platform is always in a working mode, and the power consumption is relatively high.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, embodiments of the present invention provide a low power consumption control method and apparatus, which enable a metering platform to be in a low power consumption sleep mode in a sleep cycle, and the metering platform is managed by a low power consumption working mode and the sleep mode together in a working cycle, so as to reduce power consumption of the metering platform.
The embodiment of the invention provides a low-power consumption control method, which is applied to a metering platform, wherein a working period and a sleep period are preset in the metering platform, and the method comprises the following steps:
judging whether the current time is in a working period or a sleep period, wherein the proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time;
entering a sleep mode when the current time is in a sleep period;
and when the current time is in a working cycle, entering a working mode or a dormant mode according to the working state of the peripheral, wherein the peripheral comprises internal equipment in a metering platform, and metering equipment and communication equipment which are connected with the metering platform.
In the embodiment of the present invention, a power consumption management linked list is stored in the metering platform, where the power consumption management linked list includes a plurality of peripheral identifiers, and a working state, a clock domain and a power domain corresponding to each peripheral identifier, and when the current time is in a working cycle, the metering platform enters a working mode or a sleep mode according to the working state of the peripheral, and includes:
obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not;
when the working states of all the peripherals stop working, the clock source and the power domain corresponding to the peripherals in the power consumption management linked list are closed to enter a sleep mode;
when the working states of all the peripherals are not stop working, the peripheral with the working state of stop working is used as a target peripheral, and whether a target clock source and a target power domain corresponding to the target peripheral are used by other peripherals with the working states of stop working is judged according to the power consumption management linked list;
and turning off a target clock source and/or a target power domain which is not used by other peripherals with working states being working and corresponds to the target peripheral so as to enter a low-power-consumption working mode.
In an embodiment of the present invention, the method further comprises:
when the mobile terminal is in a sleep mode in a working cycle, if a wake-up signal is received, switching from the sleep mode to the working mode;
and after the working mode is switched, judging whether the working mode needs to be switched to the dormant mode again according to the power consumption management linked list.
In an embodiment of the present invention, the method further comprises:
when the sleep mode is in the sleep mode under the working period or the sleep mode under the sleep period, if the manual wake-up signal is received, the sleep mode is switched to the working mode until the sleep mode is recovered to the mode corresponding to the period to which the current time belongs within the preset recovery time.
In an embodiment of the present invention, the method further comprises:
and pre-establishing the power consumption management linked list, and updating the power consumption management linked list after receiving an updating request sent by a peripheral.
In this embodiment of the present invention, the metering platform includes at least one idle general purpose input output interface GPIO port, and the method further includes:
setting the mode of an idle GPIO port to reduce the power consumption of the idle GPIO port;
the mode to idle GPIO mouth sets up to the mode that reduces the corresponding power consumption of idle GPIO mouth includes:
setting the mode of an over-hanging GPIO port in the idle GPIO port and/or a GPIO port with an external pull-up condition as a pull-up input according to a circuit diagram corresponding to the idle GPIO port; and/or the presence of a gas in the gas,
and setting the mode of the GPIO port with the pull-down condition in the idle GPIO ports to be input low level according to the circuit diagram corresponding to the idle GPIO ports.
The embodiment of the invention provides a low-power consumption control device, which is applied to a metering platform, wherein a working period and a dormant period are preset in the metering platform, and the device comprises:
the judging module is used for judging that the current time is in a working period or a sleep period, wherein the proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time;
the control module is used for entering a sleep mode when the current time is in a sleep cycle;
and the control module is also used for entering a working mode or a dormant mode according to the working state of the peripheral when the current time is in a working cycle, wherein the peripheral comprises internal equipment in the metering platform, and metering equipment and communication equipment which are connected with the metering platform.
In the embodiment of the present invention, a power consumption management linked list is stored in the metering platform, the power consumption management linked list includes a plurality of peripheral identifiers, and a working state, a clock domain and a power domain corresponding to each peripheral identifier, and when the current time is in a working cycle, the mode of the control module entering a working mode or a sleep mode according to the working state of the peripheral includes:
obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not;
when the working states of all the peripherals stop working, the clock source and the power domain corresponding to the peripherals in the power consumption management linked list are closed to enter a sleep mode;
when the working states of all the peripherals are not stop working, the peripheral with the working state of stop working is used as a target peripheral, and whether a target clock source and a target power domain corresponding to the target peripheral are used by other peripherals with the working states of stop working is judged according to the power consumption management linked list;
and turning off a target clock source and/or a target power domain which is not used by other peripherals with working states being working and corresponds to the target peripheral so as to enter a low-power-consumption working mode.
In the embodiment of the present invention, the control module is further configured to switch from the sleep mode to the working mode if a wake-up signal is received while the control module is in the sleep mode in the working cycle;
and the control module is also used for judging whether the working mode needs to be switched to the dormant mode again according to the power consumption management linked list after the working mode is switched to the working mode.
In this embodiment of the present invention, the control module is further configured to, when the sleep mode is in the sleep mode in the working period or the sleep mode in the sleep period, switch from the sleep mode to the working mode until the preset recovery time is recovered to the mode corresponding to the period to which the current time belongs if the manual wake-up signal is received.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a low-power-consumption control method and device. The method is applied to a metering platform, and the metering platform stores preset working cycles and sleep cycles, wherein the proportion of sleep time corresponding to the sleep cycles to total time is greater than the proportion of working time corresponding to the working cycles to total time. And judging whether the current time is in the working period or in the sleep period according to the current time. And if the current time corresponds to the sleep cycle, entering a sleep mode. And if the current time corresponds to the working period, entering a working mode or a dormant mode according to the working state of the peripheral. The peripheral comprises internal equipment in the metering platform, metering equipment and communication equipment which are connected with the metering platform. Through the mode, the metering platform is in the low-power-consumption sleep mode in the sleep period, and the low-power-consumption working mode and the sleep mode are jointly managed in the working period, so that the power consumption of the metering platform can be reduced.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a metering system provided by an embodiment of the present invention.
Fig. 2 is a block schematic diagram of the metering platform of fig. 1.
Fig. 3 is a flowchart of a low power consumption control method according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating sub-steps included in step S130 in fig. 3.
Fig. 5 is a second flowchart of the low power consumption control method according to the embodiment of the invention.
Fig. 6 is a third schematic flowchart of a low power consumption control method according to an embodiment of the present invention.
Fig. 7 is a block diagram of a low power consumption control device according to an embodiment of the present invention.
Icon: 10-a metering system; 100-a metrology platform; 110-a memory; 120-a memory controller; 130-a processor; 200-a metering device; 300-a communication device; 400-low power consumption control means; 401-a creation module; 410-a judgment module; 420-control module.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a block diagram of a metering system 10 according to an embodiment of the present invention. The metering system 10 includes a metering platform 100, a metering device 200, and a communication device 300 connected thereto. The metering device 200 is used for metering data; the metering platform 100 is configured to read metering data obtained by metering the metering device 200, and may further set the metering device 200; the communication device 300 is used to enable the metering platform 100 to communicate with devices outside the system. Wherein, at the same time, there is only one metering device 200 connected to the metering platform 100. The metering device 200 may be, but is not limited to, a double reed pipe pulse metering product, an ultrasonic metering product, a photoelectric direct-reading remote metering product, and the like.
In an embodiment of the present embodiment, the metering platform 100 includes a plurality of serial ports, and the metering device 200 and the communication device 300 may be connected to the metering platform 100 through the serial ports. Furthermore, different devices can be externally hung through a serial port to perform function filling according to the actual function requirements of the metering platform 100.
In the embodiment of this embodiment, the metering platform 100 may define an equipment interface such as open, read, and control, to set the metering equipment 200, that is, to perform data transmission with the metering equipment 200. For example, when using the open interface, a series of commands are transmitted to the metering device 200 in accordance with protocol packets; when the read interface and the control interface are used, a series of commands are transmitted according to the protocol, and the metering device 200 returns data information corresponding to the commands or performs corresponding operations (e.g., stopping operation) according to the commands.
Referring to fig. 2, fig. 2 is a block diagram of the metering platform 100 in fig. 1. The metrology platform 100 in the embodiments of the present invention may be, but is not limited to, a computer, a computing device, etc. The metrology platform 100 comprises: memory 110, memory controller 120, and processor 130.
The elements of the memory 110, the memory controller 120 and the processor 130 are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 110 stores therein a low power consumption control apparatus 400, and the low power consumption control apparatus 400 includes at least one software functional module that can be stored in the memory 110 in the form of software or firmware (firmware). The processor 130 executes various functional applications and data processing by running software programs and modules stored in the memory 110, such as the low power consumption control apparatus 400 in the embodiment of the present invention, that is, implements the low power consumption control method in the embodiment of the present invention.
The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 110 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction. Access to the memory 110 by the processor 130 and possibly other components may be under the control of the memory controller 120.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor 130 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be appreciated that the configuration shown in FIG. 2 is merely illustrative and that metrology platform 100 may also include more or fewer components than shown in FIG. 2 or have a different configuration than shown in FIG. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 3, fig. 3 is a flowchart illustrating a low power consumption control method according to an embodiment of the invention. The method is applied to the metrology platform 100. The specific flow of the low power consumption control method is described in detail below.
Step S110, determine that the current time is in the working period or the sleep period.
In this embodiment, the metering platform 100 stores a preset working period and a preset sleep period. The proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time. Therefore, whether the time belongs to the working period or the sleep period can be judged according to the current time and the preset working period and sleep period. For example, taking a day as an example, that is, the total time is 24 hours, 8 to 10 points of a certain day are preset as a working period, and the remaining time is a sleep period. If the current time is 11 o' clock of the day, it can be determined that the current time is in the sleep cycle. If the current time is 9 o' clock of the day, it can be determined that the current time is in the duty cycle.
Step S120, when the current time is in the sleep cycle, entering into the sleep mode.
In this embodiment, if the current time corresponds to the sleep cycle, the metering platform 100 may turn off all the peripheral devices, the clock source, the power domain, and the like, and directly enter the sleep mode. That is, during the sleep period, the metrology platform 100 is inactive. Thereby greatly reducing power consumption as compared to having metrology platform 100 in an operational mode at all times. The peripheral devices include internal devices in the metering platform 100, and a metering device 200 and a communication device 300 connected to the metering platform 100. Internal devices within the metering platform 100 may include, but are not limited to, GPIO ports, serial ports, and the like.
Step S130, when the current time is in the working cycle, the working mode or the sleep mode is entered according to the working state of the peripheral.
In this embodiment, the metering platform 100 stores a power consumption management linked list, where the power consumption management linked list may include a plurality of peripheral identifiers, and a working state, a clock domain, and a power domain corresponding to each peripheral identifier. The peripheral identification corresponds to the peripheral one to one. The metering platform 100 may further reduce power consumption according to the power consumption management linked list.
Referring to fig. 4, fig. 4 is a flowchart illustrating sub-steps included in step S130 in fig. 3. Step S130 may include sub-step S131 and sub-step S132.
And the substep S131, obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not.
And a substep S132, when all the peripheral devices stop working, turning off the clock source and the power domain corresponding to the peripheral devices in the power consumption management linked list to enter a sleep mode.
In this embodiment, when the working state of the peripheral device changes, the power consumption management linked list is directly updated correspondingly, so that the working state of each peripheral device can be obtained through the power consumption management linked list. The working state may include stopping working and working.
If the working state of each peripheral in the power consumption management linked list is stop, it indicates that the clock source and the power domain corresponding to the peripheral do not need to be in a normal working state any more, and in this case, the metering platform 100 adjusts the states of the clock source and the power domain corresponding to the peripheral in the power consumption management linked list to be in a closed state, and enters a sleep mode. Therefore, although the current time corresponds to the work cycle, under the condition that the peripheral does not work, the corresponding clock source and the corresponding power domain can be closed, and the power consumption is further reduced by entering the sleep mode.
Referring to fig. 4 again, step S130 may further include sub-step S133 and sub-step S134.
And a substep S133, when the working states of all the peripherals are not stopped, taking the peripheral whose working state is stopped as a target peripheral, and determining whether a target clock source and a target power domain corresponding to the target peripheral are being used by other peripherals whose working states are being operated according to the power consumption management linked list.
And a substep S134, turning off the target clock source and/or the target power domain corresponding to the target peripheral, which is not used by other peripherals whose operating states are working, to enter a low power consumption operating mode.
In this embodiment, if it is determined that the working states of some of the peripherals are working and the working states of some of the peripherals are off (i.e., turned off) according to the power consumption management list, the metering platform 100 may use the peripherals whose working states are off as target peripherals, and further use the clock sources and the power domains corresponding to the target peripherals in the power consumption management list as target clock sources and target power domains. The metering platform 100 determines whether the peripheral devices corresponding to the target clock source and the target power domain are working according to the power consumption management linked list, and determines whether the target clock source and the target power domain corresponding to the target peripheral device are being used by other peripheral devices working in working states according to the obtained determination result.
After the above determination is completed, the metering platform 100 may turn off the target clock source and/or the target power domain corresponding to the target peripheral, which is not used by other peripherals whose operating states are working, to enter a low power consumption operating mode.
For example, the peripheral a and the peripheral B use the same clock source 1, and if the peripheral a using the clock source 1 stops working, it needs to determine whether the peripheral B also using the clock source 1 stops working. If the clock B stops working, which means that the clock source 1 is not used by the peripheral whose working state is working, the clock source 1 may be turned off. If the clock B is working, which means that the clock source 1 is being used by the peripheral whose working state is working, the clock source 1 cannot be turned off.
Optionally, in an implementation manner of this embodiment, the metering platform 100 may be a platform using rassa RL78, and a halt mode and a stop mode of the low power consumption modes are selected. When the peripheral works, the system enters a halt mode (namely a low-power-consumption working mode); when no peripheral works, the system enters into a stop mode (namely a sleep mode).
Referring to fig. 5, fig. 5 is a second flowchart of a low power consumption control method according to an embodiment of the invention. The method may further include step S141 and step S142.
In step S141, when the sleep mode is in the duty cycle and the wake-up signal is received, the sleep mode is switched to the duty mode.
And step S142, after the working mode is switched, judging whether the working mode needs to be switched to the dormant mode again according to the power consumption management linked list.
In this embodiment, if the metrology platform 100 is in the sleep mode during the working period, it is not conducive to normal data communication. Therefore, in this embodiment, when the metrology platform 100 is in the sleep mode in the working cycle, the corresponding mode is switched according to whether the wake-up signal is received. The wake-up signal may be a timer wake-up signal of a sleep mode in a working cycle, or may be a wake-up signal sent by the communication device 300.
After receiving the wake-up signal, the metrology platform 100 switches from the current sleep mode to the working mode. After the measurement platform 100 is switched from the sleep mode in the working period to the working mode in the working period, judging whether a working condition exists according to the power consumption management linked list, namely the measurement platform 100 needs to work, and if so, working is carried out; if not, switching to the sleep mode again.
For example, a timer is set, and the timer is used to send a timer wake-up signal every 2s when the metering platform 100 is in the sleep mode in the working cycle. Therefore, the metering platform 100 wakes up from the sleep mode (i.e. switches to the working mode) every 2s when in the sleep mode of the working cycle, and checks whether data is received or other work is performed within 2 s. If yes, the operation is carried out, and the sleep mode in the working period is entered again after the operation is finished. If not, the sleep mode in the working period can be directly entered again.
Alternatively, if the received wake-up signal is a signal corresponding to a switching period, that is, the duty cycle is switched to a sleep cycle, the metering platform 100 may wake up first after receiving the wake-up signal, and then enter the sleep mode in the sleep cycle.
Referring to fig. 6, fig. 6 is a third schematic flow chart of a low power consumption control method according to an embodiment of the present invention. The method may further include step S150.
Step S150, when the sleep mode is in the working cycle or the sleep mode in the sleep cycle, if the manual wake-up signal is received, the sleep mode is switched to the working mode until the sleep mode is restored to the mode corresponding to the cycle to which the current time belongs in the preset restoration time.
In this embodiment, no matter which sleep mode is in any cycle, as long as the metering platform 100 receives the manual wake-up signal, the current mode is directly switched to the working mode and is maintained until the preset recovery time. After the preset recovery time comes, the metering platform 100 is switched from the working mode to the mode corresponding to the period to which the working mode belongs. For example, after the preset recovery time is reached, if the current time belongs to a working period, the power management linked list is selected to enter a working mode or a sleep mode; if the current time belongs to the sleep cycle, all the peripheral devices, clock sources, power domains and the like are closed, and the sleep mode is entered.
Alternatively, the metering platform 100 may receive the artificial wake-up signal by, but not limited to, detecting the reception of the artificial wake-up signal through a reed pipe, and the like.
For example, the preset recovery time is set to zero, and the metering platform 100 keeps the working mode to the day zero point after receiving the manual wake-up signal. After reaching the zero point of the day, the metering platform 100 enters a working mode or a sleep mode according to a preset working period, a preset sleep period and the power consumption management linked list.
Referring to fig. 6 again, the method may further include step S101.
Step S101, the power consumption management linked list is pre-established, and after an updating request sent by a peripheral is received, the power consumption management linked list is updated.
In this embodiment, the power consumption management linked list is established in advance according to the information of the peripheral device. And after the power consumption management linked list is established, if the working condition of the peripheral equipment changes, the power consumption management linked list can be updated so as to ensure that the information in the power consumption management linked list is consistent with the actual condition.
Optionally, the power consumption management linked list includes flag bits, and each flag bit corresponds to an external device. When any peripheral is opened or closed, the flag bit state of the peripheral is updated, so that the power consumption management linked list is updated.
In this embodiment, the metering platform 100 includes at least one idle GPIO port (General Purpose Input Output). Referring to fig. 6 again, the method may further include step S160.
And step S160, setting the mode of the idle GPIO port to reduce the power consumption of the idle GPIO port.
In this embodiment, the setting of the mode of the idle GPIO port to reduce the power consumption corresponding to the idle GPIO port includes:
setting the mode of an over-hanging GPIO port in the idle GPIO port and/or a GPIO port with an external pull-up condition as a pull-up input according to a circuit diagram corresponding to the idle GPIO port; and/or the presence of a gas in the gas,
and setting the mode of the GPIO port with the pull-down condition in the idle GPIO ports to be input low level according to the circuit diagram corresponding to the idle GPIO ports.
In this embodiment, the idle GPIO ports include floating GPIO ports, externally pulled-up GPIO ports, pull-down (grounded) GPIO ports, and the like. An idle GPIO port may subject the metering platform 100 to excessive current flow out and in, thereby increasing the power consumption of the metering platform 100. Therefore, by setting the mode of the idle GPIO ports according to the circuit diagram corresponding to the idle GPIO ports, the above-described effects can be avoided, thereby further reducing power consumption.
The metering platform 100 is in a sleep mode with extremely low power consumption when in a sleep cycle, and is in a state of being managed by the sleep mode and the working mode together when in a working cycle, so that peripheral equipment, a clock domain and a power domain are all managed, and the current power consumption is fundamentally reduced. Moreover, since the time corresponding to the sleep cycle is longer than the time corresponding to the work cycle, the metering platform 100 is in the sleep mode for a long time, and the use of current is further reduced. In this way, one battery can also take a long time, avoiding the need for the user to change the battery from time to time.
Referring to fig. 7, fig. 7 is a block diagram illustrating a low power consumption control apparatus 400 according to an embodiment of the present invention. The low power consumption control device 400 is applied to the metering platform 100, and a working period and a sleep period are preset in the metering platform 100. The low power consumption control apparatus 400 may include a determining module 410 and a control module 420.
The determining module 410 is configured to determine that the current time is in a working period or a sleep period, where a ratio of sleep time corresponding to the sleep period to total time is greater than a ratio of working time corresponding to the working period to total time.
The control module 420 is configured to enter a sleep mode when the current time is in the sleep period.
The control module 420 is further configured to enter an operating mode or a sleep mode according to an operating state of a peripheral device when the current time is in an operating cycle, where the peripheral device includes an internal device in the metering platform 100, and the metering device 200 and the communication device 300 connected to the metering platform 100.
In this embodiment, the metering platform 100 stores a power consumption management linked list, where the power consumption management linked list includes a plurality of peripheral identifiers, and a working state, a clock domain, and a power domain corresponding to each peripheral identifier. When the current time is in the working cycle, the manner of entering the working mode or the sleep mode according to the working state of the peripheral device by the control module 420 includes:
obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not;
when the working states of all the peripherals stop working, the clock source and the power domain corresponding to the peripherals in the power consumption management linked list are closed to enter a sleep mode;
when the working states of all the peripherals are not stop working, the peripheral with the working state of stop working is used as a target peripheral, and whether a target clock source and a target power domain corresponding to the target peripheral are used by other peripherals with the working states of stop working is judged according to the power consumption management linked list;
and turning off a target clock source and/or a target power domain which is not used by other peripherals with working states being working and corresponds to the target peripheral so as to enter a low-power-consumption working mode.
Further, the control module 420 is further configured to, when the mobile terminal is in the sleep mode in the working cycle, switch from the sleep mode to the working mode if a wake-up signal is received. The control module 420 is further configured to determine whether the working mode needs to be switched to the sleep mode again according to the power consumption management linked list after the working mode is switched to the working mode.
Further, the control module 420 is further configured to, when the sleep mode is in the working cycle or the sleep mode in the sleep cycle, switch from the sleep mode to the working mode if the manual wake-up signal is received until the preset recovery time is recovered to the mode corresponding to the cycle to which the current time belongs.
Further, the metering platform 100 includes at least one idle general input/output interface GPIO port, and the control module 420 is further configured to set a mode of the idle GPIO port to reduce power consumption of the idle GPIO port.
The control module 420 sets the mode of the idle GPIO port to reduce the power consumption corresponding to the idle GPIO port, and includes:
setting the mode of an over-hanging GPIO port in the idle GPIO port and/or a GPIO port with an external pull-up condition as a pull-up input according to a circuit diagram corresponding to the idle GPIO port; and/or the presence of a gas in the gas,
and setting the mode of the GPIO port with the pull-down condition in the idle GPIO ports to be input low level according to the circuit diagram corresponding to the idle GPIO ports.
Referring again to fig. 7, the method may further include a creating module 401. The creating module 401 is configured to pre-create the power consumption management linked list, and update the power consumption management linked list after receiving an update request sent by an external device.
In the present embodiment, the specific description of the low power consumption control apparatus 400 may refer to the above description of the low power consumption control method.
In summary, the embodiments of the present invention provide a low power consumption control method and apparatus. The method is applied to a metering platform, and the metering platform stores preset working cycles and sleep cycles, wherein the proportion of sleep time corresponding to the sleep cycles to total time is greater than the proportion of working time corresponding to the working cycles to total time. And judging whether the current time is in the working period or in the sleep period according to the current time. And if the current time corresponds to the sleep cycle, entering a sleep mode. And if the current time corresponds to the working period, entering a working mode or a dormant mode according to the working state of the peripheral. The peripheral comprises internal equipment in the metering platform, metering equipment and communication equipment which are connected with the metering platform. Through the mode, the metering platform is in the low-power-consumption sleep mode in the sleep period, and the low-power-consumption working mode and the sleep mode are jointly managed in the working period, so that the power consumption of the metering platform can be reduced.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A low power consumption control method is applied to a metering platform, a working period and a dormancy period are preset in the metering platform, a power consumption management linked list is stored in the metering platform and comprises a plurality of peripheral identifiers, and a working state, a clock domain and a power domain which correspond to each peripheral identifier, and the method comprises the following steps:
judging whether the current time is in a working period or a sleep period, wherein the proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time;
entering a sleep mode when the current time is in a sleep period;
when the current time is in a working cycle, entering a working mode or a sleep mode according to the working state of an external device, wherein the external device comprises internal equipment in a metering platform, metering equipment and communication equipment which are connected with the metering platform, and when the current time is in the working cycle, entering the working mode or the sleep mode according to the working state of the external device, the method comprises the following steps:
obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not;
when the working states of all the peripherals stop working, the clock source and the power domain corresponding to the peripherals in the power consumption management linked list are closed to enter a sleep mode;
when the working states of all the peripherals are not stop working, the peripheral with the working state of stop working is used as a target peripheral, and whether a target clock source and a target power domain corresponding to the target peripheral are used by other peripherals with the working states of stop working is judged according to the power consumption management linked list;
and turning off a target clock source and/or a target power domain which is not used by other peripherals with working states being working and corresponds to the target peripheral so as to enter a low-power-consumption working mode.
2. The method of claim 1, further comprising:
when the mobile terminal is in a sleep mode in a working cycle, if a wake-up signal is received, switching from the sleep mode to the working mode;
and after the working mode is switched, judging whether the working mode needs to be switched to the dormant mode again according to the power consumption management linked list.
3. The method according to any one of claims 1-2, further comprising:
when the sleep mode is in the sleep mode under the working period or the sleep mode under the sleep period, if the manual wake-up signal is received, the sleep mode is switched to the working mode until the sleep mode is recovered to the mode corresponding to the period to which the current time belongs within the preset recovery time.
4. The method of claim 1, further comprising:
and pre-establishing the power consumption management linked list, and updating the power consumption management linked list after receiving an updating request sent by a peripheral.
5. The method of claim 1, wherein the metering platform comprises at least one idle general purpose input output interface (GPIO) port, and wherein the method further comprises:
setting the mode of an idle GPIO port to reduce the power consumption of the idle GPIO port;
the mode to idle GPIO mouth sets up to the mode that reduces the corresponding power consumption of idle GPIO mouth includes:
setting the mode of an over-hanging GPIO port in the idle GPIO port and/or a GPIO port with an external pull-up condition as a pull-up input according to a circuit diagram corresponding to the idle GPIO port; and/or the presence of a gas in the gas,
and setting the mode of the GPIO port with the pull-down condition in the idle GPIO ports to be input low level according to the circuit diagram corresponding to the idle GPIO ports.
6. The utility model provides a low-power consumption controlling means, its characterized in that is applied to the measurement platform, the measurement platform is middle to store has a power consumption management linked list, the power consumption management linked list includes a plurality of peripheral hardware identifications and the operating condition, clock domain and the power domain that correspond with every peripheral hardware identification, preset duty cycle and dormancy cycle in the measurement platform, the device includes:
the judging module is used for judging that the current time is in a working period or a sleep period, wherein the proportion of the sleep time corresponding to the sleep period to the total time is greater than the proportion of the working time corresponding to the working period to the total time;
the control module is used for entering a sleep mode when the current time is in a sleep cycle;
the control module is further configured to enter a working mode or a sleep mode according to a working state of an external device when the current time is in a working cycle, where the external device includes an internal device in a metering platform, and a metering device and a communication device connected to the metering platform, and when the current time is in the working cycle, the mode of entering the working mode or the sleep mode according to the working state of the external device includes:
obtaining the working state of each peripheral according to the power consumption management linked list, and judging whether the working states of all the peripherals are stop working or not;
when the working states of all the peripherals stop working, the clock source and the power domain corresponding to the peripherals in the power consumption management linked list are closed to enter a sleep mode;
when the working states of all the peripherals are not stop working, the peripheral with the working state of stop working is used as a target peripheral, and whether a target clock source and a target power domain corresponding to the target peripheral are used by other peripherals with the working states of stop working is judged according to the power consumption management linked list;
and turning off a target clock source and/or a target power domain which is not used by other peripherals with working states being working and corresponds to the target peripheral so as to enter a low-power-consumption working mode.
7. The apparatus of claim 6,
the control module is further configured to switch from the sleep mode to the working mode if a wake-up signal is received while the control module is in the sleep mode in the working cycle;
and the control module is also used for judging whether the working mode needs to be switched to the dormant mode again according to the power consumption management linked list after the working mode is switched to the working mode.
8. The apparatus according to any one of claims 6 to 7,
the control module is further configured to, when the sleep mode is in the working cycle or the sleep mode in the sleep cycle, switch from the sleep mode to the working mode if the manual wake-up signal is received until the sleep mode is restored to the mode corresponding to the cycle to which the current time belongs at the preset restoration time.
CN201810474904.6A 2018-05-17 2018-05-17 Low-power consumption control method and device Active CN108762468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810474904.6A CN108762468B (en) 2018-05-17 2018-05-17 Low-power consumption control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810474904.6A CN108762468B (en) 2018-05-17 2018-05-17 Low-power consumption control method and device

Publications (2)

Publication Number Publication Date
CN108762468A CN108762468A (en) 2018-11-06
CN108762468B true CN108762468B (en) 2021-01-29

Family

ID=64006917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810474904.6A Active CN108762468B (en) 2018-05-17 2018-05-17 Low-power consumption control method and device

Country Status (1)

Country Link
CN (1) CN108762468B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139344A (en) * 2019-01-28 2019-08-16 博频云彩(北京)科技有限公司 One kind being based on time quasi synchronous distributed network Poewr control method
CN111722559B (en) * 2020-05-18 2022-03-08 四川九洲电器集团有限责任公司 Low-power-consumption processing method based on DSP and FPGA architecture

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012133687A (en) * 2010-12-24 2012-07-12 Toshiba Corp Power consumption control method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257665B (en) * 2007-02-28 2012-06-13 株式会社日立制作所 Terminal control device and method
CN101296137B (en) * 2007-08-28 2011-05-25 深圳市宏电技术股份有限公司 Method for implementing controllable timing work of data terminal unit
CN101599214B (en) * 2009-07-13 2011-06-15 利尔达科技有限公司 Networking low power consumption wireless meter reading method
CN102427600A (en) * 2009-11-06 2012-04-25 中国电信股份有限公司 Method for controlling state of terminal equipment and terminal equipment
CN101841187B (en) * 2010-05-28 2012-05-23 威胜集团有限公司 Power management power supply system for electronic electric energy meter
CN201674277U (en) * 2010-05-28 2010-12-15 威胜集团有限公司 Power management power supply module for electronic electric energy meter
CN102654532B (en) * 2011-05-31 2014-09-03 万高(杭州)科技有限公司 Method for reducing power consumption of electric energy metering chip
CN204314706U (en) * 2014-12-13 2015-05-06 重庆市山城燃气设备有限公司 Separate type Internet of Things diaphragm gas meter remote control structure
CN106130741A (en) * 2016-07-15 2016-11-16 重庆市山城燃气设备有限公司 Wireless frequency expansion intelligent domestic measuring instrument, remote transmitting gas meter system and control method
CN107689149A (en) * 2016-11-17 2018-02-13 深圳市华奥通通信技术有限公司 A kind of meter register method and kilowatt meter reading-out system
CN107105488A (en) * 2017-06-26 2017-08-29 东华理工大学 A kind of meter reading repeater control method and meter reading repeater based on LORA communications
CN107820308B (en) * 2017-11-24 2021-04-13 成都声立德克技术有限公司 Data communication method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012133687A (en) * 2010-12-24 2012-07-12 Toshiba Corp Power consumption control method

Also Published As

Publication number Publication date
CN108762468A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN103218033B (en) A kind of method and device waking hardware device up
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN107407956B (en) Method and system for coordinating operating states among multiple SOCs within a computing device
TW201608371A (en) Managing applications for power conservation
US10007314B2 (en) Power signal interface
KR101771674B1 (en) External device power control during low power sleep mode without central processing intervention
CN108762468B (en) Low-power consumption control method and device
KR102151178B1 (en) Serial communication apparatus and method thereof
CN109582371B (en) Low-power-consumption awakening method and device
CN205300879U (en) Detection alarm system of leaking
CN107515668B (en) Control method and device
CN109600765B (en) Dormancy and awakening control method and device, DU (data Unit), CU (Central Unit) and storage medium
CN109788536A (en) Sensor control method, sensor control, sensor and storage medium
TWI549449B (en) Maintenance method for network connection and computer system
CN106557362B (en) Task migration method and system applied to intelligent robot
CN105183509A (en) Apparatus and method for realizing shutdown of system power after soft-off
CN108132621A (en) Intelligent management platform based on domestic software and hardware
CN111246549B (en) Method and device for providing node dormancy and wakeup time
CN104205001A (en) Thermal sensor dynamic shutdown
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN114301857A (en) Water meter communication method and device based on Internet of things
CN208016579U (en) A kind of Intelligent irrigation system of remote-controllable
CN110908493A (en) Power supply control method and device
CN214474768U (en) Intelligent telemetering terminal
CN110691135A (en) Equipment data uploading method and system, Internet of things module and storage medium

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
CP02 Change in the address of a patent holder

Address after: 3rd Floor, Building 6, Guangqian Industrial Zone, Longzhu 3rd Road, Longzhu 3rd Road, Longguang Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province, 518000

Patentee after: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 518000 6th floor, building 17, Guangqian Industrial Zone, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

CP02 Change in the address of a patent holder