CN114257474B - Power utilization control method and device for intelligent gateway, computer equipment and storage medium - Google Patents

Power utilization control method and device for intelligent gateway, computer equipment and storage medium Download PDF

Info

Publication number
CN114257474B
CN114257474B CN202111305380.6A CN202111305380A CN114257474B CN 114257474 B CN114257474 B CN 114257474B CN 202111305380 A CN202111305380 A CN 202111305380A CN 114257474 B CN114257474 B CN 114257474B
Authority
CN
China
Prior art keywords
wake
intelligent gateway
mode
sleep mode
information
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
CN202111305380.6A
Other languages
Chinese (zh)
Other versions
CN114257474A (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.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Grid Technology Guangdong 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 China Southern Power Grid Digital Grid Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority to CN202111305380.6A priority Critical patent/CN114257474B/en
Publication of CN114257474A publication Critical patent/CN114257474A/en
Application granted granted Critical
Publication of CN114257474B publication Critical patent/CN114257474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00004Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by the power network being locally controlled
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00032Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for
    • 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
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • 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
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems
    • Y04S20/242Home appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a power utilization control method, a device, computer equipment and a storage medium of an intelligent gateway, which are applied to the intelligent gateway adopting solar power supply and/or induction power supply, wherein the method comprises the following steps: acquiring the number of tasks corresponding to the tasks to be processed in the task execution queue; if the number of the tasks is smaller than a preset number threshold, entering an idle mode; when the duration of the idle mode reaches a preset duration, switching the idle mode into a sleep mode; the power consumption corresponding to the sleep mode is smaller than that corresponding to the idle mode, so that when the tasks to be processed are fewer, the overall power consumption of the intelligent gateway can be effectively reduced by switching different modes, more electric quantity is distributed to the intelligent terminal, and the application range of the intelligent terminal is enlarged.

Description

Power utilization control method and device for intelligent gateway, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a power consumption control method and apparatus for an intelligent gateway, a computer device, and a storage medium.
Background
The intelligent gateway can carry out power supply management on the intelligent terminal, collect information returned by each sensor, and realize on-line monitoring of power transmission equipment and a power transmission line, for example, by collecting information such as image video, tensile force, temperature and the like to the sensors. However, in an outdoor scenario, the amount of electricity that can be used by the intelligent gateway is limited, and the intelligent gateway often has higher energy consumption, so that the intelligent gateway has a certain requirement on the line load current, and the higher energy consumption limits the use of other intelligent terminals in the outdoor scenario.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a power consumption control method, apparatus, computer device, and storage medium for an intelligent gateway.
An electricity utilization control method of an intelligent gateway is applied to the intelligent gateway adopting solar power supply and/or induction power supply, and the method comprises the following steps:
acquiring the number of tasks corresponding to the tasks to be processed in the task execution queue;
if the number of the tasks is smaller than a preset number threshold, entering an idle mode;
when the duration of the idle mode reaches a preset duration, switching the idle mode into a sleep mode; and the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode.
In one embodiment, the method further comprises:
when the current wake-up information is detected, determining whether the current wake-up information is matched with preset wake-up information or not;
if yes, the sleep mode is switched to a working mode, and the task to be processed in the task execution queue is processed;
if not, executing the power-on reset operation.
In one embodiment, the wake-up information includes a wake-up time, and the determining whether the current wake-up information matches the preset wake-up information includes:
if the current wake-up time is the same as the preset wake-up time, determining that the current wake-up information is matched with the preset wake-up information.
In one embodiment, the switching the sleep mode to the working mode includes:
jumping to a prestored wake-up entry address;
and starting a wake-up operation process corresponding to the wake-up entry address to restore the context data pre-stored in the synchronous dynamic random access memory.
In one embodiment, when the duration of the idle mode reaches a preset duration, switching the idle mode to the sleep mode includes:
when the duration of the idle mode reaches a preset duration, determining wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode;
determining a wake-up entry address corresponding to a wake-up operation process and context data corresponding to a current task to be processed;
and after the awakening information, the awakening entry address and the context data are stored, controlling the processor of the intelligent gateway to enter a sleep mode.
In one embodiment, when the duration of the idle mode reaches a preset duration, entering a sleep mode further includes:
and determining external equipment electrically connected with the intelligent network, and controlling the external equipment to enter a sleep mode.
In one embodiment, the method further comprises:
in the idle mode, updating the task number according to a preset time interval;
and if the current task number is greater than or equal to the number threshold, switching the idle mode into a working mode, and processing the task to be processed in the task execution queue.
An electricity consumption control device of an intelligent gateway, which is applied to the intelligent gateway adopting solar power supply and/or induction power supply, comprising:
the task number acquisition module is used for acquiring the task number corresponding to the task to be processed in the task execution queue;
the idle mode configuration module is used for entering an idle mode if the number of the tasks is smaller than a preset number threshold;
the sleep mode configuration module is used for switching the idle mode into a sleep mode when the duration time of the idle mode reaches a preset duration time; and the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any one of the methods described above when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as claimed in any one of the preceding claims.
The power consumption control method, the device, the computer equipment and the storage medium of the intelligent gateway are applied to the intelligent gateway adopting solar power supply and/or induction power supply, and the task quantity corresponding to the tasks to be processed in the task execution queue is obtained; if the number of tasks is smaller than a preset number threshold, entering an idle mode; when the duration of the idle mode reaches the preset duration, the idle mode is switched to the sleep mode, wherein the power consumption corresponding to the sleep mode is smaller than that corresponding to the idle mode, and when the tasks to be processed are fewer, the whole power consumption of the intelligent gateway can be effectively reduced by switching different modes, more electric quantity is distributed to the intelligent terminal, and the application range of the intelligent terminal is enlarged.
Drawings
FIG. 1 is an application environment diagram of a power utilization control method of an intelligent gateway in one embodiment;
FIG. 2 is a flow chart of a method for controlling power consumption of an intelligent gateway according to an embodiment;
FIG. 3 is a flow diagram of the steps for configuring an idle mode in one embodiment;
FIG. 4 is a flow chart illustrating the steps for configuring sleep mode in one embodiment;
FIG. 5 is a flow chart illustrating steps for configuring an operational mode in one embodiment;
FIG. 6 is a block diagram of an intelligent gateway power utilization control device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The power utilization control method of the intelligent gateway provided by the application can be applied to an application environment shown in figure 1. In the application environment, the intelligent gateway 102 can communicate with the intelligent terminal 104 through a network, the intelligent gateway 102 can be deployed in an outdoor environment, and electric energy is obtained by adopting a solar power supply and/or induction power supply mode, and the electric energy obtained by the intelligent gateway 102 can be used for the work of the intelligent gateway 102; alternatively, the intelligent gateway 102 may be electrically connected to the intelligent terminal 104, and the intelligent gateway 102 may distribute the acquired electric energy to the intelligent terminal 104.
The intelligent terminal 104 may be a monitoring device, which may monitor and collect data on the transmission line and/or the grid device. In an example, the intelligent terminal 104 may be one or more sensors with different service functions, such as a sensor for collecting image data, video data, tension data, temperature data, wire galloping data, etc., which may include at least one of the following: the intelligent spacer comprises camera equipment, a microclimate sensor, a tower inclination sensor, a tension sensor, an inclination sensor, a wire clamp temperature sensor, a wire galloping sensor and an intelligent spacer. The intelligent terminal 104 may also include at least one of a wired sensor and a wireless sensor.
The intelligent gateway 102 may send an instruction to the intelligent terminal 104, collect data of each intelligent terminal 104, and upload the data to the platform of the internet of things in a centralized manner, where in practical application, the intelligent gateway 102 may be implemented by an independent server or a server cluster formed by a plurality of servers, or may be a system of a terminal and a server.
In one embodiment, as shown in fig. 2, a method for controlling power consumption of an intelligent gateway is provided, and the method is applied to the intelligent gateway 104 in fig. 1 for illustration, and may include the following steps:
step 201, obtaining the number of tasks corresponding to the tasks to be processed in the task execution queue.
Specifically, after acquiring the task to be processed, the intelligent gateway may add the task to be processed to the task execution queue. The task to be processed can be a task generated after the intelligent gateway responds to the request of the intelligent terminal, such as a sensing data acquisition task, an electric energy distribution task and the like; the tasks generated in the data processing process in the intelligent gateway can be also used, for example, tasks such as data analysis on collected sensing data, uploading analysis results to an internet of things platform and the like are performed.
In practical application, the intelligent gateway can obtain the number of tasks corresponding to the tasks to be processed in the task execution queue. Specifically, for example, the intelligent gateway may acquire the number of tasks at preset time intervals; or, the time for acquiring the number of tasks may be determined according to the current electric quantity of the intelligent gateway, for example, when the electric quantity is higher than a first threshold value, the number of tasks may be acquired according to a first preset frequency, and when the electric quantity is lower than a second threshold value, the number of tasks is acquired according to a second preset frequency, where the first threshold value is greater than the second threshold value, and the first preset frequency is greater than the second preset frequency.
Step 202, if the number of tasks is smaller than a preset number threshold, entering an idle mode.
As an example, the idle mode may be a mode in which the overall power consumption of the intelligent gateway is lower than the preset power consumption, and in the idle mode, the intelligent gateway may not process the task to be processed in the task execution queue, or may process the task with low power consumption.
After determining the number of tasks, the intelligent gateway may compare the number of tasks to a preset number threshold. If the number of the tasks is greater than or equal to the number threshold, the intelligent gateway can continue to process the tasks to be processed in the task execution queue according to the current mode; if the number of tasks is less than the number threshold, an idle mode may be entered.
In a specific implementation, the number threshold may be preset by a user, for example, the number threshold may be 1, and the idle mode may be entered when the number of tasks is 0. Or, the number threshold may be determined based on the current electric quantity of the intelligent gateway, for example, a corresponding relationship between the number threshold and the current electric quantity of the intelligent gateway may be preset, and then the corresponding number threshold may be queried based on the current electric quantity, so that the intelligent gateway may determine whether to enter the idle mode based on different electric quantities.
And 203, switching the idle mode into a sleep mode when the duration of the idle mode reaches a preset duration.
The power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode. In the sleep mode, the intelligent gateway can not process any task, or can not respond to information or instructions from the intelligent terminal or the platform of the internet of things, the intelligent gateway is in the working state with the lowest power consumption at the moment, in the sleep mode, the processor core and the programmable logic of the intelligent gateway hardly consume energy, and only part of the internal controller and the wake-up logic of the gateway work normally.
Specifically, after entering the idle mode, the intelligent gateway may record the duration of the idle mode, and when the duration of the idle mode reaches a preset duration, the current idle mode of the intelligent gateway may be switched to a sleep mode with lower power consumption. Specifically, the intelligent gateway is switched to the sleep mode, so that the system context data can be stored when the system enters the sleep mode by suspending the system at an application layer.
In this embodiment, an intelligent gateway powered by solar energy or powered by induction is adopted, so that the number of tasks corresponding to tasks to be processed in a task execution queue can be obtained, if the number of tasks is smaller than a preset number threshold, an idle mode is entered, and when the duration of the idle mode reaches a preset duration, the idle mode is switched to a sleep mode, so that when the number of tasks to be processed is small, the overall power consumption of the intelligent gateway can be effectively reduced by switching different modes, more electric quantity is distributed to the intelligent terminal, and the application range of the intelligent terminal is enlarged.
In one embodiment, the method may further comprise the steps of:
when the current wake-up information is detected, determining whether the current wake-up information is matched with preset wake-up information or not; if yes, the sleep mode is switched to a working mode, and the task to be processed in the task execution queue is processed; if not, executing the power-on reset operation.
As an example, the wake-up information may also be referred to as an interrupt source, and may be information for triggering the intelligent gateway to switch from sleep mode to other modes.
In a specific implementation, when the intelligent gateway is in the sleep mode and detects the current wake-up information, it may be determined whether the current wake-up information matches with the preset wake-up information. If yes, the sleep mode can be switched to the working mode, and the task to be processed in the task execution queue is started to be processed; if not, executing the power-on reset operation, and entering a normal power-on reset starting process.
In this embodiment, whether to switch the sleep mode to the working mode can be determined by determining whether the current wake-up information is matched with the preset wake-up information, so that the accuracy of mode switching is improved, and the consumption of redundant electric quantity is avoided.
In one embodiment, the wake-up information may include a wake-up time, and the determining whether the current wake-up information matches the preset wake-up information may include the following steps:
if the current wake-up time is the same as the preset wake-up time, determining that the current wake-up information is matched with the preset wake-up information.
In practical applications, the wake-up information may be a wake-up time, for example, wake-up when a set fixed interval time arrives. When the current wake-up information is detected, the intelligent gateway can judge whether the wake-up time in the current wake-up information is the same as the preset wake-up time, and if the current wake-up time is the same as the preset wake-up time, the intelligent gateway can determine that the current wake-up information is matched with the preset wake-up information, and then can switch the sleep mode into the working mode.
In the embodiment, by comparing the wake-up time, whether the wake-up information is matched or not can be quickly and accurately determined, excessive calculation is not needed, and the power consumption of the intelligent gateway is effectively reduced.
In one embodiment, when the duration of the idle mode reaches a preset duration, the idle mode is switched to the sleep mode, which may include the following steps:
when the duration of the idle mode reaches a preset duration, determining wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode; determining a wake-up entry address corresponding to a wake-up operation process and context data corresponding to a current task to be processed; and after the awakening information, the awakening entry address and the context data are stored, controlling the processor of the intelligent gateway to enter a sleep mode.
When the intelligent gateway detects that the duration of the idle mode reaches the preset duration, the intelligent gateway can determine wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode, and the interrupt source is set. After the wake-up information is preset, the intelligent gateway can determine a wake-up entry corresponding to the wake-up operation process and context data corresponding to the current task to be processed. After the wake-up information, the wake-up entry address and the context data are stored in the preset module, the processor of the intelligent gateway can be controlled to enter the sleep mode. Specifically, for example, the context data may be saved to the synchronous dynamic random access memory, and the system clock is turned off to control the processor of the intelligent gateway to enter the sleep mode.
In this embodiment, when the duration of the idle mode reaches a preset duration, wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode is determined, wake-up entry addresses corresponding to wake-up operation processes and context data corresponding to a task to be processed currently are determined, after the wake-up information, the wake-up entry addresses and the context data are stored, a processor of the intelligent gateway is controlled to enter the sleep mode, a basis can be provided for subsequent rapid data recovery and entry into the working mode, and electricity consumption caused by mode switching is effectively reduced.
In one embodiment, the switching the sleep mode to the working mode may include the following steps:
jumping to a prestored wake-up entry address; and starting a wake-up operation process corresponding to the wake-up entry address to restore the context data pre-stored in the synchronous dynamic random access memory.
As an example, the wake entry address may be a preset link address, and the wake entry address may be an address in the local device or a link address on the server. The page corresponding to the link address may be deployed with a wake-up operation process. The context data may be data of the intelligent gateway before entering the sleep mode, such as data processed by the intelligent gateway and data to be processed when the intelligent gateway is about to enter the sleep mode.
In a specific implementation, if it is determined that the current wake-up information matches the preset wake-up information, the method may jump to a wake-up entry address stored in the memory, and start a wake-up operation process corresponding to the wake-up entry address, and restore context data stored in advance in a synchronous dynamic random access memory (synchronous dynamic random-access memory, SDRAM) through the wake-up operation process.
In this embodiment, by jumping to the pre-stored wake-up entry address, starting the wake-up operation process corresponding to the wake-up entry address, and restoring the context data pre-stored in the synchronous dynamic random access memory, the data restoration can be quickly performed, and the sleep mode is switched to the working mode.
In one embodiment, when the duration of the idle mode reaches a preset duration, the method enters a sleep mode, and further includes the following steps:
and determining external equipment electrically connected with the intelligent network, and controlling the external equipment to enter a sleep mode.
In a specific implementation, when the duration of the idle mode is detected to reach the preset duration, the intelligent gateway may further determine an external device electrically connected to the intelligent gateway, where the external device electrically connected to the intelligent network may be powered by the intelligent gateway, and the external device may include an intelligent terminal. After determining the electrically connected external device, the intelligent gateway may send a sleep command to the external device, and may control the external device to enter a sleep mode.
In this embodiment, by determining the external device electrically connected to the intelligent network and controlling the external device to enter the sleep mode, the external device and the intelligent gateway can enter the sleep mode together, and when the intelligent gateway does not perform data processing, the power consumption of the external device is reduced, so that the overall power consumption is effectively reduced.
In one embodiment, the method may further comprise:
in the idle mode, updating the task number according to a preset time interval; and if the current task number is greater than or equal to the number threshold, switching the idle mode into a working mode, and processing the task to be processed in the task execution queue.
As an example, the operation mode may be a mode in which the intelligent gateway processes tasks in a normal data processing manner, for example, a mode in which the intelligent gateway operates according to rated parameters of the intelligent gateway.
In the idle mode, the intelligent gateway can update the number of tasks corresponding to the tasks to be processed in the task execution queue according to a preset time interval, and if the current number of tasks is greater than or equal to a number threshold, the idle mode can be switched to a working mode to process the tasks to be processed in the task execution queue.
In this embodiment, when the current number of tasks is greater than or equal to the number threshold, the idle mode may be switched to the working mode, and the tasks to be processed in the task execution queue are processed, so that the power consumption of the intelligent gateway is reduced, and meanwhile, task processing may be performed in time, thereby improving the processing efficiency of the intelligent gateway.
In order that those skilled in the art may better understand the above steps, an embodiment of the present application will be described below by way of an example, but it should be understood that the embodiment of the present application is not limited thereto.
As shown in fig. 3, after the system on the intelligent gateway starts to initialize, the system may execute a preset process, call a rest_init () function in a kernel initialization function init/main.c through the preset process, and after the init process is activated in the rest_init () function, the init process may call a corresponding system initialization program to complete initialization for the user space. During the initialization process, the preset process may execute the cpu_do_idle () function, and enter an idle process state. Specifically, the preset process may also be called a number 0 process or an idle process, where the process priority of the idle process is lower, and when no task to be processed is in the task execution queue of the system or the number of tasks is less than the number threshold, the idle process may be executed. The idle mode switching can be realized in a cpu_do_idle () function through the preset process, and the idle mode is entered when no task is executable temporarily, and the idle mode can be exited when the task execution queue is non-empty, and a task scheduling mode combined with DVS (dynamic voltage scaling ) technology is adopted to respond to a task request.
When the duration of the idle mode reaches a preset duration and the latter is greater than a preset threshold, as shown in fig. 4, the system may send a sleep instruction requesting to switch to the sleep mode to the kernel of the intelligent gateway, after receiving the sleep instruction, the kernel may call a message function to send a sleep notification to the external device, control the external device to enter the sleep mode, and determine whether the power consumption management message function returns a message indicating success to the kernel, if not, it may determine that the process of entering the sleep mode by the external device is wrong, and return a step of calling the message function to send the sleep notification to the external device. If so, the setting parameters of the external device register can be saved, the interrupt source of the current allowed wake-up sleep state of the system (namely, the wake-up information is preset), the contents of the general register and the coprocessor of the CPU are saved, the SDRAM is set to be in a self-refresh mode, and then the sleep mode can be entered. In one example, a GPIO (General purpose input/output) interrupt or RTC (Real Time Clock) interrupt may be used when setting the interrupt source.
As shown in fig. 5, when the intelligent gateway receives the interrupt source in the sleep mode, the intelligent gateway may start to perform sleep reset, and first, the intelligent gateway may determine whether the interrupt source currently received is a preset interrupt source capable of waking up in the sleep mode, and determine whether the interrupt source is currently in the sleep wake-up start process.
If not, the current interrupt source can be determined to be used for triggering the intelligent gateway to carry out the process of power-off reset and re-power-on. If yes, the user can jump to a preset wake-up entry address, start a corresponding wake-up operation process and carry out the scene data, the processor and the context data of the peripheral registers which are saved when the user can resume dormancy. And the message function can be called to wake up the external equipment, and whether the message function returns a success indication is judged, if not, the wake-up error is determined; if so, determining that the intelligent gateway has restored to the environment before entering the sleep mode. In practical application, the process of switching the intelligent gateway from the sleep mode to the working mode can be similar to the first power-on starting process, but in the process of switching the intelligent gateway from the sleep mode to the working mode, the intelligent gateway also needs to make a judgment on the starting process, and the current starting process is judged to be the process of waking from the sleep mode or the process of resetting and re-powering the system.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 2-5 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 6, there is provided a power consumption control device of an intelligent gateway, which can be applied to an intelligent gateway using solar power supply and/or induction power supply, the device comprising:
the task number acquisition module 601 is configured to acquire the number of tasks corresponding to the task to be processed in the task execution queue;
an idle mode configuration module 602, configured to enter an idle mode if the number of tasks is less than a preset number threshold;
a sleep mode configuration module 603, configured to switch the idle mode to a sleep mode when the duration of the idle mode reaches a preset duration; and the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode.
In one embodiment, further comprising:
the wake-up information comparison module is used for determining whether the current wake-up information is matched with preset wake-up information or not when the current wake-up information is detected; if yes, a working mode configuration module is called; if not, calling a power-on module;
the working mode configuration module is used for switching the sleep mode into a working mode and processing the task to be processed in the task execution queue;
and the power-on module is used for executing power-on reset operation.
In one embodiment, the wake-up information comparison module is specifically configured to:
if the current wake-up time is the same as the preset wake-up time, determining that the current wake-up information is matched with the preset wake-up information.
In one embodiment, the operation mode configuration module is specifically configured to:
jumping to a prestored wake-up entry address;
and starting a wake-up operation process corresponding to the wake-up entry address to restore the context data pre-stored in the synchronous dynamic random access memory.
In one embodiment, the sleep mode configuration module 603 includes:
the wake-up information determining submodule is used for determining wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode when the duration time of the idle mode reaches a preset duration time;
the context data determining submodule is used for determining a wake-up entry address corresponding to a wake-up operation process and context data corresponding to a current task to be processed;
and the dormancy sub-module is used for controlling the processor of the intelligent gateway to enter a dormancy mode after the awakening information, the awakening entry address and the context data are stored.
In one embodiment, the sleep mode configuration module 603 further includes:
and the peripheral dormancy sub-module is used for determining external equipment electrically connected with the intelligent network and controlling the external equipment to enter a dormancy mode.
In one embodiment, further comprising:
the task number updating module is used for updating the task number according to a preset time interval in an idle mode;
and the working mode switching module is used for switching the idle mode into the working mode and processing the task to be processed in the task execution queue if the current task number is greater than or equal to the number threshold.
The specific limitation of the power utilization control device of an intelligent gateway can be referred to the limitation of the power utilization control method of an intelligent gateway, and is not described herein. The modules in the electricity utilization control device of the intelligent gateway can be realized in whole or in part through software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing task data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for controlling power usage of an intelligent gateway.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring the number of tasks corresponding to the tasks to be processed in the task execution queue;
if the number of the tasks is smaller than a preset number threshold, entering an idle mode;
when the duration of the idle mode reaches a preset duration, switching the idle mode into a sleep mode; and the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode.
In one embodiment, the steps of the other embodiments described above are also implemented when the processor executes a computer program.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring the number of tasks corresponding to the tasks to be processed in the task execution queue;
if the number of the tasks is smaller than a preset number threshold, entering an idle mode;
when the duration of the idle mode reaches a preset duration, switching the idle mode into a sleep mode; and the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode.
In one embodiment, the computer program, when executed by a processor, also implements the steps of the other embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. An electricity utilization control method of an intelligent gateway, which is characterized by being applied to the intelligent gateway adopting solar power supply and/or induction power supply, comprising the following steps:
determining the time for acquiring the number of tasks according to the current electric quantity of the intelligent gateway, and acquiring the number of tasks corresponding to the tasks to be processed in a task execution queue according to the time;
if the number of the tasks is smaller than a preset number threshold, entering an idle mode;
when the duration of the idle mode reaches a preset duration, determining an external device electrically connected with the intelligent network, controlling the external device to enter a sleep mode, and,
determining wake-up information for triggering the intelligent gateway to switch from a sleep mode to a working mode;
determining a wake-up entry address corresponding to a wake-up operation process and context data corresponding to a current task to be processed;
after the awakening information, the awakening entry address and the context data are stored, controlling a processor of the intelligent gateway to enter a sleep mode; the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode;
jumping to the wake-up entry address under the condition that the current wake-up information is matched with the wake-up information for triggering the intelligent gateway to switch from the sleep mode to the working mode;
and starting the awakening operation process corresponding to the awakening entry address, and restoring the pre-stored context data through the awakening operation process so as to switch the sleep mode into the working mode and process the task to be processed in the task execution queue.
2. The method as recited in claim 1, further comprising:
and executing power-on reset operation under the condition that the current wake-up information is not matched with the wake-up information used for triggering the intelligent gateway to switch from the sleep mode to the working mode.
3. The method of claim 2, wherein the wake-up information comprises a wake-up time, the method further comprising:
if the wake-up time in the current wake-up information is the same as the wake-up time in the wake-up information used for triggering the intelligent gateway to switch from the sleep mode to the working mode, determining that the current wake-up information is matched with the wake-up information used for triggering the intelligent gateway to switch from the sleep mode to the working mode.
4. The method of claim 2, wherein the context data is pre-stored in a synchronous dynamic random access memory.
5. The method as recited in claim 1, further comprising:
in the idle mode, updating the task number according to a preset time interval;
and if the current task number is greater than or equal to the number threshold, switching the idle mode into a working mode, and processing the task to be processed in the task execution queue.
6. The method of claim 5, wherein the operating mode is a mode that operates according to rated parameters of the intelligent gateway.
7. The method of claim 1, wherein the context data is stored in synchronous dynamic random access memory.
8. An electricity consumption control device of an intelligent gateway, which is applied to the intelligent gateway adopting solar power supply and/or induction power supply, and comprises:
the task number acquisition module is used for determining the time for acquiring the task number according to the current electric quantity of the intelligent gateway and acquiring the task number corresponding to the task to be processed in the task execution queue according to the time;
the idle mode configuration module is used for entering an idle mode if the number of the tasks is smaller than a preset number threshold;
the sleep mode configuration module is used for determining external equipment which is electrically connected with the intelligent network when the duration time of the idle mode reaches a preset duration time, controlling the external equipment to enter a sleep mode, and determining wake-up information which is used for triggering the intelligent gateway to switch from the sleep mode to a working mode; determining a wake-up entry address corresponding to a wake-up operation process and context data corresponding to a current task to be processed; after the awakening information, the awakening entry address and the context data are stored, controlling a processor of the intelligent gateway to enter a sleep mode; the power consumption corresponding to the sleep mode is smaller than the power consumption corresponding to the idle mode;
the working mode configuration module is used for jumping to the awakening entry address under the condition that the current awakening information is matched with the awakening information used for triggering the intelligent gateway to switch from the sleep mode to the working mode; and starting the awakening operation process corresponding to the awakening entry address, and restoring the pre-stored context data through the awakening operation process so as to switch the sleep mode into the working mode and process the task to be processed in the task execution queue.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
CN202111305380.6A 2021-11-05 2021-11-05 Power utilization control method and device for intelligent gateway, computer equipment and storage medium Active CN114257474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111305380.6A CN114257474B (en) 2021-11-05 2021-11-05 Power utilization control method and device for intelligent gateway, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111305380.6A CN114257474B (en) 2021-11-05 2021-11-05 Power utilization control method and device for intelligent gateway, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114257474A CN114257474A (en) 2022-03-29
CN114257474B true CN114257474B (en) 2023-09-26

Family

ID=80790501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111305380.6A Active CN114257474B (en) 2021-11-05 2021-11-05 Power utilization control method and device for intelligent gateway, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114257474B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116736964B (en) * 2023-08-09 2023-10-20 南京启见半导体科技有限公司 Self-adaptive control method for power consumption of memory system, electronic equipment and medium
CN117194172B (en) * 2023-10-11 2024-03-22 珠海世宁达科技有限公司 Network card power supply control method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379166A (en) * 2012-04-28 2013-10-30 孙羽 Wireless sensing control network system based on Internet of Things
CN104469915A (en) * 2014-12-24 2015-03-25 北京极科极客科技有限公司 Intelligent sleep method and device for wireless router
CN106879007A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Method and device for controlling working state of wireless equipment
CN108430087A (en) * 2018-03-26 2018-08-21 新华三技术有限公司 Power consumption control method, device and router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032889B2 (en) * 2006-04-05 2011-10-04 Maxwell Technologies, Inc. Methods and apparatus for managing and controlling power consumption and heat generation in computer systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379166A (en) * 2012-04-28 2013-10-30 孙羽 Wireless sensing control network system based on Internet of Things
CN104469915A (en) * 2014-12-24 2015-03-25 北京极科极客科技有限公司 Intelligent sleep method and device for wireless router
CN106879007A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Method and device for controlling working state of wireless equipment
CN108430087A (en) * 2018-03-26 2018-08-21 新华三技术有限公司 Power consumption control method, device and router

Also Published As

Publication number Publication date
CN114257474A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN114257474B (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
US9792552B2 (en) Prediction of available generator running time
US20060005058A1 (en) Portable communication device with multi-tiered power save operation
EP3274787B1 (en) Technologies for managing power of an embedded controller during a low-power state
CN104778074A (en) Calculation task processing method and device
CN109857239B (en) Storage control method and device
CN113783707B (en) Sensor power supply method and device based on intelligent gateway and computer equipment
TWI517033B (en) Conversion method for reducing power consumption and computing apparatus using the same
CN106603526B (en) WiFi/hotspot starting method and device
WO2016180241A1 (en) Energy-conservation management method and apparatus for terminal and terminal
US9332064B2 (en) Computer system and remote control method thereof
CN112162710A (en) Method and device for reducing chip power consumption, computer equipment and storage medium
CN112351476A (en) Network-based application power consumption regulation and control method, terminal and storage medium
CN115718626A (en) SOC (system on chip) system capable of being awakened quickly and quick awakening method
CN115599188A (en) Server power supply control method and device, storage medium and electronic device
CN112303811B (en) Processing method, device and system for air conditioner operation data, air conditioner and storage medium
JP7299517B2 (en) Apparatus, method and system
CN112732068A (en) Standby low-power-consumption chip and method for entering and exiting standby low-power-consumption mode of chip
CN103677867A (en) Electronic device rapidly recovering starting-up state, control unit and control method of electronic device
CN114153689B (en) BMC and device monitoring method and device thereof and readable storage medium
CN112512103B (en) Power-saving accurate mobile terminal network measurement method
JP6322891B2 (en) Computer apparatus suitable for intermittent operation and operation method thereof
CN106095645A (en) A kind of application program search method and device
CN117492845A (en) Vehicle controller awakening method and related device
CN114791831A (en) Process control method and device, storage medium and electronic equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230411

Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700

Applicant after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

GR01 Patent grant
GR01 Patent grant