A software implementation method for a precision measurement circuit of electronic detonator ignition capacitance

By constructing the target constraint function set and target measurement circuit, locking sub-circuit, and application software platform for processing and adjustment, the problems of high cost, low accuracy and insufficient safety of ignition capacitance measurement in electronic detonators are solved, and high accuracy and safety are achieved. measurement circuit integration.

CN117933164BActive Publication Date: 2024-08-23SHENZHEN K FREE WIRELESS INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410096886.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-24
Publication Date
2024-08-23
Estimated Expiration
2044-01-24

AI Technical Summary

Technical Problem

It is difficult to achieve accurate and safe ignition capacitance measurement in electronic detonators with existing technology, and there are problems such as high cost, low accuracy and insufficient safety.

Method used

By constructing the target constraint function set, determine the key design parameters, build the target measurement circuit, lock the multi-level sub-circuit, determine the measurement program, apply the measurement program based on the software platform for processing, record the results, analyze the difference, and continuously adjust the circuit to improve measurement Accuracy and safety.

Benefits of technology

It realizes the reliable measurement of ignition capacitance, reduces the cost, improves the measurement accuracy and safety, enables the circuit to be integrated into the electronic detonator, and is suitable for construction sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117933164B
    Figure CN117933164B
Patent Text Reader

Abstract

The invention provides a software implementation method for a precision measurement circuit of an electronic detonator ignition capacitor, belonging to the field of intelligent software technology, and comprising: constructing a target constraint function set of an ignition capacitor, determining key design parameters, matching with a circuit design library, and constructing a target measurement circuit; locking a multi-level subcircuit, and determining a measurement program according to circuit properties and circuit connection relationships of each level of the subcircuit; applying the measurement program based on a software platform to perform a first operation process on the target measurement circuit and a second operation process on the ignition capacitor, and recording and setting conditions according to the results in the measurement program to obtain a first result array and a second result array and perform result analysis to determine a reasonable setting value of the target measurement circuit and an initial capacitance value of the ignition capacitor; analyzing the reasonable setting value and the initial capacitance value to determine the difference from the standard capacitance value; facilitating effective adjustment of the circuit, and further ensuring the reliability measurement of the ignition capacitor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of intelligent software, and in particular to a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor. Background Art

[0002] The ignition capacitor is a key component of the electronic detonator module and is also the main energy storage element. Before the electronic detonator is detonated, the ignition capacitor is charged by the detonator. During the detonation delay process, the charge stored in the ignition capacitor provides the electronic detonator with working current, and provides energy to detonate the ignition resistor after the delay. Therefore, the performance of the ignition capacitor directly determines the product quality of the electronic detonator. Tantalum capacitors, which are expensive but have good low-temperature performance, are generally used to make electronic detonators with good low-temperature characteristics; electrolytic capacitors, which are low-cost but have poor low-temperature characteristics, are used to make conventional electronic detonators. Regardless of which type of ignition capacitor is used, it is essential to accurately measure its capacitance. The current mainstream measurement methods are: external bridge measurement method, fixed voltage charging measurement method, full charge discharge measurement method, etc. Using an external bridge measurement has high accuracy and good stability, but the measurement circuit cannot be integrated into the circuit board inside the electronic detonator, so it cannot be used at the construction site. Using fixed voltage charging to measure the capacitance value is simple and easy to integrate, but because the capacitance and charging voltage are nonlinear, the measurement error is large. The full discharge measurement method uses the discharge characteristics of the capacitor to measure. The circuit is simple and the measurement error is controllable, but it requires a high voltage (generally greater than 20V) to fully charge the capacitor before it can be measured. However, electronic detonators are pyrotechnics, and high voltage is not allowed during the production test process. From the perspective of intrinsic safety, this measurement method is not advisable.

[0003] Therefore, the present invention proposes a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor. Summary of the invention

[0004] The present invention provides a software implementation method for a precision measurement circuit of an electronic detonator ignition capacitor, which is used to provide a basis for solving the problems of excessively high cost, excessively low precision and excessively low safety by constructing a target constraint function set, and to facilitate subsequent software testing of the ignition capacitor by constructing a target measurement circuit, and to facilitate effective adjustment of the circuit by acquiring a measurement program and processing data generated by the program, thereby further ensuring reliable measurement of the ignition capacitor.

[0005] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, comprising:

[0006] Step 1: Obtain target requirements for the ignition capacitor, and construct a target constraint function set for the ignition capacitor;

[0007] Step 2: performing function analysis on the target constraint function set, determining key design parameters, and matching them with a circuit design library to construct a target measurement circuit for the ignition capacitor;

[0008] Step 3: Locking the multi-level sub-circuits in the target measurement circuit, and determining the measurement procedure of the target measurement circuit according to the circuit attributes and circuit connection relationship of each level of the sub-circuit;

[0009] Step 4: Applying the measurement program based on the software platform to perform a first operation process on the target measurement circuit and a second operation process on the ignition capacitor, and setting conditions according to the result record in the measurement program to obtain a first result array for the first operation process and a second result array for the second operation process;

[0010] Step 5: Analyze the first result array and the second result array to determine the reasonable setting value of the target measurement circuit and the initial capacitance value of the ignition capacitor;

[0011] Step 6: Analyze the reasonable value and the initial capacitance value to determine the difference from the standard capacitance value;

[0012] If the difference is less than a preset degree, the target measurement circuit is kept unchanged;

[0013] Otherwise, the target measurement circuit is continuously adjusted based on the difference degree, the first difference information in the first result array, and the second difference information in the second result array.

[0014] Preferably, step 1 comprises:

[0015] Analyze the target requirements to determine the number of components and component costs of constructing a circuit for measuring the ignition capacitance, the measurement accuracy of the ignition capacitance, and the measurement safety of the ignition capacitance;

[0016] Constructing a first constraint function based on the number of components and the component cost and in combination with a first variation range;

[0017] Constructing a second constraint function based on the measurement accuracy and in combination with a second variation range;

[0018] Constructing a third constraint function based on the measurement security and in combination with a third variation range;

[0019] The target constraint function set is: the first constraint function, the second constraint function and the third constraint function.

[0020] Preferably, step 2 comprises:

[0021] Obtaining the capacitor preparation process of the ignition capacitor, and obtaining an analytical model from a process-analysis database to perform function analysis on the target constraint function to obtain key design parameters;

[0022] Filling the key design parameters into the circuit design table to obtain a design reference description;

[0023] The design reference description is matched with a circuit design library to obtain the device model and device connection status of each target device, and to obtain the target measurement circuit of the ignition capacitor.

[0024] Preferably, step 3 comprises:

[0025] Determine the circuit interface of the corresponding level subcircuit according to the circuit construction diagram of each level subcircuit, and allocate the first program to the corresponding circuit interface according to the interface position of the circuit interface and in combination with the first program database, and allocate the second program to the corresponding circuit interface according to the circuit attribute and circuit connection relationship of the corresponding level subcircuit and in combination with the second program database;

[0026] Matching the first program with the second program of each circuit interface in the subcircuit of the same level, determining a first program amount s01 of a consistent program corresponding to the circuit interface, a second program amount s02 of an inconsistent program based on the first program, and a third program amount s03 of an inconsistent program based on the second program;

[0027] Determine that the first program amount s01 and the third program amount s02 are based on a first layout of the first program, and at the same time, determine that the first program amount s01 and the second program amount s03 are based on a second layout of the second program;

[0028] Calculating a program adjustment probability g0 of a corresponding circuit interface according to the first layout and the second layout;

[0029]

[0030]

[0031] Wherein, g1 represents the probability of inconsistent distribution based on the first layout; g2 represents the probability of inconsistent distribution based on the second layout; c0(c1,c2) ​​represents the positional proportion of the distribution position c1 of the program corresponding to the second program quantity s02 in the first program and the distribution position c2 of the program corresponding to the third program quantity s03 in the second program; σ1 2 Indicates based on 1-max(g1,g2), 1-c0(c1,c2) ​​variance; Δ1 represents the probability adjustment function; [] represents the rounding symbol;

[0032] If the program change probability is greater than or equal to the preset probability, determining the first reserved program quantity based on min(s01, s02, s03);

[0033] Otherwise, according to the number of line branches and the number of parallel connections connected to the corresponding circuit interface, determine the allowed additions and deletions of the program corresponding to each program quantity, and calculate the program reliability corresponding to each program quantity respectively;

[0034]

[0035] Wherein, ki represents the program reliability corresponding to the i-th program quantity, i=1, 2, 3; yi(zi,si,s0i) represents the comparative analysis function based on the program corresponding to zi,si,s0i; m1i represents the number of elements in the judgment condition G1 corresponding to the i-th program quantity; ri(f0,b0) represents the optimization function for the i-th program quantity based on the number of line bifurcations f0 and the number of parallel connections b0 under the corresponding circuit interface, and the value range is (0.8, 1.1);

[0036] Determine a second reserved program quantity based on max(k1, k2, k3);

[0037] Taking the program corresponding to the reserved program quantity as a benchmark, coordinate the programs corresponding to the remaining program quantity to obtain the final program for the circuit interface;

[0038] The first contradiction elimination process is performed on the final program of each circuit interface in the same-level subcircuit, and the second contradiction elimination process is performed on the circuit programs in the different-level subcircuit to obtain the measurement program of the target measurement circuit.

[0039] Preferably, before calculating the program reliability corresponding to each program quantity, the method further includes:

[0040] Determine the corresponding judgment conditions satisfied by each program quantity The situation is as follows: zi represents the amount of content allowed to be added corresponding to the i-th program amount; si represents the amount of content allowed to be deleted corresponding to the i-th program amount; Δ1 represents the standard amount of content allowed to be added; Δ2 represents the standard amount of content allowed to be deleted; s0i represents the i-th program amount; Δ3 represents the set comparison amount for the program amount.

[0041] Preferably, step 4 comprises:

[0042] Determine the platform setting accuracy of the software platform and the capacitance measurement accuracy of the ignition capacitor, and determine the quantity generation time ΔT of the measurement program in the application process from the double precision-time mapping table;

[0043] According to the condition triggering duration of each result record setting condition and the execution duration of the corresponding program segment, and combined with the quantity generation time ΔT, determine the number of captured results corresponding to the result record setting condition;

[0044]

[0045] Among them, N j Indicates the number of captured results of the jth result record setting condition; LTj indicates the condition triggering duration of the jth result record setting condition; ZTj indicates the execution duration of the program segment corresponding to the jth result record setting condition; CLTj indicates the program volume of the conditional program of the jth result record setting condition; CZTj indicates the program volume of the program segment corresponding to the jth result record setting condition; CZ indicates the program volume of the measurement program; ln indicates the logarithmic function symbol; ceiling indicates the rounding up symbol;

[0046] The corresponding first result array and second result array are obtained respectively according to the number of captured results.

[0047] Preferably, step 5 comprises:

[0048] Obtain a first average value and a first variance of all values ​​in the first result array after weighted processing;

[0049] At the same time, obtaining a second average value and a second variance of all values ​​in the second result data;

[0050] According to the first mean value and the first variance, a reasonable setting value is calculated;

[0051] An initial capacitance value is calculated according to the second average value and the second variance.

[0052] Preferably, step 6 comprises:

[0053] Calculate the difference;

[0054]

[0055] Wherein, cyd represents the degree of difference; cd0 represents the initial capacitance value; cdb represents the standard capacitance value; r1(sh) represents the difference coefficient based on the set reasonable value sh; Δ5 represents the unit difference based on the platform setting accuracy;

[0056] Lock the first result array that satisfies x1 j1 -x0j1>xr1j1's first result, and at the same time, lock the second result array that satisfies x2 j2 -x1j2>xr2, the second result, where x1 j1represents the value of the j1th first result in the first result array; x0j1 represents the standard value based on the j1th first result in the first result array; xr1j1 represents the preset threshold value based on the j1th first result in the first result array; x2 j2 represents the value of the j2-th second result in the second result array; x1j2 represents the standard value based on the j2-th second result in the second result array; xr2j2 represents the preset threshold value based on the j2-th second result in the second result array;

[0057] respectively locking the first appearance time of each first result and the second appearance time of each second result, and inputting the first result, the first appearance time and the second result, the second appearance time into the analysis model in sequence to determine the abnormal pattern;

[0058] Based on the abnormal rule and in combination with the difference, an adjustment scheme for the target measurement circuit is determined from an adjustment database.

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] By constructing a set of objective constraint functions, a basis is provided for solving the problems of excessively high cost, low precision and low safety. By constructing a target measurement circuit, convenience is provided for subsequent software testing of the ignition capacitor. By obtaining the measurement program and processing the data generated by the program, it is convenient to effectively adjust the circuit and further ensure the reliability of the measurement of the ignition capacitor.

[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0062] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0064] Figure 1 It is a flow chart of a method for realizing software of a precision measurement circuit of an electronic detonator ignition capacitor in an embodiment of the present invention;

[0065] Figure 2 4 is a structural diagram of a target measurement circuit in an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0067] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, such as Figure 1 As shown, including:

[0068] Step 1: Obtain target requirements for the ignition capacitor, and construct a target constraint function set for the ignition capacitor;

[0069] Step 2: performing function analysis on the target constraint function set, determining key design parameters, and matching them with a circuit design library to construct a target measurement circuit for the ignition capacitor;

[0070] Step 3: Locking the multi-level sub-circuits in the target measurement circuit, and determining the measurement procedure of the target measurement circuit according to the circuit attributes and circuit connection relationship of each level of the sub-circuit;

[0071] Step 4: Applying the measurement program based on the software platform to perform a first operation process on the target measurement circuit and a second operation process on the ignition capacitor, and setting conditions according to the result record in the measurement program to obtain a first result array for the first operation process and a second result array for the second operation process;

[0072] Step 5: Analyze the first result array and the second result array to determine the reasonable setting value of the target measurement circuit and the initial capacitance value of the ignition capacitor;

[0073] Step 6: Analyze the reasonable value and the initial capacitance value to determine the difference from the standard capacitance value;

[0074] If the difference is less than a preset degree, the target measurement circuit is kept unchanged;

[0075] Otherwise, the target measurement circuit is continuously adjusted based on the difference degree, the first difference information in the first result array, and the second difference information in the second result array.

[0076] In this embodiment, the target requirement refers to the setting of the number of components and component cost of the circuit, the measurement accuracy of the ignition capacitor, and the measurement safety of the ignition capacitor, so the function set can be obtained by constructing the functions of these three parts.

[0077] In this embodiment, the function analysis is performed by acquiring a model related to the preparation process of the ignition capacitor, so as to obtain key setting parameters, and the key setting parameters are related to the device model and the device connection relationship.

[0078] In this embodiment, the target measurement circuit is a measurement circuit for the firing capacitor, such as Figure 2 As shown, C1 (firing capacitor), R4 (generating resistor), and Q1 (discharging NMOS transistor) in this measurement circuit form the first-stage discharging circuit. The main function of this circuit is to discharge the firing capacitor before charging and measuring it to ensure that the initial voltage on the capacitor is zero. During discharging, there is no voltage output at the MCU_DAC port, and the MCU_IO1 port is set to a high level, causing Q1 (discharging NMOS transistor) to conduct, and the residual charge on C1 (firing capacitor) is discharged to the ground through R4 (discharging resistor). R1 (charging resistor), D1 (protection diode), C1 (firing capacitor), and R2+R3 (charging voltage-dividing resistor) in the designed circuit form the second-stage firing capacitor measurement circuit. The main function of this circuit is to measure the capacitance value of the firing capacitor through the voltage charging measurement method.

[0079] The principle for this measurement circuit is as follows: Assume that the maximum output voltage of the MCU DAC is Vmax. Then, set "n (2 < n < 9)" different charging voltages to charge the capacitor, and each charging voltage Vcn = Vmax / n. Before each charging, first perform a discharging operation on the firing capacitor to ensure that the firing capacitor is charged from 0V voltage to Vcn. The MCU_ADC reads the voltage value Vad every 1 millisecond, and the condition for stopping the charging timing is: Vad = (Vcn - 0.4) * R3 / (R2 + R3). After stopping the charging, the timer of the MCU records the charging time "tn" for each charging. Then, use the capacitor charging formula: Cn = tn / {R * ln[n / (n - 1)]} to calculate the capacitance value for each measurement, and finally take the average value: C = (C2 + C3 +... Cn) / (n - 1). Among them, the first-stage discharging circuit and the second firing capacitor measurement circuit involved can be regarded as sub-circuits of different levels respectively, and the measured capacitance value can be regarded as the second result in the second result array.

[0080] In this embodiment, the firing capacitor discharging circuit mainly consists of C1 (firing capacitor), R4 (discharging resistor), and Q1 (discharging NMOS transistor), and its main function is described as follows:

[0081] C1: Firing capacitor, as the main energy storage element in the electronic detonator module, is the measurement object of the method of this patent;

[0082] R4: Discharging resistor, which is a current-limiting element in the capacitor discharging path to prevent the discharging NMOS transistor from being damaged due to excessive current during the capacitor discharging process. Generally, a power resistor between 100 ohms and 300 ohms is selected;

[0083] Q1: Discharge NMOS tube, a switch element that controls the discharge path. When MCU_IO1 is set to a high level, the discharge path is opened, and when it is set to a low level, the discharge path is cut off.

[0084] The ignition capacitor detection circuit is mainly composed of R1 (charging resistor), D1 (protection diode), C1 (ignition capacitor), R2+R3 (charging voltage divider resistor), and its main functions are described as follows:

[0085] R1: Charging resistor, together with the ignition capacitor, forms an RC circuit. The measurement method of this patent applies the constant voltage charging characteristics of the RC circuit;

[0086] D1: Protection diode, its function is to protect the IO port of the microcontroller when the ignition capacitor is charged with high voltage. When measuring the charging of the ignition capacitor, the forward conduction and the voltage drop are stable. Generally, a Schottky diode with a reverse withstand voltage greater than 20V and a small current conduction voltage drop less than 200mV is selected;

[0087] C1: Ignition capacitor, as the main energy storage element in the electronic detonator module, the measurement object of this patented method;

[0088] R2+R3: Charging voltage-dividing resistors, which reduce the charging voltage to the measurement range of the microcontroller ADC port according to a certain voltage-dividing ratio. In addition, the charging voltage-dividing resistors are generally megohm-level resistors to avoid high-voltage charging damaging the microcontroller.

[0089] According to the "RC circuit constant voltage charging model", the instantaneous voltage on the capacitor is exponentially related to the charging target voltage and charging time. According to the measurement circuit diagram of this patent:

[0090] The relationship is: Vtn = V0 + (Vmax - Vd - V0) * [1 - exp (-tn / RCn)], before measurement, the capacitor is fully discharged, V0 = 0;

[0091] The formula can be simplified to: Vtn = (Vmax-Vd)*[1-exp(-tn / RCn)], multiple measurements eliminate the diode voltage drop error Vd≈0;

[0092] The formula can be simplified to: Vtn = Vmax*[1-exp(-tn / RCn)], the software sets Vtn = Vmax / n, and Cn is obtained by mathematical calculation;

[0093] The ignition capacitance value measured each time: Cn = tn / R*ln[n / (n-1)];

[0094] Where n is a natural number from 2 to 9, tn is the time for each full charge, R is the charging resistance value, and ln[n / (n-1)] is a constant.

[0095] In this embodiment, the circuit attributes refer to corresponding circuit discharge attributes, capacitance measurement attributes, etc., and the circuit connection relationship refers to the parallel and series relationship between devices.

[0096] In this embodiment, the measurement program is obtained based on a program database, which facilitates the subsequent software platform to apply the circuit and realize the test and evaluation of the shipped capacitors.

[0097] In this embodiment, the first result array is to capture relevant operation results according to set conditions during the operation of the program and the circuit. Because the operation results can be generated at different times, the obtained result array will contain multiple results.

[0098] In this embodiment, setting the reasonable value and the initial capacitance value is based on the cumulative sum of the average value and the variance of the corresponding results.

[0099] In this embodiment, the continuous adjustment of the measurement circuit is based on the difference degree and the difference information to perform a matching scheme from the adjustment database to achieve the adjustment of the circuit, thereby ensuring the reliable measurement of the ignition capacitance.

[0100] In this embodiment, a simplified ignition capacitance measurement circuit is designed so that it can be integrated into a small-area detonator module PCB; a low-cost single-chip microcomputer with a DAC output port is selected to form a high-precision measurement circuit to achieve low-voltage charging measurement; and a complete set of software implementation methods are specifically proposed so that it can be easily integrated into the single-chip microcomputer software.

[0101] The beneficial effects of the above technical solution are: by constructing a set of target constraint functions, it provides a basis for solving the problems of excessively high cost, excessively low precision and excessively low safety; by constructing a target measurement circuit, it facilitates subsequent software testing of the ignition capacitor; and by obtaining the measurement program and processing the data generated by the program, it is convenient to effectively adjust the circuit, thereby further ensuring the reliability of the measurement of the ignition capacitor.

[0102] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 1, comprising:

[0103] Analyze the target requirements to determine the number of components and component costs of constructing a circuit for measuring the ignition capacitance, the measurement accuracy of the ignition capacitance, and the measurement safety of the ignition capacitance;

[0104] Constructing a first constraint function based on the number of components and the component cost and in combination with a first variation range;

[0105] Constructing a second constraint function based on the measurement accuracy and in combination with a second variation range;

[0106] Constructing a third constraint function based on the measurement security and in combination with a third variation range;

[0107] The target constraint function set is: the first constraint function, the second constraint function and the third constraint function.

[0108] In this embodiment, the first constraint function is: the first quantity corresponding to the first variation range < the number of devices < the second quantity corresponding to the second variation range, and the first cost corresponding to the first variation range < the device cost < the second cost corresponding to the first variation range;

[0109] Second constraint function: first accuracy corresponding to the second variation range < measurement accuracy < second accuracy corresponding to the second variation range;

[0110] The third constraint function: the first security corresponding to the third variation range < measurement security < the second security corresponding to the third variation range.

[0111] The beneficial effect of the above technical solution is: three variables are determined by analyzing the requirements, and then three constraint functions are constructed to provide a basis for subsequent circuit settings.

[0112] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 2, comprising:

[0113] Obtaining the capacitor preparation process of the ignition capacitor, and obtaining an analytical model from a process-analysis database to perform function analysis on the target constraint function to obtain key design parameters;

[0114] Filling the key design parameters into the circuit design table to obtain a design reference description;

[0115] The design reference description is matched with a circuit design library to obtain the device model and device connection status of each target device, and to obtain the target measurement circuit of the ignition capacitor.

[0116] In this embodiment, each electronic device has its own device model, and different device models correspond to different preparation processes. The preparation processes are known and determined. The process-analysis database includes different preparation processes and analytical models corresponding to the performance evaluation of various aspects of the ignition capacitor by experts, which facilitates the analysis of cost, quantity, accuracy and safety of the objective constraint function to determine the design parameters in the circuit setting process. The analytical model is obtained by training the neural network model based on samples of different performance indicators and design parameters corresponding to different combinations of performance indicators. Therefore, the key setting parameters can be directly obtained, and the key design parameters include the size of resistance, inductance, etc.

[0117] In this embodiment, the circuit setting table is predetermined, mainly for obtaining key setting parameters and then directly obtaining a design reference description based on the table, for example, the circuit functions played by resistors 1 and 2, and then matching with the circuit design library to construct a target measurement circuit.

[0118] In this embodiment, the circuit design library includes different design reference descriptions and device models and device connection relationships under the descriptions, thereby facilitating direct connection of devices to obtain a target measurement circuit.

[0119] The beneficial effects of the above technical solution are: matching the analytical model consistent with the capacitor preparation process from the database for function analysis, so as to fundamentally obtain the key design parameters, and by obtaining the match between the reference description and the design library, it is convenient to effectively lock the device to construct a measurement circuit, which facilitates the subsequent measurement of the ignition capacitor.

[0120] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 3, comprising:

[0121] Determine the circuit interface of the corresponding level subcircuit according to the circuit construction diagram of each level subcircuit, and allocate the first program to the corresponding circuit interface according to the interface position of the circuit interface and in combination with the first program database, and allocate the second program to the corresponding circuit interface according to the circuit attribute and circuit connection relationship of the corresponding level subcircuit and in combination with the second program database;

[0122] Matching the first program with the second program of each circuit interface in the subcircuit of the same level, determining a first program amount s01 of a consistent program corresponding to the circuit interface, a second program amount s02 of an inconsistent program based on the first program, and a third program amount s03 of an inconsistent program based on the second program;

[0123] Determine that the first program amount s01 and the third program amount s02 are based on a first layout of the first program, and at the same time, determine that the first program amount s01 and the second program amount s03 are based on a second layout of the second program;

[0124] Calculating a program adjustment probability g0 of a corresponding circuit interface according to the first layout and the second layout;

[0125]

[0126]

[0127] Wherein, g1 represents the probability of inconsistent distribution based on the first layout; g2 represents the probability of inconsistent distribution based on the second layout; c0(c1,c2) ​​represents the positional proportion of the distribution position c1 of the program corresponding to the second program quantity s02 in the first program and the distribution position c2 of the program corresponding to the third program quantity s03 in the second program; σ1 2 Indicates based on 1-max(g1,g2), 1-c0(c1,c2) ​​variance; Δ1 represents the probability adjustment function; [] represents the rounding symbol;

[0128] If the program change probability is greater than or equal to the preset probability, determining the first reserved program quantity based on min(s01, s02, s03);

[0129] Otherwise, according to the number of line branches and the number of parallel connections connected to the corresponding circuit interface, determine the allowed additions and deletions of the program corresponding to each program quantity, and calculate the program reliability corresponding to each program quantity respectively;

[0130]

[0131] Wherein, ki represents the program reliability corresponding to the i-th program quantity, i=1, 2, 3; yi(zi,si,s0i) represents the comparative analysis function based on the program corresponding to zi,si,s0i; m1i represents the number of elements in the judgment condition G1 corresponding to the i-th program quantity; ri(f0,b0) represents the optimization function for the i-th program quantity based on the number of line bifurcations f0 and the number of parallel connections b0 under the corresponding circuit interface, and the value range is (0.8, 1.1);

[0132] Determine a second reserved program quantity based on max(k1, k2, k3);

[0133] Taking the program corresponding to the reserved program quantity as a benchmark, coordinate the programs corresponding to the remaining program quantity to obtain the final program for the circuit interface;

[0134] The first contradiction elimination process is performed on the final program of each circuit interface in the same-level subcircuit, and the second contradiction elimination process is performed on the circuit programs in the different-level subcircuit to obtain the measurement program of the target measurement circuit.

[0135] Preferably, before calculating the program reliability corresponding to each program quantity, the method further includes:

[0136] Determine the corresponding judgment conditions satisfied by each program quantity The situation is as follows: zi represents the amount of content allowed to be added corresponding to the i-th program amount; si represents the amount of content allowed to be deleted corresponding to the i-th program amount; Δ1 represents the standard amount of content allowed to be added; Δ2 represents the standard amount of content allowed to be deleted; s0i represents the i-th program amount; Δ3 represents the set comparison amount for the program amount.

[0137] In this embodiment, the first database includes different sub-circuits and the programs corresponding to the deployment positions of each circuit interface of the sub-circuit. Since each interface needs to implement different functions, the corresponding programs will also be different. Therefore, the first program corresponding to the interface can be directly obtained. The second database includes the circuit attributes of different sub-circuits and the overall execution program corresponding to the circuit connection relationship. Therefore, the second program corresponding to the interface can be directly obtained by extracting the program through matching with the interface. The final program of the corresponding interface is comprehensively determined from two aspects to ensure the reliability of the corresponding interface program.

[0138] In this embodiment, the first program is: y1y2y3y4, and the second program is y1 u2y3u4, among which y1 and y3 are consistent programs, y2 and y4 are inconsistent programs based on the second program, and u2 and u4 are inconsistent programs based on the first program. The capacity statistics of the codes under different programs are obtained, which is the corresponding program quantity.

[0139] In this embodiment, the first layout and the second layout refer to the code distribution position of the program corresponding to the corresponding program amount in the corresponding overall program.

[0140] In this embodiment, the value of the preset probability is 0.5.

[0141] In this embodiment, min represents the minimum value symbol; max represents the maximum value symbol.

[0142] In this embodiment, the number of line branches and the number of parallel connections can be counted based on the connection status of the circuit interface by counting the branch lines, and can be directly obtained.

[0143] In this embodiment, the content that is allowed to be added and the content that is allowed to be deleted are obtained based on the connection situation-program quantity-program distribution-allowed mapping table. A new program can be added based on the corresponding program, and the original program can also be deleted based on the corresponding program. That is, no matter how it is changed, it has little impact on the original program corresponding to the program quantity, and then the program reliability is calculated, which indirectly reflects whether the corresponding program is a key program.

[0144] Among them, the connection status-program quantity-program distribution-allowed mapping table includes different interface line connection conditions, program quantity, corresponding distribution conditions, and the allowed deletion and allowed addition content under this combination. It is pre-set by experts and can be used directly.

[0145] In this embodiment, the remaining program quantity is coordinated in order to reasonably merge the programs. Based on the programs corresponding to the retained program quantity, the coordination method is extracted from the combined database corresponding to the program quantity to achieve fusion, thereby ensuring the rationality of program fusion and the effective retention of key programs.

[0146] For example: originally: retained program 1 + remaining program 2 + remaining program 3, the final program after adjustment is: retained program 1 + fused program 0.

[0147] In this embodiment, because there will be multiple occurrences of fixed format programs between programs of different interfaces or sub-circuits during the program construction process, at this time, only one occurrence needs to be retained and the rest are deleted, which can be regarded as eliminating contradictions to avoid abnormal program operation.

[0148] The beneficial effects of the above technical solution are: the program is obtained through the construction diagram and the interface connection status, providing a complete foundation for the subsequent program construction, and the consistent and inconsistent programs are sorted into primary and secondary ones by performing consistency and inconsistency analysis, layout analysis and probability analysis on the program, which facilitates the effectiveness of subsequent program fusion, and further provides a basis for the subsequent program primary and secondary sorting by calculating the reliability of the program, ensuring the rationality of the final running program and improving the accuracy of the subsequent analysis of the ignition capacitor.

[0149] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 4, comprising:

[0150] Determine the platform setting accuracy of the software platform and the capacitance measurement accuracy of the ignition capacitor, and determine the quantity generation time ΔT of the measurement program in the application process from the double precision-time mapping table;

[0151] According to the condition triggering duration of each result record setting condition and the execution duration of the corresponding program segment, and combined with the quantity generation time ΔT, determine the number of captured results corresponding to the result record setting condition;

[0152]

[0153] Among them, N jIndicates the number of captured results of the jth result record setting condition; LTj indicates the condition triggering duration of the jth result record setting condition; ZTj indicates the execution duration of the program segment corresponding to the jth result record setting condition; CLTj indicates the program volume of the conditional program of the jth result record setting condition; CZTj indicates the program volume of the program segment corresponding to the jth result record setting condition; CZ indicates the program volume of the measurement program; ln indicates the logarithmic function symbol; ceiling indicates the rounding up symbol;

[0154] The corresponding first result array and second result array are obtained respectively according to the number of captured results.

[0155] In this embodiment, the double-precision-time mapping table includes different platform setting accuracies, capacitance measurement accuracies, and quantity generation times that match the accuracies, so as to facilitate the subsequent capture of result quantities, such as generating one data in 2s.

[0156] In this embodiment, since there are multiple result record setting conditions in the program, that is, the result needs to be output when a certain code is executed, the number to be captured can be determined based on different time lengths to ensure the rationality of subsequent analysis of the result array.

[0157] In this embodiment, for example, there are N1 results in the first result array and N2 results in the second result array. It should be noted that the second result array only contains one measurement result for the capacitance measurement value, and the first result array contains the number of result recording setting conditions minus 1. That is, N1=N01+N02+..., where N01 and N02 are the number of step results under different result recording setting conditions involved in the first result array.

[0158] The beneficial effect of the above technical solution is: by setting double precision, it is convenient to obtain the time when the quantity is generated, and the duration of different result recording setting conditions is combined to determine the number of captured results, and then obtain the first result array and the second result array, which facilitates the subsequent measurement of the ignition capacitance.

[0159] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 5, comprising:

[0160] Obtain a first average value and a first variance of all values ​​in the first result array after weighted processing;

[0161] At the same time, obtaining a second average value and a second variance of all values ​​in the second result data;

[0162] According to the first mean value and the first variance, a reasonable setting value is calculated;

[0163] An initial capacitance value is calculated according to the second average value and the second variance.

[0164] In this embodiment, the weighted processing is performed because the first result array contains record results under different record setting conditions, so it is easy to ensure the standardization of the calculation after the weighted processing.

[0165] In this embodiment, a reasonable value is set to be equal to the first average value and the first variance.

[0166] Initial capacitance value=-second average value+second variance.

[0167] The beneficial effect of the above technical solution is that by calculating the values ​​involved in different result arrays, it is easy to obtain reasonable setting values ​​and initial capacitance values, providing a basis for subsequent circuit adjustment.

[0168] The present invention provides a software implementation method of a precision measurement circuit of an electronic detonator ignition capacitor, step 6, comprising:

[0169] Calculate the difference;

[0170]

[0171] Wherein, cyd represents the degree of difference; cd0 represents the initial capacitance value; cdb represents the standard capacitance value; r1(sh) represents the difference coefficient based on the set reasonable value sh; Δ5 represents the unit difference based on the platform setting accuracy;

[0172] Lock the first result array that satisfies x1 j1 -x0j1>xr1j1's first result, and at the same time, lock the second result array that satisfies x2 j2 -x1j2>xr2, the second result, where x1 j1 represents the value of the j1th first result in the first result array; x0j1 represents the standard value based on the j1th first result in the first result array; xr1j1 represents the preset threshold value based on the j1th first result in the first result array; x2 j2 represents the value of the j2-th second result in the second result array; x1j2 represents the standard value based on the j2-th second result in the second result array; xr2j2 represents the preset threshold value based on the j2-th second result in the second result array;

[0173] respectively locking the first appearance time of each first result and the second appearance time of each second result, and inputting the first result, the first appearance time and the second result, the second appearance time into the analysis model in sequence to determine the abnormal pattern;

[0174] Based on the abnormal rule and in combination with the difference, an adjustment scheme for the target measurement circuit is determined from an adjustment database.

[0175] In this embodiment, the occurrence time refers to the time when the software platform records the output result of executing the program code.

[0176] In this embodiment, the analysis model is based on different occurrence times and results, and is obtained by sample training for the rules of the combination. Therefore, abnormal rules can be directly obtained, such as measurement results that are generally high or generally low, so as to achieve circuit adjustment.

[0177] In this embodiment, the adjustment database includes different rules, difference combinations and information about the combinations set by experts, so as to facilitate direct acquisition of adjustments, such as adjustment of the resistance value of resistors, increase in the number of resistors, etc.

[0178] The beneficial effect of the above technical solution is that by combining the difference degree with the abnormal law, it is easy to obtain an adjustment plan based on the model, which provides convenience for subsequent circuit adjustment and ensures reliable measurement of the ignition capacitor.

[0179] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A software implementation method for a precision measurement circuit of an electronic detonator ignition capacitance, characterized in that: include: Step 1: Obtain target requirements for the ignition capacitor, and construct a target constraint function set for the ignition capacitor; Step 2: performing function analysis on the target constraint function set, determining key design parameters, and matching them with a circuit design library to construct a target measurement circuit for the ignition capacitor; Step 3: Locking the multi-level sub-circuits in the target measurement circuit, and determining the measurement procedure of the target measurement circuit according to the circuit attributes and circuit connection relationship of each level of the sub-circuit; Step 4: Applying the measurement program based on the software platform to perform a first operation process on the target measurement circuit and a second operation process on the ignition capacitor, and setting conditions according to the result record in the measurement program to obtain a first result array for the first operation process and a second result array for the second operation process; Step 5: Analyze the first result array and the second result array to determine the reasonable setting value of the target measurement circuit and the initial capacitance value of the ignition capacitor; Step 6: Analyze the reasonable setting value and the initial capacitance value to determine the difference from the standard capacitance value; If the difference is less than a preset degree, the target measurement circuit is kept unchanged; otherwise, continuously adjusting the target measurement circuit based on the difference degree, the first difference information in the first result array, and the second difference information in the second result array; Step 1 includes: Analyze the target requirements to determine the number of components and component costs of constructing a circuit for measuring the ignition capacitance, the measurement accuracy of the ignition capacitance, and the measurement safety of the ignition capacitance; Constructing a first constraint function based on the number of components and the component cost and in combination with a first variation range; Constructing a second constraint function based on the measurement accuracy and in combination with a second variation range; Constructing a third constraint function based on the measurement security and in combination with a third variation range; The target constraint function set is: the first constraint function, the second constraint function and the third constraint function; Step 2 includes: Obtaining the capacitor preparation process of the ignition capacitor, and obtaining an analytical model from a process-analysis database to perform function analysis on the target constraint function to obtain key design parameters; Filling the key design parameters into the circuit design table to obtain a design reference description; Matching the design reference description with the circuit design library to obtain the device model and device connection status of each target device, and obtain the target measurement circuit of the ignition capacitor; Step 3 includes: Determine the circuit interface of the corresponding level subcircuit according to the circuit construction diagram of each level subcircuit, and allocate the first program to the corresponding circuit interface according to the interface position of the circuit interface and in combination with the first program database, and allocate the second program to the corresponding circuit interface according to the circuit attribute and circuit connection relationship of the corresponding level subcircuit and in combination with the second program database; Matching the first program with the second program of each circuit interface in the subcircuit of the same level, determining a first program amount s01 of a consistent program corresponding to the circuit interface, a second program amount s02 of an inconsistent program based on the first program, and a third program amount s03 of an inconsistent program based on the second program; Determine that the first program amount s01 and the third program amount s02 are based on a first layout of the first program, and at the same time, determine that the first program amount s01 and the second program amount s03 are based on a second layout of the second program; Calculating a program adjustment probability g0 of a corresponding circuit interface according to the first layout and the second layout; Wherein, g1 represents the probability of inconsistent distribution based on the first layout; g2 represents the probability of inconsistent distribution based on the second layout; c0(c1,c2) ​​represents the positional proportion of the distribution position c1 of the program corresponding to the second program quantity s02 in the first program and the distribution position c2 of the program corresponding to the third program quantity s03 in the second program; σ1 2 Indicates based on 1-max(g1,g2), 1-c0(c1,c2) ​​variance; Δ1 represents the probability adjustment function; [] represents the rounding symbol; If the program change probability is greater than or equal to the preset probability, determining the first reserved program quantity based on min(s01, s02, s03); Otherwise, according to the number of line branches and the number of parallel connections connected to the corresponding circuit interface, determine the allowed additions and deletions of the program corresponding to each program quantity, and calculate the program reliability corresponding to each program quantity respectively; Wherein, ki represents the program reliability corresponding to the i-th program quantity, i=1, 2, 3; yi(zi,si,s0i represents the comparative analysis function based on the program corresponding to zi,si,s0i; m1i represents the number of elements in the judgment condition G1 corresponding to the i-th program quantity; ri(f0,b0) represents the optimization function of the i-th program quantity based on the number of line bifurcations f0 and the number of parallel connections b0 under the corresponding circuit interface, and the value range is (0.8, 1.1); Determine a second reserved program quantity based on max(k1, k2, k3); Taking the program corresponding to the reserved program quantity as a benchmark, coordinate the programs corresponding to the remaining program quantity to obtain the final program for the circuit interface; The first contradiction elimination process is performed on the final program of each circuit interface in the same-level subcircuit, and the second contradiction elimination process is performed on the circuit programs in the different-level subcircuit to obtain the measurement program of the target measurement circuit.

2. The software implementation method of the precision measurement circuit of the electronic detonator ignition capacitance according to claim 1 is characterized in that: Before calculating the program reliability corresponding to each program quantity, it also includes: Determine the corresponding judgment conditions satisfied by each program quantity The situation is as follows: zi represents the amount of content allowed to be added corresponding to the i-th program amount; si represents the amount of content allowed to be deleted corresponding to the i-th program amount; Δ1 represents the standard amount of content allowed to be added; Δ2 represents the standard amount of content allowed to be deleted; s0i represents the i-th program amount; Δ3 represents the set comparison amount for the program amount.

3. The software implementation method of the precision measurement circuit of the electronic detonator ignition capacitance according to claim 1 is characterized in that: Step 4 includes: Determine the platform setting accuracy of the software platform and the capacitance measurement accuracy of the ignition capacitor, and determine the quantity generation time ΔT of the measurement program in the application process from the double precision-time mapping table; According to the condition triggering duration of each result record setting condition and the execution duration of the corresponding program segment, and combined with the quantity generation time ΔT, determine the number of captured results corresponding to the result record setting condition; Among them, N j Indicates the number of captured results of the jth result record setting condition; LTj indicates the condition triggering duration of the jth result record setting condition; ZTj indicates the execution duration of the program segment corresponding to the jth result record setting condition; CLTj indicates the program volume of the conditional program of the jth result record setting condition; CZTj indicates the program volume of the program segment corresponding to the jth result record setting condition; CZ indicates the program volume of the measurement program; ln indicates the logarithmic function symbol; ceiling indicates the rounding up symbol; The corresponding first result array and second result array are obtained respectively according to the number of captured results.

4. The software implementation method of the precision measurement circuit of the electronic detonator ignition capacitance according to claim 1 is characterized in that: Step 5 includes: Obtain a first average value and a first variance of all values ​​in the first result array after weighted processing; At the same time, obtaining a second average value and a second variance of all values ​​in the second result array; According to the first mean value and the first variance, a reasonable setting value is calculated; An initial capacitance value is calculated according to the second average value and the second variance.

5. The software implementation method of the precision measurement circuit of the electronic detonator ignition capacitance according to claim 1 is characterized in that: Step 6 includes: Calculate the difference; Wherein, cyd represents the degree of difference; cd0 represents the initial capacitance value; cdb represents the standard capacitance value; r1(sh represents the difference coefficient based on the set reasonable value sh; Δ5 represents the unit difference based on the platform setting accuracy; Lock the first result array that satisfies x1 j1 -x0j1>xr1j1's first result, and at the same time, lock the second result array that satisfies x2 j2 -x1j2>xr2, the second result, where x1 j1 represents the value of the j1th first result in the first result array; x0j1 represents the standard value based on the j1th first result in the first result array; xr1j1 represents the preset threshold value based on the j1th first result in the first result array; x2 j2 represents the value of the j2-th second result in the second result array; x1j2 represents the standard value based on the j2-th second result in the second result array; xr2j2 represents the preset threshold value based on the j2-th second result in the second result array; respectively locking the first appearance time of each first result and the second appearance time of each second result, and inputting the first result, the first appearance time and the second result, the second appearance time into the analysis model in sequence to determine the abnormal pattern; Based on the abnormal rule and in combination with the difference, an adjustment scheme for the target measurement circuit is determined from an adjustment database.