An AI large model-based electric brake releasing failure detection and analysis method and device
By using an AI-based large-scale model for electric brake release fault detection, combined with communication, ADC, and IO fault bit diagnosis, the problems of inaccurate fault location and inconsistent data management in existing technologies are solved, achieving efficient fault analysis and production line quality management.
Patent Information
- Application Number
- CN202611353099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing electric brake release testing devices cannot accurately locate faults, lack dual-channel data verification, rely on manual experience, and cannot achieve unified storage and automatic statistics of fault analysis, resulting in low repair efficiency and poor quality management.
A fault detection method based on an AI large model is adopted. Multiple performance tests are carried out through an embedded tooling main control board. Combined with three-level diagnosis of communication fault bits, ADC fault bits and IO fault bits, fault location suggestions are generated. The test data and knowledge base are concatenated into a structured context and the large model is called for analysis.
It enables precise fault location, improves rework efficiency and testing comprehensiveness, reduces reliance on human experience, and forms a closed loop of testing, storage, statistics and AI analysis, enabling the tracing of production line quality issues.
Smart Images

Figure CN123176378A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of electronic digital data processing technology, and relates to data acquisition and fault analysis of electric brake release devices. Specifically, it relates to a method and device for electric brake release fault detection and analysis based on an AI large model. Background Technology
[0002] The electric brake release system is a backup emergency power supply system designed to handle sudden power outages or malfunctions in elevators. Its basic working principle is to provide emergency power. When the mains power supply is normal, the electric brake release system operates in standby mode, charging the battery. After a power outage, the electric brake release system enters inverter mode, providing emergency power to the elevator control system, allowing the car to slowly move to the nearest leveling position at a low speed. When the mains power is restored, the electric brake release system automatically returns to standby charging mode, preparing for the next possible malfunction. It can be seen that the electric brake release system plays a crucial role in elevator power outage rescue operations; therefore, its performance is of great significance to the safe rescue of elevators.
[0003] Existing testing methods mostly target the performance testing of electric brake release mechanisms already in use, and the test results are presented only in a simple "pass / fail" format, which has the following shortcomings:
[0004] First, existing testing equipment cannot accurately locate faults during the testing process. It lacks a diagnostic structure that breaks down fault information into three dimensions—abnormal communication data, abnormal ADC sampling data, and abnormal IO signal status—and precisely pinpoints the specific electrical parameters. When a test fails, engineers need to repeatedly troubleshoot based on experience, unable to directly locate the specific faulty electrical quantity, resulting in low repair efficiency. Furthermore, existing testing equipment does not perform dual-channel parallel comparison and verification between the local ADC sampling data of the tooling and the sampling data reported internally by the tested electric brake release device via the communication interface, making it impossible to simultaneously verify the accuracy of the electric brake release device's own sampling circuit during the testing process.
[0005] Second, the test data of the existing testing equipment is recorded in a scattered manner and lacks unified storage and traceability. Fault analysis and troubleshooting rely on the personal experience of engineers, which requires high skills. Furthermore, it is impossible to automatically collect and identify abnormal trends in the batch test data of the day. Historical data cannot form an effective quality closed-loop management, and batch quality problems on the production line are difficult to detect.
[0006] In summary, existing technologies lack a method that can achieve parallel verification of local ADC sampling and internal communication data of the electric brake release device during the performance testing process of electric brake release at the factory or during operation, accurately locate faults bit by bit according to the three dimensions of communication / ADC / IO, and uniformly store test data to achieve anomaly analysis. Summary of the Invention
[0007] To address the shortcomings of existing technologies, this invention proposes a method and device for detecting and analyzing electric brake release faults based on an AI large-scale model. The embedded tooling main control board automatically completes multiple performance tests of the electric brake release according to a state machine. Then, the test data is diagnosed bit-by-bit in three levels: communication fault bits, ADC fault bits, and IO fault bits, achieving precise fault location. The fault diagnosis results and real-time monitoring data are uploaded to a host computer, where they are combined with the embedded test logic and protocol parsing knowledge base to form a structured context. The large-scale model is then invoked to generate analysis suggestions in an SSE streaming manner, assisting engineers in quickly locating faults and assessing production line quality.
[0008] A method for detecting and analyzing electric brake release faults based on an AI large-scale model, specifically including the following steps:
[0009] Step 1: Sample the voltage, current and signal status of the output port of the electric brake release device under test in different operating states, and read the self-sampled data inside the electric brake release device under test for performance testing.
[0010] Preferably, the battery voltage, grid L1L2 voltage, grid L1N voltage, output VRS voltage, and signal status of the start signal port, fault signal port, stop signal port, and manual power-off signal port of the electric brake release device under test are sampled. The grid L1L2 voltage, grid L1N voltage, output VRS voltage, output VRN voltage, output current, output VTR voltage, battery voltage, electric brake release ambient temperature, input signal status, and software version are read from the internally sampled data of the electric brake release device under test.
[0011] Step 2: Compare the sampled data with preset thresholds sequentially. If the sampled data is inconsistent with the preset thresholds, a fault is determined, and ADC fault bit determination results and IO fault bit determination results are generated bit by bit. The self-sampled data from the internal circuit of the electric brake release device under test is compared and verified in parallel with the sampled same physical quantity. If the read data is inconsistent with the sampled data, a fault is determined, and communication bit fault determination results are generated bit by bit.
[0012] Step 3: When a fault is determined to exist, locate the faulty electrical quantity one by one according to the fault location determination result, display the fault details, and trigger AI analysis to proceed to Step 4. When a fault is determined not to exist, proceed to Step 5.
[0013] Step 4: Combine the operating status of the electric brake release device under test, the fault location determination result, the internal self-sampling data of the electric brake release device under test, and the knowledge base into a structured context. Call the large model to generate fault location and troubleshooting suggestions in SSE streaming mode, and display them segment by segment in the form of streaming bubbles in the monitoring display unit.
[0014] The knowledge base includes large model prompts, sampled test process logic, and communication protocol parsing rules. The large model prompts define its role as a data analysis expert for an automated electric brake release test system, requiring it to assist engineers in analyzing test results, diagnosing fault causes, and interpreting monitoring data based on test data, test logic, and communication protocols.
[0015] Step 5: Store the test records in the local database.
[0016] Preferably, the test record includes the product part number, serial number (SN), test time, and the internal self-sampling data of the electric brake release device under test.
[0017] Preferably, this also includes retrieving historical test records from a local database, calculating the test pass rate based on the number of faults present or absent, and inputting the statistical results into a large model for batch analysis to generate production line quality assessments and improvement suggestions.
[0018] An electric brake release fault detection and analysis device based on an AI large model includes a testing fixture and a host computer monitoring terminal.
[0019] The test fixture is used to collect operating data of the electric brake release device under specified conditions, including an MCU main control chip, a relay switching module, a signal acquisition module, a signal detection module, a power supply circuit, and a communication module.
[0020] The MCU main control chip operates a state machine test process and a fault position diagnosis unit. It outputs control commands through multiple discrete output channels to drive the relay switching module, and receives sampling data from the signal acquisition module and signal detection module, as well as frame data returned by the communication module. The fault position diagnosis unit performs threshold judgment and logic analysis to obtain the performance test results of the electric brake release under test. The MCU main control chip exchanges data with the host computer monitoring terminal through the Modbus RTU protocol, and uploads the performance test results and frame data returned by the communication module to the host computer monitoring terminal.
[0021] The relay switching module is located between the power grid and the electric brake release device under test, and between the power circuit input terminal and the battery terminal of the electric brake release device under test. Based on control commands output from the multiple discrete output channels of the MCU main control chip, it switches between closed and open states of the relays. The relays are located in the power grid connection contactor control channel, manual power-off relay control channel, FK short-circuit relay control channel, electric brake release stop signal output control channel, switching power supply connection control channel, and load connection control channel.
[0022] The signal acquisition module is connected to the voltage and current output terminals of the electric brake release device under test. The multi-channel ADC sampling circuit performs ADC sampling on the battery pack voltage, grid L1L2 voltage, grid L1N voltage, and output VRS voltage of the electric brake release device under test, and transmits the sampled data to the ADC sampling port of the MCU main control chip.
[0023] The signal detection module is connected to the start signal port, fault signal port, stop signal port and manual power-off signal port of the electric brake release device under test. The signal status of the electric brake release device under test is mapped to high and low levels through the IO input detection circuit and transmitted to the IO port of the MCU main control chip.
[0024] The communication module is connected to the communication interface of the electric brake release device under test. It is used to read the multi-channel electrical parameter data, software version, voltage data, current data, ambient temperature and input signal status of the electric brake release device under test in a fixed frame format via the SVT protection serial port, and transmit them to the communication port of the MCU main control chip.
[0025] The fault diagnosis unit includes a communication fault parsing structure, an ADC fault parsing structure, and an IO fault parsing structure. When a fault occurs, it latches the current communication data and reports the fault status code, fault sub-step count value, and multiple electrical parameters to the host computer monitoring terminal. The communication fault bit is determined by comparing the data read by the communication module with the same physical quantity acquired by the signal acquisition module in parallel to determine the accuracy of the internal sampling of the electric brake release device under test, while also detecting the software version and input signal status of the electric brake release device under test. The ADC fault bit is determined bit by bit based on the comparison result between the ADC sampling data of the signal acquisition module and a preset threshold. The IO fault bit is determined bit by bit based on the IO signal status of the signal detection module.
[0026] The host computer monitoring terminal includes a monitoring display unit, a fault location parsing unit, a data storage unit, and an AI analysis module. The fault location parsing unit locates faults one by one according to three dimensions—communication fault location, ADC fault location, and IO fault location—based on the fault data reported by the MCU main control chip, and displays the results through the monitoring display unit. The data storage unit stores the results of each test in a local database. The AI analysis module accesses the parsing results of the fault location parsing unit and the historical test records of the data storage unit. It embeds a knowledge base containing large model prompts, test process logic, and communication protocol parsing rules. After concatenating the test status, fault location parsing results, real-time monitoring data, and the knowledge base into a structured context, it calls the large model, generates analysis suggestions in an SSE streaming manner, and outputs them to the monitoring display unit.
[0027] Preferably, the test process logic includes the definition of each state of the state machine running on the MCU main control chip, the state transition conditions, and the execution actions in each state. The communication protocol parsing rules include the frame format, field offset definition, and data verification rules for the data uploaded by the test fixture. The large model prompt defines the large model's identity as a data analysis expert for an automated electric brake release test system, requiring it to help engineers analyze test results, diagnose fault causes, and interpret monitoring data based on test data, test logic, and communication protocols.
[0028] Preferably, the data storage unit stores the product part number, serial number (SN), test time, multiple electrical parameters, software version, and test results according to the test records.
[0029] Preferably, the AI analysis module performs PASS / NO PASS count, yield rate ring chart display, multi-channel electrical parameter trend visualization and anomaly identification on the historical test records of the day in the data storage unit, and sends the statistical results and trend data into the large model for batch analysis, outputting production line quality judgment and improvement suggestions.
[0030] Preferably, the AI analysis module automatically triggers the analysis process when the test result of the electric brake release test is NO PASS, without the need for manual intervention; the AI analysis module is also equipped with a historical data analysis trigger control, which allows operators to manually trigger batch analysis of all test records for the day.
[0031] Preferably, the MCU main control chip cycles through multiple states according to a state machine, including idle (IDLE, 0x01), gear switching (TEST_cut, 0x10), first power gear grid access detection (0x11), first power gear output detection (0x12), second power gear grid access detection (0x20), second power gear output detection (0x21), test passed (PASS, 0x03), and test failed (FAIL, 0x02). In the gear switching state (0x10), the MCU main control chip automatically determines the power gear of the electric brake release under test according to the input signal and jumps to the grid access detection state of the corresponding power gear.
[0032] The present invention has the following beneficial effects:
[0033] 1. A three-level fault diagnosis structure with communication fault bit, ADC fault bit and IO fault bit is designed. It can accurately locate the fault to the specific electrical quantity in the communication data, ADC sampling data or IO signal status. When the fault occurs, the current communication data is automatically latched, which significantly improves the repair efficiency.
[0034] 2. By constructing a dual-channel parallel verification structure with the ADC sampling channel and the serial communication channel, the accuracy of the electric brake release output data and the accuracy of the internal self-sampling circuit can be verified simultaneously. It can also detect the electric brake release software version and input signal status, thereby improving the comprehensiveness and reliability of the test.
[0035] 3. By embedding prompts, test logic, and protocol parsing knowledge base, the fault location diagnosis results, real-time monitoring data, and knowledge base are combined into a structured context and then the AI big model is called to output analysis suggestions. This can help engineers quickly locate the root cause of the fault and judge the batch quality problems of the production line, reducing the reliance on personnel experience.
[0036] 4. Store historical test data and support the retrieval of historical data for statistical analysis and AI large-scale model analysis, forming a closed loop of testing, storage, statistics, and AI analysis, which enables the traceability of production line quality issues.
[0037] 5. The electric brake release performance test is completed automatically through a state machine, which automatically identifies the power level. The entire process does not require manual interpretation, resulting in high testing efficiency and avoiding human error. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the state switching of the MCU main control chip in the embodiment;
[0039] Figure 2 This is a system block diagram of an electric brake release fault detection and analysis device based on an AI large model;
[0040] Figure 3 This is a block diagram illustrating the principle of the relay switching module in the embodiment;
[0041] Figure 4 This is a data flow diagram of the AI analysis module in the embodiment. Detailed Implementation
[0042] The present invention will be further explained below with reference to the accompanying drawings;
[0043] A method for detecting and analyzing electric brake release faults based on an AI-powered large-scale model is proposed. This method utilizes a testing fixture system to automate data acquisition and judgment, then transmits the data to a host computer for result display and fault analysis, thereby helping engineers quickly pinpoint the root cause of electric brake release failures. Furthermore, by combining statistical analysis of historical data, it enables the tracing of production line quality issues related to electric brake release.
[0044] This embodiment uses the factory performance test of an 800W power frequency electric brake release device as an example to illustrate the specific steps of the method:
[0045] Step 1: According to the work instructions, complete the electrical connection between the test fixture system and the electric brake release device under test. Configure the serial port number, baud rate and odd parity in the host computer, configure the product part number, and switch the gear to 800W power frequency electric brake release.
[0046] Step 2: Test the state machine of the test fixture system, such as... Figure 1 As shown, after power-on, it enters the idle state (IDLE, 0x01). When it receives a start signal from the host computer, it jumps to the gear switching (TEST_cut, 0x10) state. Based on the input signal, it determines that the power gear of the electric brake release under test is 800W, and jumps to the first power gear grid access detection (0x11).
[0047] Step 3: In the first power level grid connection detection (0x11) state, drive the relay and sampling circuit sequentially to execute the following sub-steps:
[0048] s3.1 Connect the contactor to the power grid and detect the start signal and fault signal of the electric brake release device under test.
[0049] s3.2, energize the switching power supply and give a manual power-off signal, then retest the start signal and fault signal of the electric brake release device under test.
[0050] s3.3 Sample the grid voltage L1L2, L1N voltage, output VRS voltage and battery voltage, and read the grid voltage L1L2, L1N voltage, output VTR voltage, output VRS voltage, output VRN voltage, output current, output VTR voltage, battery voltage, electric brake release ambient temperature and manual power-off signal sampled by the internal circuit of the electric brake release device under test.
[0051] s3.4. Compare and verify the data read from the internal self-sampled data of the electric brake release device under test with the sampled physical quantity in parallel, and determine whether the grid connection status is normal based on the threshold, and then disconnect the manual power-off signal.
[0052] Step 4: The test fixture system jumps to the first power level output detection (0x12), and sequentially drives the relay and sampling circuit to execute the following sub-steps:
[0053] s4.1 Disconnect the power grid contactor and short-circuit the protection diode, and detect the start signal and fault signal of the electric brake release device under test.
[0054] s4.2 Sample the output voltage of the electric brake release device under test, and read the output VRS voltage, output VRN voltage and output current of the electric brake release device under test.
[0055] s4.3. Compare and verify the self-sampled data of the electric brake release device under test with the sampled physical quantity in parallel, and determine whether the output of the electric brake release device under test is normal based on the threshold.
[0056] s4.4. Give a stop signal and check whether the output voltage of the electric brake release device under test has dropped to a safe range.
[0057] Step 5: The test fixture system performs bit-by-bit judgment based on the power grid access detection and output detection results of Steps 3 and 4, and maps the bits to communication fault bits, ADC fault bits and IO fault bits, and jumps to the test pass (PASS, 0x03) and test fail (FAIL, 0x02) states.
[0058] The test results are transmitted to the host computer via the Modbus RTU protocol, and the host computer writes the test records to an SQLite database and a CSV file. The test records include the product part number, serial number (SN), test time, internal self-sampling data of the electric brake release mechanism under test, software version, and test results. The serial number (SN) includes the product part number, date, and serial number.
[0059] Step 6: If the test fails, the fault position data will be automatically parsed first, the fault electrical quantity will be located bit by bit, and the fault details will be displayed in a three-column card layout on the monitoring display interface.
[0060] In one embodiment, communication fault bits, ADC fault bits, and IO fault bits are displayed in a three-column card layout, with each column distinguished by a top color bar. Fault items in each type of fault bit are marked with red fault badges and arranged first, while normal items are marked with green normal badges and arranged second.
[0061] Simultaneously, the operating status of the electric brake release device under test, the fault location determination result, the internal self-sampling data of the electric brake release device under test, and the knowledge base are spliced into a structured context, and the AI big model is called to generate fault location and troubleshooting suggestions in SSE streaming mode.
[0062] The knowledge base includes large model prompts, sampling test process logic, and communication protocol parsing rules. Below is an example of a large model prompt:
[0063] def _get_system_prompt(self):
[0064] """Construct system prompts (including test logic and communication protocol knowledge base)""
[0065] return (
[0066] You are a data analysis expert for an automated testing system for electric brake release devices.
[0067] Your responsibility is to help engineers analyze test results, diagnose the causes of failures, and interpret monitoring data.
[0068] Please provide professional analysis based on the test data, test logic, and communication protocol.
[0069] The fault location diagnosis details are the most crucial information for pinpointing the fault. Prioritize fault location analysis to locate the fault, and then combine this with test logic and monitoring data for further in-depth analysis.
[0070] If the data is normal, please confirm that the test passed and provide a data summary.
[0071] If the data is abnormal or faulty, please combine the test logic to locate the fault steps, analyze the possible causes of the fault, and provide troubleshooting suggestions.
[0072] Please answer in Chinese, keeping it concise and professional.
[0073] The following are fault location and troubleshooting suggestions returned by the AI model when the output voltage of the motor under test is abnormal:
[0074] Output voltage anomaly analysis
[0075] I. Fault Location
[0076] Based on the fault location diagnosis details, the following anomalies were found in this test:
[0077] Communication fault bit: Both the electric brake release output voltages VRS and VRN are set.
[0078] ADC fault bit: Output voltage VRS set
[0079] Output current and transformer voltage VTR have no fault position
[0080] Note: The simultaneous abnormality of communication (internal self-sampling of electric brake release read by SVT) and local ADC sampling of the tooling indicates that the fault is most likely in the electric brake release output circuit itself, rather than a problem with a single sampling link.
[0081] II. Fault Location Steps
[0082] Based on the tooling testing process, the output test results occur in the following two steps:
[0083] (1) 0x11 (800W power grid access detection): The power grid contactor is closed → the ADC sample outputs VRS and compares it with the electric brake release communication value.
[0084] (2) 0x12 (800W electric brake release output detection): Disconnect the power grid contactor and short-circuit the diode → detect the electric brake release start / fault signal → sample the output voltage with ADC → compare VRS / VRN / Io via communication.
[0085] The comparison failed at step 0x12 (800W electric brake release output test), which is in the electric brake release output establishment stage.
[0086] III. Possible causes of the malfunction
[0087] Sort by investigation priority:
[0088] (1) Electric brake release does not start normally: the start signal is not triggered or the electric brake release fault signal is set (the status of IO fault bit7 "electric brake release fault signal" and bit10 "electric brake release start signal" needs to be confirmed first).
[0089] (2) Output contactor / relay not engaged: After the power grid is disconnected, the electric release output is not established, causing VRS / VRN to approach 0.
[0090] (3) Abnormal diode short circuit: The failure of the short circuit causes the electric brake release to be unable to switch to the output mode.
[0091] (4) Sampling link abnormality: faulty ADC voltage divider resistor or isolation operational amplifier in the tooling (if the communication value is normal but the local ADC is abnormal, then this is the more likely cause).
[0092] (5) Damage to the internal inverter / rectifier circuit of the electric brake release: output stage hardware failure.
[0093] IV. Investigation Recommendations
[0094] Step 1: Confirm whether the "ARD start signal" in the IO fault bit is triggered normally and whether the "ARD fault signal" is incorrectly set. First, rule out the possibility that the electric brake release body has not started.
[0095] Step 2: Compare the monitoring data. If the communication VRS / VRN has a value but the local ADC has no value, focus on checking the tooling ADC sampling circuit. If both sides are close to 0, check the output contactor and diode short-circuit circuit.
[0096] Step 3: Check if the output current Io is 0 and VTR is normal, to distinguish between "output short circuit protection" and "output not established".
[0097] Step 4: Power on and retest the suspected faulty electric brake release device individually to confirm whether it is a single-board hardware problem or a batch process problem.
[0098] Step 7: Select historical test records from the database, count the number of tests that passed or failed, calculate the pass rate, and display it as a pie chart. Plot the self-sampled data inside the electric brake release device under test as a trend curve, and send the statistical results and trend data into the large model for batch analysis to generate production line quality judgment and improvement suggestions.
[0099] like Figure 2As shown, an electric brake release fault detection and analysis device based on an AI large model includes test fixtures and a host computer monitoring terminal. It adopts a three-layer architecture of hardware fixture layer, fixture control software layer and host computer monitoring layer to realize state machine test scheduling, data acquisition, real-time data display, fault location diagnosis, data analysis and storage, thereby realizing full-process automation of performance testing of electric brake release device and production line quality analysis.
[0100] The test fixture is used to collect operating data of the electric brake release device under specified conditions, including an MCU main control chip, a relay switching module, a signal acquisition module, a signal detection module, a power supply circuit, and a communication module.
[0101] The MCU main control chip is an embedded microcontroller with a built-in ADC sampling interface, general-purpose I / O interface, multiple UART serial ports, and SPI interface. It runs a state machine test process and a fault location diagnosis unit. It outputs control commands through multiple discrete output channels to drive the relay switching module and receives sampling data from the signal acquisition module and signal detection module, as well as frame data returned by the communication module. The fault location diagnosis unit performs threshold judgment and logical analysis to obtain the performance test results of the electric brake release mechanism under test. The MCU main control chip exchanges data with the host computer monitoring terminal via the Modbus RTU protocol, uploading the performance test results and frame data returned by the communication module to the host computer monitoring terminal.
[0102] The host computer monitoring terminal sends a command to the MCU main control chip every 500ms, and the data frame format is as follows:
[0103]
[0104] After receiving function code 03, the MCU main control chip replies with a data frame format of: 01 03 3E [CRC_L] [CRC_H]. Here, 3E represents the response byte, which includes 62 bytes of data.
[0105] The relay switching module includes multiple contactors and relays, positioned between the three-phase power grid and the electric brake release device under test, between the test fixture and the electric brake release device, and between the input terminal of the switching power supply and the battery terminal of the electric brake release device under test. Figure 3 As shown, the relay switching module, based on control commands output from the multiple discrete output channels of the MCU main control chip, performs state transitions between relay closure and opening, controlling the contactor to determine whether the corresponding signal is connected to the tested electric brake release. The relays are located in the power grid connection contactor control channel, manual power-off relay control channel, FK short-circuit relay control channel, electric brake release stop signal output control channel, switching power supply connection control channel, and load connection control channel.
[0106] The signal acquisition module is connected to the voltage and current output terminals of the electric brake release device under test. The multi-channel ADC sampling circuit samples the battery pack voltage, grid L1L2 voltage, grid L1N voltage, and output VRS voltage of the electric brake release device under test. The sampled data is then low-pass filtered and transmitted to the ADC sampling port of the MCU main control chip.
[0107] The signal detection module is connected to the start signal port, fault signal port, stop signal port and manual power-off signal port of the electric brake release device under test. The signal status of the electric brake release device under test is mapped to high and low levels through the IO input detection circuit and transmitted to the IO port of the MCU main control chip.
[0108] The communication module is connected to the communication interface of the electric brake release device under test. It is used to read the internal self-sampled data of the electric brake release device under test in a fixed 26-byte frame format via the SVT protection serial port and transmit it to the communication port of the MCU main control chip. The frame header is 0x1B 0x3E 0x4D, and the frame tail is 0x03. The offsets of each field in the frame are defined as follows: offset 3-6 is the software version, offset 7-8 is the mains voltage L1N, offset 9-10 is the mains voltage L1L2, offset 11-12 is the output current, offset 13-14 is the output VRS voltage, offset 15-16 is the output VRN voltage, offset 17-18 is the battery voltage, offset 19-20 is the output VTR voltage, offset 21-22 is the electric brake release ambient temperature, and offset 23-24 is the input signal status of the electric brake release device under test.
[0109] The fault diagnosis unit includes a communication fault parsing structure, an ADC fault parsing structure, and an IO fault parsing structure. When a fault occurs, it latches the current communication data and reports the fault status code, fault sub-step count value, and multiple electrical parameters to the host computer monitoring terminal.
[0110] The communication fault bit corresponds to Modbus register reg14, commda_chkflt_locked. It is used to compare and verify the data read by the communication module with the same physical quantity collected by the signal acquisition module in parallel to determine whether the internal sampling of the electric brake release under test is accurate. At the same time, it detects the software version and input signal status of the electric brake release under test, including bit0 of Modbus register reg14 - electric brake release grid voltage L1N, bit1 - electric brake release output voltage VRS, bit2 - electric brake release output voltage VRN, bit4 - electric brake release output current, bit5 - electric brake release battery voltage, bit6 - electric brake release transformer voltage VTR, bit7 - electric brake release ambient temperature, bit8 - electric brake release manual power-off signal, bit9 - grid voltage L1L2, and bit3 of Modbus register reg28 - electric brake release communication fault with tooling system. The ADC fault bits are determined bit by bit based on the comparison results between the ADC sampling data of the signal acquisition module and a preset threshold, including bit 0 of Modbus register reg26 (battery pack voltage), bit 7 (mains voltage L1L2), bit 8 (mains voltage L1N), and bit 10 (output voltage VRS). The IO fault bits are determined bit by bit based on the IO signal status of the signal detection module, including bit 7 of Modbus register reg24 (electric brake release fault signal) and bit 10 (electric brake release start signal).
[0111] The register mapping table is shown in Table 1:
[0112] Table 1
[0113]
[0114] The host computer monitoring terminal is built using the PyQt framework and supports functions such as borderless windows, background image overlay, serial port configuration, test object configuration, communication logs, and data curves. It includes a monitoring display unit, a fault location parsing unit, a data storage unit, and an AI analysis module.
[0115] The monitoring and display unit displays the test status, main test steps, sub-test steps, and real-time internal self-sampling data of electric brake release in real time, and supports the display of trend curves of multiple electrical parameters changing over time.
[0116] The fault location parsing unit locates the fault location bit by bit according to the three dimensions of communication fault bit, ADC fault bit and IO fault bit based on the fault data reported by the MCU main control chip, and displays it through the monitoring and display unit.
[0117] The data storage unit stores test records in the local database SQLite and generates CSV files by date.
[0118] like Figure 4As shown, the AI analysis module accesses the analysis results of the fault location analysis unit and the historical test records of the data storage unit. It embeds a knowledge base containing large model prompts, test process logic, and communication protocol parsing rules. After concatenating the test status, fault location analysis results, real-time monitoring data, and the knowledge base into a structured context, it calls the large model and generates analysis suggestions in an SSE streaming manner. These suggestions are then output to the monitoring display unit and displayed segment by segment in a streaming bubble format, supporting Markdown format rendering. The test process logic includes the definition of each state of the state machine, state transition conditions, and execution actions in each state, as well as the meaning of the fault status code. The communication protocol parsing rules include frame format, field offset definitions, and data verification rules.
[0119] The large model's prompts require the AI analysis module to prioritize fault location based on fault diagnosis results, then combine test logic and monitoring data for in-depth analysis, providing specific troubleshooting suggestions. Simultaneously, it can statistically analyze the number of passed or failed tests, display pass rate pie charts, visualize trends in multiple electrical parameters, and identify anomalies in the data storage unit's historical test records for the day. The statistical results and trend data are then fed into the large model for batch analysis, outputting production line quality assessments and improvement suggestions.
Claims
1. A method for detecting and analyzing electric brake release faults based on an AI large-scale model, characterized in that: Specifically, the following steps are included: Step 1: Sample the voltage, current and signal status of the output port of the electric brake release device under test under different operating conditions, and read the self-sampled data inside the electric brake release device under test for performance testing; Step 2: Compare the sampled data with the preset thresholds in sequence. If the sampled data is inconsistent with the preset thresholds, it is determined that there is a fault. Generate ADC fault bit judgment results and IO fault bit judgment results bit by bit. Compare and verify the self-sampled data of the electric brake release device under test with the sampled physical quantity in parallel. If the read data is inconsistent with the sampled data, it is determined that there is a fault. Generate communication bit fault judgment results bit by bit. Step 3: When a fault is determined, locate the faulty electrical quantity one by one according to the fault location determination result, and display the fault details; Step 4: Combine the operating status of the electric brake release device under test, the fault location determination result, the internal self-sampling data of the electric brake release device under test, and the knowledge base into a structured context. Call the large model to generate fault location and troubleshooting suggestions in SSE streaming mode, and display them segment by segment in the form of streaming bubbles in the monitoring display unit.
2. The method for detecting and analyzing electric brake release faults based on an AI large model as described in claim 1, characterized in that: Sample the battery pack voltage, mains L1L2 voltage, mains L1N voltage, output VRS voltage, and the signal status of the start signal port, fault signal port, stop signal port, and manual power-off signal port of the electric brake release device under test; read the mains L1L2 voltage, mains L1N voltage, output VRS voltage, output VRN voltage, output current, output VTR voltage, battery voltage, electric brake release ambient temperature, input signal status, and software version of the electric brake release device under test, which are internally sampled.
3. The method for detecting and analyzing electric brake release faults based on an AI large model as described in claim 1, characterized in that: The knowledge base includes large model prompts, sampling test process logic, and communication protocol parsing rules. The large model prompts define the large model's identity as a data analysis expert for an automated electric brake release test system, requiring it to help engineers analyze test results, diagnose fault causes, and interpret monitoring data based on test data, test logic, and communication protocols.
4. The method for detecting and analyzing electric brake release faults based on an AI large model as described in claim 1, characterized in that: It also includes storing test records in a local database; the test records include the product part number, serial number SN, test time, and the internal self-sampling data of the electric brake release device under test.
5. The method for detecting and analyzing electric brake release faults based on an AI large model as described in claim 1, characterized in that: It also includes reading historical test records from the local database, calling large models for batch analysis, and generating production line quality judgments and improvement suggestions.
6. A device for detecting and analyzing electric brake release faults based on an AI large-scale model, characterized in that: Includes testing fixtures and a host computer monitoring terminal; The test fixture is used to collect the operating data of the electric brake release device under the specified state, perform threshold judgment and logical analysis, obtain the performance test results of the electric brake release device under the specified state, and exchange data with the host computer monitoring terminal through the Modbus RTU protocol, and upload the performance test results and the frame data returned by the communication module to the host computer monitoring terminal. The host computer monitoring terminal includes a monitoring display unit, a fault location parsing unit, a data storage unit, and an AI analysis module. The fault location parsing unit locates faults one by one according to three dimensions—communication fault location, ADC fault location, and IO fault location—based on the fault data reported by the test fixture, and displays the results through the monitoring display unit. The data storage unit stores the results of each test into a local database. The AI analysis module accesses the parsing results of the fault location parsing unit and the historical test records of the data storage unit, embedding a knowledge base containing large model prompts, test process logic, and communication protocol parsing rules. After concatenating the test status, fault location parsing results, real-time monitoring data, and knowledge base into a structured context, it calls the large model, generates analysis suggestions in an SSE streaming manner, and outputs them to the monitoring display unit.
7. The electric brake release fault detection and analysis device based on an AI large model as described in claim 6, characterized in that: The test fixture includes an MCU main control chip, a relay switching module, a signal acquisition module, a signal detection module, a power supply circuit, and a communication module; The MCU main control chip running state machine test process and fault position diagnosis unit output control commands through multiple discrete output channels to drive the relay switching module, and receive the sampling data from the signal acquisition module and the signal detection module and the frame data returned by the communication module. The fault position diagnosis unit performs threshold judgment and logic analysis to obtain the performance test results of the electric brake release under test. The MCU main control chip exchanges data with the host computer monitoring terminal through the Modbus RTU protocol, and uploads the performance test results and frame data returned by the communication module to the host computer monitoring terminal. The relay switching module is located between the power grid and the electric brake release device under test, and between the power circuit input terminal and the battery terminal of the electric brake release device under test. It performs relay closing and opening state switching according to the control commands output by the multi-channel discrete output channel of the MCU main control chip. The signal acquisition module uses a multi-channel ADC sampling circuit to sample the battery pack voltage, grid L1L2 voltage, grid L1N voltage, and output VRS voltage of the electric brake release device under test, and transmits the sampled data to the ADC sampling port of the MCU main control chip. The signal detection module is connected to the start signal port, fault signal port, stop signal port and manual power-off signal port of the electric brake release device under test. The signal status of the electric brake release device under test is mapped to high and low levels through the IO input detection circuit and transmitted to the IO port of the MCU main control chip. The communication module is connected to the communication interface of the electric brake release device under test. It is used to read the multi-channel electrical parameter data, software version, voltage data, current data, ambient temperature and input signal status of the electric brake release device under test in a fixed frame format via the SVT protection serial port, and transmit them to the communication port of the MCU main control chip. The fault diagnosis unit includes a communication fault parsing structure, an ADC fault parsing structure, and an IO fault parsing structure. When a fault occurs, it latches the current communication data and reports the fault status code, fault sub-step count value, and multiple electrical parameters to the host computer monitoring terminal. The communication fault bit is verified by comparing the data read by the communication module with the same physical quantity collected by the signal acquisition module in parallel to determine whether the internal sampling of the electric brake release under test is accurate, and at the same time, it detects the software version and input signal status of the electric brake release under test. The ADC fault bit is determined bit by bit based on the comparison result of the ADC sampling data of the signal acquisition module with the preset threshold. The IO fault bit is determined bit by bit based on the IO signal status of the signal detection module.
8. The electric brake release fault detection and analysis device based on an AI large model as described in claim 6, characterized in that: The test process logic includes the definition of each state of the state machine running the MCU main control chip, the state transition conditions, and the execution actions in each state; the communication protocol parsing rules include the frame format, field offset definition, and data verification rules for the data uploaded by the test fixture. The large model prompt defines the large model's identity as a data analysis expert for an automated test system for electric brake release, requiring it to help engineers analyze test results, diagnose fault causes, and interpret monitoring data based on test data, test logic, and communication protocols.
9. The electric brake release fault detection and analysis device based on an AI large model as described in claim 6, characterized in that: The AI analysis module performs PASS / NO PASS counts, displays pass rate ring charts, visualizes trends of multiple electrical parameters, and identifies anomalies on the historical test records of the day in the data storage unit. The statistical results and trend data are then fed into a large model for batch analysis, and the module outputs production line quality judgments and improvement suggestions.
10. The electric brake release fault detection and analysis device based on an AI large model as described in claim 6, characterized in that: The MCU main control chip cycles through a state machine between idle, gear switching, first power gear grid connection detection, first power gear output detection, second power gear grid connection detection, second power gear output detection, test passed, and test failed. In the gear switching state, the MCU main control chip automatically determines the power gear of the electric brake release under test based on the input signal and jumps to the grid connection detection state of the corresponding power gear.
