Communication method and device for digital electronic detonator control module detector

By determining the detector version and sending a compatible communication command data packet, the problem of low communication efficiency between the digital electronic detonator control module detector and the host computer was solved, thus achieving data transmission integrity and accuracy of test results.

CN117268196BActive Publication Date: 2026-06-19RONGGUI SICHUANG BEIJING TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
RONGGUI SICHUANG BEIJING TECH
Filing Date
2023-10-23
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In existing technologies, the communication quality between the digital electronic detonator control module detector and the host computer affects the efficiency of the detection work. How can a suitable communication method be provided?

Method used

By determining the version of the detector, a communication command data packet is sent, including the number of detection channels, detection mode, and type of control module to be inspected. The data packet is packaged and unpacked using a matching communication protocol to ensure the integrity of data transmission.

Benefits of technology

This effectively avoids data loss during communication, improves the communication efficiency between the detector and the host computer, and ensures the accuracy and completeness of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117268196B_ABST
    Figure CN117268196B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of digital electronic detonator testing equipment, and in particular to a communication method and apparatus for a digital electronic detonator control module tester. The communication method for the digital electronic detonator control module tester involves: determining the version of the tester; sending communication command data packets according to the tester version, the communication command data packets including: the number of testing channels, the testing mode, and the type of the control module to be tested; analyzing the communication command data packets by the tester to obtain testing information; and controlling the tester to test the control module to be tested based on the testing information to obtain testing results, wherein the testing results include: ID, testing data, and process data. This application selects a communication protocol matching the tester version, packages the communication commands into communication command data packets, and sends them, effectively avoiding data loss during communication that could affect the communication between the tester and the host computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital electronic detonator testing equipment technology, and in particular to the communication method and device of digital electronic detonator control module testing instrument. Background Technology

[0002] With the rapid development of digital electronic detonators and their widespread application across the country, their use is becoming increasingly common. During the production process, the semi-finished and finished products of digital electronic detonator control modules require multiple tests. The communication efficiency between the testing equipment and the host computer directly affects the testing efficiency of the digital electronic detonator control module.

[0003] How to provide a communication method suitable for a digital electronic detonator control module tester is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] Therefore, it is necessary to provide a communication method and device for a digital electronic detonator control module tester to address the aforementioned technical problems.

[0005] In a first aspect, this application provides a communication method for a digital electronic detonator control module detector, including:

[0006] Determine the version of the detector;

[0007] According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of control module to be inspected.

[0008] The detection information is obtained by analyzing the communication command data packets using a detector.

[0009] Based on the detection information, the detection instrument is controlled to detect the control module to be tested, and the detection results are obtained. The detection results include: ID, detection data and process data.

[0010] In one embodiment, determining the version of the detector includes:

[0011] Send a version query command to the detector. The version query command includes: software version and hardware version.

[0012] Obtain the version information of the detector.

[0013] In one embodiment, a version query command is sent to the detector. The version query command includes: software version and hardware version, including:

[0014] The system sends version query commands to the detector multiple times within a preset time interval until version information is received.

[0015] In one embodiment, a communication instruction data packet is sent according to the version of the detector. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of the control module to be inspected, including:

[0016] Select the communication protocol according to the version of the detector;

[0017] The communication instructions are packaged according to the communication protocol to obtain a communication instruction data packet.

[0018] In one embodiment, communication instructions are packaged according to a communication protocol to obtain a communication instruction data packet, including:

[0019] Multiple special single-byte data are encrypted into multiple special consecutive double-byte data, and multiple special consecutive double-byte data are encrypted into multiple special single-byte data to obtain encrypted communication instruction data;

[0020] The encrypted communication instruction data is converted into the communication instruction data packet.

[0021] In one embodiment, the communication command data packets are analyzed by a detector to obtain detection information, including:

[0022] The communication command data packets are unpacked using a detector to obtain the communication command data;

[0023] The communication command data is extracted and analyzed to obtain detection information.

[0024] In one embodiment, the communication command data packet is unpacked by a detector to obtain the communication command data, including:

[0025] Decrypt multiple special single-byte data into multiple special consecutive double-byte data, and decrypt multiple special consecutive double-byte data into multiple special single-byte data.

[0026] Secondly, this application also provides a communication device for a digital electronic detonator control module detector, characterized in that the device comprises:

[0027] Version analysis unit, used to determine the version of the detector;

[0028] The sending unit is used to send communication instruction data packets according to the version of the detector. The communication instruction data packets include: the number of detection channels, the detection mode, and the type of the control module to be inspected.

[0029] The detection information analysis unit is used to analyze communication command data packets through the detector to obtain detection information;

[0030] The detection unit is used to control the detector to detect the control module under test according to the detection information and obtain the detection results, which include ID, detection data and process data.

[0031] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0032] Determine the version of the detector;

[0033] According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of control module to be inspected.

[0034] The detection information is obtained by analyzing the communication command data packets using a detector.

[0035] Based on the detection information, the detection instrument is controlled to detect the control module to be tested, and the detection results are obtained. The detection results include: ID, detection data and process data.

[0036] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0037] Determine the version of the detector;

[0038] According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of control module to be inspected.

[0039] The detection information is obtained by analyzing the communication command data packets using a detector.

[0040] Based on the detection information, the detection instrument is controlled to detect the control module to be tested, and the detection results are obtained. The detection results include: ID, detection data and process data.

[0041] The aforementioned communication method for a digital electronic detonator control module tester involves: determining the tester's version; sending communication command data packets based on the tester's version, the communication command data packets including the number of detection channels, detection mode, and type of the control module to be tested; analyzing the communication command data packets to obtain detection information; and controlling the tester to test the control module to be tested based on the detection information to obtain the detection results, which include ID, detection data, and process data. This application selects a communication protocol matching the tester's version and packages the communication commands into communication command data packets for transmission, effectively avoiding data loss during communication that could affect communication between the tester and the host computer. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 A flowchart of the host computer determining the detection version in the communication method of the digital electronic detonator control module detector in one embodiment;

[0044] Figure 2 A flowchart illustrating an application scenario of the communication method for a digital electronic detonator control module detector in one embodiment;

[0045] Figure 3 This is a flowchart illustrating the communication method of a digital electronic detonator control module detector in one embodiment;

[0046] Figure 4 This is a schematic diagram illustrating the communication version determination process of a communication method for a digital electronic detonator control module detector in one embodiment;

[0047] Figure 5 This is a schematic diagram of the communication instruction data packet sending process of the communication method of the digital electronic detonator control module detector in one embodiment;

[0048] Figure 6 This is a schematic diagram of the unpacking process of the detector for the communication method of the digital electronic detonator control module detector in one embodiment;

[0049] Figure 7 This is a diagram of the internal structure of the microcontroller unit in one embodiment. Detailed Implementation

[0050] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and / or" as used herein includes any and all couplings of one or more of the associated listed items.

[0052] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. Example 1

[0053] like Figure 1 , Figure 2 and Figure 3 As shown, in this embodiment, a communication method for a digital electronic detonator control module detector is provided, including the following steps:

[0054] S101: Determine the version of the detector.

[0055] Specifically, the host computer of the communication device of the digital electronic detonator control module tester is connected and communicates via RS232. The host computer can be a PC, an Android device, or a main control unit. The RS232 communication parameters are as follows: baud rate of 115200, data bits of 8 bits, stop bits of 1 bit, and parity bit of none.

[0056] Specifically, the PC or industrial terminal host computer system starts up and sends a command to the detector to query the detector version. If the detector does not return a result, it means that normal operation cannot be performed, such as the system prompting that the detector is not connected. If the detector returns a result normally, it means that normal operation can be performed.

[0057] S102: Send a communication instruction data packet according to the version of the detector. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of the control module to be inspected.

[0058] Specifically, the host computer of the communication device of the digital electronic detonator control module tester sends a command to the tester to query the tester's version. If the tester returns a normal result, it indicates that normal operation can be performed. Then, the host computer sends a communication command data packet to the tester according to the tester's version. The communication command data packet includes: the number of detection channels, the detection mode, and the type of control module to be tested.

[0059] S103: The detection instrument analyzes the communication command data packets to obtain detection information.

[0060] Specifically, the detector receives communication command data packets sent by the host computer, analyzes the communication command data packets, and obtains detection information.

[0061] S104: Control the detector to test the control module under test according to the test information and obtain the test results, which include ID, test data and process data.

[0062] Specifically, the detector performs tests on the control module under test based on the test information. After the test is completed, the detector sends the test results to the host computer. If there are test result error codes, they can be found in the reference table. The test results include: ID, test data, and process data.

[0063] In this embodiment, a communication method for a digital electronic detonator control module detector is provided. The communication device of the digital electronic detonator control module detector determines the version of the detector; sends a communication instruction data packet according to the version of the detector, the communication instruction data packet including: the number of detection channels, the detection mode, and the type of the control module to be tested; the detector analyzes the communication instruction data packet to obtain detection information; and controls the detector to test the control module to be tested according to the detection information to obtain the detection result, wherein the detection result includes: ID, detection data, and process data. This application selects a communication protocol matching the detector version, packages the communication instructions into a communication instruction data packet, and sends it, effectively avoiding data loss during communication that would affect the communication between the detector and the host computer. Example 2

[0064] like Figure 4 As shown, in this embodiment, step S101 is provided: determining the version of the detector, including:

[0065] S1011: Send a version query command to the detector. The version query command includes: software version and hardware version.

[0066] Specifically, the host computer system of the PC or industrial terminal starts up, and the host computer sends a query command to the detector to check the detector version. The version query command includes the software version and the hardware version.

[0067] S1012: Obtain the version information of the detector.

[0068] Specifically, after receiving a complete version query command, the detector packages the software version information and hardware version information and sends them to the host computer.

[0069] In this embodiment, step S1011 is also provided: sending a version query command to the detector, the version query command including: software version and hardware version, including:

[0070] The system sends version query commands to the detector multiple times within a preset time interval until version information is received.

[0071] Specifically, the PC or industrial terminal's host computer system of the digital electronic detonator control module detector communication device starts up, and the host computer sends a query command to the detector to check the detector's version. Due to signal interference and the distance between the host computer and the detector, part of the version query command is lost, causing the detector to be unable to recognize it and respond. To address this, the host computer sends the version query command to the detector multiple times within a preset time interval (in this embodiment, the time interval can be 3 seconds) until the detector receives the complete version query command, then packages the software version information and hardware version information and sends it to the host computer, at which point the host computer stops sending version query commands.

[0072] In this embodiment, after the host computer of the digital electronic detonator control module detector communication device is powered on, it sends a query command to the detector to check the detector version. To prevent the detector from failing to receive the complete version query command, the host computer sends the version query command multiple times until the detector replies. This design effectively solves the problem of communication data loss affecting communication performance and improves communication efficiency. Example 3

[0073] like Figure 5 As shown, in this embodiment, step S102 is provided: sending a communication instruction data packet according to the version of the detector. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of the control module to be inspected, including:

[0074] S1021: Select the communication protocol according to the version of the detector.

[0075] Specifically, the detector of the digital electronic detonator control module detector communication device is connected to the host computer. After the host computer determines the version of the detector, it selects the communication protocol according to the detector version and sends a communication instruction data packet. The communication protocol can be as follows: In this embodiment, taking the content of one instruction as an example, it includes a 1-byte data packet header, a 2-byte length, a 1-byte instruction, a 1-byte parameter item, a 2-byte address, a 2-byte reserved address, a 1-byte version number, a 1-byte master information code, a 1-byte slave information code, a 2-byte timestamp, a maximum data body of 65,000 bytes, a 1-byte error number, a 2-byte checksum, and a 1-byte data packet tail.

[0076] S1022: Package the communication instructions according to the communication protocol to obtain a communication instruction data packet.

[0077] Specifically, the host computer of the communication device of the digital electronic detonator control module detector selects the corresponding communication protocol according to the version of the detector, packages the communication command data according to the communication protocol, and sends the packaged communication command data packet to the detector.

[0078] In this embodiment, step S1022 is also provided: packaging the communication instructions according to the communication protocol to obtain a communication instruction data packet, including:

[0079] S10221: Encrypt multiple special single-byte data into multiple special consecutive double-byte data, and encrypt the multiple special consecutive double-byte data into multiple special single-byte data to obtain encrypted communication instruction data.

[0080] Specifically, the encryption method is as follows: multiple special single-byte data are encrypted into multiple special consecutive double-byte data, and multiple special consecutive double-byte data are encrypted into multiple special single-byte data. The actual data sent is the packaged data.

[0081] S10221: Convert encrypted communication command data into communication command data packets.

[0082] Specifically, the host computer of the communication device of the digital electronic detonator control module detector encrypts multiple special single-byte data into multiple special consecutive double-byte data, and encrypts multiple special consecutive double-byte data into multiple special single-byte data to obtain encrypted communication instruction data, and converts the encrypted communication instruction data into communication instruction data packets for transmission.

[0083] In this embodiment, the communication device of the digital electronic detonator control module detector encrypts multiple special single-byte data into multiple special consecutive double-byte data, and also encrypts multiple special consecutive double-byte data into multiple special single-byte data. This further improves communication performance and increases work efficiency. Example 4

[0084] like Figure 6 As shown, in this embodiment, S103: The communication command data packet is analyzed by the detector to obtain detection information, including:

[0085] S1031: The communication command data packet is unpacked by the detector to obtain the communication command data.

[0086] Specifically, the detector of the communication device of the digital electronic detonator control module detector must first unpack the communication instruction data packet sent by the host computer to obtain the communication instruction data.

[0087] S1032: Extract and analyze communication command data to obtain detection information.

[0088] Specifically, the detector for the communication device of the digital electronic detonator control module detector unpacks the communication command data packets to obtain the communication command data. It then extracts and analyzes the communication command data to obtain detection information.

[0089] In this embodiment, step S1031 is also provided: the communication instruction data packet is unpacked by the detector to obtain the communication instruction data, including: decrypting multiple special single-byte data into multiple special consecutive double-byte data, and decrypting multiple special consecutive double-byte data into multiple special single-byte data.

[0090] Specifically, the detector of the communication device of the digital electronic detonator control module detector, after receiving and unpacking the communication instruction data packet sent by the host computer, must first unpack the communication instruction data packet to obtain the communication instruction data. The specific unpacking method is to decrypt multiple special single-byte data into multiple special consecutive double-byte data, and to decrypt multiple special consecutive double-byte data into multiple special single-byte data.

[0091] In this embodiment, the communication device of the digital electronic detonator control module detector unpacks communication command data packets to obtain communication command data. The communication command data is then extracted and analyzed to obtain detection information. The use of data packets during data transmission effectively prevents the loss of communication command data, further improving communication performance and work efficiency.

[0092] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0093] Based on the same inventive concept, this application also provides a communication device for implementing the communication method of the digital electronic detonator control module detector described above. The solution provided by this communication device is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the communication device provided below can be found in the limitations of the communication method of the digital electronic detonator control module detector described above, and will not be repeated here.

[0094] In one embodiment, a communication device for a digital electronic detonator control module detector is provided, comprising:

[0095] Version analysis unit, used to determine the version of the detector;

[0096] The sending unit is used to send communication instruction data packets according to the version of the detector. The communication instruction data packets include: the number of detection channels, the detection mode, and the type of the control module to be inspected.

[0097] The detection information analysis unit is used to analyze communication command data packets through the detector to obtain detection information;

[0098] The detection unit is used to control the detector to detect the control module under test according to the detection information and obtain the detection results, which include ID, detection data and process data.

[0099] In one embodiment, determining the version of the detector includes:

[0100] The query instruction sending unit is used to send version query instructions to the detector. The version query instructions include: software version and hardware version.

[0101] The acquisition unit is used to acquire the version information of the detector.

[0102] In one embodiment, a version query command is sent to the detector. The version query command includes: software version and hardware version, including:

[0103] The interval sending unit is used to send version query commands to the detector multiple times within a preset time interval until version information is received.

[0104] In one embodiment, a communication instruction data packet is sent according to the version of the detector. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of the control module to be inspected, including:

[0105] A communication protocol selection unit is used to select the communication protocol according to the version of the detector;

[0106] The packaging unit is used to package communication instructions according to the communication protocol to obtain communication instruction data packets.

[0107] In one embodiment, communication instructions are packaged according to a communication protocol to obtain a communication instruction data packet, including:

[0108] An encryption unit is used to encrypt multiple special single-byte data into multiple special consecutive double-byte data, and to encrypt multiple special consecutive double-byte data into multiple special single-byte data, to obtain encrypted communication instruction data;

[0109] A conversion unit is used to convert the encrypted communication instruction data into the communication instruction data packet.

[0110] In one embodiment, the communication command data packets are analyzed by a detector to obtain detection information, including:

[0111] The unpacking unit is used to unpack communication command data packets using a detector to obtain the communication command data.

[0112] The detection information analysis unit is used to extract and analyze communication command data to obtain detection information.

[0113] In one embodiment, the communication command data packet is unpacked by a detector to obtain the communication command data, including:

[0114] The decryption unit is used to decrypt multiple special single-byte data into multiple special consecutive double-byte data, and to decrypt multiple special consecutive double-byte data into multiple special single-byte data.

[0115] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 7As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores periodic task allocation data, such as configuration files, theoretical operating parameters and theoretical deviation ranges, and task attribute information. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the communication method of the digital electronic detonator control module detector.

[0116] Those skilled in the field can understand, Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the microcontroller unit to which the present application is applied. The specific microcontroller unit may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0117] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to perform the following steps:

[0118] Determine the version of the detector;

[0119] According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of control module to be inspected.

[0120] The detection information is obtained by analyzing the communication command data packets using a detector.

[0121] Based on the detection information, the detection instrument is controlled to detect the control module to be tested, and the detection results are obtained. The detection results include: ID, detection data and process data.

[0122] In one embodiment, when the processor executes a computer program, it determines the version of the detector, including:

[0123] Send a version query command to the detector. The version query command includes: software version and hardware version.

[0124] Obtain the version information of the detector.

[0125] In one embodiment, when the processor executes a computer program, it sends a version query instruction to the detector. The version query instruction includes: software version and hardware version, including:

[0126] The system sends version query commands to the detector multiple times within a preset time interval until version information is received.

[0127] In one embodiment, when the processor executes a computer program, it sends communication instruction data packets according to the version of the detector. The communication instruction data packets include: the number of detection channels, the detection mode, and the type of the control module to be inspected.

[0128] Select the communication protocol according to the version of the detector;

[0129] The communication instructions are packaged according to the communication protocol to obtain a communication instruction data packet.

[0130] In one embodiment, when the processor executes a computer program, it packages communication instructions according to a communication protocol to obtain a communication instruction data packet, including:

[0131] Multiple special single-byte data are encrypted into multiple special consecutive double-byte data, and multiple special consecutive double-byte data are encrypted into multiple special single-byte data to obtain encrypted communication instruction data;

[0132] The encrypted communication instruction data is converted into the communication instruction data packet.

[0133] In one embodiment, when the processor executes a computer program, it analyzes communication instruction data packets using a detector to obtain detection information, including:

[0134] The communication command data packets are unpacked using a detector to obtain the communication command data;

[0135] The communication command data is extracted and analyzed to obtain detection information.

[0136] In one embodiment, when the processor executes a computer program, it implements the unpacking of communication instruction data packets by a detector to obtain communication instruction data, including:

[0137] Decrypt multiple special single-byte data into multiple special consecutive double-byte data, and decrypt multiple special consecutive double-byte data into multiple special single-byte data.

[0138] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0139] Determine the version of the detector;

[0140] According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of control module to be inspected.

[0141] The detection information is obtained by analyzing the communication command data packets using a detector.

[0142] Based on the detection information, the detection instrument is controlled to detect the control module to be tested, and the detection results are obtained. The detection results include: ID, detection data and process data.

[0143] In one embodiment, when the computer program is executed by a processor, it determines the version of the detector, including:

[0144] Send a version query command to the detector. The version query command includes: software version and hardware version.

[0145] Obtain the version information of the detector.

[0146] In one embodiment, when the computer program is executed by the processor, it sends a version query instruction to the detector. The version query instruction includes: software version and hardware version, including:

[0147] The system sends version query commands to the detector multiple times within a preset time interval until version information is received.

[0148] In one embodiment, when the computer program is executed by the processor, it sends communication instruction data packets according to the version of the detector. The communication instruction data packets include: the number of detection channels, the detection mode, and the type of the control module to be inspected, including:

[0149] Select the communication protocol according to the version of the detector;

[0150] The communication instructions are packaged according to the communication protocol to obtain a communication instruction data packet.

[0151] In one embodiment, when a computer program is executed by a processor, it packages communication instructions according to a communication protocol to obtain a communication instruction data packet, including:

[0152] Multiple special single-byte data are encrypted into multiple special consecutive double-byte data, and multiple special consecutive double-byte data are encrypted into multiple special single-byte data to obtain encrypted communication instruction data;

[0153] The encrypted communication instruction data is converted into the communication instruction data packet.

[0154] In one embodiment, when the computer program is executed by the processor, it analyzes communication instruction data packets through a detector to obtain detection information, including:

[0155] The communication command data packets are unpacked using a detector to obtain the communication command data;

[0156] The communication command data is extracted and analyzed to obtain detection information.

[0157] In one embodiment, when the computer program is executed by the processor, it unpacks communication instruction data packets using a detector to obtain communication instruction data, including:

[0158] Decrypt multiple special single-byte data into multiple special consecutive double-byte data, and decrypt multiple special consecutive double-byte data into multiple special single-byte data.

[0159] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0160] The various embodiments in this disclosure are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0161] The scope of protection of this disclosure is not limited to the embodiments described above. Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its scope and spirit. If such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, then the intent of this disclosure also includes such modifications and variations.

Claims

1. A communication method of a digital electronic detonator control module detector, characterized in that, include: Determine the version of the detector; According to the version of the detector, a communication instruction data packet is sent, which includes: the number of detection channels, the detection mode, and the type of the control module to be inspected; The detection instrument analyzes the communication command data packet to obtain detection information; The detector is controlled to perform detection on the control module under test based on the detection information, and the detection result is obtained. The detection result includes: ID, detection data and process data. According to the version of the detector, a communication instruction data packet is sent. The communication instruction data packet includes: the number of detection channels, the detection mode, and the type of the control module to be inspected, including: Select the communication protocol according to the version of the detector; The communication instructions are packaged according to the communication protocol to obtain the communication instruction data packet; The step of packaging communication instructions according to the communication protocol to obtain the communication instruction data packet includes: Multiple special single-byte data are encrypted into multiple special consecutive double-byte data, and multiple special consecutive double-byte data are encrypted into multiple special single-byte data to obtain encrypted communication instruction data; The encrypted communication instruction data is converted into the communication instruction data packet.

2. The communication method of the digital electronic detonator control module detector according to claim 1, characterized in that, The determination of the detector version includes: Send a version query command to the detector, the version query command including: software version and hardware version; Obtain the version information of the detector.

3. The communication method of the digital electronic detonator control module detector according to claim 2, characterized in that, The step of sending a version query command to the detector includes: software version and hardware version, including: The version query command is sent to the detector multiple times within a preset time interval until the version information is received.

4. The communication method of the digital electronic detonator control module detector according to claim 1, characterized in that, The step of analyzing the communication command data packet using the detector to obtain detection information includes: The communication command data packet is unpacked using a detector to obtain the communication command data; The communication command data is extracted and analyzed to obtain the detection information.

5. The communication method of the digital electronic detonator control module detector according to claim 4, characterized in that, The step of unpacking the communication command data packet using a detector to obtain the communication command data includes: Decrypt multiple special single-byte data into multiple special consecutive double-byte data, and decrypt multiple special consecutive double-byte data into multiple special single-byte data.

6. A communication device for a digital electronic detonator control module testing instrument, characterized in that, The device is used to implement the communication method of the digital electronic detonator control module detector according to any one of claims 1 to 5, including: Version analysis unit, used to determine the version of the detector; The sending unit is used to send communication instruction data packets according to the version of the detector. The communication instruction data packets include: the number of detection channels, the detection mode, and the type of the control module to be inspected. The detection information analysis unit is used to analyze the communication command data packet through the detector to obtain detection information; The detection unit is used to control the detector to detect the control module under test according to the detection information and obtain the detection result, wherein the detection result includes: ID, detection data and process data.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the communication method for the digital electronic detonator control module detector according to any one of claims 1 to 5.

8. A computer storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the communication method of the digital electronic detonator control module detector according to any one of claims 1 to 5.