Method, device, terminal and storage medium for realizing self-wake-up function

By dividing the self-wake-up function in the electric vehicle power system into multiple functional modules and determining their connection relationship, the problem of poor logic universality of the self-wake-up function in the prior art is solved, and a self-wake-up function that is easy to modify and maintain is realized.

CN114564242BActive Publication Date: 2025-05-09SHIJIAZHUANG TONHE ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210190352.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2025-05-09
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the existing electric vehicle power system, the logic of the self-wake function is poorly versatile, resulting in cumbersome code and inconvenient for modification, debugging and maintenance.

Method used

The overall mechanism of the self-wake function is divided into multiple functional modules, and the self-wake function is realized by determining the connection relationship between each functional module. Specifically, it includes a function output judgment module, a function status judgment module, a function opening judgment module, etc. Through the interconnection of these modules and the processing of output results, the final output result of the self-wake function is realized.

Benefits of technology

The universality of the self-wake function implementation logic is improved, so that when the operating mechanism of different manufacturers changes, the corresponding functional modules need to be modified without modifying the overall implementation logic, which is convenient for modification, debugging and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564242B_ABST
    Figure CN114564242B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, terminal and storage medium for realizing a self-wake-up function. The method comprises: dividing the overall mechanism for realizing the self-wake-up function into various functional modules according to the various sub-functions for realizing the self-wake-up function; taking the final output result of the self-wake-up 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 overall mechanism of the self-wake-up function; taking an input of the last functional module as the output of the previous functional module, determining the connection relationship between the last functional module and the previous functional module, repeating the above steps until the connection relationship between all functional modules is determined; realizing the self-wake-up function based on all functional modules and the connection relationship between all functional modules. The present invention can improve the versatility of the logic for realizing the self-wake-up function, and is convenient for modification, debugging and maintenance when the operating mechanism of the self-wake-up function changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, terminal and storage medium for realizing a self-wake-up function. Background Art

[0002] The power supply system of electric vehicles, such as electric buses or electric cars, generally includes a power module and a battery management system (BMS). When the electric vehicle is not used for a long time or is in the off state, in order to reduce energy consumption, all the powered devices in the electric vehicle are generally powered off. In order to ensure the safety and reliability of the electric vehicle, the BMS needs to run regularly to check whether the vehicle system equipment is normal. At this time, the power module needs to wake up regularly to supply power to the BMS.

[0003] At present, when implementing the self-wake-up function of the power module, conditional statements are used to judge multiple conditions, such as judging whether the self-wake-up function is provided, judging whether the self-wake-up function is self-wake-up or hard-line wake-up, judging whether the self-wake-up function is in a dormant state or a wake-up state, judging whether the self-wake-up function has output, that is, the power on / off state of the module with the self-wake-up function, etc. However, the operation mechanism of each condition is mixed, and the operation mechanism of the conditions corresponding to different manufacturers may be different, resulting in poor universality of the implementation logic of the self-wake-up function and cumbersome code. When the operation mechanism of a certain condition of a certain manufacturer changes, the implementation logic of the self-wake-up function may need to be modified as a whole, which is inconvenient for modification, debugging and maintenance. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, terminal and storage medium for realizing a self-wake-up function, so as to solve the problem that the current realization logic of the self-wake-up function has poor universality and is not convenient for modification, debugging and maintenance.

[0005] In a first aspect, an embodiment of the present invention provides a method for implementing a self-wake-up function, including:

[0006] The overall mechanism for realizing the self-wake-up function is divided into various functional modules according to various sub-functions for realizing the self-wake-up function;

[0007] The final output result of the self-wake-up 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 overall mechanism of the self-wake-up function;

[0008] Taking an input of the last functional module as the output of the previous functional module, determining the connection relationship between the last functional module and the previous functional module, and repeating the above steps until the connection relationship between all functional modules is determined;

[0009] The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules.

[0010] In a possible implementation, each functional module includes a functional output judgment module, a functional state judgment module and a functional activation judgment module; the input of the functional output judgment module is connected to the output of the functional state judgment module, and the input of the functional state judgment module is connected to the output of the functional activation judgment module;

[0011] The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, including:

[0012] When the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module;

[0013] When the output of the function state judgment module is in a normal state, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

[0014] In a possible implementation, each functional module further includes: a function activation judgment module; the input of the function activation judgment module is connected to the output of the function start judgment module, and the output of the function activation judgment module is connected to the input of the function status judgment module;

[0015] The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes:

[0016] When the output of the function start judgment module is that the self-wake-up function is turned off, jump to the function activation judgment module;

[0017] When the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module.

[0018] In a possible implementation, the self-wake-up function is implemented based on all functional modules and the connection relationship between all functional modules, and further includes:

[0019] When the output of the function activation judgment module is that the self-wake-up function is not activated, the function activation judgment module continues to run.

[0020] In a possible implementation, each functional module further includes: a function reactivation judgment module; 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;

[0021] The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes:

[0022] When the output of the function status judgment module is an abnormal state, jump to the function reactivation judgment module;

[0023] When the output of the function reactivation judgment module is the reactivation of the self-wake-up function, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

[0024] In a possible implementation, the self-wake-up function is implemented based on all functional modules and the connection relationship between all functional modules, and further includes:

[0025] When the output of the function reactivation determination module is that the self-wake-up function is not reactivated, the function reactivation determination module continues to be run.

[0026] In a second aspect, an embodiment of the present invention provides a device for implementing a self-wake-up function, including:

[0027] A function division module is used to divide the overall mechanism for realizing the self-wake-up function into various function modules according to various sub-functions of realizing the self-wake-up function;

[0028] A first processing module, used for taking the final output result of the self-wake-up function as the output of the last functional module among the functional modules, and determining the input of the last functional module according to the overall mechanism of the self-wake-up function;

[0029] A second processing module is used to use an input of the last functional module as the output of the previous functional module, determine the connection relationship between the last functional module and the previous functional module, and repeat the above steps until the connection relationship between all functional modules is determined;

[0030] The function realization module is used to realize the self-wake-up function based on all the function modules and the connection relationship between all the function modules.

[0031] In a possible implementation, each functional module includes a functional output judgment module, a functional state judgment module and a functional activation judgment module; the input of the functional output judgment module is connected to the output of the functional state judgment module, and the input of the functional state judgment module is connected to the output of the functional activation judgment module;

[0032] The function implementation module is used to jump to the function status judgment module when the output of the function activation judgment module is that the self-wake-up function is activated;

[0033] When the output of the function state judgment module is in a normal state, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

[0034] In a third aspect, an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation manner of the first aspect are implemented.

[0035] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.

[0036] The embodiment of the present invention provides a method, device, terminal and storage medium for realizing a self-wake-up function, by dividing the overall mechanism for realizing the self-wake-up function into various functional modules according to the various sub-functions for realizing the self-wake-up function; taking the final output result of the self-wake-up 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 overall mechanism of the self-wake-up function; taking an input of the last functional module as the output of the previous functional module, determining the connection relationship between the last functional module and the previous functional module, repeating the above steps until the connection relationship between all functional modules is determined; based on all functional modules and the connection relationship between all functional modules, the self-wake-up function is realized. The embodiment of the present invention converts the overall mechanism for realizing the self-wake-up function into various functional modules and the connection relationship between various functional modules, and can make adaptive modifications in the corresponding functional modules according to the different corresponding condition operation mechanisms of different manufacturers under the condition that the overall implementation logic remains unchanged, so as to improve the versatility of the self-wake-up function implementation logic. And when the operation mechanism of a certain condition of a certain manufacturer changes, it only needs to be modified in the corresponding functional module, without modifying the overall implementation logic of the self-wake-up function, which is convenient for modification, debugging and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 is a flow chart of a method for implementing a self-wake-up function provided by an embodiment of the present invention;

[0039] Figure 2 is a flow chart of a method for implementing a self-wake-up function provided by another embodiment of the present invention;

[0040] Figure 3 It is a structural schematic diagram of a device for implementing a self-wake-up function provided by an embodiment of the present invention;

[0041] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0043] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0044] See also Figure 1 , which shows a flow chart of the implementation method of the self-wake-up function provided by an embodiment of the present invention, which is described in detail as follows:

[0045] In step 101, the overall mechanism for realizing the self-wake-up function is divided into various functional modules according to various sub-functions for realizing the self-wake-up function.

[0046] In this embodiment, the overall mechanism for realizing the self-wake-up function is divided into various functional modules according to the various sub-functions for realizing the self-wake-up function, that is, the operation mechanism of the self-wake-up function is distinguished, and each functional module is distinguished according to its different functions, and each functional module performs its own duties and executes in sequence. Among them, each functional module can be used as a state in the overall operation mechanism of the self-wake-up function, realize the localization of a specific state, separate different state behaviors, and reduce the huge conditional branch statements when multiple conditions are judged.

[0047] In step 102, the final output result of the self-wake-up function is used as the output of the last functional module among the functional modules, and the input of the last functional module is determined according to the overall mechanism of the self-wake-up function.

[0048] In step 103, an input of the last functional module is used as the output of the previous functional module to determine the connection relationship between the last functional module and the previous functional module, and the above steps are repeated until the connection relationship between all functional modules is determined.

[0049] In this embodiment, based on the functional modules divided in step 101, the connection relationship between all functional modules is determined, that is, the overall mechanism of the self-wake-up function is converted into various functions (states) and the connection between functions. The connection relationship between all functional modules determined can enable the state transfer logic to be processed between various states, reduce complex state transfer expressions, simplify the overall control, and reduce the impact of various conditions on the results. The distinction between functional modules can control the corresponding reduction in the number of conditions in each functional module, that is, after the function is divided, the conditions required to link each function are not as complex and huge as those in the overall control.

[0050] In step 104, based on all functional modules and the connection relationship between all functional modules, a self-wake-up function is implemented.

[0051] This embodiment implements the self-wake-up function based on all functional modules and the connection relationship between all functional modules, and regards each functional module as a state in the overall operation mechanism of the self-wake-up function, forming an implementation method of the self-wake-up function based on the "state mode", which is simple to maintain: the use of the "state mode" can adapt to the function modification requirements of different customers, find problems quickly and conveniently, have a high degree of code reuse, and reduce code bugs caused by mixing together.

[0052] The embodiment of the present invention divides the overall mechanism for realizing the self-wake-up function into various functional modules according to the various sub-functions for realizing the self-wake-up function; takes the final output result of the self-wake-up function as the output of the last functional module in each functional module, and determines the input of the last functional module according to the overall mechanism of the self-wake-up function; takes one input of the last functional module as the output of the previous functional module, determines the connection relationship between the last functional module and the previous functional module, and repeats the above steps until the connection relationship between all functional modules is determined; based on all functional modules and the connection relationship between all functional modules, the self-wake-up function is realized. The embodiment of the present invention converts the overall mechanism for realizing the self-wake-up function into various functional modules and the connection relationship between various functional modules. Under the condition that the overall realization logic remains unchanged, the corresponding functional modules can be adaptively modified according to the different corresponding condition operation mechanisms of different manufacturers, thereby improving the versatility of the self-wake-up function realization logic. And when the operation mechanism of a certain condition of a certain manufacturer changes, it only needs to be modified in the corresponding functional module, without modifying the overall realization logic of the self-wake-up function, which is convenient for modification, debugging and maintenance.

[0053] As an embodiment of the present invention, each functional module divided in the above step 101 may include a functional output judgment module, a functional state judgment module and a functional activation judgment module. Based on the above steps 102 and 103, it can be determined that the input of the functional output judgment module is connected to the output of the functional state judgment module, and the input of the functional state judgment module is connected to the output of the functional activation judgment module.

[0054] Combination Figure 2 , wherein, combined with the final output result of the self-wake-up function, no matter how complex the conditions and controls in the process of implementing the self-wake-up function are, the final output result only relates to whether the module output (i.e., whether the module with the self-wake-up function outputs voltage normally), i.e., the power on / off state of the module with the self-wake-up function. Therefore, the module for judging the final output result of the self-wake-up function can be determined as the last functional module of the self-wake-up function (i.e., the module for controlling the power on / off state), and the exemplary last functional module is the functional output judgment module.

[0055] On the basis of the above, one of the factors affecting the power on / off state is whether the self-wake-up function is currently in the wake-up state or the sleep state, which means: there is a module for judging the current state of the self-wake-up function, which can be, for example, a function state judgment module, and the output of the function state judgment module is connected to the input of the function output judgment module.

[0056] For the function status judgment module, it is meaningful only if the module makes judgment after the self-wake-up function is turned on. Therefore, there is also a module for judging whether the self-wake-up function is turned on, which can be exemplarily a function on judgment module, and the output of the function on judgment module is connected to the function status judgment module.

[0057] Therefore, the overall mechanism of the self-wake-up function can be generally divided into the above three modules: function start judgment module (corresponding to state 0)-->function state judgment module (corresponding to state 2)-->function output judgment module (corresponding to state 4).

[0058] Among them, this embodiment divides the self-wake-up function into a function start-up judgment module, a function status judgment module and a function output judgment module with interrelated inputs and outputs based on the connection between each operating mechanism in the overall mechanism of the self-wake-up function and the final output result. The specific judgment within each function module can be adaptively changed according to the needs of different manufacturers. The final output result of the self-wake-up function can be determined by executing the function start-up judgment module, the function status judgment module and the function output judgment module in sequence.

[0059] Therefore, in the above step 104, based on all functional modules and the connection relationship between all functional modules, the self-wake-up function is realized, which may include:

[0060] When the output of the function start judgment module is that the self-wake-up function is turned on, jump to the function status judgment module.

[0061] Exemplarily, the judgment condition of the function start judgment module, i.e., state 0, can be as shown in Table 1. The function start judgment module can judge whether the self-wake-up function is turned on based on Table 1, and its output can be self-wake-up function turned on or self-wake-up function turned off. When its output is self-wake-up function turned on, it jumps to the function state judgment module (i.e., enters state 2). Table 1 is an example of the judgment condition of the function start judgment module. According to the requirements of different manufacturers, the function start judgment module can include more or fewer judgment conditions than Table 1.

[0062] Table 1 State 0 State Table

[0063] Wake-up undervoltage Enable undervoltage Self wake-up function normal normal Open abnormal abnormal closure abnormal normal closure

[0064] When the output of the function state judgment module is in a normal state, the module jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

[0065] Exemplarily, the judgment condition of the function state judgment module, i.e., state 2, can be as shown in Table 2. The function state judgment module can judge the current state of the self-wake-up function based on Table 2, and its output can be a normal sleep state, a wake-up state, or an abnormal sleep state. When its output is a normal state (i.e., a normal sleep state or a wake-up state), it jumps to the function output judgment module (i.e., enters state 4). Table 2 is an example of the judgment condition of the function state judgment module. According to the requirements of different manufacturers, the function state judgment module can include more or fewer judgment conditions than those in Table 2.

[0066] Table 2 Status 2 Status Table

[0067]

[0068] It is worth noting that the awakening state is relative to the dormant state. The dormant state refers to whether the module is powered off (both the strong power and the auxiliary power are powered off) and whether the module loses its communication capability. Therefore, the awakening state not only refers to the awakening state in the self-awakening function, but also includes the hard-line awakening state (whether there is output or not).

[0069] Optionally, each functional module divided in step 101 may further include a function activation judgment module. Based on step 102 and step 103, it can be determined that the input of the function activation judgment module is connected to the output of the function start judgment module, and the output of the function activation judgment module is connected to the input of the function status judgment module.

[0070] Combination Figure 2 , because the function state judgment module must make a judgment after the self-wake-up function is turned on to make sense, when the output of the function on judgment module is that the self-wake-up function is turned off, there is no need to enter the function state judgment module in state 2 to judge the current state of the self-wake-up function. Therefore, a function activation judgment module (that is, state 1) can be set between the function on judgment module and the function state judgment module. When the output of the function on judgment module is that the self-wake-up function is turned off, it is necessary to connect the function activation judgment module to connect the function state judgment module through the function activation judgment module.

[0071] Therefore, the self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules in the above step 104, and may also include:

[0072] When the output of the function start judgment module is that the self-wake-up function is off, jump to the function activation judgment module. When the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module. When the output of the function activation judgment module is that the self-wake-up function is not activated, continue to run in the function activation judgment module.

[0073] Exemplarily, the judgment condition of the function activation judgment module, i.e., state 1, can be shown in Table 3. The function activation judgment module can judge whether the self-wake-up function is activated (i.e., whether the activation condition is met) based on Table 3. Its output can be that the self-wake-up function is activated or the self-wake-up function is not activated. When its output is that the self-wake-up function is activated (i.e., when the self-wake-up function is activated), it jumps to the function state judgment module (i.e., enters state 2). If the activation condition is not met, it continues to wait for the activation condition to arrive in state 1. Among them, Table 3 is an example of the judgment condition of the function activation judgment module. According to the needs of different manufacturers, the function activation judgment module can include more or fewer judgment conditions than Table 3.

[0074] Table 3 State 1 State table

[0075]

[0076] Optionally, each functional module divided in step 101 may further include a function reactivation judgment module. Based on step 102 and step 103, it may 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.

[0077] Combination Figure 2If the output result of the function status judgment module is a normal sleep state or a wake-up state, it is directly connected to the function output judgment module. If the result is an abnormal sleep state, it is necessary to connect to the function reactivation judgment module (also called the abnormal sleep activation judgment module), and the function reactivation judgment module is connected to the function output judgment module.

[0078] Therefore, the self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules in the above step 104, and may also include:

[0079] When the output of the function status judgment module is an abnormal state, jump to the function reactivation judgment module; when the output of the function reactivation judgment module is that the self-wake-up function is reactivated, jump to the function output judgment module, and determine the final output result of the self-wake-up function according to the output of the function output judgment module. When the output of the function reactivation judgment module is that the self-wake-up function is not reactivated, continue to run in the function reactivation judgment module.

[0080] Exemplarily, the judgment condition of the function reactivation judgment module, i.e., state 3, can be shown in Table 4. The function reactivation judgment module can be entered from state 2, and the reactivation of the abnormal sleep state is judged based on Table 4. Its output can be the reactivation of the self-wake-up function or the non-reactivation of the self-wake-up function. When its output is the reactivation of the self-wake-up function (i.e., when the activation condition is met again after abnormal sleep), it jumps to the function output judgment module (i.e., enters state 4). If the activation condition is still not met after abnormal sleep, continue to wait for the arrival of the reactivation condition in state 3. Among them, Table 4 is an example of the judgment condition of the function activation judgment module. According to the requirements of different manufacturers, the function reactivation judgment module can include more or fewer judgment conditions than Table 4.

[0081] Table 4 State 3 State table

[0082]

[0083] Exemplarily, the judgment condition of the function output judgment module, i.e., state 4, can be as shown in Table 5. The function output judgment module judges the final output result of the self-wake-up function, i.e., the power on / off state, which is controlled by state 2 and state 3. Table 5 is an example of the judgment condition of the function output module. According to the requirements of different manufacturers, the function output judgment module may include more or fewer judgment conditions than those in Table 5.

[0084] This embodiment sequentially cascades each functional module from state 0 to state 4 to realize the self-wake-up function, which can reduce the burden of complex judgment conditions for directly controlling the power on and off of the machine, and is simple to find problems. It can realize changes in different customer needs by simply modifying the operating mechanism corresponding to each state.

[0085] Table 5 State 4 State Table

[0086]

[0087] The embodiment of the present invention divides the overall mechanism for realizing the self-wake-up function into a function start judgment module, a function activation judgment module, a function state judgment module, a function reactivation judgment module and a function output judgment module. Based on the function start 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 relationship between these modules, the self-wake-up function is realized. The control conditions of each functional module are simple and the function is single, which can simplify the complex structure. The division of labor between each functional module is clear and the processing is simple. Moreover, the output of each functional module (state) is used as the input of the next functional module (state), and the purpose of controlling the power on and off is finally achieved. The modification is simple. Customers only need to modify the operation mechanism of the corresponding functional module according to the customer's required functions to meet different needs, which is convenient for modification, debugging and maintenance.

[0088] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0089] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0090] Figure 3 The following is a schematic diagram showing a structure of a device for implementing a self-wake-up function provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0091] like Figure 3 As shown, the device for implementing the self-wake-up function includes: a function division module 31 , a first processing module 32 , a second processing module 33 and a function implementation module 34 .

[0092] A function division module 31 is used to divide the overall mechanism for realizing the self-wake-up function into various function modules according to various sub-functions for realizing the self-wake-up function;

[0093] A first processing module 32, configured to use the final output result of the self-wake-up function as the output of the last functional module among the functional modules, and determine the input of the last functional module according to the overall mechanism of the self-wake-up function;

[0094] The second processing module 33 is used to use an input of the last functional module as the output of the previous functional module, determine the connection relationship between the last functional module and the previous functional module, and repeat the above steps until the connection relationship between all functional modules is determined;

[0095] The function realization module 34 is used to realize the self-wake-up function based on all the function modules and the connection relationship between all the function modules.

[0096] The embodiment of the present invention divides the overall mechanism for realizing the self-wake-up function into various functional modules according to the various sub-functions for realizing the self-wake-up function; takes the final output result of the self-wake-up function as the output of the last functional module in each functional module, and determines the input of the last functional module according to the overall mechanism of the self-wake-up function; takes one input of the last functional module as the output of the previous functional module, determines the connection relationship between the last functional module and the previous functional module, and repeats the above steps until the connection relationship between all functional modules is determined; based on all functional modules and the connection relationship between all functional modules, the self-wake-up function is realized. The embodiment of the present invention converts the overall mechanism for realizing the self-wake-up function into various functional modules and the connection relationship between various functional modules. Under the condition that the overall realization logic remains unchanged, the corresponding functional modules can be adaptively modified according to the different corresponding condition operation mechanisms of different manufacturers, thereby improving the versatility of the self-wake-up function realization logic. And when the operation mechanism of a certain condition of a certain manufacturer changes, it only needs to be modified in the corresponding functional module, without modifying the overall realization logic of the self-wake-up function, which is convenient for modification, debugging and maintenance.

[0097] In a possible implementation, each functional module includes a functional output judgment module, a functional state judgment module and a functional activation judgment module; the input of the functional output judgment module is connected to the output of the functional state judgment module, and the input of the functional state judgment module is connected to the output of the functional activation judgment module;

[0098] The function implementation module 34 is used to jump to the function status judgment module when the output of the function start judgment module is that the self-wake-up function is turned on; when the output of the function status judgment module is in a normal state, jump to the function output judgment module, and determine the final output result of the self-wake-up function according to the output of the function output judgment module.

[0099] In a possible implementation, each functional module further includes: a function activation judgment module; the input of the function activation judgment module is connected to the output of the function start judgment module, and the output of the function activation judgment module is connected to the input of the function status judgment module;

[0100] The function implementation module 34 is used to jump to the function activation judgment module when the output of the function start judgment module is that the self-wake-up function is turned off; when the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module.

[0101] In a possible implementation, the function implementation module 34 is configured to continue running in the function activation determination module when the output of the function activation determination module is that the self-wake-up function is not activated.

[0102] In a possible implementation, each functional module further includes: a function reactivation judgment module; 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;

[0103] The function implementation module 34 is used to jump to the function reactivation judgment module when the output of the function status judgment module is an abnormal state; when the output of the function reactivation judgment module is the reactivation of the self-wake-up function, jump to the function output judgment module, and determine the final output result of the self-wake-up function according to the output of the function output judgment module.

[0104] In a possible implementation, the function implementation module 34 is configured to continue running in the function reactivation determination module when the output of the function reactivation determination module is that the self-wake-up function is not reactivated.

[0105] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 4 As shown, 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. When the processor 40 executes the computer program 42, the steps in the above-mentioned implementation method of each self-wake-up function are implemented, such as Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 3 Functionality of the modules / units 31 to 34 shown.

[0106] Exemplarily, the computer program 42 may be divided into one or more modules / units, one or more modules / units are stored in the memory 41 and executed by the processor 40 to implement the present invention. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into Figure 3Modules / units 31 to 34 are shown.

[0107] The terminal 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0108] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0109] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or 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, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal 4. 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 to store 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.

[0110] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0111] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0112] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0113] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned self-wake-up function implementation method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for realizing a self-wake-up function, characterized in that: include: The overall mechanism for realizing the self-wake-up function is divided into various functional modules according to various sub-functions for realizing the self-wake-up function; The final output result of the self-wake-up 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 overall mechanism of the self-wake-up function; Taking an input of the last functional module as the output of the previous functional module, determining the connection relationship between the last functional module and the previous functional module, and repeating the above steps until the connection relationship between all functional modules is determined; Based on all functional modules and the connection relationship between all functional modules, the self-wake-up function is realized; The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, including: Obtain the operating mechanism of each functional module of the target manufacturer; Modify each functional module according to the acquired operation mechanism of each functional module; The self-wake-up function is realized according to all the modified functional modules and the connection relationship between all the functional modules.

2. The method for realizing the self-wake-up function according to claim 1, characterized in that: Each functional module includes a function output judgment module, a function state judgment module and a function start judgment module; the input of the function output judgment module is connected to the output of the function state judgment module, and the input of the function state judgment module is connected to the output of the function start judgment module; The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, including: When the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module; When the output of the function state judgment module is in a normal state, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

3. The method for realizing the self-wake-up function according to claim 2, characterized in that: Each functional module further includes: a function activation judgment module; the input of the function activation judgment module is connected to the output of the function start judgment module, and the output of the function activation judgment module is connected to the input of the function status judgment module; The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes: When the output of the function start judgment module is that the self-wake-up function is turned off, jump to the function activation judgment module; When the output of the function activation judgment module is that the self-wake-up function is activated, jump to the function status judgment module.

4. The method for realizing the self-wake-up function according to claim 3, characterized in that: The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes: When the output of the function activation judgment module is that the self-wake-up function is not activated, the function activation judgment module continues to run.

5. The method for realizing the self-wake-up function according to claim 2, characterized in that: Each functional module further includes: a function reactivation judgment module; the input of the function reactivation judgment module is connected to the output of the function status judgment module, and the output of the function reactivation judgment module is connected to the input of the function output judgment module; The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes: When the output of the function status judgment module is an abnormal state, jump to the function reactivation judgment module; When the output of the function reactivation judgment module is the reactivation of the self-wake-up function, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

6. The method for realizing the self-wake-up function according to claim 5, characterized in that: The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, and further includes: When the output of the function reactivation determination module is that the self-wake-up function is not reactivated, the function reactivation determination module continues to be run.

7. A device for realizing a self-wake-up function, characterized in that: include: A function division module is used to divide the overall mechanism for realizing the self-wake-up function into various function modules according to various sub-functions of realizing the self-wake-up function; A first processing module, used for taking the final output result of the self-wake-up function as the output of the last functional module among the functional modules, and determining the input of the last functional module according to the overall mechanism of the self-wake-up function; A second processing module is used to use an input of the last functional module as the output of the previous functional module, determine the connection relationship between the last functional module and the previous functional module, and repeat the above steps until the connection relationship between all functional modules is determined; A function realization module, used for realizing the self-wake-up function based on all function modules and the connection relationship between all function modules; The self-wake-up function is realized based on all functional modules and the connection relationship between all functional modules, including: Obtain the operating mechanism of each functional module of the target manufacturer; Modify each functional module according to the acquired operation mechanism of each functional module; The self-wake-up function is realized according to all the modified functional modules and the connection relationship between all the functional modules.

8. The device for realizing the self-wake-up function according to claim 7, characterized in that: Each functional module includes a function output judgment module, a function state judgment module and a function start judgment module; the input of the function output judgment module is connected to the output of the function state judgment module, and the input of the function state judgment module is connected to the output of the function start judgment module; The function implementation module is used to jump to the function status judgment module when the output of the function activation judgment module is that the self-wake-up function is activated; When the output of the function state judgment module is in a normal state, the process jumps to the function output judgment module, and determines the final output result of the self-wake-up function according to the output of the function output judgment module.

9. A terminal, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Programming module deploying method and system

    CN104765620A

  • Automobile state abnormity identification method and system based on time sequence transfer and storage medium

    CN113961258A