CN114564242A - Method, device, terminal and storage medium for realizing self-awakening function - Google Patents

Method, device, terminal and storage medium for realizing self-awakening function Download PDF

Info

Publication number
CN114564242A
CN114564242A CN202210190352.2A CN202210190352A CN114564242A CN 114564242 A CN114564242 A CN 114564242A CN 202210190352 A CN202210190352 A CN 202210190352A CN 114564242 A CN114564242 A CN 114564242A
Authority
CN
China
Prior art keywords
function
module
self
output
awakening
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.)
Pending
Application number
CN202210190352.2A
Other languages
Chinese (zh)
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.)
Shijiazhuang Tonghe Electronics Co Ltd
Original Assignee
Shijiazhuang Tonghe Electronics 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 Shijiazhuang Tonghe Electronics Co Ltd filed Critical Shijiazhuang Tonghe Electronics Co Ltd
Priority to CN202210190352.2A priority Critical patent/CN114564242A/en
Publication of CN114564242A publication Critical patent/CN114564242A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Abstract

The invention provides a method, a device, a terminal and a storage medium for realizing a self-awakening function. The method comprises the following steps: dividing an integral mechanism for realizing the self-awakening function into various functional modules according to various sub-functions for realizing the self-awakening function; taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function; taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined; and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules. The invention can improve the universality of the logic of the self-awakening function, and is convenient for modification, debugging and maintenance when the operation mechanism of the self-awakening function is changed.

Description

Method, device, terminal and storage medium for realizing self-awakening function
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for implementing a self-wake-up function.
Background
In a power supply System of an electric vehicle such as an electric bus or an electric car, a power supply module and a Battery Management System (BMS) are generally included. When electric vehicle is not used for a long time or is in a flameout state, in order to reduce energy consumption, all live equipment in the electric vehicle generally power off, and in order to guarantee the safety and reliability of the electric vehicle, the BMS is required to run regularly to check whether the whole vehicle system equipment is normal, and then the power module is required to wake up automatically at regular time to supply power to the BMS.
At present, when the self-awakening function of a power module is implemented, a condition statement is used to perform a plurality of condition judgments, such as judging whether the self-awakening function exists, judging whether the self-awakening function belongs to self-awakening or hard-line awakening, judging whether the self-awakening function is in a sleep state or an awakening state, judging whether the self-awakening function is output, that is, whether the self-awakening function is in a switch state of the module with the self-awakening function, and the like.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for realizing a self-awakening function, and aims to solve the problems that the existing self-awakening function is poor in logic universality and inconvenient to modify, debug and maintain.
In a first aspect, an embodiment of the present invention provides a method for implementing a self-wakeup function, including:
dividing an integral mechanism for realizing the self-awakening function into various functional modules according to various sub-functions for realizing the self-awakening function;
taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function;
taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined;
and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules.
In one possible implementation manner, each of the function modules includes a function output judgment module, a function state judgment module and a function start judgment module; the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function starting judging module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and comprises the following steps:
when the output of the function starting judging module is the self-awakening function starting, jumping to the function state judging module;
and when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
In a possible implementation manner, each functional module further includes: a function activation judging module; the input of the function activation judging module is connected with the output of the function starting judging module, and the output of the function activation judging module is connected with the input of the function state judging module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and the method further comprises the following steps:
when the output of the function starting judging module is the self-awakening function closing, skipping to the function activation judging module;
and when the output of the function activation judging module is self-awakening function activation, skipping to the function state judging module.
In a possible implementation manner, the implementing the self-awakening function based on all the functional modules and the connection relationships between all the functional modules further includes:
and when the output of the function activation judging module is that the self-awakening function is not activated, continuously operating in the function activation judging module.
In a possible implementation manner, each functional module further includes: a function reactivation judgment module; the input of the function reactivation judgment module is connected with the output of the function state judgment module, and the output of the function reactivation judgment module is connected with the input of the function output judgment module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and the method further comprises the following steps:
when the output of the function state judging module is in an abnormal state, skipping to the function reactivation judging module;
and when the output of the function reactivation judgment module is self-awakening function reactivation, skipping to the function output judgment module, and determining a final output result of the self-awakening function according to the output of the function output judgment module.
In a possible implementation manner, the implementing the self-awakening function based on all the functional modules and the connection relationships between all the functional modules further includes:
and when the output of the function reactivation judgment module is that the self-awakening function is not reactivated, continuing to operate in the function reactivation judgment module.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing a self-wakeup function, including:
the function dividing module is used for dividing an integral mechanism for realizing the self-awakening function into each function module according to each sub-function for realizing the self-awakening function;
the first processing module is used for taking the final output result of the self-awakening function as the output of the last functional module in each functional module and determining the input of the last functional module according to the integral mechanism of the self-awakening function;
the second processing module is used for taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined;
and the function realization module is used for realizing the self-awakening function based on all the functional modules and the connection relations among all the functional modules.
In one possible implementation manner, each of the function modules includes a function output judgment module, a function state judgment module and a function start judgment module; the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function starting judging module;
the function realization module is used for jumping to the function state judgment module when the output of the function starting judgment module is self-awakening function starting;
and when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect or any possible implementation manner of the first aspect when executing the computer program.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the invention provides a method, a device, a terminal and a storage medium for realizing a self-awakening function, wherein an integral mechanism for realizing the self-awakening function is divided into functional modules according to sub-functions for realizing the self-awakening function; taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function; taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined; and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules. The embodiment of the invention converts the integral mechanism for realizing the self-awakening function into each functional module and the connection relation between the functional modules, can adaptively modify the corresponding functional modules according to the difference of the corresponding condition operation mechanisms of different manufacturers under the condition of keeping the integral logic unchanged, and improves the universality of the logic for realizing the self-awakening function. When the operation mechanism of a certain condition of a certain manufacturer is changed, only the corresponding functional module is required to be modified, the whole implementation logic of the self-awakening function is not required to be modified, and modification, debugging and maintenance are facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation method of a self-wakeup function according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation method of a self-wake-up function according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for implementing a self-wake-up function according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, it shows an implementation flowchart of an implementation method of a self-wakeup function according to an embodiment of the present invention, which is detailed as follows:
in step 101, the overall mechanism for implementing the self-awakening function is divided into functional modules according to the sub-functions for implementing the self-awakening function.
In this embodiment, the overall mechanism for implementing the self-awakening function is divided into the functional modules according to the sub-functions for implementing the self-awakening function, that is, the operation mechanisms of the self-awakening function are distinguished, and the functional modules are distinguished according to the difference of the functions, and each functional module performs its own function and executes the functions sequentially. Each functional module can be used as one state in an operation mechanism of the self-awakening function, the localization of a specific state is realized, different state behaviors are divided, and a plurality of large conditional branch statements during condition judgment are reduced.
In step 102, the final output result of the self-awakening function is used as the output of the last functional module in each functional module, and the input of the last functional module is determined according to the integral mechanism of the self-awakening function.
In step 103, an input of the last functional module is used as an output of the previous functional module, a connection relationship between the last functional module and the previous functional module is determined, and the above steps are repeated until connection relationships between all functional modules are determined.
In this embodiment, on the basis of obtaining each function module by dividing in step 101, the connection relationship between all function modules is determined, that is, the entire mechanism of the self-awakening function is converted into each function (state) and the relation between the functions. The determined connection relation among all the functional modules can enable the state transition logic to process among various states, so that complex state transition expressions are reduced, overall control is simplified, and the influence of various conditions on results is reduced. The functional modules can be distinguished to control the corresponding reduction of the number of conditions in each functional module, namely after the functions are divided, the conditions required by linkage of each function are not as complicated and huge as the conditions required by integral control.
In step 104, a self-wake-up function is implemented based on all the functional modules and the connection relationships between all the functional modules.
In this embodiment, based on all the functional modules and the connection relationship between all the functional modules, the self-wake-up function is implemented, and each functional module is used as a state in the operation mechanism of the self-wake-up function as a whole, so as to form a method for implementing the self-wake-up function based on a "state mode", which is simple to maintain: the 'state mode' can adapt to the function modification requirements of different clients, the problem searching is convenient and quick, the code reuse degree is high, and the code Bug caused by mixing together is reduced.
The embodiment of the invention divides an integral mechanism for realizing the self-awakening function into each functional module according to each sub-function for realizing the self-awakening function; taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function; taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined; and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules. The embodiment of the invention converts the integral mechanism for realizing the self-awakening function into each functional module and the connection relation between the functional modules, can adaptively modify the corresponding functional modules according to the difference of the corresponding condition operation mechanisms of different manufacturers under the condition of keeping the integral logic unchanged, and improves the universality of the logic for realizing the self-awakening function. When the operation mechanism of a certain condition of a certain manufacturer is changed, only the corresponding functional module is required to be modified, the whole implementation logic of the self-awakening function is not required to be modified, and modification, debugging and maintenance are facilitated.
As an embodiment of the present invention, each of the functional modules obtained by dividing in the step 101 may include a function output determining module, a function state determining module, and a function opening determining module. Based on the above step 102 and the above step 103, it can be determined that the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function opening judging module.
Referring to fig. 2, in view of the final output result of the self-wakeup function, no matter how complex the conditions and control are in the implementation process of the self-wakeup function, the final output result is only whether the module outputs (i.e., whether the module with the self-wakeup function outputs the voltage normally), that is, whether the module with the self-wakeup function outputs the on-off state. Therefore, the module for determining the final output result of the self-awakening function may be determined as the last functional module of the self-awakening function (i.e., the module for controlling the power on/off state), and the exemplary last functional module is the function output determination module.
On the basis of the above, one of the influencing factors of the power on/off state is whether the self-awakening function is currently in the awakening state or the sleeping state, that is to say: there is a module for determining the current state of the self-awakening function, which may be, for example, a function state determination module, and an output of the function state determination module is connected to an input of the function output determination module.
For the function state judging module, it is meaningful that the module must judge after the self-awakening function is turned on. Therefore, a module for judging whether the self-awakening function is started exists, and the function starting judging module and the output connection function state judging module of the function starting judging module can be exemplified.
Therefore, the overall mechanism of the self-wake-up function can be divided into the above three modules as a whole: a function open judging module (corresponding to state 0) - - > a function state judging module (corresponding to state 2) - - > a function output judging module (corresponding to state 4).
In this embodiment, based on the connection and final output result between the operation mechanisms in the integral mechanism of the self-awakening function, the self-awakening function is divided into a function start judging module, a function state judging module and a function output judging module, which are input and output in correlation with each other, how to judge the interior of each function module can be adaptively changed according to the requirements of different manufacturers, and the final output result of the self-awakening function can be determined as long as the function start judging module, the function state judging module and the function output judging module are sequentially executed.
Therefore, the step 104 of implementing the self-awakening function based on all the functional modules and the connection relationship between all the functional modules may include:
and when the output of the function starting judging module is the self-awakening function starting, skipping to the function state judging module.
For example, the function on determination module, that is, the determination condition of state 0, may be as shown in table 1, and the function on determination module may determine whether the self-awakening function is on based on table 1, and its output may be the self-awakening function on or the self-awakening function off, and when the output is the self-awakening function on, it jumps to the function state determination module (that is, enters state 2). Table 1 is an example of the determination condition of the function opening determination module, and the function opening determination module may include more or less determination conditions than those in table 1 according to the requirements of different manufacturers.
TABLE 1 State 0 State Table
Wake-up undervoltage Enabling under-voltage Self-wake-up function
Is normal Is normal Is opened
Abnormality (S) Abnormality (S) Close off
Abnormality (S) Is normal Close off
And when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
For example, the determination condition of the functional state determining module, that is, the state 2, may be as shown in table 2, the functional state determining module may determine the current state of the self-awakening function based on table 2, and the output of the functional state determining module may be a normal sleep state, an awakening state or an abnormal sleep state, and when the output of the functional state determining module is the normal state (that is, the normal sleep state or the awakening state), the functional state determining module jumps to the functional output determining module (that is, the state 4 is entered). Table 2 is an example of the determination conditions of the functional status determination module, and the functional status determination module may include more or less determination conditions than those in table 2 according to the requirements of different manufacturers.
TABLE 2 State Table
Figure BDA0003524313200000091
Notably, the awake state is relative to the sleep state, which refers to: whether the module is powered off (both the heavy and auxiliary power supplies are powered off) and the resulting loss of communication capability of the module. Therefore, the wake-up state not only refers to the wake-up state in the self-wake-up function, but also includes a hard-wired wake-up state (whether the output is awake or not).
Optionally, each of the functional modules obtained by dividing in step 101 may further include a function activation judging module. Based on the above step 102 and the above step 103, it can be determined that the input of the function activation judging module is connected to the output of the function opening judging module, and the output of the function activation judging module is connected to the input of the function state judging module.
Referring to fig. 2, since the function state determining module has to determine the self-awakening function after the self-awakening function is turned on, when the output of the function turn-on determining module is turned off, the function state determining module in state 2 does not need to be entered to determine the current state of the self-awakening function. Therefore, a function activation judging module (namely, state 1) can be arranged between the function starting judging module and the function state judging module, and when the output of the function starting judging module is the self-awakening function closing, the function activation judging module needs to be connected so as to be connected with the function state judging module through the function activation judging module.
Therefore, the step 104 of implementing the self-awakening function based on all the functional modules and the connection relationship between all the functional modules may further include:
and when the output of the function starting judgment module is the self-awakening function closing, skipping to the function activation judgment module. And when the output of the function activation judging module is the self-awakening function activation, skipping to the function state judging module. And when the output of the function activation judging module is that the self-awakening function is not activated, the function activation judging module continues to operate.
For example, the determination condition of the function activation determination module, that is, the state 1, may be as shown in table 3, and the function activation determination module may determine whether the self-awakening function is activated (that is, whether the activation condition is met) based on table 3, and its output may be the self-awakening function activated or the self-awakening function not activated, and when the output is the self-awakening function activated (that is, when the self-awakening function is activated), it jumps to the function state determination module (that is, enters the state 2). If the activation condition is not met, the arrival of the activation condition is continuously waited in the state 1. Table 3 is an example of the determination condition of the function activation determination module, and the function activation determination module may include more or less determination conditions than those in table 3 according to the requirements of different manufacturers.
TABLE 3 State 1 State Table
Figure BDA0003524313200000101
Optionally, each of the functional modules obtained by dividing in step 101 may further include a function reactivation determining module. Based on the above step 102 and the above step 103, it can be determined that the input of the function reactivation judgment module is connected to the output of the function state judgment module, and the output of the function reactivation judgment module is connected to the input of the function output judgment module.
With reference to fig. 2, if the output result of the function state determining module is the normal sleep state or the wake-up state, the function state determining module is directly connected to the function output determining module, and if the output result is the abnormal sleep state, the function reactivation determining module (which may also be referred to as an abnormal sleep activation determining module) needs to be connected, and the function reactivation determining module is connected to the function output determining module.
Therefore, the step 104 of implementing the self-awakening function based on all the functional modules and the connection relationship between all the functional modules may further include:
when the output of the function state judging module is in an abnormal state, skipping to the function reactivation judging module; and when the output of the function reactivation judgment module is the self-awakening function reactivation, skipping to the function output judgment module, and determining a final output result of the self-awakening function according to the output of the function output judgment module. And when the output of the function reactivation judgment module is that the self-awakening function is not reactivated, continuing to operate in the function reactivation judgment module.
For example, the function reactivation determination module, that is, the determination condition of the state 3, may be as shown in table 4, the function reactivation determination module may enter from the state 2, determine reactivation of the abnormal sleep state based on table 4, and its output may be that the self-awakening function is reactivated or the self-awakening function is not reactivated, and when the output is that the self-awakening function is reactivated (that is, when the activation condition is newly provided after the abnormal sleep), jump to the function output determination module (that is, enter the state 4). If the activation condition is not met after the abnormal sleep, the user continues to wait for the arrival of the reactivation condition in the state 3. Table 4 is an example of the determination condition of the function activation determination module, and the function reactivation determination module may include more or less determination conditions than those in table 4 according to the requirements of different manufacturers.
Table 4 state 3 state table
Figure BDA0003524313200000111
For example, the function output determination module, that is, the determination condition of the state 4, may be as shown in table 5, and the function output determination module determines the final output result of the self-awakening function, that is, the power on/off state, and is controlled by the states 2 and 3. Table 5 is an example of the determination conditions of the function output module, and the function output determination module may include more or less determination conditions than table 5 according to the requirements of different manufacturers.
In this embodiment, each functional module is sequentially cascaded according to the states 0 to 4 to realize the self-awakening function, so that the burden of complex judgment conditions for directly controlling the on/off of the computer can be reduced, the problem is simply searched, the change of different customer requirements can be realized, and only the operation mechanism corresponding to each state needs to be modified.
TABLE 5 State 4 State Table
Figure BDA0003524313200000121
The embodiment of the invention divides the integral mechanism for realizing the self-awakening function into the function starting judgment module, the function activation judgment module, the function state judgment module, the function reactivation judgment module and the function output judgment module, realizes the self-awakening function based on the function starting judgment module, the function activation judgment module, the function state judgment module, the function reactivation judgment module, the function output judgment module and the connection relation among the modules, has simple control condition and single function of each function module, can simplify the complex structure, has definite division of labor among the function modules and has simple processing. And the output of each functional module (state) is used as the input of the next functional module (state), the purpose of controlling the startup and shutdown is finally realized, the modification is simple, and the operation mechanism of the corresponding functional module is modified according to the functions required by the customer only according to the different requirements of the customer, so that the modification, the debugging and the maintenance are convenient.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 shows a schematic structural diagram of an implementation apparatus for a self-wakeup function according to an embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, which are described in detail as follows:
as shown in fig. 3, the apparatus for implementing the self-wakeup function includes: a function dividing module 31, a first processing module 32, a second processing module 33 and a function realizing module 34.
The function dividing module 31 is configured to divide an overall mechanism for implementing the self-awakening function into function modules according to sub-functions for implementing the self-awakening function;
the first processing module 32 is configured to use a final output result of the self-awakening function as an output of a last functional module in each functional module, and determine an input of the last functional module according to an overall mechanism of the self-awakening function;
a second processing module 33, configured to use an input of the last functional module as an output of the previous functional module, determine a connection relationship between the last functional module and the previous functional module, and repeat the above steps until the connection relationships between all functional modules are determined;
and a function implementing module 34, configured to implement the self-awakening function based on all the functional modules and connection relationships among all the functional modules.
The embodiment of the invention divides an integral mechanism for realizing the self-awakening function into each functional module according to each sub-function for realizing the self-awakening function; taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function; taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined; and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules. The embodiment of the invention converts the integral mechanism for realizing the self-awakening function into each functional module and the connection relation between the functional modules, can adaptively modify the corresponding functional modules according to the difference of the corresponding condition operation mechanisms of different manufacturers under the condition of keeping the integral logic unchanged, and improves the universality of the logic for realizing the self-awakening function. When the operation mechanism of a certain condition of a certain manufacturer is changed, only the corresponding functional module is required to be modified, the whole implementation logic of the self-awakening function is not required to be modified, and modification, debugging and maintenance are facilitated.
In one possible implementation manner, each of the function modules includes a function output judgment module, a function state judgment module and a function start judgment module; the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function starting judging module;
the function implementing module 34 is configured to jump to the function state determining module when the output of the function start determining module is the self-awakening function start; and when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
In a possible implementation manner, each functional module further includes: a function activation judging module; the input of the function activation judging module is connected with the output of the function starting judging module, and the output of the function activation judging module is connected with the input of the function state judging module;
the function implementing module 34 is configured to jump to the function activation judging module when the output of the function start judging module is that the self-awakening function is turned off; and when the output of the function activation judging module is self-awakening function activation, skipping to the function state judging module.
In a possible implementation manner, the function implementation module 34 is configured to continue to operate in the function activation determination module when the output of the function activation determination module is that the self-wakeup function is not activated.
In a possible implementation manner, each functional module further includes: a function reactivation judgment module; the input of the function reactivation judgment module is connected with the output of the function state judgment module, and the output of the function reactivation judgment module is connected with the input of the function output judgment module;
the function implementing module 34 is configured to jump to the function reactivation determination module when the output of the function state determination module is in an abnormal state; and when the output of the function reactivation judgment module is the reactivation of the self-awakening function, skipping to the function output judgment module, and determining the final output result of the self-awakening function according to the output of the function output judgment module.
In a possible implementation manner, the function implementation module 34 is configured to continue to operate in the function reactivation determination module when the output of the function reactivation determination module is that the self-awakening function is not reactivated.
Fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, the terminal 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. The steps in the embodiment of the implementation method of the above-mentioned self-wake-up function, such as steps 101 to 104 shown in fig. 1, are implemented when the processor 40 executes the computer program 42. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the various modules/units in the above-described apparatus embodiments, such as the functions of the modules/units 31 to 34 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units, which are stored in the memory 41 and executed by the processor 40 to implement the present invention. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into the modules/units 31 to 34 shown in fig. 3.
The terminal 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing device. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of the terminal 4 and may include more or less components than those shown, or combine certain components, or different components, e.g., the terminal may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, 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, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk provided on the terminal 4, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 41 may also include both an internal storage unit of the terminal 4 and an external storage device. The memory 41 is used for storing computer programs and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments for implementing the self-wake-up functions may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunications signal, software distribution medium, etc. It should be noted that the computer readable medium may include any suitable increase or decrease as required by legislation and patent practice in the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for implementing a self-wake-up function, comprising:
dividing an integral mechanism for realizing the self-awakening function into various functional modules according to various sub-functions for realizing the self-awakening function;
taking the final output result of the self-awakening function as the output of the last functional module in each functional module, and determining the input of the last functional module according to the integral mechanism of the self-awakening function;
taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined;
and realizing the self-awakening function based on all the functional modules and the connection relation among all the functional modules.
2. The method for implementing self-awakening function according to claim 1, wherein each functional module comprises a functional output judgment module, a functional state judgment module and a functional start judgment module; the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function starting judging module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and comprises the following steps:
when the output of the function starting judging module is the self-awakening function starting, jumping to the function state judging module;
and when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
3. The method for implementing self-awakening function according to claim 2, wherein each functional module further comprises: a function activation judging module; the input of the function activation judging module is connected with the output of the function starting judging module, and the output of the function activation judging module is connected with the input of the function state judging module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and the method further comprises the following steps:
when the output of the function starting judging module is the self-awakening function closing, skipping to the function activation judging module;
and when the output of the function activation judging module is self-awakening function activation, skipping to the function state judging module.
4. The method for implementing the self-awakening function according to claim 3, wherein the implementing the self-awakening function based on all the functional modules and the connection relationship between all the functional modules further comprises:
and when the output of the function activation judging module is that the self-awakening function is not activated, continuously operating in the function activation judging module.
5. The method for implementing self-awakening function according to claim 2, wherein each functional module further comprises: a function reactivation judgment module; the input of the function reactivation judgment module is connected with the output of the function state judgment module, and the output of the function reactivation judgment module is connected with the input of the function output judgment module;
the self-awakening function is realized based on all the functional modules and the connection relations among all the functional modules, and the method further comprises the following steps:
when the output of the function state judging module is in an abnormal state, skipping to the function reactivation judging module;
and when the output of the function reactivation judgment module is the reactivation of the self-awakening function, skipping to the function output judgment module, and determining the final output result of the self-awakening function according to the output of the function output judgment module.
6. The method for implementing the self-awakening function according to claim 5, wherein the implementing the self-awakening function based on all the functional modules and the connection relationship between all the functional modules further comprises:
and when the output of the function reactivation judgment module is that the self-awakening function is not reactivated, continuing to operate in the function reactivation judgment module.
7. An apparatus for implementing a self-wake-up function, comprising:
the function division module is used for dividing the whole mechanism for realizing the self-awakening function into various functional modules according to various sub-functions for realizing the self-awakening function;
the first processing module is used for taking the final output result of the self-awakening function as the output of the last functional module in each functional module and determining the input of the last functional module according to the integral mechanism of the self-awakening function;
the second processing module is used for taking one input of the last functional module as the output of the last functional module, determining the connection relation between the last functional module and the last functional module, and repeating the steps until the connection relation between all the functional modules is determined;
and the function realization module is used for realizing the self-awakening function based on all the functional modules and the connection relations among all the functional modules.
8. The device for implementing self-awakening function according to claim 7, wherein each functional module comprises a functional output judgment module, a functional state judgment module and a functional start judgment module; the input of the function output judging module is connected with the output of the function state judging module, and the input of the function state judging module is connected with the output of the function starting judging module;
the function realization module is used for jumping to the function state judgment module when the output of the function starting judgment module is self-awakening function starting;
and when the output of the function state judging module is in a normal state, skipping to the function output judging module, and determining the final output result of the self-awakening function according to the output of the function output judging module.
9. A terminal, characterized in that it comprises a memory for storing a computer program and a processor for calling and running the computer program stored in the memory, performing the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202210190352.2A 2022-02-28 2022-02-28 Method, device, terminal and storage medium for realizing self-awakening function Pending CN114564242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210190352.2A CN114564242A (en) 2022-02-28 2022-02-28 Method, device, terminal and storage medium for realizing self-awakening function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190352.2A CN114564242A (en) 2022-02-28 2022-02-28 Method, device, terminal and storage medium for realizing self-awakening function

Publications (1)

Publication Number Publication Date
CN114564242A true CN114564242A (en) 2022-05-31

Family

ID=81715812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190352.2A Pending CN114564242A (en) 2022-02-28 2022-02-28 Method, device, terminal and storage medium for realizing self-awakening function

Country Status (1)

Country Link
CN (1) CN114564242A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765620A (en) * 2014-01-02 2015-07-08 国际商业机器公司 Programming module deploying method and system
CN108628918A (en) * 2017-09-29 2018-10-09 南京途牛科技有限公司 System deployment and dependence automatic Plotting System and method
CN109739563A (en) * 2018-12-29 2019-05-10 龙芯中科技术有限公司 Control method, device, system and the storage medium of terminal
CN111391849A (en) * 2020-03-11 2020-07-10 三一机器人科技有限公司 Vehicle control method, device, vehicle and readable storage medium
CN111445907A (en) * 2020-02-28 2020-07-24 云知声智能科技股份有限公司 Method and device for reducing false wake-up rate
CN112764817A (en) * 2021-01-22 2021-05-07 中国长城科技集团股份有限公司 Equipment function awakening method and device
CN113961258A (en) * 2021-10-30 2022-01-21 重庆长安汽车股份有限公司 Method and system for recognizing abnormal automobile state based on time sequence transfer and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765620A (en) * 2014-01-02 2015-07-08 国际商业机器公司 Programming module deploying method and system
CN108628918A (en) * 2017-09-29 2018-10-09 南京途牛科技有限公司 System deployment and dependence automatic Plotting System and method
CN109739563A (en) * 2018-12-29 2019-05-10 龙芯中科技术有限公司 Control method, device, system and the storage medium of terminal
CN111445907A (en) * 2020-02-28 2020-07-24 云知声智能科技股份有限公司 Method and device for reducing false wake-up rate
CN111391849A (en) * 2020-03-11 2020-07-10 三一机器人科技有限公司 Vehicle control method, device, vehicle and readable storage medium
CN112764817A (en) * 2021-01-22 2021-05-07 中国长城科技集团股份有限公司 Equipment function awakening method and device
CN113961258A (en) * 2021-10-30 2022-01-21 重庆长安汽车股份有限公司 Method and system for recognizing abnormal automobile state based on time sequence transfer and storage medium

Similar Documents

Publication Publication Date Title
CN110716633B (en) Device and method for coordinately managing SSD power consumption, computer device and storage medium
CN110474420B (en) Control method, control device and control terminal of multi-system uninterruptible power supply
CN109995097B (en) Power-on control method, device and system, computer device and storage medium
US20230305980A1 (en) Flexibly configured multi-computing-node server mainboard structure and program
CN114879829A (en) Power consumption management method and device, electronic equipment, graphic processor and storage medium
CN111475343B (en) Computer state outage restoration method and device and terminal equipment
CN114564242A (en) Method, device, terminal and storage medium for realizing self-awakening function
CN111240454B (en) RISC-V based power consumption dynamic adjustment system and method
CN111697556A (en) Operation control method of electrical equipment and terminal equipment
CN111923747B (en) Method and system for controlling processor work
CN115085360A (en) Controller power supply system, electronic equipment and storage medium
CN112039052B (en) Power supply device and control method thereof
CN114546509B (en) Method, device, terminal and storage medium for realizing self-wake-up function
CN114567034A (en) Control method and device of battery charge-discharge module, terminal and storage medium
CN111216739B (en) Fault processing method and device based on hybrid vehicle
CN112804859A (en) Linkage control method and equipment for data center cooling system
CN114860512A (en) Method, device, equipment and system for detecting working state of SOC (system on chip) chip of vehicle
CN114442500B (en) Control method, device and equipment of lighting system
CN115684757B (en) Test system and method for power conversion device, electronic equipment and storage medium
CN113422404B (en) Power supply control method and power supply
CN215752028U (en) Wake-up source determining device of battery management system
CN117060595B (en) Power station energy saving control method, system, readable storage medium and computer
CN113619391B (en) Power management method and power manager
CN109391027B (en) Energy-saving control method for power supply system of data center and terminal equipment
CN103577359B (en) Support system and the method for managing power supply thereof of dual master control device access interface device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination