Method and device for determining power state of vehicle-mounted controller and electronic equipment
Through various filtering algorithms, the voltage value of the on-board controller is obtained and the weight is configured according to the operation stage and voltage interval, the problem of inaccurate power status monitoring in the existing technology is solved, and the accurate monitoring of the power status of the on-board controller is achieved, ensuring that Vehicle safety and system stability.
Patent Information
- Application Number
- CN202411621480.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-21
AI Technical Summary
The prior art is difficult to accurately monitor the power status of the vehicle controller, resulting in possible safety accidents caused by power failure.
By using multiple filtering algorithms to obtain multiple voltage values of the on-board controller, obtain weight information based on the current operation stage and voltage interval, and use a weighted average algorithm to obtain more accurate voltage values, thereby determining the power supply status.
It realizes more accurate monitoring of the power status of the vehicle-mounted controller, avoiding safety accidents caused by power failure.
Smart Images

Figure CN119493414A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for determining a power state of an on-vehicle controller and an electronic device. Background Art
[0002] Power status monitoring of the on-board controller (ECU, electronic Control Unit) is an important means to ensure vehicle safety, improve system stability and optimize energy consumption. It is of great significance to improve the overall performance of the vehicle and user experience. It can ensure that the systems and actuators controlled by the on-board controller operate within the normal working range, prevent safety accidents caused by power failure, and ensure the safety of drivers and passengers. Summary of the invention
[0003] The present disclosure provides a method, device and electronic device for determining the power state of a vehicle-mounted controller to solve or alleviate one or more technical problems in the prior art.
[0004] In one aspect, the present disclosure provides a method for determining a power state of an on-board controller, comprising:
[0005] Using multiple filtering algorithms, obtaining multiple first voltages of the vehicle controller at the same time, wherein the multiple filtering algorithms correspond to the multiple first voltages one by one, and the multiple filtering algorithms have different characteristics respectively;
[0006] Acquire first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located, wherein the first voltage weight information includes first weights corresponding to the plurality of filtering algorithms respectively;
[0007] Obtaining a second voltage of the vehicle controller using a weighted average algorithm according to the first weights and the first voltages respectively corresponding to the plurality of filtering algorithms; and
[0008] A power state of the onboard controller is determined according to the second voltage.
[0009] On the other hand, the present disclosure provides a device for determining a power state of an on-vehicle controller, comprising:
[0010] A first acquisition module, used to acquire multiple first voltages of the vehicle controller at the same time by using multiple filtering algorithms, wherein the multiple filtering algorithms correspond to the multiple first voltages one by one, and the multiple filtering algorithms have different characteristics respectively;
[0011] A second acquisition module is used to acquire first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located, wherein the first voltage weight information includes first weights corresponding to the plurality of filtering algorithms respectively;
[0012] a calculation module, configured to obtain a second voltage of the vehicle controller by using a weighted average algorithm according to first weights and a plurality of first voltages respectively corresponding to a plurality of filtering algorithms; and
[0013] The determination module is used to determine the power state of the vehicle controller according to the second voltage.
[0014] In another aspect, the present disclosure provides an electronic device, comprising:
[0015] At least one processor. And
[0016] A memory in communication with the at least one processor.
[0017] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any embodiment of the present disclosure.
[0018] On the other hand, the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any embodiment of the present disclosure.
[0019] On the other hand, the present disclosure provides a computer program product, comprising a computer program, which implements the method according to any embodiment of the present disclosure when executed by a processor.
[0020] According to the solution disclosed in the present invention, a more accurate operating voltage value of the vehicle-mounted controller can be obtained, thereby accurately monitoring the power status of the vehicle-mounted controller.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0023] Figure 1 It is a flowchart of a method for determining the power status of a vehicle-mounted controller according to an embodiment of the present disclosure.
[0024] Figure 2 4 is an application diagram of a method for determining a power state of a vehicle-mounted controller according to an embodiment of the present disclosure.
[0025] Figure 3 4 is an application diagram of a method for determining a power state of a vehicle-mounted controller according to an embodiment of the present disclosure.
[0026] Figure 4 is a schematic diagram of a device for determining a power state of an on-board controller according to an embodiment of the present disclosure.
[0027] Figure 5 The present invention is a block diagram of an electronic device for implementing the method for determining the power state of the vehicle-mounted controller according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0029] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0030] like Figure 1 As shown, the embodiment of the present disclosure provides a method for determining the power state of a vehicle-mounted controller, comprising:
[0031] Step S101: using a plurality of filtering algorithms to obtain a plurality of first voltages of the vehicle controller at the same time, wherein the plurality of filtering algorithms correspond to the plurality of first voltages one by one, and the plurality of filtering algorithms have different characteristics.
[0032] Step S102: acquiring first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located, wherein the first voltage weight information includes first weights corresponding to the plurality of filtering algorithms respectively.
[0033] Step S103: Obtain the second voltage of the vehicle controller using a weighted average algorithm according to the first weights and the first voltages corresponding to the plurality of filtering algorithms.
[0034] Step S104: Determine the power state of the vehicle controller according to the second voltage.
[0035] According to the embodiments of the present disclosure, it should be noted that:
[0036] The multiple filtering algorithms may be understood to include at least two filtering algorithms. The filtering algorithm may be any filtering algorithm in the prior art, and is not specifically limited here.
[0037] The multiple filtering algorithms correspond to the multiple first voltages one by one, and it can be understood that at a certain moment, the first voltage of the vehicle controller is obtained using each filtering algorithm.
[0038] A variety of filtering algorithms have different characteristics. It can be understood that one of the filtering algorithms has the characteristics of high sensitivity, one of the filtering algorithms has the characteristics of strong anti-interference, and one of the filtering algorithms has the characteristics of high computational efficiency. It can also be understood that one of the filtering algorithms has the characteristics of high sensitivity and strong anti-interference, and one of the filtering algorithms has the characteristics of high computational efficiency. It can also be understood that one of the filtering algorithms has the characteristics of high sensitivity and high computational efficiency, and one of the filtering algorithms has the characteristics of strong anti-interference. It can also be understood that one of the filtering algorithms has the characteristics of strong anti-interference and high computational efficiency, and one of the filtering algorithms has the characteristics of high sensitivity. The above is only used as an example to illustrate that a variety of filtering algorithms can have one or more different characteristics. A variety of filtering algorithms include but are not limited to Kalman filtering algorithm, Wiener filtering algorithm, Gaussian filtering algorithm, median filtering algorithm, mean filtering algorithm, etc. Among them, the Kalman filter algorithm has high sensitivity, high anti-interference ability, and low calculation efficiency; the Wiener filter algorithm has high sensitivity, medium anti-interference ability, and low calculation efficiency; the Gaussian filter algorithm has medium sensitivity, medium anti-interference ability, and medium calculation efficiency; the median filter algorithm has medium sensitivity, high anti-interference ability, and medium calculation efficiency; the mean filter algorithm has low sensitivity, medium anti-interference ability, and high calculation efficiency. When obtaining the first voltage of the vehicle controller, at least two required filter algorithms can be selected from the above multiple filter algorithms according to the requirements of the filter characteristics.
[0039] The preset voltage range can be set according to the function and model of the vehicle controller. The preset voltage range may include but is not limited to the standard operating voltage range of the vehicle controller, the voltage warning range, the undervoltage alarm range, the overvoltage alarm range, the voltage abnormality range, etc. When the voltage of the vehicle controller obtained is in different preset voltage ranges, different operation and protection strategies will be adopted for the vehicle controller. For example, when the voltage of the vehicle controller obtained is in the standard operating voltage range, all components on the vehicle controller can work normally. When the voltage of the vehicle controller obtained is in the voltage warning range, the undervoltage alarm range, and the overvoltage alarm range, some components on the vehicle controller can work normally, and certain protection strategies and measures need to be taken. When the voltage of the vehicle controller obtained is in the voltage abnormality range, the vehicle controller cannot operate normally or the operation will damage specific components on it. At this time, emergency protection strategies and measures need to be taken. For example, such as Figure 2As shown, there is now a vehicle controller equipped with FPGA (Field Programmable Gate Array), screen driver chip and other components that are sensitive to power supply voltage. The preset voltage range of the vehicle controller is 8V to 15V for standard working voltage, 6V to 8V and 15 to 17V for voltage warning, 5V to 6V for undervoltage alarm, 17 to 20V for overvoltage alarm, and the rest of the voltage values are voltage abnormal ranges.
[0040] The current operation phase of the vehicle controller includes an initialization phase (power-on) and a steady operation phase, wherein the steady operation phase occurs after the initialization phase in terms of time. Figure 2 As shown, 0-500ms (milliseconds) is the initialization stage of the vehicle controller, and after 500ms is the stable operation stage of the vehicle controller.
[0041] Each filtering algorithm has different weights in different preset voltage intervals, and each filtering algorithm has different weights in the same preset voltage interval in the initialization phase and the stable operation phase. Figure 2 As shown, in the initialization stage, the preset voltage interval A0 of the vehicle controller is the standard working voltage of 8V~15V, the voltage warning interval A1 is 6V~8V and 15~17V, the undervoltage alarm interval A2 is 5V~6V, the overvoltage alarm interval A2 is 17~20V, and the remaining voltage values are the voltage abnormality interval A3. In the stable operation stage, the preset voltage interval B0 of the vehicle controller is the standard working voltage of 8V~15V, the voltage warning interval B1 is 6V~8V and 15~17V, the undervoltage alarm interval B2 is 5V~6V, the overvoltage alarm interval B2 is 17~20V, and the remaining voltage values are the voltage abnormality interval B3. Figure 2 In each partitioned interval, Figure 3 As shown, different weights are configured for multiple filtering algorithms. Figure 3 A0 to A3 and B0 to B3 in the figure are configured with weights for the three filtering algorithms, where the weights of the first row in A0 to A3 and B0 to B3 correspond to the first filtering algorithm, the weights of the second row in A0 to A3 and B0 to B3 correspond to the second filtering algorithm, and the weights of the third row in A0 to A3 and B0 to B3 correspond to the third filtering algorithm.
[0042] The power status can be understood as whether the current power supply voltage of the vehicle controller will cause damage to some of the components mounted thereon or cause the vehicle controller to fail to operate.
[0043] According to the technology of the embodiment of the present disclosure, by using multiple filtering algorithms to simultaneously collect the first voltage of the vehicle controller, the advantages and characteristics of different filtering algorithms can be combined to obtain a more accurate working voltage value of the vehicle controller, solving the problem that a single filtering algorithm has poor sensitivity and cannot track the actual voltage change in real time, and the problem that it is difficult to filter out noise interference due to poor anti-interference, so that the voltage of the vehicle controller adopts sampling requirements that take into account both anti-disturbance and real-time performance. The second voltage obtained by fusion sampling of multiple filtering algorithms can more accurately characterize the actual voltage value of the vehicle controller, so that the second voltage can be used to accurately monitor the power status of the vehicle controller.
[0044] In one implementation, the method for determining the power state of the vehicle controller provided in the embodiment of the present disclosure includes steps S101 to S104, wherein step S101: using multiple filtering algorithms to obtain multiple first voltages of the vehicle controller at the same time, including:
[0045] At least a first filtering algorithm with high sensitivity, a second filtering algorithm with strong anti-interference characteristics, and a third filtering algorithm with high computational efficiency are used to obtain multiple first voltages of the vehicle controller at the same time.
[0046] According to the embodiments of the present disclosure, it should be noted that:
[0047] Sensitivity can be understood as the degree to which the filter responds to small changes in the input signal.
[0048] Anti-interference can be understood as the ability of the filter to resist noise and interference.
[0049] Computational efficiency can be understood as the computational complexity of the filter algorithm.
[0050] According to the technology of the embodiment of the present disclosure, by using multiple filtering algorithms to simultaneously collect the first voltage of the vehicle controller, the advantages and characteristics of different filtering algorithms can be combined to obtain a more accurate working voltage value of the vehicle controller, solving the problem that a single filtering algorithm has poor sensitivity and cannot track the actual voltage change in real time, and the problem that it is difficult to filter out noise interference due to poor anti-interference, so that the voltage of the vehicle controller adopts sampling requirements that take into account both anti-disturbance and real-time performance. The second voltage obtained by fusion sampling of multiple filtering algorithms can more accurately characterize the actual voltage value of the vehicle controller, so that the second voltage can be used to accurately monitor the power status of the vehicle controller.
[0051] In one embodiment, the method for determining the power state of the vehicle controller provided by the embodiment of the present disclosure includes steps S101 to S104, wherein step S102: obtaining first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located, includes:
[0052] According to the current operation stage of the vehicle-mounted controller, second voltage weight information corresponding to the operation stage is determined.
[0053] When a plurality of first voltages are located in the same preset voltage interval, first voltage weight information corresponding to the same preset voltage interval is obtained from the second voltage weight information.
[0054] According to the embodiments of the present disclosure, it should be noted that:
[0055] The current operation phase of the on-board controller includes an initialization phase (power-on) and a steady operation phase, wherein the steady operation phase occurs after the initialization phase in terms of time.
[0056] like Figure 2 , Figure 3 As shown, if the current operating stage of the vehicle controller is a stable operating stage, and the voltage values of the first voltage obtained by using multiple filtering algorithms are all in the preset voltage interval B0, then the second voltage can be obtained by using only the first voltage weight information corresponding to the B0 interval through a weighted average algorithm.
[0057] According to the technology of the embodiment of the present disclosure, by configuring different weights for multiple filtering algorithms according to different operating stages and different voltage ranges of the vehicle controller, the multiple filtering algorithms can be more adapted to the current voltage sampling scenario, so that the second voltage finally obtained using multiple filtering algorithms is more accurate.
[0058] In one embodiment, the method for determining the power state of the vehicle controller provided by the embodiment of the present disclosure includes steps S101 to S104, wherein step S102: obtaining first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located, includes:
[0059] According to the current operation stage of the vehicle-mounted controller, second voltage weight information corresponding to the operation stage is determined.
[0060] When the plurality of first voltages are located in different preset voltage intervals, first voltage weight information corresponding to the different preset voltage intervals is respectively acquired from the second voltage weight information.
[0061] According to the embodiments of the present disclosure, it should be noted that:
[0062] The current operation phase of the on-board controller includes an initialization phase (power-on) and a steady operation phase, wherein the steady operation phase occurs after the initialization phase in terms of time.
[0063] like Figure 2 , Figure 3As shown, if the current operating stage of the vehicle controller is a stable operating stage, and the voltage values of the first voltage obtained by using multiple filtering algorithms are located in the preset voltage intervals B0 and B1, it is necessary to use the first voltage weight information corresponding to the B0 and B1 intervals to obtain the second voltage.
[0064] According to the technology of the embodiment of the present disclosure, by configuring different weights for multiple filtering algorithms according to different operating stages and different voltage ranges of the vehicle controller, the multiple filtering algorithms can be more adapted to the current voltage sampling scenario, so that the second voltage finally obtained using multiple filtering algorithms is more accurate.
[0065] In one implementation, the method for determining the power state of the vehicle controller provided by the embodiment of the present disclosure includes steps S101 to S104, wherein step S103: obtaining the second voltage of the vehicle controller by using a weighted average algorithm according to first weights and multiple first voltages respectively corresponding to multiple filtering algorithms, including:
[0066] The first voltage weight information corresponding to different preset voltage intervals is weighted and averaged to obtain the second voltage weight information, wherein the second voltage weight information includes second weights corresponding to the plurality of filtering algorithms respectively.
[0067] The second voltage of the vehicle controller is obtained by using a weighted average algorithm according to the second weights corresponding to the multiple filtering algorithms and the multiple first voltages.
[0068] According to the embodiments of the present disclosure, it should be noted that:
[0069] The first voltage weight information corresponding to different preset voltage intervals is weighted and averaged. It can be understood that if multiple first voltages obtained through multiple filtering algorithms are respectively located in different preset voltage intervals, it is necessary to weight-average the first voltage weight information of different preset voltage intervals to obtain new second voltage weight information that combines the weights of two preset voltage intervals.
[0070] According to the technology of the embodiment of the present disclosure, by configuring different weights for multiple filtering algorithms according to different operating stages and different voltage ranges of the vehicle controller, the multiple filtering algorithms can be more adapted to the current voltage sampling scenario, so that the second voltage finally obtained using multiple filtering algorithms is more accurate.
[0071] In one example, when the vehicle controller is in the initialization operation stage, because the various parts of the vehicle controller system are not yet stable, it is necessary to quickly check the initial external environment of the system and quickly capture abnormal voltages that may damage sensitive components. For this reason, the weight focuses on filtering algorithms with high sensitivity and poor noise resistance. From A0 to A3, if the power supply deteriorates and the abnormal voltage needs to be captured more and more sensitively, the weight of the filtering algorithm with higher sensitivity increases, while the weight of the filtering algorithm with strong anti-disturbance and delayed response decreases.
[0072] In one example, when the vehicle controller is in a stable operation stage, because the various parts of the vehicle controller system work smoothly, the probability of sudden changes in the power supply voltage or even damage to the device is relatively low. At this stage, the main purpose of voltage monitoring is to filter out various external noise interferences during operation, and at the same time, it can also capture abnormal changes in voltage. To this end, focus on filtering algorithms with strong anti-noise capabilities and high robustness. Reduce the weight of filtering algorithms with poor noise suppression capabilities. From B0 to B3, if the power supply is getting worse and worse, more and more sensitive capture of abnormal voltages is required, so the weight of filtering algorithms with higher sensitivity increases, while the weight of filtering algorithms with strong anti-disturbance and delayed response decreases.
[0073] In one implementation, the method for determining the power state of the vehicle controller provided in the embodiment of the present disclosure includes steps S101 to S104, wherein step S104: determining the power state of the vehicle controller according to the second voltage includes:
[0074] According to the pre-divided operating voltage interval of the on-board controller, a target sub-interval in which the second voltage is located is determined, wherein the operating voltage interval includes a plurality of sub-intervals.
[0075] According to the target sub-interval, the power state of the vehicle controller is determined.
[0076] According to the embodiments of the present disclosure, it should be noted that:
[0077] The multiple sub-intervals included in the working voltage interval can correspond to the preset voltage interval. For example, when the voltage of the vehicle controller obtained is in the standard working voltage interval, all devices on the vehicle controller can work normally, and it is determined that the power supply status is normal, and no protective measures are required. When the voltage of the vehicle controller obtained is in the voltage warning interval, the undervoltage alarm interval, and the overvoltage alarm interval, some devices on the vehicle controller can work normally, and it is determined that certain protection strategies and measures need to be taken for the vehicle controller under this power state. When the voltage of the vehicle controller obtained is in the abnormal voltage interval, the vehicle controller cannot operate normally or the operation will damage specific components on it. At this time, it is determined that emergency protection strategies and measures need to be taken for the vehicle controller under this power state.
[0078] According to the technology of the embodiment of the present disclosure, by determining the voltage range in which the second voltage is located, the power status of the vehicle controller can be accurately determined, so that corresponding protection strategies and protection measures for the vehicle controller can be adopted to prevent the devices mounted on the vehicle controller from being damaged when the operating voltage of the vehicle controller is abnormal.
[0079] like Figure 4 As shown, an embodiment of the present disclosure provides a device for determining a power state of a vehicle-mounted controller, comprising:
[0080] The first acquisition module 410 is used to acquire multiple first voltages of the vehicle controller at the same time by using multiple filtering algorithms, wherein the multiple filtering algorithms correspond to the multiple first voltages one by one, and the multiple filtering algorithms have different characteristics.
[0081] The second acquisition module 420 is used to acquire first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the multiple first voltages are located, wherein the first voltage weight information includes first weights corresponding to the multiple filtering algorithms respectively.
[0082] The calculation module 430 is used to obtain the second voltage of the vehicle controller by using a weighted average algorithm according to the first weights and the first voltages corresponding to the plurality of filtering algorithms.
[0083] The determination module 440 is used to determine the power state of the vehicle controller according to the second voltage.
[0084] In one implementation, the first acquisition module 410 is used to:
[0085] At least a first filtering algorithm with high sensitivity, a second filtering algorithm with strong anti-interference characteristics, and a third filtering algorithm with high computational efficiency are used to obtain multiple first voltages of the vehicle controller at the same time.
[0086] In one implementation, the second acquisition module 420 is used to:
[0087] According to the current operation stage of the vehicle-mounted controller, second voltage weight information corresponding to the operation stage is determined.
[0088] When a plurality of first voltages are located in the same preset voltage interval, first voltage weight information corresponding to the same preset voltage interval is obtained from the second voltage weight information.
[0089] In one implementation, the second acquisition module 420 is used to:
[0090] According to the current operation stage of the vehicle-mounted controller, second voltage weight information corresponding to the operation stage is determined.
[0091] When the plurality of first voltages are located in different preset voltage intervals, first voltage weight information corresponding to the different preset voltage intervals is respectively acquired from the second voltage weight information.
[0092] In one embodiment, the calculation module 430 is used to:
[0093] The first voltage weight information corresponding to different preset voltage intervals is weighted and averaged to obtain the second voltage weight information, wherein the second voltage weight information includes second weights corresponding to the plurality of filtering algorithms respectively.
[0094] The second voltage of the vehicle controller is obtained by using a weighted average algorithm according to the second weights corresponding to the multiple filtering algorithms and the multiple first voltages.
[0095] In one implementation, the determination module 440 is configured to:
[0096] According to the pre-divided operating voltage interval of the on-board controller, a target sub-interval in which the second voltage is located is determined, wherein the operating voltage interval includes a plurality of sub-intervals.
[0097] According to the target sub-interval, the power state of the vehicle controller is determined.
[0098] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0099] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0100] Figure 5 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 5 As shown, the electronic device includes: a memory 510 and a processor 520, and the memory 510 stores a computer program that can be run on the processor 520. The number of memories 510 and processors 520 can be one or more. The memory 510 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 530, which is used to communicate with external devices and perform data exchange transmission.
[0101] If the memory 510, the processor 520 and the communication interface 530 are implemented independently, the memory 510, the processor 520 and the communication interface 530 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0102] Optionally, in a specific implementation, if the memory 510, the processor 520 and the communication interface 530 are integrated on a chip, the memory 510, the processor 520 and the communication interface 530 can communicate with each other through an internal interface.
[0103] It should be understood that the processor 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. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0104] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0105] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the computer, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0106] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0107] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0108] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0109] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0110] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for determining a power state of a vehicle-mounted controller, comprising: Using multiple filtering algorithms, obtaining multiple first voltages of the vehicle controller at the same time, wherein the multiple filtering algorithms correspond to the multiple first voltages one by one, and the multiple filtering algorithms have different characteristics respectively; According to the current operation stage of the vehicle controller and the preset voltage interval in which the multiple first voltages are located, obtaining first voltage weight information, wherein the first voltage weight information includes first weights corresponding to the multiple filtering algorithms respectively; Obtaining a second voltage of the vehicle controller by using a weighted average algorithm according to the first weights respectively corresponding to the plurality of filtering algorithms and the plurality of first voltages; and The power state of the onboard controller is determined according to the second voltage.
2. The method according to claim 1, wherein: Using multiple filtering algorithms, multiple first voltages of the vehicle controller at the same time are obtained, including: At least a first filtering algorithm with high sensitivity, a second filtering algorithm with strong anti-interference characteristics, and a third filtering algorithm with high computational efficiency are used to obtain multiple first voltages of the vehicle controller at the same time.
3. The method according to claim 1, wherein: Acquiring first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located includes: Determining second voltage weight information corresponding to the current operation stage of the vehicle controller; When the plurality of first voltages are located in a same preset voltage interval, the first voltage weight information corresponding to the same preset voltage interval is acquired from the second voltage weight information.
4. The method according to claim 1, wherein: Acquiring first voltage weight information according to the current operation stage of the vehicle controller and the preset voltage interval in which the plurality of first voltages are located includes: Determining second voltage weight information corresponding to the current operation stage of the vehicle controller; In a case where the plurality of first voltages are located in different preset voltage intervals, first voltage weight information corresponding to the different preset voltage intervals is respectively acquired from the second voltage weight information.
5. The method according to claim 4, wherein: The method of obtaining the second voltage of the vehicle controller by using a weighted average algorithm according to the first weights respectively corresponding to the plurality of filtering algorithms and the plurality of first voltages includes: Re-averaging the first voltage weight information corresponding to the different preset voltage intervals to obtain second voltage weight information, wherein the second voltage weight information includes second weights corresponding to the multiple filtering algorithms respectively; The second voltage of the vehicle controller is obtained by using a weighted average algorithm according to the second weights respectively corresponding to the multiple filtering algorithms and the multiple first voltages.
6. The method according to any one of claims 1 to 5, wherein: Determining a power state of the vehicle-mounted controller according to the second voltage includes: Determine a target sub-interval where the second voltage is located according to a pre-divided operating voltage interval of the on-board controller, wherein the operating voltage interval includes a plurality of sub-intervals; The power state of the vehicle controller is determined according to the target sub-interval.
7. A device for determining the power state of a vehicle-mounted controller, comprising: A first acquisition module, used to acquire multiple first voltages of the vehicle controller at the same time by using multiple filtering algorithms, wherein the multiple filtering algorithms correspond to the multiple first voltages one by one, and the multiple filtering algorithms have different characteristics respectively; A second acquisition module, configured to acquire first voltage weight information according to a current operation stage of the vehicle-mounted controller and a preset voltage interval in which the plurality of first voltages are located, wherein the first voltage weight information includes first weights corresponding to the plurality of filtering algorithms respectively; a calculation module, configured to obtain a second voltage of the vehicle controller by using a weighted average algorithm according to first weights respectively corresponding to the plurality of filtering algorithms and the plurality of first voltages; and A determination module is used to determine the power state of the vehicle controller according to the second voltage.
8. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.