Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the communication fault analysis method provided by the invention can be used for identifying the communication error between the electronic detonator and the detonator, analyzing the communication error and improving the communication stability.
The invention also provides a communication fault analysis device with the communication fault analysis method.
The invention also provides electronic equipment with the communication fault analysis method.
The invention also provides a computer readable storage medium.
According to the communication fault analysis method in the embodiment of the first aspect of the invention, the method comprises the following steps:
acquiring a network test state of the electronic detonator;
determining a target electronic detonator according to the network test state, wherein the network test state of the target electronic detonator is a network test error state;
scanning and analyzing the communication voltage of the detonator to obtain first data;
scanning and analyzing the communication receiving gain of the detonator to obtain second data;
and analyzing the communication fault of the target electronic detonator according to the first data and the second data.
The communication fault analysis method provided by the embodiment of the invention at least has the following beneficial effects: the communication fault analysis method comprises the steps of obtaining a network test state of an electronic detonator, determining a target electronic detonator, namely the electronic detonator in a network test error state according to the network test state, and further scanning and analyzing communication voltage of an initiator to obtain first data; and scanning and analyzing the communication receiving gain of the initiator to obtain second data. And finally, analyzing the communication fault of the target electronic detonator according to the first data and the second data. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
According to some embodiments of the invention, the scan analyzing the communication voltage of the initiator to obtain the first data comprises:
generating a first instruction and a second instruction according to the network test error state of the target electronic detonator;
a communication voltage setting step: adjusting the communication voltage of the initiator to a preset highest voltage according to the first instruction;
sending the second instruction to the target electronic detonator, and receiving and storing first return data output by the target electronic detonator;
a communication voltage adjusting step: adjusting the communication voltage according to the first return data and a preset scanning voltage step length;
and repeatedly executing the communication voltage setting step to the communication voltage adjusting step until the adjusted communication voltage is less than or equal to a preset minimum voltage, and controlling the initiator to output at a target communication voltage.
According to some embodiments of the invention, before generating the first instruction and the second instruction according to the network test error state of the target electronic detonator, the method further comprises:
and acquiring a preset scanning voltage step length.
According to some embodiments of the invention, the adjusting the communication voltage according to the first return data and a preset step size of the scan voltage comprises:
adjusting the communication voltage according to the first return data, a preset scanning voltage step length and a first formula to obtain the adjusted communication voltage, wherein the first formula is V1 =Vmax-△V,V1 For the adjusted communication voltage, vmax is a preset maximum voltage, and Δ V is a preset scanning voltage step.
According to some embodiments of the invention, the scan analyzing the communication reception gain of the initiator to obtain the second data comprises:
generating a first instruction and a second instruction according to the network test error state of the target electronic detonator;
a communication receiving gain setting step: adjusting a communication reception gain of the initiator from an initial gain value to a first gain value according to the first instruction;
sending the second instruction to the target electronic detonator, and receiving and storing second return data output by the target electronic detonator;
a communication receiving gain adjusting step: adjusting the communication receiving gain according to the second return data;
and repeatedly executing the communication receiving gain setting step to the communication receiving gain adjusting step until the adjusted communication receiving gain is greater than or equal to a preset highest gain value, and adjusting the communication receiving gain of the initiator to a second gain value.
According to some embodiments of the invention, before generating the first instruction and the second instruction according to the network test error state of the target electronic detonator, the method further comprises:
setting the communication reception gain of the initiator to an initial gain value.
According to some embodiments of the invention, the adjusting the communication reception gain according to the second return data comprises:
according to the return data and a second formula, the communication receiving gain is adjusted to obtain the adjusted communication receiving gain, wherein the second formula is A = A1 1,A is the communication reception gain after adjustment, A1 Is a first gain value.
A communication failure analysis apparatus according to an embodiment of a second aspect of the present invention includes:
the network test state acquisition module is used for acquiring the network test state of the electronic detonator;
the target electronic detonator determining module is used for determining a target electronic detonator according to the network test state, wherein the network test state of the target electronic detonator is a network test error state;
the communication voltage analysis module is used for scanning and analyzing the communication voltage of the detonator to obtain first data;
the communication receiving gain analysis module is used for scanning and analyzing the communication receiving gain of the detonator to obtain second data;
and the communication fault analysis module is used for analyzing the communication fault of the target electronic detonator according to the first data and the second data.
The communication fault analysis device provided by the embodiment of the invention at least has the following beneficial effects: the communication fault analysis device acquires a network test state of an electronic detonator through a network test state acquisition module, a target electronic detonator determining module determines a target electronic detonator, namely the electronic detonator in a network test error state according to the network test state, and a communication voltage analysis module scans and analyzes the communication voltage of a detonator to obtain first data; and the communication receiving gain analysis module is used for scanning and analyzing the communication receiving gain of the detonator to obtain second data. And finally, the communication fault analysis module analyzes the communication fault of the target electronic detonator according to the first data and the second data. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
An electronic device according to an embodiment of the third aspect of the present invention includes:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions that are executed by the at least one processor, so that the at least one processor, when executing the instructions, implements the communication failure analysis method according to the embodiment of the first aspect.
According to the electronic equipment provided by the embodiment of the invention, at least the following beneficial effects are achieved: the electronic equipment adopts the communication fault analysis method, determines a target electronic detonator, namely the electronic detonator in a network test error state, by acquiring the network test state of the electronic detonator, and further performs scanning analysis on the communication voltage of the initiator to obtain first data; and scanning and analyzing the communication receiving gain of the initiator to obtain second data. And finally, analyzing the communication fault of the target electronic detonator according to the first data and the second data. The method can accurately identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the communication failure analysis method according to the first aspect.
The computer-readable storage medium according to the embodiment of the invention has at least the following advantages: the computer-readable storage medium executes the communication fault analysis method, and determines a target electronic detonator, namely the electronic detonator in a network test error state, by acquiring a network test state of the electronic detonator, and further performs scanning analysis on the communication voltage of the initiator to obtain first data; and scanning and analyzing the communication receiving gain of the initiator to obtain second data. And finally, analyzing the communication fault of the target electronic detonator according to the first data and the second data. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In a first aspect, referring to fig. 1, a communication fault analysis method according to an embodiment of the present invention includes:
s100, acquiring a network test state of the electronic detonator;
s200, determining a target electronic detonator according to the network test state, wherein the network test state of the target electronic detonator is a network test error state;
s300, scanning and analyzing the communication voltage of the detonator to obtain first data;
s400, scanning and analyzing the communication receiving gain of the detonator to obtain second data;
and S500, analyzing the communication fault of the target electronic detonator according to the first data and the second data.
When the communication process between the initiator and the electronic detonator is analyzed, the network test state of the electronic detonator is firstly obtained, and then the target electronic detonator is determined according to the network test state. It should be noted that the network test state of the target electronic detonator is a network test error state. And then, scanning and analyzing the communication voltage of the initiator from the preset highest voltage to obtain first data. And identifying a communication error according to the first data obtained by scanning and analyzing the communication voltage of the initiator, and adjusting the communication voltage. And meanwhile, scanning and analyzing the communication receiving gain of the detonator to obtain second data. And identifying a communication error according to the second data of the scanning analysis of the communication receiving gain of the initiator, and adjusting the communication receiving gain. In addition, the received data needs to be checked and evaluated, and the communication fault of the target electronic detonator is analyzed according to the receiving conditions of the first data and the second data and the accuracy of the checking and evaluating. The method can identify the communication fault between the electronic detonator and the detonator, which is caused by insufficient output voltage and insufficient communication receiving gain, analyze the communication error and improve the communication stability.
Referring to fig. 2, in some embodiments, step S400 includes:
s410, generating a first instruction and a second instruction according to the network test error state of the target electronic detonator;
s420, communication voltage setting step: adjusting the communication voltage of the detonator to a preset highest voltage according to the first instruction;
s430, sending the second instruction to the target electronic detonator, and receiving and storing first return data output by the target electronic detonator;
s440, communication voltage adjusting step: adjusting the communication voltage according to the first return data and a preset scanning voltage step length;
and S450, repeatedly executing the communication voltage setting step to the communication voltage adjusting step until the adjusted communication voltage is less than or equal to the preset lowest voltage, and controlling the initiator to output the target communication voltage.
When the communication voltage of the initiator is scanned and analyzed, a preset scanning voltage step length needs to be obtained first. And generating a first instruction and a second instruction according to the network test error state of the target electronic detonator. Specifically, when the target electronic detonator is in a network test error state, a fault code is generated according to the current communication fault. The first instruction is an instruction corresponding to a fault code acquired by the initiator, and the second instruction is an instruction which needs to be sent to the electronic detonator after the acquired fault code is processed. And adjusting the communication voltage of the initiator to a preset highest voltage according to the first instruction, wherein the initiator outputs the preset highest voltage. And then sending a second instruction to the target electronic detonator, and simultaneously keeping the related data sent by the initiator. Receiving and storing first return data output by the target electronic detonator; and adjusting the communication voltage according to the first return data and the preset scanning voltage step length. The communication voltage is adjusted mainly by adjusting the increment or decrement of the communication voltage according to a preset scanning voltage step length. The communication voltage after adjustment is compared with the preset minimum voltage, the communication voltage setting step and the communication voltage adjusting step are repeatedly executed until the communication voltage after adjustment is smaller than or equal to the preset minimum voltage, in order to eliminate communication errors, the initiator needs to be controlled to output at a target communication voltage, the method can identify the communication errors between the electronic detonator and the initiator according to the communication voltage of the initiator, the communication errors caused by insufficient voltage are analyzed, and the communication stability is improved.
In some embodiments, step S440 includes:
adjusting the communication voltage according to the first return data, the preset scanning voltage step length and a first formula to obtain the adjusted communication voltage, wherein the first formula is V1 =Vmax-△V,V1 For the adjusted communication voltage, vmax is a preset highest voltage, and Δ V is a preset scanning voltage step.
Further, in order to improve the scanning accuracy, the communication voltage may be adjusted according to the first returned data, the preset scanning voltage step length, and the first formula, so as to obtain the adjusted communication voltage. Specifically, the first formula is V1 =Vmax-△V,V1 For the adjusted communication voltage, vmax is a preset maximum voltage, and Δ V is a preset scanning voltage step. The increment or decrement of the communication voltage can be adjusted according to the preset scanning voltage step length in the above mode. And identifying the communication error by comparing the adjusted communication voltage with the preset lowest voltage. And when the adjusted communication voltage is less than or equal to the preset minimum voltage, controlling the initiator to output at the target communication voltage, eliminating communication errors and improving the communication stability.
It should be noted that the preset maximum voltage and the preset minimum voltage mainly depend on the allowable operating voltage of the electronic detonator. The target communication voltage is typically the maximum non-firing safe voltage of the electronic detonator. In order to improve the communication safety, the preset maximum voltage and the preset minimum voltage are generally within the range of +/-1V-2V of the maximum non-ignition safety voltage. For example, the target communication voltage is 6V, and the preset maximum voltage and minimum voltage are 8V and 4V, respectively.
Referring to fig. 3, in some embodiments, step S500 includes:
s510, generating a first instruction and a second instruction according to a network test error state of the target electronic detonator;
s520, communication reception gain setting step: adjusting a communication reception gain of the initiator from an initial gain value according to a first instruction
Integrating into a first gain value;
s530, sending a second instruction to the target electronic detonator, and receiving and storing second return data output by the target electronic detonator;
s540, a communication reception gain adjustment step: adjusting the communication receiving gain according to the second return data;
and S550, repeatedly executing the communication receiving gain setting step to the communication receiving gain adjusting step until the adjusted communication receiving gain is greater than or equal to a preset highest gain value, and adjusting the communication receiving gain of the initiator to a second gain value.
When the communication reception gain of the initiator is subjected to scan analysis, the communication reception gain of the initiator is first set to an initial gain value. And generating a first instruction and a second instruction according to the network test error state of the target electronic detonator. Specifically, when the target electronic detonator is in a network test error state, a fault code is generated according to the current communication fault. The first instruction is an instruction corresponding to a fault code acquired by the initiator, and the second instruction is an instruction which needs to be sent to the electronic detonator after the acquired fault code is processed. The communication reception gain of the initiator is adjusted from the initial gain value to a first gain value according to the first instruction, at which time the initiator outputs at the first gain value. It is noted that the adjustment of the communication reception gain of the initiator may be achieved by adjusting a variable gain amplifier. For example, the MCU of the initiator may output a control signal that controls the gain of the variable gain amplifier. The gain of the variable gain amplifier can be changed by changing the resistance value of the feedback resistor of the variable gain amplifier through an electronic switch, and the variable gain amplifier can also be realized by adopting the programmable gain amplifier of LTC 6915. And then sending a second instruction to the target electronic detonator, and simultaneously keeping the related data sent by the initiator. Receiving and storing first return data output by the target electronic detonator; and adjusting the communication receiving gain according to the second return data. The adjustment of the communication reception gain is mainly to adjust an increment or a decrement of the communication reception gain according to a preset adjustment strategy. And comparing the adjusted communication receiving gain with a preset highest gain value, and repeatedly executing the communication receiving gain setting step to the communication receiving gain adjusting step until the adjusted communication receiving gain is greater than or equal to the preset highest gain value.
In some embodiments, step S540, comprises:
according to the returned data and a second formula, the communication receiving gain is adjusted to obtain the adjusted communication receiving gain, wherein the second formula is A = A1 1,A is the communication reception gain after adjustment, A1 Is a first gain value.
Further, in order to improve the scanning accuracy, the communication reception gain may be adjusted according to the return data and the second formula, so as to obtain the adjusted communication reception gain. Specifically, the second formula is a = a1 1,A is the communication reception gain after adjustment, A1 Is a first gain value. The increment or decrement of the communication receiving gain is conveniently adjusted through the method. And identifying the communication error by comparing the adjusted communication receiving gain with the preset highest gain value. And when the adjusted communication receiving gain is greater than or equal to the preset highest gain value, adjusting the communication receiving gain of the initiator to a second gain value, eliminating communication errors and improving the communication stability.
It should be noted that the preset highest gain value generally refers to the maximum value of the programmable gain amplifier in the circuit topology, and the minimum gain is generally 1-fold gain. For example, the highest programmable gain of LTC6915 is 4096 times. To have a bilateral tunability, the second gain value is typically an intermediate value.
In a second aspect, referring to fig. 4, a communication failure analysis apparatus according to an embodiment of the present invention includes:
a network teststate acquisition module 410, configured to acquire a network test state of the electronic detonator;
the target electronicdetonator determining module 420 is used for determining a target electronic detonator according to a network test state, wherein the network test state of the target electronic detonator is a network test error state;
the communicationvoltage analysis module 430 is used for scanning and analyzing the communication voltage of the initiator to obtain first data;
the communication receivinggain analysis module 440 is configured to perform scanning analysis on the communication receiving gain of the initiator to obtain second data;
and the communicationfault analysis module 450 is configured to analyze the communication fault of the target electronic detonator according to the first data and the second data.
When analyzing the communication process between the initiator and the electronic detonator, the network teststate obtaining module 410 first obtains the network test state of the electronic detonator, and then the target electronicdetonator determining module 420 determines the target electronic detonator according to the network test state. It should be noted that the network test state of the target electronic detonator is a network test error state. And the communicationvoltage analysis module 430 starts to perform scanning analysis on the communication voltage of the initiator from the preset highest voltage to obtain first data. The communication receptiongain analysis module 440 identifies a communication error and adjusts the communication voltage according to the first data of the communication voltage scan analysis of the initiator. And meanwhile, scanning and analyzing the communication receiving gain of the detonator to obtain second data. And identifying a communication error according to the second data of the scanning analysis of the communication receiving gain of the initiator, and adjusting the communication receiving gain. In addition, the communicationfault analysis module 450 is further required to perform verification and evaluation on the received data, and analyze the communication fault of the target electronic detonator according to the receiving conditions of the first data and the second data and the accuracy of the verification and evaluation. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
In a third aspect, an electronic device of an embodiment of the invention includes at least one processor, and a memory communicatively coupled to the at least one processor; the memory stores instructions, and the instructions are executed by the at least one processor, so that when the at least one processor executes the instructions, the communication fault analysis method according to the first aspect is implemented.
According to the electronic equipment provided by the embodiment of the invention, at least the following beneficial effects are achieved: the electronic equipment adopts the communication fault analysis method, determines a target electronic detonator, namely the electronic detonator in a network test error state, by obtaining the network test state of the electronic detonator, and further performs scanning analysis on the communication voltage of the initiator to obtain first data; and scanning and analyzing the communication receiving gain of the initiator to obtain second data. And finally, analyzing the communication fault of the target electronic detonator according to the first data and the second data. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
In a fourth aspect, the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the communication failure analysis method as an embodiment of the first aspect.
The computer-readable storage medium according to the embodiment of the invention has at least the following advantages: the computer-readable storage medium executes the communication fault analysis method, and determines a target electronic detonator, namely the electronic detonator in a network test error state, by acquiring a network test state of the electronic detonator, and further performs scanning analysis on the communication voltage of the initiator to obtain first data; and scanning and analyzing the communication receiving gain of the initiator to obtain second data. And finally, analyzing the communication fault of the target electronic detonator according to the first data and the second data. The method can identify the communication error between the electronic detonator and the detonator, analyze the communication error and improve the communication stability.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.