The defer time setting process of electric detonator priming device
Technical field
The present invention relates to priming system initiation control technical field, relate in particular to the design of flow process of the electric detonator priming device being set the defer time of electric detonator.
Background technology
The eighties in 20th century, developed countries such as Japan, Australia, the Europe electric detonator technology that begins one's study.Along with electronic technology, microelectric technique, fast development of information technology, the electric detonator technology has obtained great progress.Late 1990s, electric detonator begins to be dropped into application test and marketing.
Provided a kind of technical scheme of electric detonator priming device in the patent application document 200810135028.0.This technical scheme has made up the basic framework of electric detonator priming device, has realized the basic function with electric detonator two-way communication, the priming devices such as electric detonator that detonate.
A kind of not only had good shock resistance, but also electronic detonator control chip with enough defer time precision are provided in the patent application document 200810172103.0.This chip adopts the RC oscillator to improve the shock resistance of detonator as clock circuit.Simultaneously, there is the problem of frequency drift and frequency departure, designed the control flow of to chip tranmitting data register calibration command the clock of chip being calibrated through the equipment of chip exterior, thereby improved the defer time precision of chip to the RC oscillator.
Summary of the invention
The present invention is further design on the basis of the electric detonator priming device that patent application document 200810135028.0 provides; Aim to provide the matching used electric detonator priming device of electronic detonator control chip that provides in a kind of and the patent application document 200810172103.0, thereby realize not only having good shock resistance, but also electronic detonator blasting networking with enough defer time precision.
Based on patent application document 200810135028.0, the electric detonator priming device among the present invention comprises control module, human-computer interaction module, power management module, signal modulation and transmission module, signal demodulation receiver module, signal bus and power supply.Wherein, control module comprises central processing unit and timer.Its defer time setting process specifically can comprise following steps:
Steps A 1, control module is carried out the clock alignment flow process.
Steps A 2, control module are carried out and are write the defer time flow process.
Steps A 3, control module is shown by human-computer interaction module to the tabulation of human-computer interaction module output error message.
Steps A 4 finishes this defer time setting process.
Above-mentioned defer time setting process was carried out the clock alignment flow process clock frequency of electric detonator is calibrated, thereby guaranteed the defer time precision of each electric detonator in the blasting network before the defer time flow process is write in execution.Steps A 3 will delay to set the error message tabulation and send to the human-computer interaction module demonstration; Thereby make the priming device operating personnel be able to set the significance level in error situation and big gun hole, detonator place based on the extension of blasting network; Decision is to carry out the defer time setting process once more all to accomplish the setting of delaying to guarantee all electric detonators in the blasting network, still carries out next step operation to having accomplished the electric detonator of delaying to set in the blasting network.Such design has just improved the flexibility to blast working control.
In above-mentioned defer time setting process, wherein the clock alignment flow process of steps A 1 is carried out according to following steps:
Step B1 carries out initialization to the clock alignment flow process, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, comprises blasting network electric detonator sum N, clock alignment mistake electric detonator is counted E
1With cycle-index W
1Wherein, clock alignment mistake electric detonator is counted E
1Value equal blasting network electric detonator sum N.
Step B2, control module is judged cycle-index W
1Value and clock alignment mistake electric detonator count E
1Value whether be 0: if W
1Value or E
1Value be 0, then finish this clock alignment flow process; If W
1Value be not 0, then continue execution in step B3.
Step B3, control module is carried out the clock alignment process.
Step B4 is with cycle-index W
1Value subtract 1, as new W
1Value, i.e. W
1=W
1-1.Return step B2 then.
In above-mentioned defer time setting process, wherein the defer time flow process of writing of steps A 2 is carried out according to following steps:
Step e 1 is carried out initialization to writing the defer time flow process, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, comprises blasting network electric detonator sum N, writes defer time mistake electric detonator and count E
2With cycle-index W
2Wherein, write defer time mistake electric detonator and count E
2Value equal blasting network electric detonator sum N.
Step e 2, control module is judged cycle-index W
2Value with write defer time mistake electric detonator and count E
2Value whether be 0: if W
2Value or E
2Value be 0, then finish this clock alignment flow process; If W
2Value be not 0, then continue execution in step E3.
Step e 3, control module is carried out the defer time process of writing.
Step e 4 is with cycle-index W
2Value subtract 1, as new W
2Value, i.e. W
2=W
2-1.Return step e 2 then.
Design cycle time number variable W
1And W
2Control clock alignment process and the number of run of writing the defer time process respectively; Adopt defer time setting process of execution promptly to automatically perform repeatedly clock alignment process and the mode of writing the defer time process; Simplified operating procedure; Thereby reduced the maloperation that causes because of loaded down with trivial details repeatedly manual operation, improved the equipment reliability of operation.This be because; Whenever all can the output error message tabulation point out selection after executing a defer time setting process to next step operation; And owing to exist the transient fault of blasting network to cause the clock alignment mistake perhaps to write the possibility of defer time mistake; Therefore, priming device is designed to automatically repeatedly carry out preset cycle-index W
1Inferior clock alignment process and preset cycle-index W
2The inferior defer time process of writing has just been simplified the action of operating personnel to this device, thereby has improved the reliability of priming device work.
In above-mentioned defer time setting process, wherein the scheme one of the clock alignment process of step B3 can be carried out according to following steps in the clock alignment flow process:
Step C1, control module is all electric detonator tranmitting data register calibration command in blasting network.
Step C2, control module is waited for and is arrived delay time T: if arrive, then carry out step C3; If no show then continues execution in step C2.
Step C3, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step C4 gets the identity code of an electric detonator in the blasting network.
Step C5 reads the status information of this electric detonator in priming device.
Step C6 judges that according to status information whether this electric detonator is align mode: if align mode, then execution in step C15; If align mode is not then carried out step C7.
Step C7 sends the state read-back order to this electric detonator.
Step C8, control module is carried out the signal receiving process: if receive the information that this electric detonator returns, then carry out step C9; If do not receive, execution in step C12 then.
Step C9, control module is according to the information returned, and whether the clock alignment flag bit of judging this electric detonator is align mode: if align mode, then execution in step C10; If not align mode, then execution in step C12.
Step C10 puts clock alignment in priming device inside to this electric detonator and successfully indicates.
Step C11 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.Carry out step C13 then.
Step C12 puts the clock alignment error flag in priming device inside to this electric detonator.Carry out step C13 then.
Step C13, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step C14, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, execution in step C15 then continued; If be not 0, then return step C4.
Step C15 finishes this clock alignment process.
With the scheme one of above clock alignment process correspondingly, in above-mentioned defer time setting process, wherein write in the defer time flow process defer time process of writing of step e 3 and carry out according to following steps:
Step F 1 is put defer time electric detonator to be written and is counted the value of R and count E for writing defer time mistake electric detonator
2Value, i.e. R=E
2
Step F 2 is got the identity code of an electric detonator in the blasting network.
Step F 3 reads the status information of this electric detonator in priming device.
Step F 4 judges that according to status information whether this electric detonator is align mode: if not align mode, then execution in step F9; If align mode is then carried out step F 5.
Step F 5 is write the defer time instruction to this electric detonator transmission.
Step F 6, control module are carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate in priming device inside; To write defer time mistake electric detonator then and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1.If do not receive, then this electric detonator put and write the defer time error flag in priming device inside.
Step F 7, the value that defer time electric detonator to be written is counted R subtracts 1, as the value of new R, i.e. R=R-1.
Step F 8, judge that defer time electric detonator to be written counts whether the value of R is 0: if 0, then carry out step F 9; If be not 0, then return step F 2.
Step F 9 finishes originally to write the defer time process.
In the scheme one of clock alignment process, the step C1 clock alignment instruction that all electric detonators send in blasting network is a global command.The calibration pulse that this instruction is T by preset number m synchronous study head, clock alignment command word and a preset number n predetermined period constitutes successively.Priming device utilizes himself stablizes accurate clock source, sends study head and calibration pulse sequence synchronously, supplies the counter of chip internal that it is carried out fragmentation count.
Wherein, calibration pulse is carried out following calibration pulse transmission flow transmission by control module:
Step D1, central processing unit write the preset value v of calibration pulse low level width in timer.
Step D2, control module transmits control signal to the signal modulation and transmission module, makes it to export the trailing edge signal.
Step D3, central processing unit transmits control signal to timer, starts timer.
Step D4, whether the central processing unit monitoring arrives preset value v: if arrive, then carry out step D5; If no show then continues monitoring and waits for arrival.
Step D5, central processing unit transmits control signal to timer, stops timer.
Step D6, central processing unit write the preset value u of calibration pulse high level width in timer.
Step D7, control module transmits control signal to the signal modulation and transmission module, makes it to export the rising edge signal.
Step D8, central processing unit transmits control signal to timer, starts timer.
Step D9, whether the central processing unit monitoring arrives preset value u: if arrive, then carry out step D10; If no show then continues monitoring and waits for arrival.
Step D10, central processing unit transmits control signal to timer, stops timer.
Step D11 subtracts 1 with the value of presetting number n, as the value of new n, that is, and n=n-1.
Step D12, judge whether the value of preset number n is 0: if 0, then carry out step D13; If be not 0, then return step D1.
Step D13 finishes this calibration pulse transmission flow.
In the above-mentioned calibration pulse transmission flow, the value of the preset value u of calibration pulse high level width is greater than the value of the preset value v of calibration pulse low level width, and the value sum of the value of u and v equals T.Benefit is: when priming device when electric detonator sends the high level calibration pulse, be in the state that forward voltage is provided to detonator.And when sending the low level calibration pulse, then be in to detonator and stop power supply or the state of negative voltage is provided to detonator.Therefore; Increase the width of calibration pulse high level, promptly prolong the time of sending the high level calibration pulse, can prolong priming device to the detonator supplying time; Reduce the electric quantity consumption of the inner energy storage device of electric detonator; The functional reliability that this has just improved electric detonator internal control chip has reduced the current noise of blasting network bus, has improved the stability of blasting network.
In the scheme one of clock alignment process, the state read-back order that step C7 sends to certain electric detonator is the single instruction to this electric detonator.This instruction is made up of the identity code of synchronous study head, state retaking of a year or grade command word and this electric detonator successively.Send this instruction to electric detonator, realized priming device, thereby be able to control more reliably the work of detonator the obtaining of electric detonator state.
Write in the defer time process above-mentioned, the defer time of writing that step F 5 certain electric detonator in blasting network sends is instructed, and is the single instruction to this electric detonator.This instruction by synchronous study head, write the identity code of defer time command word, this electric detonator and the defer time data of this electric detonator constitute successively.
In above-mentioned defer time setting process, wherein the scheme two of the clock alignment process of step B3 can be carried out according to following steps in the clock alignment flow process:
Step G1, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step G2 gets the identity code of an electric detonator in the blasting network.
Step G3 reads the status information of this electric detonator in priming device.
Step G4 judges that according to status information whether this electric detonator is align mode: if align mode, then execution in step G14; If align mode is not then carried out step G5.
Step G5 is to this electric detonator tranmitting data register calibration command.
Step G6, control module is carried out the signal receiving process: if receive the clock alignment pulse that this electric detonator returns, then execution in step G7; If do not receive, then this electric detonator is put the clock alignment error flag, then execution in step G12 in priming device inside.
Step G7 puts clock alignment in priming device inside to this electric detonator and successfully indicates,, the status information of this electric detonator is changed to align mode that is.
Step G8 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.
Step G9, control module is counted the alignment of waveforms of plural n cycle t in the clock alignment pulse, and count value is designated as F.
Step G10 according to the value of n, t and F, calculates the clock frequency f of this electric detonator.
Step G11, control module is preserved the value of promptly preserving clock frequency f with the clock information of this electric detonator.
Step G12, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step G13, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, then carry out step G14; If be not 0, then return step G2.
Step G14 finishes this clock alignment process.
With the scheme two of above clock alignment process correspondingly, in above-mentioned defer time setting process, wherein write in the defer time flow process defer time process of writing of step e 3 and carry out according to following steps:
Step H1 puts defer time electric detonator to be written and counts the value of R and count E for writing defer time mistake electric detonator
2Value, i.e. R=E
2
Step H2 gets the identity code of an electric detonator in the blasting network.
Step H3 reads the status information of this electric detonator in priming device.
Step H4 judges that according to status information whether this electric detonator is align mode: if not align mode, then execution in step H11; If align mode is then carried out step H5.
Step H5 reads the value of the clock frequency f of this electric detonator of preserving in defer time data and the control module of this electric detonator.
Step H6 carries out defer time data adjustment flow process.
Step H7 writes the defer time instruction to this electric detonator transmission.
Step H8, control module is carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate in priming device inside; To write defer time mistake electric detonator then and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1; If do not receive, then this electric detonator put and write the defer time error flag in priming device inside.
Step H9, the value that defer time electric detonator to be written is counted R subtracts 1, as the value of new R, i.e. R=R-1.
Step H10, judge that defer time electric detonator to be written counts whether the value of R is 0: if 0, then carry out step H11; If be not 0, then return step H2.
Step H11 finishes originally to write the defer time process.
In the scheme two of clock alignment process, step G5 is the single instruction to this electric detonator to the clock alignment instruction that certain electric detonator sends.This instruction is made up of preset number m the identity code of learning head, clock alignment command word and this electric detonator synchronously successively.Priming device waits for that just this electric detonator is according to the high-low level width of preset calibration pulse and the calibration pulse that preset calibration pulse periodicity returns after this electric detonator tranmitting data register calibration command.Electric detonator sends this calibration pulse with the mode that current sinking changes.After priming device receives this calibration pulse, promptly calculate the clock frequency of this detonator, and carry out defer time data adjustment flow process according to this clock frequency, adjustment writes the defer time data of this detonator.
Write in the defer time process above-mentioned, the defer time of writing that step H7 sends is instructed the same with the form of writing the defer time instruction of step F 5 transmissions.Different is that the defer time data of writing in the defer time instruction of step H7 are the defer time data of carrying out after the defer time data are adjusted flow process.
Electric detonator priming device among the present invention, its defer time setting process also can carry out according to following steps:
Step L1 carries out initialization, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, comprises blasting network electric detonator sum N, clock alignment mistake electric detonator is counted E
1, write defer time mistake electric detonator and count E
2With cycle-index W; Wherein, clock alignment mistake electric detonator is counted E
1Value with write defer time mistake electric detonator and count E
2Value be equal to blasting network electric detonator sum N.
Step L2, control module is judged the value of cycle-index W and is write defer time mistake electric detonator and count E
2Value whether be 0: if value or the E of W
2Value be 0, then continue execution in step L5; If value and the E of W
2Be not 0, then continue execution in step L3.
Step L3, control module is carried out extension setting process.
Step L4 subtracts 1 with the value of cycle-index W, as the value of new W, i.e. W=W-1.Return step L2 then.
Step L5, control module is shown by human-computer interaction module to the tabulation of human-computer interaction module output error message.
Step L6 finishes this defer time setting process.
The number of run of design cycle time number variable W control extension setting process adopts defer time setting process of execution promptly to automatically perform the mode of the setting process of repeatedly delaying, and has likewise simplified operating procedure.
In above-mentioned defer time setting process, the extension of step L3 is set process and can be carried out according to following steps:
Step M1, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step M2 gets the identity code of an electric detonator in the blasting network.
Step M3 reads the status information of this electric detonator in priming device.
Step M4, judge that according to status information whether this electric detonator is for setting the extension state: if set the extension state, execution in step M16 then; If do not set the extension state, then carry out step M5.
Step M5 is to this electric detonator tranmitting data register calibration command.
Step M6, control module is carried out the signal receiving process: if receive the clock alignment pulse that this electric detonator returns, then in priming device inside this electric detonator is put clock alignment and successfully indicate, carry out step M7 then; If do not receive, then this electric detonator is put the clock alignment error flag, then execution in step M15 in priming device inside.
Step M7 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.
Step M8, control module is counted the alignment of waveforms of plural n cycle t in the clock alignment pulse, and count value is designated as F.
Step M9 according to the value of n, t and F, calculates the clock frequency f of this electric detonator.
Step M10 reads the defer time data of this electric detonator.
Step M11 carries out defer time data adjustment flow process.
Step M12 writes the defer time instruction to this electric detonator transmission.
Step M13, control module is carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate, then execution in step M14 in priming device inside; If do not receive, then this electric detonator put and write the defer time error flag in priming device inside, carry out step M15 then.
Step M14 will write defer time mistake electric detonator and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1.
Step M15, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step M16, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, then carry out step M17; If be not 0, then return step M2.
Step M17 finishes this extension setting process.
Process is set in above-mentioned extension; Employing carries out and then it being write behind the clock alignment mode of defer time to certain electric detonator; Accomplish one by one the defer time of all electric detonators in the blasting network is set, output is at last delayed to set the error message tabulation and is supplied operating personnel that next step operation is selected.
In above-mentioned extension setting process, the instruction of the step M5 clock alignment that certain electric detonator sends in blasting network is the single instruction to this electric detonator.This instruction is made up of the identity code of synchronous study head, clock alignment command word and this electric detonator successively.
In above-mentioned extension setting process, the step M12 defer time of writing that certain electric detonator sends in blasting network is instructed, and is the single instruction to this electric detonator.This instruction by synchronous study head, write the identity code of defer time command word, this electric detonator and the defer time data of this electric detonator constitute successively.
Description of drawings
Fig. 1 is first kind of technical scheme of defer time setting process of the present invention;
Fig. 2 is the flow chart of clock alignment flow process among the present invention;
Fig. 3 is for writing the flow chart of defer time flow process among the present invention;
Fig. 4 is the flow chart of clock alignment process scheme one among the present invention;
Fig. 5 is for writing the flow chart of defer time process scheme one among the present invention;
Fig. 6 is the flow chart of clock alignment process scheme two of the present invention;
Fig. 7 is for writing the flow chart of defer time process scheme two among the present invention;
Fig. 8 is second kind of technical scheme of defer time setting process of the present invention;
Fig. 9 is the flow chart of extension setting process among the present invention;
Figure 10 instructs a kind of sketch map of form for clock alignment among the present invention;
Figure 11 is the flow chart of calibration pulse transmission flow among the present invention;
Figure 12 is the sketch map of global command among the present invention;
Figure 13 is for writing the sketch map of defer time instruction among the present invention.
The specific embodiment
Below in conjunction with the accompanying drawing and the specific embodiment technical scheme of the present invention is explained further details.
Based on patent application document 200810135028.0, the electric detonator priming device among the present invention comprises control module, human-computer interaction module, power management module, signal modulation and transmission module, signal demodulation receiver module, signal bus and power supply.Wherein, control module comprises central processing unit and timer.Its defer time setting process specifically can comprise following steps, like Fig. 1:
Steps A 1, control module is carried out the clock alignment flow process.
Steps A 2, control module are carried out and are write the defer time flow process.
Steps A 3, control module is shown by human-computer interaction module to the tabulation of human-computer interaction module output error message.
Steps A 4 finishes this defer time setting process.
In the defer time setting process shown in Figure 1, write in execution and to carry out the clock alignment flow process before the defer time flow process clock frequency of electric detonator is calibrated, thereby guaranteed the defer time precision of blasting network.Steps A 3 will delay to set the error message tabulation and send to the human-computer interaction module demonstration; Thereby making the priming device operating personnel be able to set the error situation decision based on the extension of blasting network is to carry out the defer time setting process once more all to accomplish the setting of delaying to guarantee all electric detonators in the blasting network, still carries out next step operation to having accomplished the electric detonator of delaying to set in the blasting network.Such design has just improved the flexibility to blast working control.
Usually; In the main control process flow of the electric detonator priming device that patent application document 200810135028.0 provides; Preferably after task is detonated in execution, the charging task carries out defer time setting process of the present invention before finishing, thereby make in the defer time setting process of the present invention with the data interaction of electric detonator all the time with safe voltage that detonator is communicated by letter under carry out.
In defer time setting process shown in Figure 1, wherein the clock alignment flow process of steps A 1 is carried out according to following steps, like Fig. 2:
Step B1 carries out initialization to the clock alignment flow process, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, comprises blasting network electric detonator sum N, clock alignment mistake electric detonator is counted E
1With cycle-index W
1Wherein, clock alignment mistake electric detonator is counted E
1Value equal blasting network electric detonator sum N.
Step B2, control module is judged cycle-index W
1Value and clock alignment mistake electric detonator count E
1Value whether be 0: if W
1Value or E
1Value be 0, then finish this clock alignment flow process; If W
1Value be not 0, then continue execution in step B3.
Step B3, control module is carried out the clock alignment process.
Step B4 is with cycle-index W
1Value subtract 1, as new W
1Value, i.e. W
1=W
1-1.Return step B2 then.
In defer time setting process shown in Figure 1, wherein the defer time flow process of writing of steps A 2 is carried out according to following steps, like Fig. 3:
Step e 1 is carried out initialization to writing the defer time flow process, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, comprises blasting network electric detonator sum N, writes defer time mistake electric detonator and count E
2With cycle-index W
2Wherein, write defer time mistake electric detonator and count E
2Value equal blasting network electric detonator sum N.
Step e 2, control module is judged cycle-index W
2Value with write defer time mistake electric detonator and count E
2Value whether be 0: if W
2Value or E
2Value be 0, then finish this clock alignment flow process; If W
2Value be not 0, then continue execution in step E3.
Step e 3, control module is carried out the defer time process of writing.
Step e 4 is with cycle-index W
2Value subtract 1, as new W
2Value, i.e. W
2=W
2-1.Return step e 2 then.
Design cycle time number variable W
1And W
2Control clock alignment process and the number of run of writing the defer time process respectively; Adopt defer time setting process of execution promptly to automatically perform repeatedly clock alignment process and the mode of writing the defer time process; Simplified operating procedure; Thereby reduced the maloperation that causes because of loaded down with trivial details repeatedly manual operation, improved the equipment reliability of operation.This be because, whenever execute behind defer time setting process all can output error message tabulation prompting to the selection of next step operation.Owing to exist transient fault to cause the clock alignment mistake perhaps to write the possibility of defer time mistake, therefore, priming device be designed to automatically repeatedly carry out preset cycle-index W because of blasting network
1Inferior clock alignment process and preset cycle-index W
2The inferior defer time process of writing has just been simplified the action of operating personnel to this device, thereby has reduced the possibility of people for maloperation.
In clock alignment flow process shown in Figure 2, the scheme one of the clock alignment process of step B3 can be carried out according to following steps, like Fig. 4:
Step C1, control module is all electric detonator tranmitting data register calibration command in blasting network.
Step C2, control module is waited for and is arrived delay time T: if arrive, then carry out step C3; If no show then continues execution in step C2.
Step C3, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step C4 gets the identity code of an electric detonator in the blasting network.
Step C5 reads the status information of this electric detonator in priming device.
Step C6 judges that according to status information whether this electric detonator is align mode: if align mode, then execution in step C15; If align mode is not then carried out step C7.
Step C7 sends the state read-back order to this electric detonator.
Step C8, control module is carried out the signal receiving process: if receive the information that this electric detonator returns, then carry out step C9; If do not receive, execution in step C12 then.
Step C9, control module is according to the information returned, and whether the clock alignment flag bit of judging this electric detonator is align mode: if align mode, then execution in step C10; If not align mode, then execution in step C12.
Step C10 puts clock alignment in priming device inside to this electric detonator and successfully indicates.
Step C11 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.Carry out step C13 then.
Step C12 puts the clock alignment error flag in priming device inside to this electric detonator.Carry out step C13 then.
Step C13, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step C14, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, execution in step C15 then continued; If be not 0, then return step C4.
Step C15 finishes this clock alignment process.
With the scheme one of clock alignment process shown in Figure 4 correspondingly, the defer time process of writing of step e 3 of writing in the defer time flow process shown in Figure 3 is carried out according to following steps, like Fig. 5:
Step F 1 is put defer time electric detonator to be written and is counted the value of R and count E for writing defer time mistake electric detonator
2Value, i.e. R=E
2
Step F 2 is got the identity code of an electric detonator in the blasting network.
Step F 3 reads the status information of this electric detonator in priming device.
Step F 4 judges that according to status information whether this electric detonator is align mode: if not align mode, then execution in step F9; If align mode is then carried out step F 5.
Step F 5 is write the defer time instruction to this electric detonator transmission.
Step F 6, control module are carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate in priming device inside; To write defer time mistake electric detonator then and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1.If do not receive, then this electric detonator put and write the defer time error flag in priming device inside.
Step F 7, the value that defer time electric detonator to be written is counted R subtracts 1, as the value of new R, i.e. R=R-1.
Step F 8, judge that defer time electric detonator to be written counts whether the value of R is 0: if 0, then carry out step F 9; If be not 0, then return step F 2.
Step F 9 finishes originally to write the defer time process.
In the scheme one of clock alignment process shown in Figure 4, the step C1 clock alignment instruction that all electric detonators send in blasting network is a global command.The calibration pulse that this instruction is T by preset number m synchronous study head, clock alignment command word and a preset number n predetermined period constitutes successively, and is shown in figure 10.Priming device utilizes himself stablizes accurate clock source, sends study head and calibration pulse sequence synchronously, supplies the counter of chip internal that it is carried out fragmentation count:
(1) when the control chip in the electric detonator receives the edge signal of synchronous study head, the counter that promptly starts chip internal is counted the number of synchronous study head.Then, by the central processing unit of chip internal calculate that serial communication interface should adopt, respectively with preset communication baud rate and preset sampling phase clock number corresponding, the RC oscillator, thereby the data reception opportunity and the counting interval of adjustment electric detonator.This just can guarantee to have introduced the electronic detonator control chip of RC oscillator, though the RC oscillator exist temperature float, the time float, problem such as parameter variation, the control instruction of still can reliable reception electric detonator outside sending.
(2) when the control chip in the electric detonator receives the calibration pulse sequence; The central processing unit of chip internal is according to the preset number n of count value, calibration pulse and the predetermined period T of calibration pulse; The clock frequency f of the RC oscillator of computing chip self, and the result is stored in chip internal.It calculates principle and can be described as: expressed time the n ' * T of the calibration pulse that priming device sends (n '=1; 2,3 ... N) at the count value N of chip 200 clock internal numbers; Be inversely proportional to the clock cycle 1/f of chip internal RC oscillator; Promptly the clock frequency f with the RC oscillator is directly proportional, then n ' * T=N/f is arranged, therefore: f=N/ (n ' * T).Wherein, to taking of all count value N storing in the chip internal central processing unit inner buffer, the value of the periodicity n ' of the calibration pulse that should adopt when calculating is corresponding.Calibration pulse with first cycle is an example, and when receiving edge signal 1, the counter of chip internal starts; When receiving edge signal 2, read this count value N constantly
1And preserve; When receiving edge signal 3, read this count value N constantly
2And preserve, so far accomplish the reception and the counting of first period regulation pulse.When calculating clock frequency f, periodicity n ' should be taken as 1, and count value N should be taken as N
2The rest may be inferred.When Practical Calculation, the precision of the clock frequency f that calculates for raising, sectional calculates the value of several clock frequencies f and takes the mean.Segmentation method can adopt the at interval method of a clock frequency f of several computation of Period, perhaps based on the additive method of this principle.
In clock alignment shown in Figure 10 instruction, calibration pulse is carried out following calibration pulse transmission flow transmission by control module, like Figure 11:
Step D1, central processing unit write the preset value v of calibration pulse low level width in timer.
Step D2, control module transmits control signal to the signal modulation and transmission module, makes it to export the trailing edge signal.
Step D3, central processing unit transmits control signal to timer, starts timer.
Step D4, whether the central processing unit monitoring arrives preset value v: if arrive, then carry out step D5; If no show then continues monitoring and waits for arrival.
Step D5, central processing unit transmits control signal to timer, stops timer.
Step D6, central processing unit write the preset value u of calibration pulse high level width in timer.
Step D7, control module transmits control signal to the signal modulation and transmission module, makes it to export the rising edge signal.
Step D8, central processing unit transmits control signal to timer, starts timer.
Step D9, whether the central processing unit monitoring arrives preset value u: if arrive, then carry out step D10; If no show then continues monitoring and waits for arrival.
Step D10, central processing unit transmits control signal to timer, stops timer.
Step D11 subtracts 1 with the value of presetting number n, as the value of new n, that is, and n=n-1.
Step D12, judge whether the value of preset number n is 0: if 0, then carry out step D13; If be not 0, then return step D1.
Step D13 finishes this calibration pulse transmission flow.
In the calibration pulse transmission flow shown in Figure 11, the value of the preset value u of calibration pulse high level width is greater than the value of the preset value v of calibration pulse low level width, and the value sum of the value of u and v equals T, like Figure 10.Two kinds of embodiments in conjunction with host communication interface in the patent application document 200810172410.9; Be unipolarity communication interface and bipolarity communication interface: when priming device when electric detonator sends the high level calibration pulse, be in the state that forward voltage is provided to detonator; And when sending the low level calibration pulse, then be in to detonator and stop power supply or the state of negative voltage is provided to detonator.Therefore; Increase the width of calibration pulse high level, promptly prolong the time of sending the high level calibration pulse, can prolong priming device to the detonator supplying time; Reduce the electric quantity consumption of the inner energy storage device of electric detonator; The functional reliability that this has just improved electric detonator internal control chip has reduced the current noise of blasting network bus, has improved the stability of blasting network.
In the clock alignment process shown in Figure 4, the state read-back order that step C7 sends to certain electric detonator is the single instruction to this electric detonator.This instruction is made up of the identity code of synchronous study head, state retaking of a year or grade command word and this electric detonator successively, referring to Figure 12.Send this instruction to electric detonator, realized priming device, thereby be able to control more reliably the work of detonator the obtaining of electric detonator state.
The defer time of writing that shown in Figure 5 writing in the defer time process, step F 5 certain electric detonator in blasting network sends is instructed, and is the single instruction to this electric detonator.This instruction by synchronous study head, write the identity code of defer time command word, this electric detonator and the defer time data of this electric detonator constitute successively, like Figure 13.After the inner central processing unit of electronic detonator control chip receives the defer time data of priming device transmission; The result who at first carries out according to electric detonator clock alignment process; The clock frequency f of this detonator that promptly calculates; Carry out electric detonator defer time data adjustment process, calculate the defer time data that make new advances; Then these adjusted defer time data are written in its inner extension module able to programme.
In the clock alignment flow process shown in Figure 2, the scheme two of the clock alignment process of step B3 can be carried out according to following steps, like Fig. 6:
Step G1, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step G2 gets the identity code of an electric detonator in the blasting network.
Step G3 reads the status information of this electric detonator in priming device.
Step G4 judges that according to status information whether this electric detonator is align mode: if align mode, then execution in step G14; If align mode is not then carried out step G5.
Step G5 is to this electric detonator tranmitting data register calibration command.
Step G6, control module is carried out the signal receiving process: if receive the clock alignment pulse that this electric detonator returns, then execution in step G7; If do not receive, then this electric detonator is put the clock alignment error flag, then execution in step G12 in priming device inside.
Step G7 puts clock alignment in priming device inside to this electric detonator and successfully indicates,, the status information of this electric detonator is changed to align mode that is.
Step G8 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.
Step G9, control module is counted the alignment of waveforms of plural n cycle t in the clock alignment pulse, and count value is designated as F.
Step G10 according to the value of n, t and F, calculates the clock frequency f of this electric detonator.
Step G11, control module is preserved the value of promptly preserving clock frequency f with the clock information of this electric detonator.
Step G12, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step G13, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, then carry out step G14; If be not 0, then return step G2.
Step G14 finishes this clock alignment process.
With the scheme two of clock alignment process shown in Figure 6 correspondingly, shown in Figure 3 writing in the defer time flow process, the defer time process of writing of step e 3 is carried out according to following steps, like Fig. 7:
Step H1 puts defer time electric detonator to be written and counts the value of R and count E for writing defer time mistake electric detonator
2Value, i.e. R=E
2
Step H2 gets the identity code of an electric detonator in the blasting network.
Step H3 reads the status information of this electric detonator in priming device.
Step H4 judges that according to status information whether this electric detonator is align mode: if not align mode, then execution in step H11; If align mode is then carried out step H5.
Step H5 reads the value of the clock frequency f of this electric detonator of preserving in defer time data and the control module of this electric detonator.
Step H6 carries out defer time data adjustment flow process.
Step H7 writes the defer time instruction to this electric detonator transmission.
Step H8, control module is carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate in priming device inside; To write defer time mistake electric detonator then and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1; If do not receive, then this electric detonator put and write the defer time error flag in priming device inside.
Step H9, the value that defer time electric detonator to be written is counted R subtracts 1, as the value of new R, i.e. R=R-1.
Step H10, judge that defer time electric detonator to be written counts whether the value of R is 0: if 0, then carry out step H11; If be not 0, then return step H2.
Step H11 finishes originally to write the defer time process.
In the scheme two of clock alignment process, step G5 is the single instruction to this electric detonator to the clock alignment instruction that certain electric detonator sends.This instruction is made up of preset number m the identity code of learning head, clock alignment command word and this electric detonator synchronously successively, referring to Figure 12.Priming device waits for that just this electric detonator is according to the high-low level width of preset calibration pulse and the calibration pulse that preset calibration pulse periodicity returns after this electric detonator tranmitting data register calibration command.In conjunction with the operation principle from the machine data modulation module that provides in the patent application document 200810172410.9, electric detonator sends this calibration pulse with the mode that current sinking changes to priming device.After priming device receives this calibration pulse, promptly calculate the clock frequency f of this detonator, and carry out defer time data adjustment flow process according to this clock frequency f, adjustment writes the defer time data of this detonator.After electronic detonator control chip receives these defer time data, only need directly these data to be write in its programmable module to get final product.Calculating principle to detonator clock frequency f in priming device is identical with aforementioned calculating principle at chip internal, repeats no more.
Write in the defer time process shown in Figure 7, step H7 sends write that defer time instruction and step F 5 send to write the form that defer time instructs the same, like Figure 13.Different is that the defer time data of writing in the defer time instruction of step H7 are the defer time data of carrying out after the defer time data are adjusted flow process.Defer time data adjustment flow process can be carried out according to following principle among the step H6: because former defer time data w
0Be that preset clock frequency according to electric detonator (is designated as f
0) calculate, the time value of its expression is w
0/ f
0Then calculate according to the clock frequency f that calculates through clock alignment process shown in Figure 6, send out and should satisfy to the defer time data w of electronic detonator control chip: w
0/ f
0=w/f.Therefore, obtain adjusted defer time data w:w=w according to following formula
0* f/f
0
Electric detonator priming device among the present invention, its defer time setting process also can carry out according to following steps, like Fig. 8:
Step L1 carries out initialization, and promptly control module deposits the initial value of following variable in its buffer memory in for usely, and this buffer memory promptly receives blasting network electric detonator sum N, clock alignment mistake electric detonator is counted E
1, write defer time mistake electric detonator and count E
2With cycle-index W; Wherein, clock alignment mistake electric detonator is counted E
1Value with write defer time mistake electric detonator and count E
2Value be equal to blasting network electric detonator sum N.
Step L2, control module is judged the value of cycle-index W and is write defer time mistake electric detonator and count E
2Value whether be 0: if value or the E of W
2Value be 0, then continue execution in step L5; If the value of W is not 0, then continue execution in step L3.
Step L3, control module is carried out extension setting process.
Step L4 subtracts 1 with the value of cycle-index W, as the value of new W, i.e. W=W-1.Return step L2 then.
Step L5, control module is shown by human-computer interaction module to the tabulation of human-computer interaction module output error message.
Step L6 finishes this defer time setting process.
The number of run of design cycle time number variable W control extension setting process adopts defer time setting process of execution promptly to automatically perform the mode of the setting process of repeatedly delaying, and has likewise simplified operating procedure.
In defer time setting process shown in Figure 8, the extension of step L3 is set process and can be carried out according to following steps, like Fig. 9:
Step M1, putting electric detonator to be calibrated, to count the value of L be that clock alignment mistake electric detonator is counted E
1Value, i.e. L=E
1
Step M2 gets the identity code of an electric detonator in the blasting network.
Step M3 reads the status information of this electric detonator in priming device.
Step M4, judge that according to status information whether this electric detonator is for setting the extension state: if set the extension state, execution in step M16 then; If do not set the extension state, then carry out step M5.
Step M5 is to this electric detonator tranmitting data register calibration command.
Step M6, control module is carried out the signal receiving process: if receive the clock alignment pulse that this electric detonator returns, then in priming device inside this electric detonator is put clock alignment and successfully indicate, carry out step M7 then; If do not receive, then this electric detonator is put the clock alignment error flag, then execution in step M15 in priming device inside.
Step M7 counts E with clock alignment mistake electric detonator
1Value subtract 1, as new E
1Value, i.e. E
1=E
1-1.
Step M8, control module is counted the alignment of waveforms of plural n cycle t in the clock alignment pulse, and count value is designated as F.
Step M9 according to the value of n, t and F, calculates the clock frequency f of this electric detonator.
Step M10 reads the defer time data of this electric detonator.
Step M11 carries out defer time data adjustment flow process.
Step M12 writes the defer time instruction to this electric detonator transmission.
Step M13, control module is carried out the signal receiving process: if receive that this electric detonator returns write the defer time signal that finishes, then this electric detonator put and writes defer time and successfully indicate, then execution in step M14 in priming device inside; If do not receive, then this electric detonator put and write the defer time error flag in priming device inside, carry out step M15 then.
Step M14 will write defer time mistake electric detonator and count E
2Value subtract 1, as new E
2Value, i.e. E
2=E
2-1.
Step M15, the value of electric detonator to be calibrated being counted L subtracts 1, as the value of new L, i.e. L=L-1.
Step M16, judge that electric detonator to be calibrated counts whether the value of L is 0: if 0, then carry out step M17; If be not 0, then return step M2.
Step M17 finishes this extension setting process.
Process is set in extension shown in Figure 9; Employing carries out and then it being write behind the clock alignment mode of defer time to certain electric detonator; Accomplish one by one the defer time of all electric detonators in the blasting network is set, output is at last delayed to set the error message tabulation and is supplied operating personnel that next step operation is selected.
In extension setting process shown in Figure 9, the instruction of the step M5 clock alignment that certain electric detonator sends in blasting network is the single instruction to this electric detonator.This instruction is made up of the identity code of synchronous study head, clock alignment command word and this electric detonator successively, referring to Figure 12.The step M12 defer time of writing that certain electric detonator sends in blasting network is instructed, and is the single instruction to this electric detonator.This instruction by synchronous study head, write the identity code of defer time command word, this electric detonator and the defer time data of this electric detonator constitute successively, like Figure 13.