CN-121979177-A - Flexible detection method, system and storage medium of electronic control module
Abstract
The invention discloses a flexible detection method of an electronic control module, which comprises the following steps that a host computer sends detection instructions to at least one slave computer, each slave computer executes a detection scheme stored in the host computer and performs function detection on the electronic control module correspondingly connected with the slave computer, each slave computer collects detection data for detecting the function of the electronic control module, each slave computer performs anomaly analysis on the detection data and obtains a detection result, and the detection result and a detection data packet are independently sent to the host computer, or each slave computer independently sends the detection data to the host computer, and the host computer performs anomaly analysis on the detection data of each slave computer to obtain the detection result of each slave computer. The invention constructs a complete detection system comprising an electronic control module, a slave and a host, and realizes flexible detection.
Inventors
- HUANG SHILONG
- LI QIANG
- LAI LIUQI
- ZHANG XIN
- LI JIASHUANG
Assignees
- 重庆云铭科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260203
Claims (10)
- 1. The flexible detection method of the electronic control module is characterized by comprising the following steps of: The host computer issues a detection instruction to at least one slave computer; each slave machine executes a detection scheme stored in the slave machine and detects functions of an electronic control module correspondingly connected with the slave machine; each slave machine collects detection data for detecting the functions of the electronic control module; each slave machine carries out anomaly analysis on the detection data and obtains a detection result, and the detection result and a detection data group packet are independently sent to the host machine, or each slave machine independently sends the detection data to the host machine, and the host machine carries out anomaly analysis on the detection data of each slave machine and obtains the detection result of each slave machine.
- 2. The flexible detection method of the electronic control module according to claim 1, wherein CAN communication is adopted between a host and a slave, the host communicates with the slave through broadcast communication or on-demand communication, and the host communicates with external equipment through UART communication and/or network port communication.
- 3. The flexible detection method of an electronic control module according to claim 1, wherein data interaction is performed between a host and a slave according to a protocol frame format specified by a specific communication protocol, the host or the slave identifies frame content of received data, filters data which does not meet the specification of the specific communication protocol, does not process the data, and discards the data, and the protocol frame format sequentially comprises a frame header, a data length, a source address, a target address, a command code, a serial number, data, a check bit, and a frame tail.
- 4. A flexible detection method of an electronic control module according to claim 3, wherein the process of identifying the frame content of the received data by the master or the slave is as follows: Identifying the frame head and the frame tail of the received data, and discarding the data if the frame head and the frame tail do not accord with the protocol frame format; if the frame head and the frame tail of the received data accord with the protocol frame format, identifying the source address and the target address of the received data, and if the frame head and the frame tail of the received data do not accord with the protocol frame format, discarding the data; if the source address and the target address of the received data accord with the protocol frame format, the data length of the received data is identified, and if the source address and the target address do not accord with the protocol frame format, the data is discarded; If the data length of the received data accords with the protocol frame format, the check bit data of the received data is compared with the check bit data calculated by the host computer or the slave computer, if the check bit data is inconsistent, the data is discarded, and if the check bit data is consistent, the host computer or the slave computer processes the data.
- 5. The flexible detection method of an electronic control module according to claim 1, wherein the host issuing detection instructions to the slave includes detecting execution and/or detection schemes and/or task slots; After each slave receives the detection scheme issued by the host, updating or/and storing the detection scheme; and after each slave receives the task slot issued by the host, the slave preferentially executes the task slot.
- 6. The flexible detection method of an electronic control module according to claim 1, wherein the detection scheme includes at least one task item, each task item corresponds to a different function detection, and the task item includes a task ID, an unfixed task execution sequence number, a task parameter, a number of task return values, and a task return value.
- 7. The flexible detection method of an electronic control module according to claim 1, wherein the master or the slave ranks at least one detection result according to priority, and the master or the slave feeds back a detection result with highest priority.
- 8. Flexible detection system of electronic control modules, characterized in that a detection method according to any of claims 1-7 is performed.
- 9. The flexible detection system of the electronic control module is characterized by comprising: The host computer interacts with the external equipment data through the communication module or/and issues a detection instruction to the slave computer, and analyzes and/or stores the received data; The slave communicates with the electronic control module through the bus driving module, performs detection assignment issued by the host, performs function detection corresponding to the connected electronic control module, collects detection results, analyzes detection data to obtain detection results or sends the detection data to the host.
- 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a flexible detection method of an electronic control module according to any of claims 1-7.
Description
Flexible detection method, system and storage medium of electronic control module Technical Field The invention relates to the field of electronic detonator detection, in particular to a flexible detection method, a flexible detection system and a flexible storage medium of an electronic control module. Background As the industrial information department requires the electronic detonator to completely replace the traditional detonator, the electronic detonator is applied to various blasting sites. The electronic detonator consists of an ignition powder head, an electronic control module and a foot wire. The electronic control module is a control unit of the whole electronic detonator, and the quality of the electronic control module directly influences the quality of the electronic detonator, so that the detection of the electronic control module is particularly important. The detection of the electronic control module mainly comprises the detection of bus voltage, bus current, charging capacitors, working capacitors, bridge wire resistance values, storage function reading and writing, MOS tube switches and the like. Disclosure of Invention In view of the above-mentioned drawbacks of the prior art, the present invention is directed to a flexible detection method, system and storage medium for an electronic control module, and a complete detection system including the electronic control module, a slave and a host is constructed to implement flexible detection. The aim of the invention is realized by the following technical scheme: a flexible detection method of an electronic control module comprises the following steps: The host computer issues a detection instruction to at least one slave computer; each slave machine executes a detection scheme stored in the slave machine and detects functions of an electronic control module correspondingly connected with the slave machine; each slave machine collects detection data for detecting the functions of the electronic control module; Each slave machine carries out anomaly analysis on the detection data and obtains a detection result, and the detection result and a detection data group packet are independently sent to the host machine, or each slave machine independently sends the detection data to the host machine, and the host machine carries out anomaly analysis on the detection data of each slave machine and obtains the detection result of each slave machine. Further, CAN communication is adopted between the host and the slave, the host communicates with the slave through broadcast communication or on-demand communication, and the host communicates with external equipment through UART communication and/or network port communication. The method comprises the steps of receiving data, wherein the data is transmitted to a host computer through a communication protocol, the host computer and the slave computer interact with each other according to a protocol frame format specified by the specific communication protocol, the host computer or the slave computer identifies the frame content of the received data, filters the data which does not meet the specification of the specific communication protocol, does not process the data and discards the data, and the protocol frame format sequentially comprises a frame head, a data length, a source address, a target address, a command code, a serial number, data, check bits and a frame tail. Further, the process of identifying the frame content of the received data by the host or the slave is as follows: Identifying the frame head and the frame tail of the received data, and discarding the data if the frame head and the frame tail do not accord with the protocol frame format; if the frame head and the frame tail of the received data accord with the protocol frame format, identifying the source address and the target address of the received data, and if the frame head and the frame tail of the received data do not accord with the protocol frame format, discarding the data; if the source address and the target address of the received data accord with the protocol frame format, the data length of the received data is identified, and if the source address and the target address do not accord with the protocol frame format, the data is discarded; If the data length of the received data accords with the protocol frame format, the check bit data of the received data is compared with the check bit data calculated by the host computer or the slave computer, if the check bit data is inconsistent, the data is discarded, and if the check bit data is consistent, the host computer or the slave computer processes the data. Further, the host computer issues detection instructions to the slave computer, including detection execution and/or detection schemes and/or task slots; After each slave receives the detection scheme issued by the host, updating or/and storing the detection scheme; and after each slave receives the task slot issued by t