Static current testing device and method
By automating vehicle state switching and data filtering through a static current testing device, the problems of high tool costs and measurement errors in traditional testing methods are solved, achieving efficient and accurate static current testing.
Patent Information
- Application Number
- CN202511712271.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-06
AI Technical Summary
Traditional static current testing methods are costly and involve cumbersome testing processes, failing to effectively reduce manual labor and potentially introducing errors in measurement results, thus affecting the accuracy and reliability of the test results.
A static current testing device, including a host computer, a digital-analog control device, and a current sensor, is used to automatically control vehicle state switching and data filtering, thereby achieving automatic acquisition and preprocessing of static current, reducing manual intervention, and improving testing efficiency and accuracy.
It automates static current testing, reduces labor costs, ensures the timing accuracy and repeatability of state switching and current acquisition, and improves the automation, efficiency and reliability of testing.
Smart Images

Figure CN121476786A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to the technical field of vehicle testing, and specifically to a static current testing device and method. BACKGROUND
[0002] The static current of the whole vehicle refers to the current consumption of the whole vehicle in the sleep state under the condition that the vehicle is locked and powered off and no customer function is performed. The value of the static current of the whole vehicle is obtained by adding the static current values consumed by each electrical device.
[0003] The static current in the normal range will not cause the vehicle to be powered on due to short-term parking, but the abnormally high static current will cause the vehicle to be powered on due to short-term parking, resulting in the vehicle being unable to normally unlock. Therefore, it is necessary to test the static current in various vehicle use scenarios during the vehicle development stage.
[0004] The conventional method for testing the static current needs to use a multimeter, special wires, an air switch, a wrench and other tools, which has a high tool cost and a complicated testing process, is insufficient in automatic testing, cannot effectively liberate labor, and the measurement result may have errors, affecting the accuracy and reliability of the testing result. SUMMARY
[0005] The present application provides a static current testing device and method to at least solve the technical problem that the related art cannot effectively liberate labor and the measurement result may have errors. The technical solution of the present application is as follows: According to a first aspect provided by the present application, a static current testing device is provided, which comprises an upper computer 101, a digital-analog control device 102 and a current sensor 103. The digital-analog control device 102 is connected to the upper computer 101 and the current sensor 103, and the current sensor 103 is connected to the storage battery of the vehicle, and the upper computer 101 is connected to the vehicle control chip of the vehicle. The digital-analog control device 102 is configured to preprocess the static current data collected by the current sensor 103 and feed back the preprocessed static current data to the upper computer 101.
[0006] As can be seen, in the static current testing device provided by the present application, the upper computer 101 is connected to the current sensor 103 through the digital-analog control device 102, the current sensor 103 is connected to the storage battery of the vehicle, the upper computer 101 can also be connected to the vehicle control chip of the vehicle, and the digital-analog control device 102 feeds back the static current collected by the current sensor 103 after preprocessing, which can realize automatic collection and preprocessing of the static current, thereby reducing manual intervention and improving testing efficiency and accuracy.
[0007] In an implementation manner, the preprocessing comprises: performing data filtering on the static current data by a preset filtering algorithm.
[0008] It can be seen that the digital-analog control device 102 in the embodiment of the application can perform data filtering on the static current data collected by the current sensor 103 by a preset filtering algorithm, such as low-pass filtering, median filtering, mean filtering, etc., remove the noise components introduced by environmental electromagnetic interference and sensor self-fluctuation in the static current data, effectively improve the signal-to-noise ratio and smoothness of the data, and make the static current value finally transmitted to the host computer 101 more truly and stably reflect the static current of the vehicle storage battery.
[0009] In an implementation manner, the static current testing device further comprises a remote key control device 104, the remote key control device 104 is connected to the digital-analog control device 102, and the remote key control device 104 is used to control the vehicle to be unlocked or locked.
[0010] It can be seen that the application introduces the remote key control device 104, and the test steps of switching the state of the vehicle are included in the automatic control process. The problems that the test personnel manually operates the key in the traditional method and cannot effectively liberate the labor are avoided. In the embodiment of the application, the host computer 101 can send instructions to the remote key control device 104 through the digital-analog control device 102, automatically and accurately control the vehicle to complete the unlocking or locking operation, and manually perform the unlocking or locking of the vehicle without the technical personnel, which not only avoids the human intervention in the test process, reduces the labor cost, ensures the time sequence accuracy and repeatability of the state switching and current collection, but also effectively supports the automatic sequence test of the static current under complex working conditions (such as multiple cycles of unlocking / locking), thereby improving the automation degree, efficiency and reliability of the test.
[0011] In an implementation manner, the remote key control device 104 comprises a remote key 301 and a first switch module 302; the remote key 301 is connected to the first switch module 302; and the digital-analog control device 102 is connected to the first switch module 302.
[0012] In an implementation manner, the first switch module 302 comprises a first switch element 3021 and a second switch element 3022; an unlocking end of the remote key 301 is connected to the first switch element 3021, and a locking end of the remote key is connected to the second switch element 3022; and the digital-analog control device 102 is connected to the first switch element 3021 and the second switch element 3022 respectively.
[0013] It can be seen that, by decomposing the physical key function of the remote key 301 and independently controlling the first switch element 3021 (corresponding to the unlocking end) and the second switch element 3022 (corresponding to the locking end), the digital-analog control device 102 only needs to output a simple switching signal to accurately simulate the action of pressing the key button with the hand, to control the first switch element 3021 and the second switch element 3022, and automatically realize the unlocking power-on or locking power-off of the vehicle. The general remote key is converted into an execution terminal that can be accurately controlled by a program. Thus, a hardware foundation is laid for realizing a high-automation static current test.
[0014] In an implementation manner, the digital-analog control device 102 is configured to, in response to the unlocking instruction of the host computer 101, control the vehicle to unlock and power on. The host computer 101 is configured to configure a static current test case for the vehicle control chip, and the static current test case is used to trigger the vehicle control chip to execute a preset function. The digital-analog control device 102 is further configured to, in response to the locking instruction of the host computer 101, control the vehicle to lock and power off. The digital-analog control device 102 is further configured to, in response to a current data acquisition instruction received after the vehicle is powered off for a first preset time length, control the current sensor 103 to acquire the static current data of the vehicle.
[0015] It can be seen that the application constructs a complete automatic test closed loop. First, through the sequence of "unlocking power-on- configuring a static current test case-locking power-off", it is ensured that the vehicle can enter a preset and repeatable test state; then, after waiting for a first preset time length, all electric control units of the vehicle enter a sleep state, so that a real and stable static current value is captured. The vehicle state after the user actually uses the vehicle is simulated, and the whole test process does not need manual intervention, realizing the full-link automation from vehicle state control, test case loading to data acquisition, greatly improving the accuracy, consistency and efficiency of the test result.
[0016] In an implementation manner, the digital-analog control device 102 is configured to, in response to the unlocking instruction of the host computer 101, output a high level to the first switch element 3021, to trigger the unlocking function of the remote key 301 and control the vehicle to unlock and power on.
[0017] It can be seen that the application can drive the first switch element 3021 by outputting a high level to simulate the unlocking function of the remote key triggered by the physical key button, without the need for a technician to manually unlock the vehicle, reducing manual intervention in the automatic test process, improving the efficiency of the whole test process in executing the vehicle state switching action, and laying a foundation for constructing a high-automation test process.
[0018] In an implementation manner, the digital-analog control device 102 is configured to output a high level to the second switching element 3022 to trigger the locking function of the remote key 301 and control the vehicle to be powered off in response to the locking instruction of the host computer 101.
[0019] It can be seen that the application can drive the second switching element 3022 by outputting a high level to simulate the physical button triggering the locking function of the remote key, without the need for technicians to manually lock the vehicle, reducing manual intervention in the automatic test process, improving the efficiency of the entire test process in executing the vehicle state switching action, and laying a foundation for building a highly automated test process.
[0020] In an implementation manner, the static current test device further comprises a debugging mode switching device 105, which is connected to the host computer 101, the vehicle machine control chip and the digital-analog control device 102 respectively; the debugging mode switching device 105 is used to trigger the vehicle machine control chip to enter the debugging mode.
[0021] It can be seen that the application realizes the automatic control of the working mode of the vehicle machine control chip by introducing the debugging mode switching device 105. The design changes the triggering of the debugging mode from the traditional manual operation to the automatic switching by the debugging mode switching device 105, effectively supporting the automatic execution of complex test cases, without the need for technicians to manually connect the storage module with the configuration word written to the vehicle machine control chip to open the debugging mode, further reducing the human intervention link, and comprehensively improving the automation level and repeatability of the static current test.
[0022] In an implementation manner, the debugging mode switching device 105 comprises a second switching module 501 and a storage module 502, and the storage module 502 stores a program for triggering the vehicle machine control chip to enter the debugging mode. The normally closed port of the second switching module 501 is connected to the host computer 101, the normally open ports of the second switching module 501 are connected to the storage module, the common port of the second switching module 501 is connected to the vehicle machine control chip, and the control end of the second switching module 501 is connected to the digital-analog control device 102. The debugging mode switching device 105 has a first working state and a second working state; in the first working state, the normally closed port of the second switching module 501 is closed and the normally open port is opened, so that the vehicle machine control chip is connected to the host computer 101; in the second working state, the normally closed port of the second switching module 501 is closed and the normally closed port is opened, so that the vehicle machine control chip is connected to the storage module 502.
[0023] It can be seen that, by the cooperative design of the second switch module 501 and the storage module 502, an automatic debugging mode control mechanism based on hardware switching is constructed, the second switch module 501 realizes the physical switching of the communication link of the car machine control chip between the host computer 101 (normal mode) and the storage module 502 (debugging mode) under the signal control of the digital-analog control device 102. The traditional debugging mode triggering process which depends on manual operation is automated and hardware, and forms a complete closed loop with the original automatic current collection and preprocessing function, so that the whole process from car machine mode setting, test case issuing to static current collection can be automatically, accurately and repeatedly executed, thereby further significantly improving the automation level of the test process on the basis of reducing manual intervention.
[0024] In an implementation manner, the second switch module 501 includes a third switch element 5011, a fourth switch element 5012, a fifth switch element 5013 and a sixth switch element 5014. The normally open port of the third switch element 5011 is connected to the D+ sub-port of the USB port of the storage module 502, the normally closed port is connected to the D+ sub-port of the USB port of the host computer 101, the common port is connected to the D+ sub-port of the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102. The normally open port of the fourth switch element 5012 is connected to the D- sub-port of the USB port of the storage module 502, the normally closed port is connected to the D- sub-port of the USB port of the host computer 101, the common port is connected to the D- sub-port of the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102. The normally open port of the fifth switch element 5013 is connected to the supply electron sub-port of the USB port of the storage module 502, the normally closed port is connected to the supply electron sub-port of the USB port of the host computer 101, the common port is connected to the supply electron sub-port of the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102. The normally open port of the sixth switch element 5014 is connected to the ground sub-port of the USB port of the storage module 502, the normally closed port is connected to the ground sub-port of the USB port of the host computer 101, the common port is connected to the ground sub-port of the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102.
[0025] It can be seen that the four switch elements corresponding to the vehicle-mounted USB interface are arranged to switch and control all key pins of the D+ sub-port, the D- sub-port, the power supply sub-port and the ground sub-port of the USB communication interface, so that when the USB interface of the car control chip is switched between the upper computer 101 and the storage module 502, the data signal channel (D+ / D-) and the power supply circuit can be synchronously switched, and the control process is completely automated without the need for technical personnel to operate, which significantly improves the test efficiency and reduces the labor cost.
[0026] In an implementation manner, the digital-analog control device 102 is configured to: in response to the debugging start instruction of the upper computer 101, output a high level to the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013 and the sixth switch element 5014 in the second preset time length, so that the normally open port of the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013 and the sixth switch element 5014 in the second switch module 501 is closed and the normally closed port is opened in the second preset time length.
[0027] It can be seen that the high-level control mechanism of the second preset time length is introduced to meet the time requirement of the car control chip for recognizing the program in the storage module for triggering the car control chip to enter the debugging mode, avoid mode switching failure caused by too short or too long signal duration, and realize complete automation and unmanned of the debugging mode triggering process without the need for technical personnel to wait for testing on site, which significantly improves the test efficiency and reduces the labor cost. In an implementation manner, the static current test device further comprises a remote control device 106, and the remote control device 106 is installed with an application program for remotely controlling the vehicle. The remote control device is connected to the upper computer 101.
[0028] It can be seen that the remote control device 106 is introduced to integrate the vehicle remote control function into the automatic test device (static current test device), so that the static current test device can simulate the instructions (such as starting the air conditioner and turning on the seat heating) issued by the real user through the application program to the vehicle, so as to trigger the vehicle to enter the corresponding function mode. This makes the static current test no longer limited to the static scene after the local operation of the vehicle, but can automatically cover and test the current characteristics of the vehicle in the sleep state after responding to the remote instruction, improve the comprehensiveness of the static current evaluation under the complex real vehicle working condition, and reduce the manual intervention.
[0029] According to the second aspect provided by the application, a static current test method is provided, which is applied to the static current test device of any one of the first aspect, and the method comprises: The digital-analog control device 102 controls the vehicle to be unlocked and powered on in response to the unlocking instruction of the upper computer 101. The host computer 101 configures a static current test case for the vehicle computer control chip, and the static current test case is used to trigger the vehicle computer control chip to execute a preset function; The digital-analog control device 102 controls the vehicle to be powered off in response to the locking instruction of the host computer 101. The digital-analog control device 102 controls the current sensor 103 to collect the static current data of the vehicle in response to the current data collection instruction received after the vehicle is powered off for a first preset time length.
[0030] In an implementation manner, the digital-analog control device 102 controls the debugging mode switching device 105 to trigger the vehicle computer control chip to enter the debugging mode in response to the debugging start instruction of the host computer 101 after the vehicle is powered on.
[0031] In an implementation manner, the digital-analog control device 102 pre-processes the static current data and feeds back the pre-processed static current data to the host computer 101.
[0032] In an implementation manner, the pre-processing includes data filtering of the static current data by a preset filtering algorithm.
[0033] In an implementation manner, the digital-analog control device 102 outputs a high level to the first switching element 3021 to trigger the unlocking function of the remote key 301 and control the vehicle to be powered on in response to the unlocking instruction of the host computer 101. In an implementation manner, the digital-analog control device 102 outputs a high level to the second switching element 3022 to trigger the locking function of the remote key 301 and control the vehicle to be powered off in response to the locking instruction of the host computer 101.
[0034] According to a third aspect provided in the present application, a computer readable storage medium is provided. When instructions in the computer readable storage medium are executed by a static current testing device, the static current testing device is enabled to perform the method in the second aspect and any possible implementation manner thereof.
[0035] According to a fourth aspect provided in the present application, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are run on a static current testing device, the static current testing device performs the method in the second aspect and any possible implementation manner thereof.
[0036] It should be noted that the technical effects brought by any implementation manner of the second aspect to the fourth aspect can refer to the technical effects brought by the corresponding implementation manner in the first aspect, which will not be repeated here.
[0037] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the application. BRIEF DESCRIPTION OF DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application, and are not intended to represent the only embodiments consistent with the application.
[0039] Figure 1 is a structural schematic diagram of a static current test device according to an exemplary embodiment; Figure 2 is a structural schematic diagram of another static current test device according to an exemplary embodiment; Figure 3 is a structural schematic diagram of a remote key control device according to an exemplary embodiment; Figure 4 is a structural schematic diagram of an unlocking control circuit according to an exemplary embodiment; Figure 5 is a structural schematic diagram of a debugging mode switching circuit according to an exemplary embodiment; Figure 6 is a flowchart of a static current test method according to an exemplary embodiment.
[0040] Reference Signs: 101 - host computer; 102 - digital-analog control device; 103 - current sensor; 104 - remote key control device; 105 - debugging mode switching device; 106 - remote control device; 301 - remote key; 302 - first switch module; 3021 - first switch element; 3022 - second switch element; 501 - second switch module; 502 - storage module; 5011 - third switch element; 5012 - fourth switch element; 5013 - fifth switch module; 5014 - sixth switch element. DETAILED DESCRIPTION
[0041] In order for those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and in the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0043] In the related art, for the whole vehicle static current test, the conventional test method needs to use a multimeter, special wires, air switches, wrenches and other tools, which has high tool cost and a complicated test process.
[0044] In a related technology, a static current test system is disclosed, which tests the static current data of automobile parts. In real vehicle level testing, there is a lack of static current test of the power-off scene of users under different working conditions. In the test process, manual operation is still required for key steps, such as human-computer interaction module operation, vehicle power supply gear switching, etc., which is insufficient in terms of automated testing, cannot effectively liberate manpower, and the measurement result may have errors, affecting the accuracy and reliability of the test result.
[0045] In addition, for the simulation operation of the car machine function, ADB automation can be used, provided that the car machine USB debugging mode is turned on. Therefore, when implementing automatic simulation of the user vehicle power-off scene, a U disk with a configuration word written in it needs to be inserted into the car machine interface manually by the user to turn on the USB debugging mode. However, the USB debugging mode will be turned off by default after the vehicle is powered off each time, and the U disk needs to be plugged in again to turn on the USB debugging mode. The whole process needs manual operation intervention and cannot achieve automation.
[0046] In addition, for each power-off scene, at least 15 minutes are required to complete the test, and the test personnel need to wait for a long time, which causes waste of human resources.
[0047] To solve the above technical problems, the static current test device provided in the embodiments of the present application, as shown in Figure 1 , can include a host computer 101, a digital-analog control device 102, and a current sensor 103.
[0048] The digital-analog control device 102 is connected to the host computer 101 and the current sensor 103, respectively, the current sensor 103 is connected to the storage battery of the vehicle, and the host computer 101 is connected to the car machine control chip of the vehicle.
[0049] Exemplarily, the host computer 101 can be a computer, an industrial computer, a server, etc.
[0050] Exemplarily, the storage battery can be a small storage battery of the vehicle, that is, a starting battery or an auxiliary storage battery on the vehicle. The small storage battery is used for starting the vehicle and supplying power to low-voltage electrical appliances on the vehicle.
[0051] The digital-analog control device can be used to preprocess the static current data collected by the current sensor 103 and feed back the preprocessed static current data to the host computer 101.
[0052] In a possible implementation manner, the preprocessing can include data filtering of the static current data by a preset filtering algorithm. When collecting the static current, the current sensor 103 can be disturbed by various external disturbances, such as electromagnetic interference, environmental noise and the like, and the collected static current can contain noise components. The digital-analog control device 102 can remove the noise contained in the static current by a preset filtering algorithm, such as low-pass filtering, median filtering, mean filtering and the like, so as to make the static current more smooth and accurate. For example, the low-pass filtering can filter out high-frequency noise and only keep the low-frequency effective current signal.
[0053] The static current testing device provided by the embodiments of the present application can be applied to static current testing of a vehicle. The vehicle can also be referred to as a vehicle, a mobile carrier, an electric vehicle (EV), a hybrid electric vehicle (HEV), a plug-in hybrid electric vehicle (PHEV), a fuel cell vehicle (FCV), an autonomous vehicle, an intelligent and connected vehicle (ICV), a driverless vehicle, and the like.
[0054] In the embodiments of the present application, the vehicle can be a car, a sport utility vehicle (SUV), a truck, an electric vehicle, a motorcycle, a tricycle, a special vehicle (such as an ambulance, a fire truck, a police car, etc.), a driverless taxi, an intelligent and connected bus, an autonomous logistics vehicle, an electric truck, and the like. In addition, the method is also applicable to various special vehicles, such as agricultural vehicles, mining vehicles, forestry vehicles, airport vehicles, port vehicles, and the like. The present application does not make specific limitations in this regard.
[0055] In combination Figure 1 For example Figure 2As shown, the embodiment of the present application provides another static current testing device.
[0056] In some embodiments, referring to Figure 2 , the static current testing device can further include a remote key control device 104. The remote key control device 104 can be connected to the digital-analog control device 102. The remote key control device 104 can be used to control the vehicle to be unlocked or locked.
[0057] In some embodiments, referring to Figure 3 , the remote key control device 104 can include a remote key 301 and a first switch module 302. The remote key 301 is connected to the first switch module 302. The digital-analog control device 102 is connected to the first switch module 302.
[0058] Among them, the first switch module 302 includes a first switch element 3021 and a second switch element 3022. The unlock end of the remote key 301 is connected to the first switch element 3021, and the lock end of the remote key 301 is connected to the second switch element 3022. The digital-analog control device 102 is connected to the first switch element 3021 and the second switch element 3022, respectively. The digital-analog control device 102 can realize the power-on unlocking of the vehicle through the first switch element 3021, and realize the power-off locking of the vehicle through the second switch element 3022.
[0059] Exemplarily, referring to Figure 4 , the normally open port (NO end) and the common port (COM end) of the first switch element 3021 are connected to the unlock end of the remote key 301. The control port (A1 (+), A2 (-) end) of the first switch element 3021 is connected to the digital control port of the digital-analog control device 102. Among them, A1 (+) end as positive, A2 (-) end as negative, negative ground (GND). Since the normally open port (NO end) and the common port (COM end) are disconnected by default, the unlocking function of the remote key will not be triggered.
[0060] Exemplarily, referring to Figure 4 , the normally open port (NO end) and the common port (COM end) of the second switch element 3022 are connected to the lock end of the remote key 301. The control port (A1 (+), A2 (-) end) of the second switch element 3022 is connected to the digital control port of the digital-analog control device 102. Among them, A1 (+) end as positive, A2 (-) end as negative, negative ground (GND). Since the normally open port (NO end) and the common port (COM end) are disconnected by default, the locking function of the remote key will not be triggered.
[0061] Exemplarily, the digital-analog control device 102 outputs a high level to the first switch element 3021 through the digital control port in response to the unlocking instruction sent by the host computer 101 when the vehicle is in the lock-down power-off state, so as to connect the normally open port of the first switch element 3021 with the unlocking end of the remote key 301, trigger the unlocking function of the remote key 301, and realize the unlocking power-on of the vehicle.
[0062] In addition, the digital-analog control device 102 outputs a high level to the second switch element 3022 through the digital control port in response to the lock-down instruction sent by the host computer 101 when the vehicle is in the unlock power-on state, so as to connect the normally open port of the second switch element 3022 with the lock-down end of the remote key, trigger the lock-down function of the remote key 301, and realize the lock-down power-off of the vehicle.
[0063] It can be seen that, by introducing the remote key control device 104, the test steps of the vehicle state switching are included in the automatic control process. The problems such as the manual operation of the key by the test personnel in the traditional method and the inability to effectively liberate the manual labor are avoided. In the embodiment of the application, the host computer 101 can send instructions to the remote key control device 104 through the digital-analog control device 102 to automatically and accurately control the vehicle to complete the unlocking or locking operation, without the manual unlocking or locking of the vehicle by the technical personnel. This not only avoids the human intervention in the test process, reduces the labor cost, ensures the timing accuracy and repeatability of the state switching and current collection, but also effectively supports the automatic sequence test of the static current under complex working conditions (such as multiple cycles of unlocking / locking), thereby improving the automation degree, efficiency and reliability of the test.
[0064] In some embodiments, referring to Figure 2 , the static current test device can further include a debugging mode switching device 105. The debugging mode switching device 105 is connected to the host computer 101, the vehicle machine control chip and the digital-analog control device 102 respectively. The debugging mode switching device is used to trigger the vehicle machine control chip to enter the debugging mode.
[0065] In some embodiments, as shown in Figure 5 , the debugging mode switching device 105 can include a second switch module 501 and a storage module 502. The storage module 502 stores a program for triggering the vehicle machine control chip to enter the debugging mode.
[0066] Exemplarily, the storage module 502 can be a U disk pre-written with the program for triggering the debugging mode.
[0067] The normally closed port of the second switch module 501 is connected to the host computer 101, the normally open ports of the second switch module 501 are connected to the storage module, the common port of the second switch module 501 is connected to the car machine control chip, and the control end of the second switch module 501 is connected to the digital-analog control device 102. The debugging mode switching device 105 has a first working state and a second working state. In the first working state, the normally closed port of the second switch module 501 is closed and the normally open port is opened, so that the car machine control chip is connected to the host computer 101. In the second working state, the normally closed port of the second switch module 501 is closed and the normally closed port is opened, so that the car machine control chip is connected to the storage module 502. After the car machine control chip is connected to the storage module 502, the program in the storage module 502 triggers the car machine control chip to enter the debugging mode.
[0068] In some embodiments, the number of switch components in the second switch module 501 in the debugging mode switching device 105 is the number of control lines of the storage module 502.
[0069] For example, the USB interface in the vehicle is usually 4 lines (D+ subport, D- subport, power supply subport and ground subport), so the number of switch components in the second switch module 501 is at least four, that is, the second switch module 501 can include a third switch element 5011, a fourth switch element 5012, a fifth switch element 5013 and a sixth switch element 5014. Different vehicle USB interfaces have differences, and the above is only an example, and the number of switch modules can be determined according to the actual situation.
[0070] The D+ subport and the D- subport are differential signal lines for data transmission. The D+ subport is the positive end of the differential signal, and cooperates with the D- to encode data. The D- is the negative end of the differential signal, and cooperates with the D+ to decode data.
[0071] The normally open port (N0 end) of the third switch element 5011 is connected to the D+ subport in the USB port of the storage module 502, the normally closed port (NC end) is connected to the D+ subport in the USB port of the host computer 101, the common port (COM end) is connected to the D+ subport in the USB port of the car machine control chip, and the control port (A1 (+) end, A2 (-) end) is connected to the digital-analog control device 102. The A1 (+) end is the positive electrode, the A2 (-) end is the negative electrode, and the negative electrode is grounded (GND).
[0072] The normally open port of the fourth switch element 5012 is connected to the D- subport in the USB port of the storage module 502, the normally closed port is connected to the D- subport in the USB port of the host computer 101, the common port is connected to the D- subport in the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102.
[0073] The normally open port of the fifth switch element 5013 is connected to the power supply port in the USB port of the storage module 502, the normally closed port is connected to the power supply port in the USB port of the host computer 101, the common port is connected to the power supply port in the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102.
[0074] The normally open port of the sixth switch element 5014 is connected to the ground sub-port in the USB port of the storage module 502, the normally closed port is connected to the ground sub-port in the USB port of the host computer 101, the common port is connected to the ground sub-port in the USB port of the car machine control chip, and the control port is connected to the digital-analog control device 102. The connection of the above-mentioned storage module 502 and the car machine control chip, and the USB interface of the host computer 101 and the car machine control chip can be realized through the USB protocol.
[0075] It can be seen that, by arranging four switch elements corresponding to the vehicle-mounted USB interface, the present application controls all key pins of the D+ sub-port, the D- sub-port, the power supply port and the ground sub-port of the USB communication interface, ensures that the data signal channel (D+ / D-) and the power supply loop can be synchronously switched when the USB interface of the car machine control chip is switched between the host computer 101 and the storage module 502, and the control process is completely automated without the need for technical personnel to operate, which significantly improves the test efficiency and reduces the labor cost.
[0076] In some embodiments, the digital-analog control device 102 is configured to output a high level to the second switch module 501 within a second preset time period in response to a debugging start instruction of the host computer 101, so that the normally open port of the second switch module 501 is closed and the normally closed port is opened within the second preset time period. That is, the digital-analog control device 102 outputs a high level to the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013 and the sixth switch element 5014 within the second preset time period in response to the debugging start instruction of the host computer 101, so that the normally open port of the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013 and the sixth switch element 5014 are all closed and the normally closed port is opened within the second preset time period.
[0077] By introducing the high level control mechanism of the second preset time period, the time requirement of the car machine control chip for recognizing the program in the storage module for triggering the car machine control chip to enter the debugging mode is met, the mode switching failure caused by too short or too long signal duration is avoided, technical personnel do not need to wait for testing on site, the complete automation and unmanned of the debugging mode triggering process is realized, the test efficiency is significantly improved and the labor cost is reduced.
[0078] Optionally, the second preset trial duration can be set according to actual needs. For example, the second preset duration can be 5 seconds or 10 seconds. This application does not impose specific limitations on this.
[0079] For example, to control the on / off state of the switch module and ensure a stable power supply to the switch module, four 5V relays can be used, each connected to a digital control port of the analog-digital control device 102, with the other end connected to the storage module 502. The analog-digital control device 102 simultaneously controls the on / off state of the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013, and the sixth switch element 5014, activating the vehicle's debugging mode and enabling control of the vehicle's operation.
[0080] Specifically, in the default state, the normally closed ports (NC terminals) of the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013, and the sixth switch element 5014 are connected to the common port (COM terminal), thus the USB interface of the host computer 101 connects to the vehicle control chip. When the control terminals of the third switch element 5011, the fourth switch element 5012, the fifth switch element 5013, and the sixth switch element 5014 receive a high level, the normally closed ports and normally open ports flip, that is, the normally open port is connected to the common port, thereby connecting the vehicle control chip to the storage module 502. When the vehicle control chip is connected to the storage module 502, the program in the storage module 502 can trigger the vehicle control chip to enter debug mode.
[0081] As can be seen, this application achieves automated control of the vehicle control chip's operating mode by introducing a debug mode switching device 105. This design transforms the triggering of the debug mode from traditional manual operation to automatic switching by the debug mode switching device 105, effectively supporting the automated execution of complex test cases. It eliminates the need for technicians to manually connect the storage module containing the configuration words to the vehicle control chip to activate the debug mode, further reducing human intervention and comprehensively improving the automation level and repeatability of static current testing.
[0082] In some embodiments, see Figure 2 The static current testing device may further include a remote control device 106. The remote control device 106 is equipped with an application program for remotely controlling the vehicle and is connected to a host computer 101. The host computer 101 can send vehicle control commands to the vehicle control chip through user operations on the application program on the remote control device 106.
[0083] This allows the vehicle control chip to simulate the interaction between the user and the vehicle system after receiving vehicle operation commands from the host computer 101. For example, based on the vehicle operation commands, it can complete the operation of various functions on the vehicle system, such as turning on the air conditioning, playing music, and turning on the seat heating.
[0084] For example, the application for remotely controlling a vehicle may include multiple functional modules such as turning on the air conditioning, playing music, turning on the seat heating, controlling the on and off of vehicle lights (such as headlights and hazard lights), and remotely controlling the opening and closing of windows or sunroof. When performing electrostatic current testing, a technician can select at least one functional module on the application on the remote control device 106. The remote control device 106 can send a static current command generated based on the selected at least one functional module to the host computer 101. The host computer 101 can be configured to generate a test sequence containing operation instructions for at least one functional module in response to the static current command.
[0085] Furthermore, the host computer 101 can sequentially perform static current tests on at least one functional module according to the test sequence. That is, the host computer 101 can control the analog-digital controller 102, current sensor 103, etc., to automatically execute the complete test process of "controlling vehicle unlocking and powering on - enabling debugging mode trigger function - waiting to run - controlling vehicle locking and powering off - delaying and collecting static current", thereby realizing automated static current testing.
[0086] As can be seen, this application integrates vehicle remote control functionality into an automated testing device (static current testing device) by introducing a remote control device 106. This allows the static current testing device to simulate commands issued by a real user to the vehicle via an application (such as turning on the air conditioning or activating seat heating), thereby triggering the vehicle to enter the corresponding functional mode. This makes static current testing no longer limited to static scenarios after local vehicle operation, but can automatically cover and test the current characteristics of the vehicle when it enters a dormant state after responding to remote commands. This improves the comprehensiveness of static current assessment under complex real-world vehicle operating conditions and reduces manual intervention.
[0087] In some embodiments, such as Figure 6 As shown, this application can be passed Figure 2 The static current testing device in the system implements the following static current acquisition process: S601-S604.
[0088] S601: The digital-analog control device 102 responds to the unlocking command from the host computer 101 and controls the vehicle to unlock and power on.
[0089] In a possible implementation, the host computer 101 can receive the static current instruction sent by the remote control device 106 based on the selected at least one function module, and generate a test sequence containing at least one function module operation instruction. The host computer 101 can perform static current testing on the at least one function module in sequence according to the test sequence. For example, The host computer 101 can be deployed with a program for automatically controlling the static current testing. During the static current testing on the at least one function module, it can be determined that the specific phase of the static current testing is currently in, and then the corresponding control instruction is issued to the digital-analog control device 102.
[0090] For example, when the host computer 101 determines that the vehicle is in the locked power-off state, it can first issue an unlock instruction to the digital-analog control device 102, to instruct the digital-analog control device 102 to trigger the remote key control device to control the vehicle to unlock and power on.
[0091] Specifically, the host computer 101 sends an "unlock" instruction to the digital-analog control device 102 through the USB serial port, and the digital-analog control device 102 sends a high-level signal to the first switching element 3021 of the remote key control device 104, so that the NO normally open interface of the switching module is actuated, triggering the remote key 301 unlock button, thereby performing vehicle unlocking and power on.
[0092] S602: The host computer 101 configures a static current test case for the vehicle machine control chip, and the static current test case is used to trigger the vehicle machine control chip to execute a preset function.
[0093] In a possible implementation, if the vehicle is in the unlocked power-on state, before performing the static current testing on the vehicle, it is necessary to simulate the power-off scenario of the vehicle, that is, the vehicle machine control chip executes the preset function in the static current test case. For example, the power-off scenario is realized by simulating the function running of the vehicle machine. For example, if it is desired to measure the static current of the whole vehicle after sequentially running the vehicle machine functions A and B, the running of the vehicle machine functions A and B can be simulated, and the vehicle is powered off after the simulation, and then the static current testing is performed.
[0094] Before simulating the vehicle machine function, it is necessary to turn on the debugging mode of the vehicle.
[0095] For example, when the host computer 101 determines that the vehicle to be tested is in the power-on state, it can send a debugging mode switching instruction to the digital-analog control device 102, to temporarily switch the debugging mode switching device 105 from the default first working state to the second working state, so that the vehicle machine control chip is connected with the storage module, and after maintaining the second preset time, it is switched back to the first working state. To turn on the debugging mode of the vehicle machine control chip.
[0096] In the second working state, that is, after the car machine control chip is connected to the storage module 502, the program stored in the storage module 502 can trigger the car machine control chip to enter the debugging mode.
[0097] Exemplarily, after the vehicle is unlocked and powered on, the host computer 101 sends a “debug mode switching” signal to the digital-analog control device 102 through the USB serial port, the digital-analog control device 102 sends a high-level signal to the debugging mode switching device 105, the NO normally open joints of the third switching element 5011, the fourth switching element 5012, the fifth switching element 5013 and the sixth switching element 5014 are closed, and the NC normally closed joints are disconnected, so that the storage module 502 in which the USB debugging mode configuration word is written is connected with the vehicle USB interface, so that the car machine control chip opens the USB debugging mode. After the USB debugging mode is switched, the digital-analog control device 102 sends a low-level signal to the debugging mode switching device 105, the NO normally open joints of the third switching element 5011, the fourth switching element 5012, the fifth switching element 5013 and the sixth switching element 5014 are disconnected, and the NC normally closed joints are closed, so that the host computer 101 is connected with the car machine control chip through the USB serial port.
[0098] Subsequently, the debugging mode switching device 105 switches back to the default first working state, in which the host computer 101 is connected with the car machine control chip, and the host computer 101 can configure the static current test case for the car machine control chip through the operation of the application program on the remote control device 106 by the technician.
[0099] The car machine control chip responds to the static current test case and executes the preset function in the static current test, that is, the interaction between the user and the car machine can be simulated. For example, the air conditioner is turned on, the music is played, the seat heating is turned on, etc.
[0100] The preset function can include: issuing a function running instruction to the car machine function related to the interactive control in the car machine, to simulate the running of the car machine function.
[0101] Exemplarily, the host computer 101 controls the car machine control chip to realize communication with the vehicle car machine through ADB technology. The car machine control chip can use multiple ways such as Open Source Computer Vision Library (OpenCV) picture recognition comparison, Optical Character Recognition (OCR) picture text extraction, Dump instruction of ADB, etc., to simulate the human-computer interaction between the user and the car machine, accurately recognize the current interface menu action of the car machine, and complete the click operation of various functions on the car machine, such as simulating turning on the air conditioner, playing music, turning on the seat heating, turning on the navigation, turning on the back door, etc.
[0102] The host computer 101 simulates the functions on the vehicle machine based on the ADB technology through the vehicle machine control chip to simulate different power-off scenarios, thereby realizing the automatic test of the vehicle power-off scenario and the static current in different working conditions.
[0103] S603: The digital-analog control device 102 controls the vehicle to be powered off in response to the locking instruction of the host computer 101.
[0104] In one possible implementation, after the simulation of the vehicle machine function is completed, the host computer 101 can issue an unlocking instruction to the digital-analog control device 102. The digital-analog control device 102 receives the unlocking instruction and triggers the locking end of the remote key 301 to control the vehicle to be powered off.
[0105] For example, the host computer 101 sends a "locking" instruction to the digital-analog control device 102 through the USB serial port, and the digital-analog control device 102 sends a high-level signal to the second switching element 3022 of the remote key control device 104, so that the NO normally open interface of the second switching element 3022 acts, triggering the locking button of the remote key 301, thereby powering off the vehicle. S604: The digital-analog control device 102 controls the current sensor 103 to collect the static current data of the vehicle in response to the current data collection instruction received after the vehicle is powered off for a first preset time length.
[0106] After the vehicle is powered off for a first preset time length, the host computer 101 can send a current data collection instruction to the digital-analog control device 102, and the digital-analog control device 102 receives the current data collection instruction and controls the current sensor 103 to operate to collect the static current of the vehicle. Then, the digital-analog control device 102 can preprocess the static current data collected by the current sensor 103 and feed back the preprocessed static current data to the host computer 101.
[0107] Optionally, the first preset time length can be 15 minutes or 20 minutes. The present application does not make specific limitations on this.
[0108] For example, the whole vehicle hibernation usually takes 10+ minutes, and for a single power-off scenario, the current value needs to be collected continuously for 10-20 minutes. The digital-analog control device 102 sends the preprocessed static current data to the host computer 101 through the USB serial port, and the static current data can be collected at an interval of 10 ms and an accuracy of 1 mA. The specific values can be modified as required. The host computer 101 can monitor and record the preprocessed static current data, compare the preprocessed static current data with the expected current value, determine whether the preprocessed static current data meets the static current qualification standard of the vehicle, and then record the test results of this round. For different real vehicle power-off scenarios, the steps 601-604 can be repeatedly executed.
[0109] It can be seen that in the static current testing device provided by the embodiment, the host computer 101 is connected with the current sensor 103 through the digital-analog control device 102, the current sensor 103 is connected with the battery of the vehicle, and the host computer 101 can also be connected with the vehicle control chip of the vehicle. The digital-analog control device 102 feeds back the static current collected by the current sensor 103 to the host computer 101 after preprocessing, so that the automatic collection and preprocessing of the static current can be realized, and the test efficiency and accuracy can be improved.
[0110] In the example embodiment, a computer readable storage medium including instructions is also provided, for example, a static current testing device including instructions is executed to implement the method in the above embodiment.
[0111] Optionally, the computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0112] In the example embodiment, the embodiment also provides a computer program product including one or more instructions, which can be executed by the static current testing device to complete the method in the above embodiment.
[0113] It should be noted that the instructions in the above computer readable storage medium or the one or more instructions in the computer program product are executed by the processor of the electronic device to realize each process of the above method embodiment, and the same technical effect as the above method can be achieved. To avoid repetition, it will not be described here.
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete the above-described full classification part or part of the function.
[0115] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is merely illustrative, and for example, the division of the modules or units can not mean physical division, and for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0116] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, i.e., may be located in one place or distributed in multiple different places. Part or all of the classification units can be selected according to actual needs to achieve the purpose of the embodiment.
[0117] Based on such understanding, the technical solutions of the embodiments of the present application or the whole classification or part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute the whole classification or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various program code storage media.
[0118] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A static current testing device, characterized in that, The static current testing device includes: a host computer (101), a digital-analog control device (102), and a current sensor (103). The digital-analog control device (102) is connected to the host computer (101) and the current sensor (103) respectively. The current sensor (103) is connected to the vehicle's battery, and the host computer (101) is connected to the vehicle's vehicle control chip. The digital-analog control device (102) is used to preprocess the static current data collected by the current sensor (103) and feed back the preprocessed static current data to the host computer (101).
2. The static current testing device according to claim 1, characterized in that, The preprocessing includes: The static current data is filtered using a preset filtering algorithm.
3. The static current testing device according to claim 1, characterized in that, The static current testing device also includes a remote key control device (104), which is connected to the digital-analog control device (102). The remote key control device (104) is used to control the vehicle to unlock or lock.
4. The static current testing device according to claim 3, characterized in that, The remote key control device (104) includes a remote key (301) and a first switch module (302); wherein the remote key (301) is connected to the first switch module (302); and the digital-analog control device (102) is connected to the first switch module (302).
5. The static current testing device according to claim 4, characterized in that, The first switch module (302) includes a first switch element (3021) and a second switch element (3022); wherein, the unlocking end of the remote key is connected to the first switch element (3021), and the locking end of the remote key (301) is connected to the second switch element (3022); the digital-analog control device (102) is connected to the first switch element (3021) and the second switch element (3022) respectively.
6. The static current testing device according to claim 5, characterized in that, The digital-analog control device (102) is configured to control the vehicle to unlock and power on in response to the unlocking command of the host computer (101); The host computer (101) is configured to: configure static current test cases for the vehicle control chip, wherein the static current test cases are used to trigger the vehicle control chip to execute preset functions; The digital-analog control device (102) is also configured to control the vehicle to lock down in response to a locking command from the host computer (101); The analog-digital control device (102) is further configured to: in response to a current data acquisition command received after the vehicle has been powered off for a first preset time, control the current sensor (103) to acquire the static current data of the vehicle.
7. The static current testing device according to claim 1, characterized in that, The static current testing device also includes a debugging mode switching device (105), which is connected to the host computer (101), the vehicle control chip, and the digital-analog control device (102). The debugging mode switching device (105) is used to trigger the vehicle control chip to enter the debugging mode.
8. The static current testing device according to claim 7, characterized in that, The debugging mode switching device (105) includes a second switch module (501) and a storage module (502). The storage module (502) stores a program for triggering the vehicle control chip to enter the debugging mode. The normally closed port of the second switch module (501) is connected to the host computer (101), the normally open ports of the second switch module are all connected to the storage module, the common port of the second switch module (501) is connected to the vehicle control chip, and the control terminal of the second switch module (501) is connected to the digital-analog control device (102). The debugging mode switching device (105) has a first working state and a second working state; in the first working state, the normally closed port of the second switch module (501) is closed and the normally open port is open, so that the vehicle control chip is connected to the host computer (101); in the second working state, the normally closed port of the second switch module (501) is closed and the normally closed port is open, so that the vehicle control chip is connected to the storage module.
9. The static current testing device according to claim 8, characterized in that, The second switch module (501) includes a third switch element (5011), a fourth switch element (5012), a fifth switch element (5013), and a sixth switch element (5014). The normally open port of the third switching element (5011) is connected to the D+ sub-port of the USB port of the storage module (502), the normally closed port is connected to the D+ sub-port of the USB port of the host computer (101), the common port is connected to the D+ sub-port of the USB port of the vehicle control chip, and the control port is connected to the digital-analog control device (102). The normally open port of the fourth switching element (5012) is connected to the D-sub-port of the USB port of the storage module (502), the normally closed port is connected to the D-sub-port of the USB port of the host computer (101), the common port is connected to the D-sub-port of the USB port of the vehicle control chip, and the control port is connected to the digital-analog control device (102). The normally open port of the fifth switching element (5013) is connected to the power supply port in the USB port of the storage module (502), the normally closed port is connected to the power supply port in the USB port of the host computer (101), the common port is connected to the power supply port in the USB port of the vehicle control chip, and the control port is connected to the digital-analog control device (102). The normally open port of the sixth switching element (5014) is connected to the ground sub-port of the USB port of the storage module (502), the normally closed port is connected to the ground sub-port of the USB port of the host computer (101), the common port is connected to the ground sub-port of the USB port of the vehicle control chip, and the control port is connected to the digital-analog control device (102).
10. The static current testing device according to claim 9, characterized in that, The digital-analog control device (102) is configured to: in response to the debugging start command of the host computer (101), output a high level to the third switch element (5011), the fourth switch element (5012), the fifth switch element (5013) and the sixth switch element (5014) within a second preset time period, so that the normally open ports of the third switch element (5011), the fourth switch element (5012), the fifth switch element (5013) and the sixth switch element (5014) are all closed and the normally closed ports are all open within the second preset time period.
11. The static current testing device according to claim 1, characterized in that, The static current testing device also includes a remote control device (106), which is equipped with an application program for remotely controlling the vehicle and is connected to the host computer (101).
12. A method for testing static current, characterized in that, The method, applied to the static current testing device according to any one of claims 1 to 11, comprises: the digital-analog control device (102) controlling the vehicle to unlock and power on in response to the unlocking command of the host computer (101); The host computer (101) configures static current test cases for the vehicle control chip, and the static current test cases are used to trigger the vehicle control chip to execute preset functions; The digital-analog control device (102) responds to the locking command of the host computer (101) and controls the vehicle to lock down and power off. The analog-digital control device (102) responds to a current data acquisition command received after the vehicle has been powered off for a first preset time period, and controls the current sensor (103) to acquire the static current data of the vehicle.
13. The static current testing method according to claim 12, characterized in that, The method further includes: The analog-digital control device (102) responds to the debugging start command of the host computer (101) after the vehicle is powered on, and controls the debugging mode switching device (105) to trigger the vehicle control chip to enter the debugging mode.
14. The static current testing method according to claim 12, characterized in that, The method further includes: The digital-analog control device (102) preprocesses the static current data and feeds back the preprocessed static current data to the host computer (101).
15. The static current testing method according to claim 14, characterized in that, The preprocessing includes: The static current data is filtered using a preset filtering algorithm.