Command recognition device and method and time delay device and method for electronic detonator
Technical Field
The invention belongs to the technical field of electronic detonators, and particularly relates to a command recognition device and method and a time delay device and method for an electronic detonator.
Background
The electronic detonator has high safety and flexibility, has the characteristics of wide temperature range (-70-120 ℃), high humidity and strong shock wave, and gradually replaces the traditional method for realizing delay by using delay powder and the like.
However, the current electronic detonators have low recognition degree on received commands in severe environments, so that delay cannot be accurately realized. In addition, electronic detonators are also extremely cost sensitive.
Therefore, the command recognition device and method for the electronic detonator and the time delay device and method can perform accurate command recognition and realize accurate time delay under the conditions of severe environment and inaccurate clock.
Disclosure of Invention
The invention overcomes the defects of the prior art, and solves the technical problems that: the command recognition device and method, and the time delay device and method for the electronic detonator are high in command recognition and time delay accuracy.
In order to solve the technical problems, the invention adopts the technical scheme that:
a command recognition device for an electronic detonator chip, the electronic detonator chip being provided with:
the measurement module is used for counting and measuring the guide symbols and the data symbols and calculating a reference value identified by the command, wherein: the reference value is recorded as BV;
a first measurement value register for storing a measurement value M1 of the pilot;
a second measurement value register for storing a measurement value M2 of the data symbol;
the divider is used for executing division operation to obtain an intermediate value M ', and the calculation formula of the intermediate value M' is as follows: m'. mu.m 2/BV, wherein: mu is an exponential multiple of 2;
a decoder, configured to decode the intermediate value M' to obtain a command value M, and determine whether the command value M is an end of frame, where: the decoding rule is as follows: mu M' in the interval [ mu M- (mu-1), mu M + (mu-1) ] is translated into a command value M.
Preferably, μ in the divider is 4.
Preferably, the reference value BV is right-shifted by the measurement value M1 in the first measurement value register, wherein: the basic time unit for the command is 1/1024 seconds.
Correspondingly, the command identification method for the electronic detonator chip comprises the following steps:
s00, after the electronic detonator chip is electrified and initialized or the command processing is finished, waiting for the falling edge of the rectified signal to appear;
s10, when the signal falling edge appears, the measuring module starts to measure the guide symbol and waits for the next falling edge to appear; if the wait time-out is reached, directly jumping to step S50, otherwise storing the measurement value M1 this time in the first measurement value register;
s20, the measuring module starts the measurement of the data symbol, calculates the reference value BV identified by the command according to the measured value M1, and waits for the next falling edge; if the wait time is out, directly jumping to step S50, otherwise storing the measured value M2 in the second measured value register;
s30, the measuring module starts a new measurement and waits for the next falling edge; calling a divider to execute division operation during the period of waiting for the falling edge, solving an intermediate value M', then decoding and operating by a decoder to obtain a corresponding command value M, judging whether the value M is an end symbol of a frame, if so, directly jumping to the step S50, otherwise, continuously waiting for the falling edge to appear, and if so, directly jumping to the step S50;
wherein: the divider performs the division operation by the following steps: m'. mu.m 2/BV, wherein: mu is an exponential multiple of 2;
the decoder performs the decoding operation by: mu M' in the interval [ mu M- (mu-1), mu M + (mu-1) ] is translated into a command value M.
S40, when the falling edge appears, jumping back to the step S30;
at S50, the measurement ends, and the process returns to step S00.
Preferably, in step S30, μ takes a value of 4.
Preferably, the reference value BV is the counting number of the measurement module corresponding to the basic time unit of the command, and is obtained by right shifting the value in the first measurement value register, wherein: the basic unit of the command is 1/1024 seconds.
A time delay unit for an electronic detonator chip, the electronic detonator chip is internally provided with:
the measuring module is used for measuring the guide symbol after detecting the networking roll call command;
a third measurement value register for storing the measurement value of the pilot symbol and recording the measurement value as M3;
the judging module is used for judging the correctness of the networking roll call command, and if the correctness is ensured, a delay value Y is loaded;
the multiplier is used for executing multiplication operation and obtaining the delay times X required by the delay time, and the calculation formula of the delay times X is as follows: x ═ Tu*Y*M3/tdm;
Wherein: t isuIs a delay time unit, Y is a loaded delay value, tdmCommand the leader time length for the networking roll call, and tdmGreater than Tu,TuIs the reciprocal of the exponent of 2;
and the delay timer is used for storing and timing the XM-X value, wherein the XM value is the maximum count value of the delay timer.
Preferably, said tdmValue is 32/1024 seconds, TuThe value was 1/4096 seconds.
Correspondingly, the time delay method for the electronic detonator chip comprises the following steps:
c10, the measurement module stores the measured value M3 of the guide in a third measured value register after detecting the networking roll call command, wherein: the networking roll call command is used for determining whether the detonator is normally connected before detonation;
c20, if the network roll call command is correct, loading the delay value Y, otherwise, not loading the delay value, ignoring the command, and jumping back to the step C10;
c30, calling a multiplier to execute multiplication operation to obtain the number X of delay times required by the delay time; the calculation formula of the delay times X is as follows: x ═ Tu*Y*M3/tdm;
Wherein: t isuIs a delay time unit, Y is a loaded delay value, tdmCommand the leader time length for the networking roll call, and tdmGreater than Tu,TuIs the reciprocal of the exponent of 2;
c40, storing the XM-X value in a delay timer, starting counting by the delay timer after the delay timer is started, stopping counting after overflow, driving an ignition device, and detonating the explosive; wherein XM is the maximum count value of the deferral timer.
Preferably, said TuValue 1/4096 seconds, tdmThe value was 32/1024 seconds.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention relates to a command recognition device and a method for an electronic detonator, which uses a reference value to recognize a command instead of directly using a measured value to judge a command value, greatly reduces the requirement on clock precision and improves the precision of command recognition; meanwhile, the command value M obtained by decoding the decoder does not directly solve the value M, so that the measured value M2 has a larger fluctuation range, and the reliability of command recognition under severe environment is greatly increased.
2. According to the delay device and the method for the electronic detonator, the delay times are obtained through calculation, a local clock is not directly utilized for timing, the delay precision can be greatly improved, the requirement on the clock precision is not high, and the integration is easy.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings;
fig. 1 is a schematic structural diagram of a command recognition device for an electronic detonator chip according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of a command recognition method for an electronic detonator chip according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a time delay device for an electronic detonator chip according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a time delay method for an electronic detonator chip according to a second embodiment of the present invention;
fig. 5 is a schematic flow chart of a time delay method for an electronic detonator chip according to a third embodiment of the present invention;
in the figure: 100 is a measurement module, 101 is a first measurement value register, 102 is a second measurement value register, 103 is a divider, 104 is a decoder, 201 is a third measurement value register, 202 is a judgment module, 203 is a multiplier, and 204 is a delay timer.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a command recognition device for an electronic detonator chip according to an embodiment of the present invention, as shown in fig. 1,
a command recognition device for an electronic detonator chip, characterized in that: the electronic detonator chip is internally provided with:
a measurement module 100, configured to perform count measurement on the guide symbol and the data symbol, and calculate a reference value identified by the command, where: the reference value is recorded as BV;
a first measured value register 101 for storing a measured value M1 of the pilot;
a second measurement value register 102 for storing a measurement value M2 of the data symbol;
a divider 103, configured to perform a division operation to obtain an intermediate value M ', where a calculation formula of the intermediate value M' is: m'. mu.m 2/BV, wherein: mu is an exponential multiple of 2;
a decoder 104, configured to decode the intermediate value M' to obtain a command value M, and determine whether the command value M is an end of frame, where: the decoding rule is as follows: translating μ M' in the interval [ μ M- (μ -1), μ M + (μ -1) ] to a command value M; the command value M decoded by the decoder allows a greater range of variation of the measured value M2, greatly increasing the reliability of command recognition in harsh environments.
Specifically, μ in the divider 103 takes a value of 4.
Further, the reference value BV is right-shifted by the measurement value M1 in the first measurement value register 101, wherein: the basic time unit for the command is 1/1024 seconds.
Fig. 2 is a schematic flow chart of a command identification method for an electronic detonator chip according to an embodiment of the present invention, and as shown in fig. 2, the command identification method for the electronic detonator chip includes the following steps:
s00, after the electronic detonator chip is electrified and initialized or the command processing is finished, waiting for the falling edge of the rectified signal to appear;
s10, when the signal falling edge appears, the measuring module starts to measure the guide symbol and waits for the next falling edge to appear; if the wait time-out is reached, directly jumping to step S50, otherwise storing the measurement value M1 this time in the first measurement value register;
s20, the measuring module starts the measurement of the data symbol, calculates the reference value BV identified by the command according to the measured value M1, and waits for the next falling edge; if the wait time is out, directly jumping to step S50, otherwise storing the measured value M2 in the second measured value register;
s30, the measuring module starts a new measurement and waits for the next falling edge; calling a divider to execute division operation during the period of waiting for the falling edge, solving an intermediate value M', then decoding and operating by a decoder to obtain a corresponding command value M, judging whether the value M is an end symbol of a frame, if so, directly jumping to the step S50, otherwise, continuously waiting for the falling edge to appear, and if so, directly jumping to the step S50;
wherein: the divider performs the division operation by the following steps: m'. mu.m 2/BV, wherein: mu is an exponential multiple of 2;
the decoder performs the decoding operation by: translating μ M' in the interval [ μ M- (μ -1), μ M + (μ -1) ] to a command value M;
s40, when the falling edge appears, jumping back to the step S30;
at S50, the measurement ends, and the process returns to step S00.
Specifically, in step S30, μ takes a value of 4.
Further, the reference value BV is the counting number of the measurement module corresponding to the basic time unit of the command, and is obtained by right shifting the value in the first measurement value register, wherein: the basic unit of the command is 1/1024 seconds.
The invention relates to a command recognition device and a method for an electronic detonator, which uses a reference value BV to recognize a command instead of directly using a measured value to judge a command value M, greatly reduces the requirement on clock precision and improves the precision of command recognition; meanwhile, the command value M obtained by decoding the decoder does not directly solve the value M, so that the measured value M2 has a larger fluctuation range, and the reliability of command recognition under severe environment is greatly increased.
Fig. 3 is a schematic structural diagram of a delay device for an electronic detonator chip according to a second embodiment of the present invention, and as shown in fig. 3, the delay device for an electronic detonator chip is provided with:
the measurement module 100 is configured to measure the guide symbol after detecting the networking roll call command;
a third measurement value register 201 for storing the measurement value of the pilot symbol and recording the measurement value as M3;
the judging module 202 is used for judging the correctness of the networking roll call command, and if the correctness is obtained, a delay value Y is loaded;
a multiplier 203, configured to perform multiplication to obtain a delay number X required by the delay time, where the calculation formula of the delay number X is: x ═ Tu*Y*M3/tdm;
Wherein: t isuIs a delay time unit, Y is a loaded delay value, tdmCommand the leader time length for the networking roll call, and tdmGreater than Tu,TuIs the reciprocal of the exponent of 2;
and the postponing timer 204 is used for storing and timing the XM-X value, wherein the XM value is the maximum count value of the postponing timer.
In particular, the tdmValue is 32/1024 seconds, TuThe value was 1/4096 seconds.
Fig. 4 is a schematic flow chart of a time delay method for an electronic detonator chip according to a second embodiment of the present invention, and as shown in fig. 4, the time delay method for the electronic detonator chip includes the following steps:
c10, the measurement module stores the measured value M3 of the guide in a third measured value register after detecting the networking roll call command, wherein: the networking roll call command is used for determining whether the detonator is normally connected before detonation;
c20, if the network roll call command is correct, loading the delay value Y, otherwise, not loading the delay value, ignoring the command, and jumping back to the step C10;
c30, calling multiplier, executing multiplication, and obtainingThe delay times X required by the delay time; the calculation formula of the delay times X is as follows: x ═ Tu*Y*M3/tdm;
Wherein: t isuIs a delay time unit, Y is a loaded delay value, tdmCommand the leader time length for the networking roll call, and tdmGreater than Tu,TuIs the reciprocal of the exponent of 2;
c40, storing the XM-X value in a delay timer, starting counting by the delay timer after the delay timer is started, stopping counting after overflow, driving an ignition device, and detonating the explosive; wherein XM is the maximum count value of the deferral timer.
The T isuValue 1/4096 seconds, tdmValue is 32/1024 seconds, Tu/tdmThe value is the reciprocal of 2 exponential power, and the direct right shift is realized without other logic circuits, namely, only a multiplier is required to be called for calculating X.
According to the delay device and the method for the electronic detonator, the delay times are obtained through calculation, a local clock is not directly utilized for timing, the delay precision can be greatly improved, the requirement on the clock precision is not high, and the integration is easy.
Fig. 5 is a schematic flow chart of a time delay method for an electronic detonator chip according to a third embodiment of the present invention, and in the third embodiment, the time delay precision of the electronic detonator chip can be further improved by the combined use of the command recognition device and the time delay device.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.