Power supply control method, device, vehicle and storage medium
By executing a preset power reset program in the intelligent cockpit power control system, simulating the power reset curve and controlling the power output voltage, the problem of unstable power control and difficulty in testing the limit state in the existing technology is solved, and automated detection and stability are achieved promote.
Patent Information
- Application Number
- CN202410367625.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The prior art is difficult to achieve a stable and low-cost voltage waveform during the smart cockpit power control process, and it is difficult to provide the limit state of the power supply to the power control system for testing, resulting in system stability problems.
By executing a preset power reset program, the power reset curve is obtained based on the voltage waveform change data, and the power output voltage is controlled based on the simulated power reset curve.
Automatic stability detection and abnormal detection are realized, which reduces labor costs and improves the stability of the vehicle and machine system.
Smart Images

Figure CN118192732B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a power control method, a power control device, a corresponding vehicle, and a corresponding computer-readable storage medium. Background Art
[0002] Intelligent cockpits can further improve the intelligence level of new energy vehicles, but if the intelligent cockpit screen has serious system stability problems such as black screen, flashing screen, irregular restart, etc., it will cause safety hazards to new energy vehicles. Serious problems such as black screen, flashing screen, irregular restart caused by unstable power control system need to be solved in the development, debugging and testing stage of intelligent cockpit. However, in the current power control process, it can mainly be achieved by power limit detection of the power control of the intelligent cockpit, that is, there is no stable and low-cost voltage waveform implementation method, and it is difficult to provide the power limit state to the power control system for testing. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a power control method, a power control device, a corresponding vehicle and a corresponding computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0004] An embodiment of the present invention discloses a power supply control method, the method comprising:
[0005] In response to the power control instruction, a preset power reset program is executed; the script in the preset power reset program includes voltage waveform change data; the power reset curve is used to indicate the voltage waveform change of switching from a preset first voltage to a preset second voltage for multiple times and maintaining at the preset second voltage;
[0006] By using the preset power reset program, a power reset curve is simulated according to the voltage waveform change data;
[0007] The power supply output voltage is controlled according to the power supply reset curve.
[0008] The embodiment of the present invention further discloses a power supply control device, the device comprising:
[0009] A program execution module, for responding to a power control instruction and executing a preset power reset program; the script in the preset power reset program includes voltage waveform change data;
[0010] A voltage curve simulation module, used to simulate a power reset curve according to the voltage waveform change data through the preset power reset program; the power reset curve is used to indicate that the voltage switches from a preset first voltage to a preset second voltage for multiple times and remains at the voltage waveform change of the preset second voltage;
[0011] A power control module is used to control the power output voltage according to the power reset curve.
[0012] An embodiment of the present invention further discloses a vehicle, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements any one of the power control methods when executed by the processor.
[0013] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the power control methods is implemented.
[0014] The embodiments of the present invention include the following advantages:
[0015] In the embodiment of the present invention, by executing the preset power reset program, the power reset curve is simulated based on the voltage waveform change data, and then the power output voltage is controlled according to the simulated power reset curve. By executing the program to control the program-controlled power supply to perform waveform simulation on the power voltage, so as to control the power output to obtain the simulated corresponding voltage, the program can be used to replace a large number of repeated manual operations, laying a foundation for reducing repeated work for subsequent detection, so as to realize automated stability detection and abnormality detection in the future, reduce labor costs, and thus generate certain economic value. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flowchart of a power control method embodiment of the present invention;
[0017] Figure 2 is a flowchart of another power control method embodiment of the present invention;
[0018] Figure 3 It is a schematic diagram of the process of power supply vehicle screen testing provided by an embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of an application scenario of a power vehicle screen test provided by an embodiment of the present invention;
[0020] Figure 5 It is a structural block diagram of an embodiment of a power supply control device of the present invention. DETAILED DESCRIPTION
[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0022] The instability problem of the power control system can be determined by the detection result obtained by performing power limit detection on the power control of the smart cockpit. Specifically, the power limit detection involves providing the power limit state to the power control system, and in this process, the power control system simulates the voltage change curve. In the relevant prior art, as an example, it can be realized by manually providing the voltage change curve to the power control system and detecting it, but due to the ever-changing actual voltage change curve, it is difficult for manual detection to provide the power limit state to the power control system; as another example, the power supply voltage change waveform can be drawn according to the scene, and the corresponding configuration file can be output, and then the configuration file of the aforementioned power supply voltage change waveform can be imported into a dedicated programmable power supply, and the corresponding voltage change curve simulation is realized by controlling the device under test through the programmable power supply. However, in the aforementioned method, the waveform configuration file needs to be bound to a specific model of programmable power supply, and the drawn and output configuration file is not extensible, and the price of a specific model of programmable power supply is relatively expensive, and the power supply test cost is high, which is not conducive to different test scenarios.
[0023] The embodiments of the present invention can execute a preset power reset program, simulate a power reset curve based on voltage waveform change data, and then perform a corresponding voltage output according to the simulated power reset curve, so as to replace a large number of repetitive manual operations based on the use of a program, thereby laying a foundation for reducing repetitive work in subsequent detections, so as to facilitate the subsequent implementation of automated stability detection and abnormality detection, reduce labor costs, and thus generate certain economic value. Furthermore, the aforementioned power reset program can be used to test the smart cockpit in a power quick reset scenario, specifically in the screen detection process, and also in the power limit detection process. Specifically, it can be manifested as executing a preset power reset program to control the programmable power supply connected to the smart cockpit to simulate the power reset curve corresponding to the power reset scenario, and at the end of the execution of the preset power reset program, performing an abnormality detection on the vehicle computer of the smart cockpit that maintains a preset second voltage, so as to obtain the detection result of the vehicle computer of the smart cockpit after the simulation of the power reset curve, thereby realizing the vehicle computer test of the smart cockpit, that is, based on the response to the execution of the program and the response to the end of the execution of the program, automatic stability detection and abnormality detection can be performed for the rapid reset in the power scenario, thereby exposing the black screen and other problems of the smart cockpit caused by unstable power supply in advance, so as to facilitate the developers to solve the aforementioned problems in the smart cockpit development stage, and to improve the stability of the vehicle computer system to a certain extent.
[0024] Reference Figure 1, shows a flow chart of a power control method embodiment of the present invention, which may specifically include the following steps:
[0025] Step 101, responding to the power control instruction, executing a preset power reset procedure;
[0026] The power control instruction can be expressed as a control instruction for a programmable power supply. The control of the programmable power supply can be mainly achieved by executing a power control program through a program control device.
[0027] In one embodiment of the present invention, the power control program specifically controlled by the program control device may correspond to a specific power test scenario. Taking the fast reset in the power scenario as an example, the power control program executed by the program control device may be a preset power reset program, and the preset power reset program may simulate a power reset curve.
[0028] Step 102, by means of a preset power reset program, a power reset curve is obtained by simulating the voltage waveform change data;
[0029] For example, serious problems such as black screen, flashing screen, irregular restart, etc. on the smart cockpit car screen are usually caused by the instability of the power control system. The test of the smart cockpit can usually be manifested as a power limit test on the power control system. The power limit test on the power control system can be performed by executing a preset power reset program through a program control device, and controlling the programmable power supply to simulate the power reset curve.
[0030] Specifically, the script in the preset power reset program may include voltage waveform change data. For the simulation of the power reset curve, the voltage waveform change data in the preset power reset program may be obtained, and then the power reset curve may be simulated. The preset power reset program may be obtained by writing a corresponding voltage waveform change script, and the voltage waveform change data may be constructed in the form of a data frame in the voltage waveform change script of the preset power reset program. At this time, the preset power reset program may be used to construct a data frame based on the voltage waveform change data, so as to simulate the power reset curve according to the data frame.
[0031] The constructed data frame may include at least one of the following bits: data header bit, power address bit, command word bit, operation mode bit, data control bit, default data bit, data reservation bit, and checksum bit. Among them, the data header bit refers to the fixed value of the programmable power supply; the power address bit can be 0 by default. If the program control device is connected to multiple programmable power supplies, the power address bit can be increased by 1 in sequence; the command word bit can be filled in mainly according to the instruction document of the programmable power supply, for example, 0x20 can represent panel control, and 0x23 can represent setting voltage; the operation mode and data control bit are the specific voltage change mode (such as voltage jump or voltage gradient, etc.) and the specific value (such as voltage value, etc.).
[0032] Exemplarily, a hexadecimal data frame can be constructed by adopting the make_package() method. The main logic can be expressed as passing parameters such as the power port address addr, command word comm, data_4, data_5, data_6, data_7, etc. to the make_package() method. make_package() can convert the decimal value into a hexadecimal data frame value based on the passed in parameters, specifically by initializing the data frame list, and then adding the data header bit: 0xaa; adding the power address bit: addr; adding the command word bit: comm; adding the operation mode, data control bit: data_4, data_5, data_6, data_7; adding default data, data reservation bits: supplementing 18 zeros; adding a checksum bit: adding all the above bits, modulo 256, and then constructing a hexadecimal data frame based on the aforementioned bits, so as to facilitate the simulation of the power curve based on the constructed data frame.
[0033] Step 103, controlling the power supply output voltage according to the power supply reset curve.
[0034] In practical applications, the power supply can be controlled to output a corresponding voltage based on the power supply reset curve simulated by the constructed data frame, so that the output voltage can be used for subsequent screen detection or power supply limit detection.
[0035] Among them, the simulated power reset curve can be mainly used to indicate that the voltage switches from a preset first voltage to a preset second voltage multiple times and maintains a voltage waveform change at the preset second voltage, wherein the preset first voltage can be multiple identical or different low voltages, and the preset second voltage can refer to a normal voltage. The specific values or value ranges of the low voltage and the normal voltage can be set according to actual conditions. The embodiment of the present invention does not limit this, that is, the voltage waveform change presented by the aforementioned power reset curve conforms to the rapid reset in the power scenario.
[0036] It should be noted that the power control program executed in different power test scenarios obtains the required corresponding power voltage change curve, that is, the solution provided by the embodiment of the present invention is not limited to the power reset curve in the simulation power fast reset scenario, and the embodiment of the present invention is not limited to this.
[0037] In the embodiment of the present invention, by executing the preset power reset program, the power reset curve is simulated based on the voltage waveform change data, and then the power output voltage is controlled according to the simulated power reset curve. By executing the program to control the program-controlled power supply to perform waveform simulation on the power voltage, so as to control the power output to obtain the simulated corresponding voltage, the program can be used to replace a large number of repeated manual operations, laying a foundation for reducing repeated work for subsequent detection, so as to realize automated stability detection and abnormality detection in the future, reduce labor costs, and thus generate certain economic value.
[0038] Reference Figure 2 , shows a flow chart of another power limit detection power control method embodiment of the present invention, which may specifically include the following steps:
[0039] Step 201, executing a preset power reset program, and constructing a data frame based on voltage waveform change data through the preset power reset program;
[0040] In the embodiment of the present invention, the simulation of the voltage change curve can be realized by the power control program executed by the program control device. Taking the fast reset in the power scenario as an example, the power control program executed by the program control device can be a preset power reset program. At this time, the preset power reset program can be executed to simulate the power reset curve through the preset power reset program.
[0041] Specifically, the script in the preset power reset program may include voltage waveform change data. For the simulation of the power reset curve, the voltage waveform change data in the preset power reset program may be obtained, and then the power reset curve may be simulated. The preset power reset program may be obtained by writing a corresponding voltage waveform change script, and the voltage waveform change data may be constructed in the form of a data frame in the voltage waveform change script of the preset power reset program. At this time, the preset power reset program may be used to construct a data frame based on the voltage waveform change data, so as to simulate the power reset curve according to the data frame.
[0042] The voltage waveform change data may include voltage jump data and voltage gradient data. When simulating the power reset curve based on the constructed data frame, as an example, assuming that a simulation of a power supply voltage curve with a voltage jump is performed, a first data frame including a first operating mode bit and a first data control bit for indicating voltage jump control can be constructed based on the voltage jump data. The aforementioned first data control bit can be used to input a target jump voltage and a voltage jump duration. The constructed first data frame can be used to indicate a data frame in which the voltage jumps to a target voltage. As another example, assuming that a simulation of a power supply voltage curve with a voltage gradient is performed, a second data frame including a second operating mode bit and a second data control bit for indicating voltage gradient control can be constructed based on the voltage gradient data. The second data control bit can be used to input a gradient time, a gradient interval, a target gradient voltage and a gradient start voltage. That is, the constructed second data frame can be used to indicate that the power supply voltage jumps to a corresponding gradient voltage value at each interval time.
[0043] In a preferred embodiment of the present invention, Figure 3 As shown, before constructing a data frame to control the voltage waveform change, time synchronization can be performed first, specifically, time synchronization between the program control device and the device under test, that is, sync_time(), to ensure that when the program is executed, the device under test can perform corresponding voltage change control according to the time set in the preset power reset program, ensure the accuracy of the simulated voltage waveform change, and then ensure the accuracy of the detection of the device under test. Specifically, after obtaining the device time of the program control device, the time can be pushed to the device under test through commands such as ADB (Android DebugBridge, which is a general command line tool that allows communication with emulator instances or connected Android devices), and the system time of the device under test can be modified.
[0044] Step 202, obtaining a power reset curve according to the data frame simulation;
[0045] The constructed data frame may include a first data frame including a first operating mode bit and a first data control bit, and a second data frame including a second operating mode bit and a second data control bit, wherein the first data frame may be used to indicate a voltage jump to a target voltage, and the second data frame may be used to indicate that the power supply voltage jumps to a corresponding gradual voltage value at each interval time.
[0046] In one case, assuming that a simulation of a power supply voltage curve of a voltage jump is performed, a first power supply voltage curve whose voltage changes to a target jump voltage within a voltage jump duration can be generated according to the first operation mode bit and the first data control bit.
[0047] Exemplarily, the voltage jump can be implemented by adopting the set_voltage() method, which is manifested by passing in the parameter: the target jump voltage value voltage, and then the program control mode can be started by adopting the power_ctrl() method, and through make_package(), it can be specifically manifested by constructing a data frame through make_package(addr=0,comm=0x20,data_4=1,data_5=0,data 6=0,data_7=0) to send a serial port signal to the program-controlled power supply; at this time, data_5 can be calculated as the value obtained by dividing the target jump voltage value voltage by 0.256, and data_4 can be calculated as the value obtained by dividing the target jump voltage value voltage by 0.001 after taking the remainder of 0.256, and then at this time, the voltage value can be set by make_package(addr=0,comm=0x23,data_4=data_4,data_5=data_5,data_6=0,data_7=0), thereby simulating the first power supply voltage curve for voltage jump control.
[0048] In another case, assuming that a simulation of a power supply voltage curve with a voltage gradient is performed, the gradient time and gradient interval can be used to calculate the gradient times according to the second operating mode, wherein the gradient time can be used as the interval time of the voltage jump. At this time, the target gradient voltage, the gradient starting voltage and the gradient times can be used to calculate the gradient voltage values with equal intervals as the gradient times, so as to generate a second power supply voltage curve in which the voltage can be changed to the corresponding gradient voltage value at the aforementioned interval time.
[0049] Exemplarily, voltage ramping can be implemented by adopting the set_voltage_ramp() method, which is performed by calculating the number of ramps by passing in the ramp time and the ramp interval, and then evenly dividing it into the number of ramps according to the ramp start voltage and the target ramp voltage, and then passing the voltage value obtained in each portion into set_voltage() for voltage ramping. Specifically, it can be expressed as the input parameters: target gradient voltage voltage, gradient start voltage voltage_start, gradient time interval (in milliseconds), gradient interval interval step (in milliseconds), and then the gradient times interval_cnt can be calculated. Specifically, it can be judged whether interval_step is greater than interval. If the gradient interval interval_step is greater than the gradient time interval, the gradient times interval_cnt can be 2. If the gradient interval interval_step is less than or equal to the gradient time interval, the gradient times interval_cnt can be the value calculated by dividing the gradient time interval by the gradient interval step. At this time, the gradient start voltage voltage_start, the target gradient voltage, and the gradient times interval_cnt can be input, and the numpy.linspace method can be used to calculate interval cnt at equal intervals at the gradient start voltage voltage start and the target gradient voltage voltage; the value calculated by the numpy.linspace method can be a list sequence of voltage values from small to large, and each voltage value has an equal interval. At this time, you can loop through it according to the interval time, pass in the sequence values in turn, and call the set_voltage() method to set the corresponding gradient voltage value, so as to simulate the second power supply voltage curve for voltage gradient control. Among them, each interval time can be gradually spaced interval_step.
[0050] Step 203, controlling the power supply output voltage according to the power supply reset curve.
[0051] In practical applications, the voltage waveform change script may include at least one data frame, each data frame may include a first data frame including a first operation mode bit and a first data control bit, and / or a second data frame including a second operation mode bit and a second data control bit, wherein the first data frame and the second data frame may be continuous or discontinuous in the voltage waveform change script. That is, the simulated power supply voltage curve may include the above-mentioned first target power supply voltage curve and / or second target power supply voltage curve, wherein the first power supply voltage curve is used to indicate that the power supply voltage jumps to the target jump voltage, and the second power supply voltage curve is used to indicate that the power supply voltage jumps to the corresponding gradual voltage value at each interval, so as to realize curve simulation of more ever-changing power supply voltages based on curve compounding.
[0052] In one embodiment of the present invention, the voltage output by the control power supply can be expressed as the control power supply simulating the power supply voltage change curve according to the first power supply voltage curve and / or the second power supply voltage curve, so that the power supply can output the corresponding voltage according to the power supply voltage change curve. It should be noted that the voltage simulated output by the power supply can be applied to the process of screen detection, and can also be applied to the process of power supply limit detection, and the embodiment of the present invention does not limit this.
[0053] Taking the power limit test as an example, the power supply can be tested by the output voltage to obtain the test result. Taking the screen detection as an example, the device under test can be controlled mainly by the output voltage. When the voltage of the device under test is maintained at a preset voltage threshold, the device under test is detected for abnormality to obtain the test result.
[0054] Exemplarily, the programmable power supply can be controlled to simulate a power supply voltage change curve according to a first power supply voltage curve and / or a second power supply voltage curve, wherein the programmable power supply can be connected to the device under test to achieve voltage change control of the device under test by controlling the voltage change of the programmable power supply; when the voltage of the device under test is maintained at a preset voltage threshold, the device under test can be detected for abnormalities to obtain detection results.
[0055] In practical applications, specifically, in response to executing a preset power reset program to control the programmable power supply and automatically simulating the power reset curve, the device under test that has simulated the power reset curve and restored the normal voltage can be automatically detected for abnormalities by responding to the end of the program execution, thereby obtaining the test result and realizing automated stability detection of the rapid power reset of the device under test.
[0056] Specifically, it can be achieved by detecting the device under test, that is, whether there is a target element. In one case, if there is an identification for a certain target element, it can be determined that the test result is that the device under test is operating normally, and the next round of power fast reset program can be executed; in another case, if there is no identification for a certain target element, it can be determined that the test result is that the device under test is operating abnormally, and the execution of the program can be automatically stopped to retain the abnormal scene, so that developers can better understand the existing detection abnormalities.
[0057] It should be noted that, in order to ensure the accuracy of anomaly detection, anomaly detection may be performed according to a preset number of times, and the specific value setting of the preset number of times is not limited in the embodiment of the present invention.
[0058] Taking the vehicle computer of the smart cockpit (referred to as the smart vehicle computer) as an example, the test results obtained can be used to indicate whether the smart vehicle computer has serious problems such as black screen, flashing screen, irregular restart, etc. caused by the instability of the power control system, which will facilitate developers to solve the aforementioned problems during the smart cockpit development stage and improve the stability of the vehicle computer system to a certain extent.
[0059] Specifically, the problems of black screen, flashing screen, irregular restart, etc. that appear on the screen of the smart car machine can be realized by detecting whether the target element exists in the device under test, that is, the car machine of the smart cockpit, wherein the target element can be any interface element displayed by the car machine of the smart cockpit, that is, the detection result can be obtained by detecting whether any interface element on the screen of the smart car machine is displayed normally. In actual applications, the display of interface elements on the car machine can be indicated based on the existence of specific tags. In one case, if there is an identification for a certain interface element, it can be determined that the detection result is that the car machine of the smart cockpit is running normally, and the next round of power quick reset program can be executed at this time; in another case, if there is no identification for a certain interface element, it can be determined that the car machine of the smart cockpit is running abnormally, and the execution of the program can be automatically stopped at this time to retain the abnormal scene, so that developers can better understand the existing detection abnormalities, which is conducive to developers solving problems in the development stage of the smart cockpit.
[0060] For example, the uiautomator2 library can be used to detect whether a specific element exists in the smart car computer to determine whether the car computer is turned on normally. Figure 3As shown, it can be implemented by taking check_normal(), which can be specifically expressed as the incoming parameters: check times check_count, interval sleep_secs (in seconds), whether to stop when the current exception occurs stop_when_exception; in this example, the interface elements displayed by the car computer can be identified based on the xpath tag, that is, xpath can be the positioning value of the interface element, and the program can locate the specific interface element according to the xpath. At this time, the loop check can be started according to the check times check_count, and the xpath method of uiautomator2 is used to check whether the car computer has an xpath tag, for example, execute: / / *[@resource-id="com.android.systemui:id / clock"], if the xpath tag exists, it can be determined that the screen is normally on, and the loop of abnormal detection is terminated at this time; if the xpath tag does not exist, the sleep method can be called at this time to control the number of seconds of the smart car computer to sleep for the value of sleep_secs, and then the loop check is performed according to the aforementioned check times check_count, so as to obtain the detection result and log it.
[0061] It should be noted that the above-mentioned xpath tag can be written and determined according to the actual interface situation, and the xpath can be obtained conveniently through tools such as weditor, and the embodiment of the present invention does not limit this.
[0062] In an embodiment of the present invention, by executing a preset power reset program, a power reset curve is simulated based on the voltage waveform change data, and then according to the simulated power reset curve, it is convenient to control the power output to obtain the simulated corresponding voltage, so as to replace a large number of repetitive manual operations based on the use of a program, thereby laying a foundation for reducing repetitive work in subsequent detections, so as to facilitate the subsequent realization of automated stability detection and abnormality detection, reduce labor costs, and thus generate certain economic value.
[0063] Reference Figure 4 , showing a schematic diagram of an application scenario of a vehicle screen test provided by an embodiment of the present invention.
[0064] The aforementioned power reset procedure can be applied to test the smart cockpit in a power quick reset scenario, involving program control equipment, program-controlled power supply, and the vehicle computer of the smart cockpit (referred to as the smart vehicle computer).
[0065] Among them, the program control device can be any terminal device, which can be communicated with the programmable power supply and the intelligent vehicle computer. The program control device can mainly realize the control of the aforementioned connected devices by executing the program. The executed program may include but is not limited to the power control program, the intelligent detection program and the alarm notification program. Specifically, the program control device can simulate the voltage change curve of the programmable power supply by executing the power control program, and it can also perform abnormal detection and realize abnormal notification on the intelligent vehicle computer by executing the intelligent detection program and the alarm notification program.
[0066] During the testing of the smart cockpit, the smart car computer can be connected to the programmable power supply as the device under test. The programmable power supply can provide the power supply voltage for the smart car computer, that is, by controlling the voltage change of the programmable power supply, the voltage change control of the car computer can be achieved. Specifically, when the power control program is executed, the programmable power supply can provide the smart car computer with a power supply voltage that meets the above-mentioned curve according to the voltage change curve it simulates.
[0067] Specifically, Figure 4 As shown, the power reset program can be executed to control the programmable power supply connected to the smart cockpit to simulate the power reset curve corresponding to the power reset scenario, and at the end of the execution of the preset power reset program, the vehicle computer of the smart cockpit that maintains the preset second voltage is detected for abnormalities to obtain the detection result of the vehicle computer of the smart cockpit after the simulation of the power reset curve, thereby realizing the vehicle computer test of the smart cockpit.
[0068] In actual applications, when the smart cockpit vehicle computer is started at normal voltage, the power control program can be executed by responding to the power control instruction generated by the program control device, so as to control the power reset curve of the program-controlled power supply, that is, to simulate the fast reset voltage curve, so as to realize the voltage change control of the smart vehicle computer; then, the program-controlled power supply can be controlled in response to the execution of the preset power reset program, and the power reset curve can be automatically simulated. Then, by responding to the end of the program execution, the program control device can execute the corresponding program on the smart vehicle computer, such as the smart detection program, which can perform abnormal detection on the smart vehicle computer, including but not limited to black screen, flashing screen, irregular restart, etc.
[0069] In one embodiment of the present invention, during the process of abnormality detection, an alarm notification program can also be executed through a program control device to perform abnormality monitoring. After the execution of the intelligent detection program is completed, the detection results of this time can be recorded in a report for output, and an alarm notification can be issued when an abnormality occurs. Optionally, if an abnormality occurs during the abnormality detection process, the execution of the program can be automatically stopped to retain the abnormal scene, so that developers can better understand the existing detection anomalies, which is beneficial for developers to solve problems in the smart cockpit development stage. The embodiment of the present invention is not limited to this.
[0070] In an embodiment of the present invention, by executing a program to control the programmable power supply to perform waveform simulation on the power supply voltage to control the power supply output voltage, the output voltage can be applied to subsequent processes, such as screen testing, power supply limit testing, etc., not only can the program be used to replace a large number of repetitive manual operations and reduce labor costs, but also based on the response to the execution of the program and the response to the end of the program execution, automatic stability detection and abnormality detection can be performed for the rapid reset in the power supply scenario, thereby exposing problems such as black screen in the smart cockpit due to unstable power supply in advance, which is convenient for developers to solve the aforementioned problems in the smart cockpit development stage, and can improve the stability of the vehicle system to a certain extent.
[0071] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0072] Reference Figure 5 , shows a structural block diagram of an embodiment of a power supply control device of the present invention, which may specifically include the following modules:
[0073] The program execution module 501 is used to respond to the power control instruction and execute a preset power reset program; the script in the preset power reset program includes voltage waveform change data;
[0074] The voltage curve simulation module 502 is used to simulate and obtain a power reset curve according to the voltage waveform change data through the preset power reset program; the power reset curve is used to indicate that the voltage switches from the preset first voltage to the preset second voltage for multiple times and remains at the voltage waveform change of the preset second voltage;
[0075] The power control module 503 is used to control the power output voltage according to the power reset curve.
[0076] In one embodiment of the present invention, the voltage curve simulation module 502 may include the following submodules:
[0077] The power reset curve simulation submodule is used to construct a data frame based on the voltage waveform change data through the preset power reset program; the data frame includes at least one of the following bits: data header bit, power address bit, command word bit, operation mode bit, data control bit, default data bit, data reservation bit, checksum bit; and the power reset curve is obtained by simulating the data frame.
[0078] In an embodiment of the present invention, the voltage waveform change data includes voltage jump data; the power reset curve simulation submodule may include the following units:
[0079] A voltage jump curve simulation unit is used to construct a first data frame including a first operation mode bit and a first data control bit for indicating voltage jump control based on the voltage jump data; the first data control bit is used to input a target jump voltage and a voltage jump duration; and according to the first operation mode bit and the first data control bit, a first power supply voltage curve is generated in which the voltage changes to the target jump voltage within the voltage jump duration.
[0080] In an embodiment of the present invention, the voltage waveform change data includes voltage gradient data; the power reset curve simulation submodule may include the following units:
[0081] A voltage gradient curve simulation unit is used to construct a second data frame including a second operation mode bit and a second data control bit for indicating voltage gradient control based on the voltage gradient data; the second data control bit is used to input a gradient time, a gradient interval, a target gradient voltage and a gradient start voltage; according to the second operation mode bit, the gradient time and the gradient interval are used to calculate the gradient number; wherein the gradient interval is used as the interval time of the voltage jump; the target gradient voltage, the gradient start voltage and the gradient number are used to calculate the gradient voltage values with equal spacing as the gradient number; and a second power supply voltage curve is generated in which the voltage changes to a corresponding gradient voltage value at each interval of the interval time.
[0082] In an embodiment of the present invention, the power reset curve includes a first power voltage curve and / or a second power voltage curve, wherein the first power voltage curve is used to indicate that the power voltage jumps to a target jump voltage, and the second power voltage curve is used to indicate that the power voltage jumps to a corresponding gradual voltage value at each interval time;
[0083] The power control module 503 may include the following submodules:
[0084] The voltage output submodule is used to control the power supply to simulate a power supply voltage variation curve according to the first power supply voltage curve and / or the second power supply voltage curve, and output a corresponding voltage according to the power supply voltage variation curve.
[0085] In an embodiment of the present invention, the power supply is connected to the device under test; after the power supply output voltage is controlled according to the power supply reset curve, the apparatus provided by the embodiment of the present invention may further include the following modules:
[0086] A detection module is used to perform a power limit test on the power supply according to the output voltage to obtain a detection result; and / or, to control the device under test by the output voltage, and to perform an abnormality detection on the device under test when the voltage of the device under test is maintained at a preset voltage threshold to obtain a detection result
[0087] In one embodiment of the present invention, the detection module may include the following submodules:
[0088] The anomaly detection submodule is used to detect whether the target element exists in the device under test according to a preset number of times to obtain a detection result.
[0089] In one embodiment of the present invention, the anomaly detection submodule may include the following units:
[0090] The abnormality detection unit is used to determine that the detection result is that the device under test is operating normally when there is an identification for a certain target element; and / or, when there is no identification for a certain target element, determine that the detection result is that the device under test is operating abnormally.
[0091] In the embodiment of the present invention, the power control device provided by the embodiment of the present invention simulates a power reset curve based on the voltage waveform change data by executing a preset power reset program, and then controls the power output voltage according to the simulated power reset curve. By executing the program to control the program-controlled power supply to perform waveform simulation on the power supply voltage, so as to control the power output to obtain the simulated corresponding voltage, the program can be used to replace a large number of repetitive manual operations, laying a foundation for reducing repetitive work for subsequent detection, so as to realize automated stability detection and abnormality detection in the future, reduce labor costs, and thus generate certain economic value.
[0092] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0093] An embodiment of the present invention further provides a vehicle, comprising:
[0094] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned power control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0095] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned power control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0096] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0097] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0098] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, terminal vehicles (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal vehicle to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal vehicle generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal vehicle to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal vehicle so that a series of operating steps are executed on the computer or other programmable terminal vehicle to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable terminal vehicle for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0101] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0102] Finally, it should be noted that the user information (including but not limited to user vehicle information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0103] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal vehicle including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal vehicle. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or terminal vehicle including the elements.
[0104] The power control method, the power control device, the corresponding vehicle and the corresponding computer-readable storage medium provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained in detail using specific examples herein. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A power control method, characterized in that: The method comprises: In response to the power control instruction, a preset power reset program is executed; the script in the preset power reset program includes voltage waveform change data; Through the preset power reset program, a power reset curve is simulated according to the voltage waveform change data; the power reset curve is used to indicate that the voltage switches from the preset first voltage to the preset second voltage for multiple times and remains at the voltage waveform change of the preset second voltage; Controlling the power supply output voltage according to the power supply reset curve; The power reset curve includes a first power voltage curve and / or a second power voltage curve, wherein the first power voltage curve is used to indicate that the power voltage jumps to a target jump voltage, and the second power voltage curve is used to indicate that the power voltage jumps to a corresponding gradual voltage value at each interval time; The controlling the power supply output voltage according to the power supply reset curve comprises: The power supply is controlled to simulate a power supply voltage variation curve according to the first power supply voltage curve and / or the second power supply voltage curve, and output a corresponding voltage according to the power supply voltage variation curve.
2. The method according to claim 1, characterized in that Constructing a data frame based on the voltage waveform change data, the data frame including at least one of the following bits: a data header bit, a power address bit, a command word bit, an operation mode bit, a data control bit, a default data bit, a data reserve bit, and a checksum bit; A power reset curve is obtained by simulating according to the data frame.
3. The method according to claim 2, characterized in that The voltage waveform change data includes voltage jump data; and constructing a data frame based on the voltage waveform change data includes: Based on the voltage jump data, construct a first data frame including a first operation mode bit and a first data control bit for indicating voltage jump control; the first data control bit is used to input a target jump voltage and a voltage jump duration; The power reset curve is obtained by simulating the data frame, including: A first power supply voltage curve is generated according to the first operation mode bit and the first data control bit, in which the voltage changes to the target jump voltage within the voltage jump time.
4. The method according to claim 2 or 3, characterized in that: The voltage waveform change data includes voltage gradient data; and constructing a data frame based on the voltage waveform change data includes: Based on the voltage gradient data, construct a second data frame including a second operation mode bit and a second data control bit for indicating voltage gradient control; the second data control bit is used to input gradient time, gradient interval, target gradient voltage and gradient start voltage; The power reset curve is obtained by simulating the data frame, including: According to the second operation mode, the number of gradual changes is calculated by using the gradual change time and the gradual change interval; wherein the gradual change interval is used as the interval time of the voltage jump; Using the target gradient voltage, the gradient start voltage and the gradient times, the gradient voltage values having equal intervals and the same number as the gradient times are calculated; A second power supply voltage curve is generated, wherein the voltage changes to a corresponding gradually changing voltage value at each interval of the interval time.
5. The method according to claim 1 or 4, characterized in that: The power supply is connected to the device under test; after controlling the power supply output voltage according to the power supply reset curve, the method further includes: Performing a power limit test on the power supply according to the output voltage to obtain a test result; And / or, the device under test is controlled by the output voltage, and when the voltage of the device under test is maintained at a preset voltage threshold, an abnormality detection is performed on the device under test to obtain a detection result.
6. The method according to claim 5, characterized in that The performing abnormality detection on the device under test to obtain a detection result includes: Detecting whether the device under test has a target element according to a preset number of times, and obtaining a detection result; The detecting whether the device under test has a target element and obtaining a detection result includes: If there is an identification for a certain target element, it is determined that the detection result is that the device under test is operating normally; And / or, if there is no identification for a certain target element, it is determined that the detection result is that the device under test operates abnormally.
7. A power supply control device, characterized in that: The device comprises: A program execution module, for responding to a power control instruction and executing a preset power reset program; the script in the preset power reset program includes voltage waveform change data; A voltage curve simulation module, used to simulate a power reset curve according to the voltage waveform change data through the preset power reset program, and to indicate that the voltage is switched multiple times from a preset first voltage to a preset second voltage through the power reset curve, and to maintain the voltage waveform change at the preset second voltage; The power reset curve includes a first power voltage curve and / or a second power voltage curve, wherein the first power voltage curve is used to indicate that the power voltage jumps to a target jump voltage, and the second power voltage curve is used to indicate that the power voltage jumps to a corresponding gradual voltage value at each interval time; A power control module is used to control the power output voltage according to the power reset curve.
8. A vehicle, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the power control method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the power supply control method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and system for simulating vehicle-mounted voltage dynamic change environment
CN110362906A