Functional logic testing device, method and equipment of battery sensor and medium

By designing the functional logic test device of the battery sensor, using the charge regulation circuit and the main controller to process data, the problem of frequent interruption of electricity in real car tests is solved, and efficient and accurate testing is achieved.

CN119619843APending Publication Date: 2025-03-14SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411663974.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the prior art, the testing of automotive battery sensors requires real vehicles to calibrate and test, resulting in frequent power outages, resulting in loss of sensor initialization data, long learning time, affecting testing efficiency and acquisition accuracy.

Method used

Design a functional logic test device for a battery sensor, including an engineering machine, a main controller, a battery and a charge adjustment circuit. The charge state of the battery is adjusted through the charge adjustment circuit, and the sensor data is processed through the main controller to realize automatic testing, avoiding the cumbersomeness of real car testing.

Benefits of technology

Improve the testing efficiency of the battery sensor, avoid re-learning caused by power outage, and ensure the accuracy and comprehensive coverage of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119619843A_ABST
    Figure CN119619843A_ABST
Patent Text Reader

Abstract

The invention discloses a functional logic testing device, method and equipment of a battery sensor and a medium. The device comprises an engineering machine, a main controller, a battery and a charge adjusting circuit, the engineering machine controls the charge adjusting circuit to adjust the charge state of the battery according to the test content; the main controller is in signal connection with the engineering machine to obtain a test signal sent by the engineering machine according to the test content and detection data sent by a battery sensor for testing, and processes the detection data according to the test signal to generate a processing result; the engineering machine is in signal connection with the battery sensor for testing so as to control the battery sensor for testing to carry out data acquisition on the battery and obtain detection data sent by the battery sensor for testing and the processing result; and generating a test result of the battery sensor for testing according to the detection data and the processing result so as to improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery sensors, and in particular to a functional logic test device, method, equipment and medium for a battery sensor. Background Art

[0002] With the vigorous development of the new energy vehicle industry, battery safety has gradually become an important guarantee for the safe and stable driving of new energy vehicles. Among them, based on the characteristics of battery sensors that can quickly and accurately obtain all aspects of battery data and then monitor the battery, the battery sensors are often installed in the engine compartment of the car to monitor the battery data.

[0003] With the application of battery sensors in the automotive industry, the testing of the battery sensors has become an important part of the factory testing of automobiles. In the field of testing automotive battery sensors, real vehicles are still used for calibration and testing. In the process of using real vehicles for testing, in order to ensure the safety of the test, the real vehicle will be powered off many times. Once the power is off, the initialization data of the battery sensor will be lost and after the power is turned on again, the learning time will last for several hours to complete. Therefore, the power outage not only extends the test time but also affects the acquisition accuracy of the sensor. Furthermore, when it is necessary to verify that the sensor collects specific battery capacity and temperature for functional verification, the test efficiency using a real vehicle is low and the work cannot be carried out efficiently. Summary of the invention

[0004] In order to solve the above technical problems, the present invention discloses a functional logic test device, method, equipment and medium of a battery sensor, which are used to improve the test efficiency.

[0005] In order to achieve the above-mentioned object, in a first aspect, the present invention discloses a functional logic test device for a battery sensor, including an engineering machine, a main controller, a battery, and a charge regulation circuit;

[0006] The charge regulating circuit is connected to the engineering machine signal, so that the engineering machine controls the charge regulating circuit to adjust the charge state of the battery to a preset charge state according to the test content; wherein the input end of the battery is connected to the output end of the charge regulating circuit;

[0007] The main controller is connected to the engineering machine signal to obtain the test signal sent by the engineering machine according to the test content and the detection data sent by the test battery sensor, and processes the detection data according to the test signal to generate a processing result, and sends the processing result to the engineering machine; wherein the input end of the test battery sensor is connected to the output end of the battery, and the output end of the test battery sensor is connected to the input end of the main controller;

[0008] The engineering machine is connected to the test battery sensor signal to control the test battery sensor to collect data from the battery, and obtain the detection data and the processing result sent by the test battery sensor to generate the test result of the test battery sensor based on the detection data and the processing result.

[0009] The present invention discloses a functional logic test device for a battery sensor, which provides data to the test battery sensor by setting a battery, and then performs a functional logic test on the test battery sensor. Furthermore, since in the actual driving process, the battery sensor needs to face the charge state of the battery at each stage to collect data, the charge state of the battery is adjusted by setting the charge adjustment circuit to improve the comprehensiveness of the test. Furthermore, in order to test whether the functional logic test of the battery sensor meets the design requirements, the main controller is set to process the data sent by the battery sensor, so as to generate the test result of the test battery sensor by monitoring the processing result generated by the main controller and the data sent and received by the battery sensor, thereby realizing automatic testing of the sensor, avoiding the tediousness of real vehicle testing, and improving the efficiency of testing.

[0010] As a preferred example, the charge regulation circuit includes a DC stable power supply and a power consumption load;

[0011] Wherein, the input end of the DC stable power supply is connected to the engineering machine signal;

[0012] The output end of the DC stabilized power supply is electrically connected to the input end of the battery;

[0013] The input end of the power-consuming load is connected to the engineering machine signal;

[0014] The output end of the power consumption load is electrically connected to the input end of the battery.

[0015] The present invention arranges the DC stable power supply and the power consumption load in the charge regulating circuit to charge and discharge the battery, thereby making the charge state of the battery in different stages to simulate the actual battery storage condition, improve the authenticity of the test, and avoid battery power failure, thereby improving the test effect.

[0016] As a preferred example, the engineering machine switches the working mode of the charge regulating circuit according to the test content; wherein the working mode includes a charging mode and a discharging mode;

[0017] When the working mode is the charging mode, controlling the DC stabilized power supply to charge the battery;

[0018] When the operation mode is the discharge mode, the power consumption load is controlled to discharge the battery.

[0019] The present invention performs charging or discharging operations on the battery according to the test content, which can meet the requirements of the test working condition that the sensor needs to monitor the change of the battery charging current, and then comprehensively tests the functional logic of the battery sensor to improve the test effect.

[0020] As a preferred example, the power line of the test battery sensor is fixed on the positive pole of the battery.

[0021] The present invention fixes the power line of the test battery sensor on the positive pole of the battery, so that the battery sensor will not lose the module initialization setting due to accidental power failure during the entire test cycle, thereby avoiding the re-learning of the battery sensor due to power failure, thereby improving the efficiency and accuracy of the test.

[0022] As a preferred example, the functional logic test device further comprises a first data acquisition device; wherein the input end of the first data acquisition device is electrically connected to the output end of the test battery sensor; the output end of the first data acquisition device is electrically connected to the input end of the engineering machine;

[0023] The first data acquisition device is used to perform information exchange between the engineering machine and the test battery sensor.

[0024] The present invention utilizes the first data acquisition device to realize two-way data interaction between the battery sensor and the engineering machine, so that the engineering machine sends a test signal to the battery sensor for testing and receives the data sent by the battery sensor to complete the test, thereby realizing testing of different functions and improving the comprehensiveness of test coverage.

[0025] As a preferred example, the functional logic test device further comprises a second data acquisition device; wherein the input end of the second data acquisition device is electrically connected to the output end of the main controller; the output end of the second data acquisition device is electrically connected to the input end of the engineering machine;

[0026] The second data acquisition device is used to execute information exchange between the engineering machine and the main controller.

[0027] The present invention utilizes the second data acquisition device to realize two-way data interaction between the main controller and the engineering machine, so that the engineering machine sends a test signal to the main controller for testing and receives the processing result sent by the main controller, thereby testing the functional logic setting of the battery sensor and ensuring the accuracy of the test.

[0028] In a second aspect, the present invention discloses a functional logic test method for a battery sensor, which is applied to a functional logic test device for a battery sensor as described in the first aspect, comprising:

[0029] adjusting the state of charge of the battery to a first state of charge according to the test content;

[0030] Sending a detection command to the test battery sensor according to the test content to obtain detection data of the test battery sensor;

[0031] Processing the detection data according to the test content to generate a processing result;

[0032] A test result of the test battery sensor is generated according to the processing result and the detection data.

[0033] The present invention discloses a method for testing the functional logic of a battery sensor, which performs a functional logic test of the test battery sensor by setting a battery to provide data to the test battery sensor. Furthermore, since the battery sensor needs to face the state of charge of the battery at each stage to collect data during the actual driving process, the comprehensiveness of the test is improved by adjusting the state of charge of the battery. Furthermore, in order to test whether the functional logic test of the battery sensor meets the design requirements, the test result of the test battery sensor is generated by monitoring the processing result generated by processing the detection data according to the test content and the data sent and received by the battery sensor, thereby realizing automatic testing of the sensor, avoiding the tediousness of real vehicle testing, and improving the efficiency of testing.

[0034] As a preferred example, adjusting the state of charge of the battery to the first state of charge according to the test content includes:

[0035] Determining a test state of charge of the battery according to the test content, and obtaining a current state of charge of the battery;

[0036] When the test state of charge is greater than the current state of charge, charging the battery;

[0037] When the test state of charge is less than the current state of charge, a discharge operation is performed on the battery.

[0038] The present invention performs charging or discharging operations on the battery according to the test content, which can meet the requirements of the test working condition that the sensor needs to monitor the change of the battery charging current, and then comprehensively tests the functional logic of the battery sensor to improve the test effect.

[0039] In a third aspect, the present invention discloses an electronic device, comprising: at least one processor; and a memory communicatively connected to at least one of the processors; wherein the memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute a functional logic testing method for a battery sensor as described in the second aspect.

[0040] In a fourth aspect, the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the functional logic testing method of a battery sensor described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 : A schematic diagram of the structure of a functional logic test device for a battery sensor disclosed in an embodiment of the present invention;

[0042] Figure 2 : A flow chart of a functional logic test method for a battery sensor disclosed in an embodiment of the present invention;

[0043] Figure 3 : A schematic diagram of the connection between a battery sensor and a functional logic testing device disclosed in another embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0047] Below, some terms in this application are explained to facilitate understanding by those skilled in the art.

[0048] Embodiment 1

[0049] This embodiment discloses a functional logic test device for a battery sensor. Specifically, the structure of the state detection device can be referred to Figure 1 , mainly includes an engineering machine 101, a main controller 102, a battery 103 and a charge regulating circuit 104.

[0050] like Figure 1 As shown, the charge regulating circuit 104 is connected to the engineering machine 101 by signal, so that the engineering machine 101 controls the charge regulating circuit 104 to adjust the charge state of the battery 103 to a preset charge state according to the test content; wherein the input end of the battery 103 is connected to the output end of the charge regulating circuit 104;

[0051] The main controller 102 is signal-connected to the engineering machine 101 to obtain the test signal sent by the engineering machine 101 according to the test content and the detection data sent by the test battery sensor, and processes the detection data according to the test signal to generate a processing result, and sends the processing result to the engineering machine 101.

[0052] The engineering machine 101 is connected to the test battery sensor signal to control the test battery sensor to collect data from the battery, and obtain the detection data and the processing result sent by the test battery sensor to generate the test result of the test battery sensor according to the detection data and the processing result.

[0053] Specifically, in order to Figure 1 The functional logic testing device shown tests the functional logic of the test battery sensor, and sets the output end of the battery 103 to be connected to the input end of the test battery sensor, while the input end of the main controller 102 is connected to the output end of the test battery sensor.

[0054] In certain implementations of the present embodiment, in order to improve the comprehensiveness of the test, that is, to configure the battery 103 to simulate different charge states, so as to test the functional logic of the test battery sensor when the battery is in different charge states and to test the monitoring of the charge state change of the battery by the test battery sensor, the charge regulation circuit 104 is configured to include a DC stable power supply and a power consumption load.

[0055] Preferably, in the process of adjusting the state of charge of the battery 103 , in order to ensure that the state of charge of the battery 103 meets the state of charge for testing, a discharge operation or a charge operation needs to be performed on the battery 103 .

[0056] Specifically, referring to the above-mentioned functional settings of the DC stable power supply and the power-consuming load, the connection relationship between the DC stable power supply, the power-consuming load and the battery 103 is: the input end of the DC stable power supply is signal-connected to the engineering machine 101; the output end of the DC stable power supply is electrically connected to the input end of the battery 103; the input end of the power-consuming load is signal-connected to the engineering machine 101; the output end of the power-consuming load is electrically connected to the input end of the battery 103.

[0057] In some implementations of this embodiment, referring to the structural composition of the charge regulating circuit 104, based on the engineering machine 101 controlling the charge regulating circuit 104 to adjust the charge state of the battery 103 according to the test content, so that the charge state of the battery 103 is a preset charge state, the process of the charge regulating circuit 104 adjusting the battery 103 includes the following steps:

[0058] Step S1: the engineering machine 101 switches the working mode of the charge regulating circuit 104 according to the test content; wherein the working mode includes a charging mode and a discharging mode;

[0059] Step S2: When the working mode is the charging mode, controlling the DC regulated power supply to charge the battery;

[0060] Step S3: When the working mode is the discharging mode, controlling the power consumption load to discharge the battery.

[0061] In step S1 to step S3, the battery 103 is charged or discharged according to the test content, which can meet the test condition requirement that the sensor needs to monitor the battery charging current change, and then comprehensively test the functional logic of the battery sensor to improve the test effect.

[0062] Furthermore, in order to ensure that the test battery sensor can be tested without power outage, in some implementations of this embodiment, a power line of the test battery sensor is fixed to the positive pole of the battery 103 .

[0063] In this embodiment, the power cord of the test battery sensor is fixed to the positive pole of the battery 103, so that the battery sensor will not lose the module initialization setting due to accidental power failure during the entire test cycle, thereby avoiding the re-learning of the battery sensor due to power failure, thereby improving the efficiency and accuracy of the test.

[0064] Furthermore, during the test, in order to obtain the test results of the logical functions of the battery sensor and control the battery sensor to perform different test contents, it is necessary to control the battery sensor and obtain the data sent by the battery sensor to generate the test results. Preferably, in certain implementations of this embodiment, a first data acquisition device may also be provided in the functional logic test device; wherein the input end of the first data acquisition device is electrically connected to the output end of the test battery sensor; the output end of the first data acquisition device is electrically connected to the input end of the engineering machine 101; the first data acquisition device is used to perform information interaction between the engineering machine 101 and the test battery sensor.

[0065] This embodiment utilizes the first data acquisition device to realize two-way data interaction between the battery sensor and the engineering machine, so that the engineering machine sends a test signal to the battery sensor for testing and receives the data sent by the battery sensor to complete the test, thereby realizing testing of different functions and improving the comprehensiveness of test coverage.

[0066] Furthermore, during the test, in order to obtain the test result of the logical function of the battery sensor, it is necessary to monitor the signal processed by the main controller 102 according to the data sent by the battery sensor. Preferably, in order to control the main controller 102 to process the data sent by the battery sensor and receive the processing result sent by the main controller 102. In certain implementations of this embodiment, a second data acquisition device may also be provided in the functional logic test device; wherein the input end of the second data acquisition device is electrically connected to the output end of the main controller 102; the output end of the second data acquisition device is electrically connected to the input end of the engineering machine 101; the second data acquisition device is used to perform information interaction between the engineering machine 101 and the main controller 102.

[0067] This embodiment uses the second data acquisition device to realize two-way data interaction between the main controller 102 and the engineering machine 101, so that the engineering machine 101 sends a test signal to the main controller 102 for testing and receives the processing results sent by the main controller 102, thereby testing the functional logic settings of the battery sensor to ensure the accuracy of the test.

[0068] On the other hand, this embodiment also discloses a functional logic test method for a battery sensor, the test method is applied to Figure 1 The functional logic test device shown in FIG. 1 is a functional logic test device shown in FIG. 1 . Specifically, the specific implementation process of the test method can be referred to in FIG. Figure 2 , mainly including steps 201 to 204, the steps are:

[0069] Step 201: adjusting the state of charge of the battery to a first state of charge according to the test content;

[0070] Step 202: sending a detection command to the test battery sensor according to the test content to obtain detection data of the test battery sensor;

[0071] Step 203: Processing the detection data according to the test content to generate a processing result;

[0072] Step 204: Generate a test result of the test battery sensor according to the processing result and the detection data.

[0073] In this embodiment, the process of adjusting the state of charge of the battery in step 201 further includes:

[0074] Step S5: determining the test state of charge of the battery according to the test content, and obtaining the current state of charge of the battery;

[0075] Step S6: When the test state of charge is greater than the current state of charge, charging the battery;

[0076] Step S7: When the test state of charge is less than the current state of charge, discharging the battery.

[0077] In this embodiment, step 201 performs charging or discharging operation on the battery according to the test content, which can meet the test condition requirement that the sensor needs to monitor the change of battery charging current, and then comprehensively test the functional logic of the battery sensor to improve the test effect.

[0078] According to Figure 2The functional logic test method shown in the figure, accordingly, this embodiment provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the following is implemented Figure 2 The functional logic test method shown in the figure. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the terminal, and various interfaces and lines are used to connect the various parts of the entire terminal. The memory may be used to store the computer program, and the processor implements various functions of the terminal by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0079] Furthermore, this embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the following Figure 2 Functional logic testing method shown.

[0080] Among them, Figure 1If the module of functional logic test integration shown is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, all or part of the processes in the above-mentioned embodiment method can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0081] Compared with the prior art, this embodiment provides the following beneficial effects:

[0082] The present embodiment provides a functional logic test device, method, equipment and medium for a battery sensor, which provides data to the test battery sensor by setting a battery to perform a functional logic test on the test battery sensor. Furthermore, since the battery sensor needs to face the state of charge of the battery at each stage to collect data during the actual driving process, the charge regulating circuit is set to adjust the state of charge of the battery to improve the comprehensiveness of the test. Furthermore, in order to test whether the functional logic test of the battery sensor meets the design requirements, a main controller is set to process the data sent by the battery sensor, so as to generate the test result of the test battery sensor by monitoring the processing result generated by the main controller and the data sent and received by the battery sensor, thereby realizing automatic testing of the sensor, avoiding the tediousness of real vehicle testing, and improving the efficiency of testing.

[0083] Embodiment 2

[0084] Battery sensors are commonly used in the automotive industry to collect data from batteries that realize the power supply function in the battery. In the field of testing battery sensors for automobiles, real vehicles are often used for calibration and testing. The above-mentioned real vehicle testing method requires frequent power outages to ensure the safety of the test. Due to its working characteristics, the battery sensor uses a real-time integration algorithm for data feedback. Once the initialization data is lost due to an unexpected power outage, the learning time will take several hours to complete after the power is turned on again. As a result, the real vehicle testing method causes the battery sensor to need to be constantly relearned during the test, which not only has low test efficiency, but also affects the data collection accuracy. When it is necessary to verify the function of the sensor to collect specific battery capacity and temperature, the test using a real vehicle is inefficient and cannot be carried out efficiently.

[0085] In order to solve the above technical problems, a functional logic test device for a battery sensor is provided in this embodiment. The functional logic test device performs testing by directly connecting to a test battery sensor, thereby avoiding technical problems caused by real vehicle testing.

[0086] In certain implementations of this embodiment, the functional logic test device includes a DC regulated power supply, a power-consuming load, a battery, a vehicle controller, and a test host computer. The DC regulated power supply and the power-consuming load are respectively connected to the battery to adjust the state of charge of the battery to a preset state of charge; further, the DC regulated power supply and the power-consuming load are respectively connected to the test host computer signal to receive the charge adjustment command sent by the test host computer to obtain the preset state of charge from the charge adjustment command. The output end of the battery is connected to the input end of the test battery sensor so that the test battery sensor can collect data.

[0087] Furthermore, the vehicle-mounted controller is signal-connected to the test host computer to obtain the test signal sent by the test host computer according to the test content and the detection data sent by the test battery sensor, and processes the detection data according to the test signal to generate a processing result, and sends the processing result to the test host computer; wherein the output end of the test battery sensor is connected to the input end of the vehicle-mounted controller.

[0088] Furthermore, the test host computer is connected to the test battery sensor signal to control the test battery sensor to collect data from the battery, and obtain the detection data and the processing results sent by the test battery sensor to generate the test results of the test battery sensor based on the detection data and the processing results.

[0089] In some implementations of this embodiment, taking a vehicle-mounted battery sensor as an example, the functional logic test device provided in this embodiment is used to test the battery sensor. The connection circuit diagram between the functional logic test device and the battery sensor is as follows: Figure 3 shown.

[0090] Specifically, refer to Figure 3 The functional logic test device includes a DC regulated power supply 301, a power consumption load 302, a battery 303, a vehicle controller 304 and a test host computer 305. The output end of the battery 303 is connected to the input end of the battery sensor 306, and the output end of the battery sensor 306 is connected to the input end of the vehicle controller 304 and the input end of the test host computer 305 respectively.

[0091] Further, refer to Figure 3 In order to ensure that the battery sensor 306 does not lose the module initialization setting due to an accidental power outage when the battery 303 operates at a normal voltage, in this embodiment, the B+, i.e., the power line, of the battery sensor 306 is fixed to the positive pole of the battery 303.

[0092] Furthermore, if Figure 3 As shown, the power-consuming load 302 and the DC regulated power supply 301 are connected in series to the circuit of the battery 303. In the specific test content, in order to simulate different charge states corresponding to the battery, the power-consuming load 302 and the DC regulated power supply 301 receive commands sent by the test host computer 305 to determine whether the battery 302 needs to consume power or increase power.

[0093] Specifically, when the power of the storage battery 303 needs to be consumed, the DC regulated power supply 301 does not work, and the storage battery 303 is controlled to discharge by adjusting the power consumption load 302; on the contrary, when the storage battery 303 needs to be charged, the DC regulated power supply 301 provides a stable voltage output, and the charging current can also be adjusted by the power consumption load 302. Preferably, the power consumption load 302 can adopt an adjustable electronic load device to realize the adjustment of the charging current or the power consumption of the storage battery 303.

[0094] Reference Figure 3 After adjusting the power status of the battery 303, in actual application, the data collected by the battery sensor 306 will be sent to its superior part, namely the vehicle controller 304. In order to verify whether the functional logic of the battery sensor 306 meets the design requirements, it is necessary to monitor the data generated by the vehicle controller 304 after receiving the detection data sent by the battery sensor 306.

[0095] Specifically, in some implementations of this embodiment, in order to enable the test host computer 305 to receive the detection data sent by the battery sensor 306 and the processing result sent by the vehicle controller 304, so as to generate a test result including whether the battery sensor 306 functions normally or abnormally. Preferably, a CAN and LIN acquisition control tool can be installed in the test host computer 305 to collect data through the CAN and LIN acquisition control tool.

[0096] Furthermore, after the CAN and LIN acquisition control tools are set, in order to realize the two-way information interaction between the test host computer 305 and the battery sensor 306 and the two-way information interaction between the test host computer 305 and the vehicle controller 304. In some implementations of this embodiment, the LIN line of the test host computer 305 is partially connected to the LIN line of the battery sensor 306, and the CAN line of the test host computer 305 is partially connected to the CAN line of the vehicle controller 304.

[0097] According to the LIN line part, the test host computer 305 not only receives the detection data sent by the battery sensor 306, but also sends or modifies specific analog signals to the battery sensor 306, thereby changing the test parameters to make the test coverage more comprehensive. Simultaneously, according to the CAN line part, the test host computer 305 not only receives the processing results sent by the vehicle controller 304, but also sends or modifies specific analog signals to the vehicle controller 304, thereby changing the test parameters to make the test coverage more comprehensive.

[0098] In using Figure 3 When the functional logic test device shown in the figure performs a functional logic test on a test battery sensor, in order to improve the universal applicability of the functional logic test device to the test environment, the following Figure 3 The functional logic test device shown is arranged on a movable trolley made of aluminum profile, so that the functional logic test device can be easily moved to any test environment through the trolley, such as being moved as a whole to a high and low temperature environment chamber for real temperature testing.

[0099] The functional logic test device provided in this embodiment greatly simplifies the test process by replacing the actual vehicle test method with a bench, and can significantly improve the test and problem-solving efficiency during the parts development and verification stage. Furthermore, the platform of the test device can be compatible with different battery sizes, and different battery models and battery sensors can be replaced for testing, which not only simplifies the test method of the battery sensor, but also improves the test efficiency.

[0100] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A functional logic test device for a battery sensor, characterized in that: It includes an engineering machine, a main controller, a battery, and a charge regulating circuit; The charge regulating circuit is connected to the engineering machine signal, so that the engineering machine controls the charge regulating circuit to adjust the charge state of the battery to a preset charge state according to the test content; wherein the input end of the battery is connected to the output end of the charge regulating circuit; The main controller is connected to the engineering machine signal to obtain the test signal sent by the engineering machine according to the test content and the detection data sent by the test battery sensor, and processes the detection data according to the test signal to generate a processing result, and sends the processing result to the engineering machine; wherein the input end of the test battery sensor is connected to the output end of the battery, and the output end of the test battery sensor is connected to the input end of the main controller; The engineering machine is connected to the test battery sensor signal to control the test battery sensor to collect data from the battery, and obtain the detection data and the processing result sent by the test battery sensor to generate the test result of the test battery sensor based on the detection data and the processing result.

2. A functional logic test device for a battery sensor according to claim 1, characterized in that: The charge regulation circuit includes a DC stable power supply and a power consumption load; Wherein, the input end of the DC stable power supply is connected to the engineering machine signal; The output end of the DC stabilized power supply is electrically connected to the input end of the battery; The input end of the power-consuming load is connected to the engineering machine signal; The output end of the power consumption load is electrically connected to the input end of the battery.

3. A functional logic test device for a battery sensor according to claim 2, characterized in that: The engineering machine switches the working mode of the charge regulating circuit according to the test content; wherein the working mode includes a charging mode and a discharging mode; When the working mode is the charging mode, controlling the DC stabilized power supply to charge the battery; When the operation mode is the discharge mode, the power consumption load is controlled to discharge the battery.

4. The functional logic test device of a battery sensor according to claim 1, characterized in that: The power line of the test battery sensor is fixed on the positive pole of the battery.

5. The functional logic test device of a battery sensor according to claim 1, characterized in that: It also includes a first data acquisition device; wherein the input end of the first data acquisition device is electrically connected to the output end of the test battery sensor; the output end of the first data acquisition device is electrically connected to the input end of the engineering machine; The first data acquisition device is used to perform information exchange between the engineering machine and the test battery sensor.

6. A functional logic test device for a battery sensor according to claim 1, characterized in that: It also includes a second data acquisition device; wherein the input end of the second data acquisition device is electrically connected to the output end of the main controller; the output end of the second data acquisition device is electrically connected to the input end of the engineering machine; The second data acquisition device is used to execute information exchange between the engineering machine and the main controller.

7. A functional logic test method for a battery sensor, applied to a functional logic test device for a battery sensor as claimed in any one of claims 1 to 6, characterized in that: include: adjusting the state of charge of the battery to a first state of charge according to the test content; Sending a detection command to the test battery sensor according to the test content to obtain detection data of the test battery sensor; Processing the detection data according to the test content to generate a processing result; A test result of the test battery sensor is generated according to the processing result and the detection data.

8. The functional logic testing method of a battery sensor according to claim 7, characterized in that: The step of adjusting the state of charge of the battery to a first state of charge according to the test content includes: Determining a test state of charge of the battery according to the test content, and obtaining a current state of charge of the battery; When the test state of charge is greater than the current state of charge, charging the battery; When the test state of charge is less than the current state of charge, a discharge operation is performed on the battery.

9. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to at least one of the processors; wherein the memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute a functional logic testing method for a battery sensor as described in any one of claims 7-8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute a functional logic testing method for a battery sensor according to any one of claims 7 to 8.