CN103188045A - Method and device for examining communication of electronic detonator by cri cyclic redundancy check code - Google Patents
Method and device for examining communication of electronic detonator by cri cyclic redundancy check code Download PDFInfo
- Publication number
- CN103188045A CN103188045A CN2012101069147A CN201210106914A CN103188045A CN 103188045 A CN103188045 A CN 103188045A CN 2012101069147 A CN2012101069147 A CN 2012101069147A CN 201210106914 A CN201210106914 A CN 201210106914A CN 103188045 A CN103188045 A CN 103188045A
- Authority
- CN
- China
- Prior art keywords
- crc
- detonator
- address
- initiator
- electric detonator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The invention discloses a method and a device for examining communication of an electronic detonator by a cri cyclic redundancy check code. The method comprises the following steps of: firstly, storing a CRC (cyclic redundancy check) code of an address of the electronic detonator by setting aside a register in a control chip of the electronic detonator, computing an address CRC proof test value by a CRC-CCITT polynomial generated by the CRC code, and implanting the CRC proof test value, the address of the detonator and the delay time into a control chip of the detonator; injecting the CRC-CCITT polynomial into the control chip of a detonator exploder in the same way to obtain a procedure of the CRC code, and when the detonator is detected by the specific detonator exploder, receiving an address value uploaded by the electronic detonator, and receiving the CRC proof test value uploaded by the electronic detonator; and obtaining the procedure of the CRC cod according to the CRC-CCITT polynomial and computing the corresponding CRC proof test value according to the address value by the specific detonator exploder, wherein the address data uploaded by the detonator is regarded to be effective when the CRC proof test value uploaded by the electronic detonator is equal. According to the method and the device, the structure is simple, and whether the received data is correct or not can be judged by the exploder since the function of the chip of the electronic detonator can not be very complex and the pre-stored address CRC proof test value of the local device only needs to be uploaded simply, so that the stability of communication between the electronic detonator and the exploder can be improved.
Description
Technical field
The present invention relates to a kind of communication of cyclic redundancy check (CRC) code verification electric detonator whether normally method and device of passing through, belong to the priming system applied technical field.
Background technology
Electric detonator is the novel priming system that begins to use about 2000, and its control function of detonating of accurately delaying time has attracted numerous users.The two-way communication of electric detonator and initiator becomes whether normal approach of electric detonator that checking adorned the hole, but because the electric detonator inner space is minimum, the built-in circuit plate bulk is limited, integrated control chip can not arithmetic speed be exceedingly fast by volume and power consumption constraints on the circuit board, need between power consumption and function, to obtain a balance, so general electric detonator all adopts digital baseband to transmit communication with communicating by letter of initiator.Be subjected to the restriction of communication mode; when detected information occurring through regular meeting at the detected electrons detonator time, detonator initiator do not conform to the actual conditions; the reason that this situation occurs is many-sided; bigger such as the output current fluctuation in the checkout gear; directly have influence on the accuracy of detection; or the interference of other factors causes and detects floating of electric current, so EDC error detection and correction is limited in one's ability when in detection, so prior art and imperfection.
Summary of the invention
The objective of the invention is: provide a kind of simple, that the EDC error detection and correction ability is strong is a kind of by cyclic redundancy check (CRC) code verification electric detonator method for communicating and device, to overcome the deficiencies in the prior art.
The present invention is achieved in that a kind of by cyclic redundancy check (CRC) code verification electric detonator method for communicating, at first in electronic detonator control chip, reserve the CRC sign indicating number that register stores the electric detonator address, the CRC-CCITT multinomial that uses the CRC sign indicating number to generate calculates address CRC check value, and address and the defer time with this CRC check value and detonator is implanted in the register of detonator control chip together then; Same injection CRC-CCITT multinomial is asked the program of CRC sign indicating number in the control chip of detonator initiator, when detecting this detonator with special-purpose detonator initiator, receives the address value that electric detonator is uploaded earlier, receives the CRC check value that it is uploaded again; Special-purpose detonator initiator utilizes the CRC-CCITT multinomial to obtain the program of CRC sign indicating number and calculate corresponding CRC check value according to address value and calculate, when CRC check value that this electric detonator is uploaded equates, think that the address date that this detonator uploads is effective, when different, it is invalid that initiator detects the data that receive, and initiator is then ignored this reception value.
Reserve two registers and store the check value of electric detonator address in electronic detonator control chip, two registers are respectively " CRC word1 " and " CRC word2 ".
A kind of cyclic redundancy check (CRC) code verification electric detonator communicating devices of passing through comprises electric detonator 1, and electric detonator 1 is connected with special-purpose detonator initiator 2.
Special-purpose detonator initiator is more than 1.
The present invention has simple in structure, considered that the electric detonator chip functions too upload by complexity, this a machine address CRC check code value that needs simply will prestore, judge by special-purpose detonator initiator whether the data that receive are correct, improved electric detonator and special-purpose detonator initiator communication reliability.
Description of drawings
Fig. 1 detects the flow chart of detonator by the CRC sign indicating number for the present invention;
Fig. 2 is structural representation of the present invention;
Description of reference numerals: 1-electric detonator, the special-purpose detonator initiator of 2-, 3-output interface.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples, but not as limitation of the present invention.
Embodiments of the invention: a kind of by cyclic redundancy check (CRC) code verification electric detonator method for communicating, at first in electronic detonator control chip, reserve the CRC sign indicating number that register stores the electric detonator address, the CRC-CCITT multinomial that uses the CRC sign indicating number to generate calculates address CRC check value, and address and the defer time with this CRC check value and detonator is implanted in the register of detonator control chip together then; Same injection CRC-CCITT multinomial is asked the program of CRC sign indicating number in the control chip of detonator initiator, when detecting this detonator with special-purpose detonator initiator, receives the address value that electric detonator is uploaded earlier, receives the CRC check value that it is uploaded again; Special-purpose detonator initiator utilizes the CRC-CCITT multinomial to obtain the program of CRC sign indicating number and calculate corresponding CRC check value according to address value and calculate, when CRC check value that this electric detonator is uploaded equates, think that the address date that this detonator uploads is effective, when different, it is invalid that initiator detects the data that receive, initiator is then ignored this reception value, and this moment, the staff found out the geographical position of this electric detonator of makeing mistakes, and handled.
In electronic detonator control chip, reserve two registers and store the check value of electric detonator address, two registers are respectively " CRC word1 " and " CRC word2 ", " CRC word1 " and " CRC word2 " is the title of definition, when the generator polynomial with the CRC sign indicating number calculates electric detonator address CRC sign indicating number, the numerical value that calculates is put among two registers " CRC word1 " and " the CRC word2 " as data.
A kind of by cyclic redundancy check (CRC) code verification electric detonator communicating devices, comprise electric detonator 1, electric detonator 1 is connected with output interface 3 on the special-purpose detonator initiator 2.
Special-purpose detonator initiator 2 is more than 1.
Special-purpose detonator initiator 2 is the equipment of electric detonator 1 of detonating, and can cross the equipment that CAN bus interface modular converter is communicated by letter with the computer expert; And be based on the structure of conventional detonators according to the electronic circuit principle in the detonator of electronics detonator manufacturing enterprise of every family production, make corresponding modification.
The full name of CRC is Cyclic Redundancy Check, and Chinese is cyclic redundancy check (CRC), and it is a class important linear block code, and the Code And Decode method is simple, and the EDC error detection and correction ability is strong.
The first step at first in this example: reserve the CRC sign indicating number that two registers store the electric detonator address in electronic detonator control chip, two registers are respectively " CRC word1 " and " CRC word2 ".
Second step: calculate the CRC sign indicating number of the address of electric detonator in advance by additional single-chip microcomputer (16 MCU) system, in the CRC of calculated address process, adopting the generator polynomial of CRC sign indicating number is CRC-CCITT, the multinomial of its generation is G (x)=X16+X12+X5+1, the code of corresponding G (x) is: 1 0,001 0,000 0,010 0001, its calculating process is as follows: the address date of electric detonator as information field A, be 1,100 0,100 1,010 0101 as message segment A, earlier message segment move to left 16 the codes of field B correspondence are 1,100 0,100 1,010 0,101 0,000 0,000 0,000 0000, then field B and G (x) are carried out polynomial division, remainder be 0,011 1,111 1,101 1111 for the C code, wherein remainder C is exactly 1,100 0,100 1,010 0101 the CRC sign indicating number of wanting the electric detonator address;
The 3rd step: the electric detonator address CRC sign indicating number of calculating is implanted in advance in two registers " CRC word1 " and " CRC word2 " that control chip specially stays by electric detonator chip data write device as data, the back that these two data are attached to address and time namely then: the data of uploading of this electric detonator are: 0,000 0,000 1,000 0101 uuuu uuuu uuuu uuuu 0,011 1,111 1,101 1111, wherein the one or two byte is the address, the 3rd nybble is defer time, and latter two byte is the CRC check sign indicating number of address.
The 4th step, checkout equipment uses identical generated code to carry out verification, the generator polynomial that namely adopts the CRC sign indicating number is that the multinomial of its generation of CRC-CCITT. is data field/CRC generated code (binary division) that G (x)=X16+X12+X5+1. checkout equipment receives, if namely the data field received of checkout equipment can be divided exactly by the CRC sign indicating number that address information generates, then this to upload data correct. note: " field/generated code of receiving " in the field that receives be the CRC sign indicating number namely 1,100 0,100 1,010 0,101 0,011 1,111 1,101 1111 of address date and address date.
It is as follows that data 1,100 0,100 1,010 0101 with the multinomial are that G (x)=X16+X12+X5+1 generates the calculating process of CRC sign indicating number
11000100101001010 000000000000000
10001000000100001
10011001011010110
10001000000100001
10001011110111000
10001000000100001
11110011001000000
10001000000100001
11110110011000010
10001000000100001
11111100111000110
10001000000100001
11101001111001110
10001000000100001
11000011111011110
10001000000100001
1001 0111 1111 1111 0
1000 1000 0001 0000 1
1 1111 1110 1111 1
CRC16 residue table
unsigned int crc_ta[256]={ /* X16+X12+X5+1 */
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485,
0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4,
0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc,
0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823,
0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b,
0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12,
0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a,
0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41,
0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49,
0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70,
0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78,
0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f,
0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067,
0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e,
0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256,
0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d,
0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c,
0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634,
0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab,
0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3,
0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a,
0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92,
0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9,
0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1,
0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8,
0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
};
Ask the subprogram of data segment CRC sign indicating number
(* ptr points to the first byte that sends buffering area, and len is the total bytes that will send)
unsigned int cal_crc(unsigned *ptr,unsigned char len)
{
unsigned int crc;
unsigned int da;
crc=0;
while(len--!=0){
da=(uchar)(crc/256);
crc<<=8;
crc∧=crc_ta[da∧*ptr];
ptr++;
}
return(crc);
}
The data that detonator initiator receives this detonator in this example have six bytes, preceding two bytes are address bits, three nybbles are defer time positions, five or six bytes are CRC sign indicating number positions, when detecting this detonator with special-purpose detonator initiator, the CRC sign indicating number of preceding two bytes (address) that receive is calculated, represent this CRC code value (PASTWORD also is the data of two bytes) with PASTWORD, the data and the PASTWORD that detect the five or six byte that receives when detonator initiator compare, when equal, it is effective that detonator initiator detects the data that receive, the data value of preceding two bytes is allowed effective address for being this detonator, when different, it is invalid that detonator initiator detects the data that receive, and detonator initiator is then ignored this reception value.
Claims (4)
1. one kind is passed through cyclic redundancy check (CRC) code verification electric detonator method for communicating, it is characterized in that: at first in electronic detonator control chip, reserve the CRC sign indicating number that register stores the electric detonator address, the CRC-CCITT multinomial that uses the CRC sign indicating number to generate calculates address CRC check value, and address and the defer time with this CRC check value and detonator is implanted in the register of detonator control chip together then; Same injection CRC-CCITT multinomial is asked the program of CRC sign indicating number in the control chip of detonator initiator, when detecting this detonator with special-purpose detonator initiator, receives the address value that electric detonator is uploaded earlier, receives the CRC check value that it is uploaded again; Special-purpose detonator initiator utilizes the CRC-CCITT multinomial to obtain the program of CRC sign indicating number and calculate corresponding CRC check value according to address value and calculate, when CRC check value that this electric detonator is uploaded equates, think that the address date that this detonator uploads is effective, when different, it is invalid that initiator detects the data that receive, and initiator is then ignored this reception value.
2. according to claim 1 by cyclic redundancy check (CRC) code verification electric detonator method for communicating, it is characterized in that: reserve two registers and store the check value of electric detonator address in electronic detonator control chip, two registers are respectively " CRC word1 " and " CRC word2 ".
3. one kind by cyclic redundancy check (CRC) code verification electric detonator communicating devices, comprises electric detonator (1), its special being: electric detonator (1) is connected with output interface (3) on the special-purpose detonator initiator (2).
4. according to claim 3 a kind of by cyclic redundancy check (CRC) code verification electric detonator communicating devices, its special being: special-purpose detonator initiator (2) is more than 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101069147A CN103188045A (en) | 2011-12-30 | 2012-04-13 | Method and device for examining communication of electronic detonator by cri cyclic redundancy check code |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110454554.5 | 2011-12-30 | ||
CN201110454554 | 2011-12-30 | ||
CN2012101069147A CN103188045A (en) | 2011-12-30 | 2012-04-13 | Method and device for examining communication of electronic detonator by cri cyclic redundancy check code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103188045A true CN103188045A (en) | 2013-07-03 |
Family
ID=48679022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101069147A Pending CN103188045A (en) | 2011-12-30 | 2012-04-13 | Method and device for examining communication of electronic detonator by cri cyclic redundancy check code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103188045A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666597A (en) * | 2020-05-13 | 2020-09-15 | 上海微符尔半导体有限公司 | On-chip storage method and device for electronic detonator chip |
CN114894051A (en) * | 2022-05-19 | 2022-08-12 | 上海芯飏科技有限公司 | Electronic detonator scanning system and method based on CRC (Cyclic redundancy check) code active anti-collision |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201429386Y (en) * | 2009-07-03 | 2010-03-24 | 北京维深数码科技有限公司 | Digital electron exploder priming apparatus with bus interface based on embedded system |
CN201926384U (en) * | 2010-12-28 | 2011-08-10 | 黄友松 | Digital warning interlocked detonator |
CN201935634U (en) * | 2010-12-21 | 2011-08-17 | 贵州久联民爆器材发展股份有限公司 | Device for initiating electronic detonator networking with fixed postponed time |
CN202522150U (en) * | 2011-12-30 | 2012-11-07 | 贵州久联民爆器材发展股份有限公司 | Device for checking communication of electronic detonator through cyclic redundancy check code |
-
2012
- 2012-04-13 CN CN2012101069147A patent/CN103188045A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201429386Y (en) * | 2009-07-03 | 2010-03-24 | 北京维深数码科技有限公司 | Digital electron exploder priming apparatus with bus interface based on embedded system |
CN201935634U (en) * | 2010-12-21 | 2011-08-17 | 贵州久联民爆器材发展股份有限公司 | Device for initiating electronic detonator networking with fixed postponed time |
CN201926384U (en) * | 2010-12-28 | 2011-08-10 | 黄友松 | Digital warning interlocked detonator |
CN202522150U (en) * | 2011-12-30 | 2012-11-07 | 贵州久联民爆器材发展股份有限公司 | Device for checking communication of electronic detonator through cyclic redundancy check code |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666597A (en) * | 2020-05-13 | 2020-09-15 | 上海微符尔半导体有限公司 | On-chip storage method and device for electronic detonator chip |
CN111666597B (en) * | 2020-05-13 | 2021-05-18 | 上海微符尔半导体有限公司 | On-chip storage method and device for electronic detonator chip |
CN114894051A (en) * | 2022-05-19 | 2022-08-12 | 上海芯飏科技有限公司 | Electronic detonator scanning system and method based on CRC (Cyclic redundancy check) code active anti-collision |
CN114894051B (en) * | 2022-05-19 | 2023-11-28 | 上海芯飏科技有限公司 | Electronic detonator scanning system and method based on CRC (cyclic redundancy check) code active anti-collision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0280013B1 (en) | Device for verifying proper operation of a checking code generator | |
JP6050083B2 (en) | Semiconductor device | |
CN108055876A (en) | Double error correction-three error detections (DEB-TED) decoders of low-power | |
CN202522150U (en) | Device for checking communication of electronic detonator through cyclic redundancy check code | |
US20140006841A1 (en) | Clock glitch detection circuit | |
WO2009079175A3 (en) | Self-timed error correcting code evaluation system and method | |
EP2330591B1 (en) | Closed-loop soft error rate sensitivity control | |
US11829241B2 (en) | Serializing and deserializing stage testing | |
CN101901022A (en) | Clock precision adjustment module, method and universal serial bus equipment using same | |
CN103188045A (en) | Method and device for examining communication of electronic detonator by cri cyclic redundancy check code | |
CN209105195U (en) | Circuit | |
Zhang et al. | Design of (15, 11) Hamming code encoding and decoding system based on FPGA | |
CN109492269B (en) | Digital fuze timing circuit verification platform based on UVM | |
US8570182B2 (en) | Server with voltage test system | |
CN203423704U (en) | Communication checking device | |
CN101493804A (en) | Data bus system, coder/decoder thereof and coding/decoding method | |
CN103424185B (en) | The detection system of automatic error correction and method | |
JPH05227041A (en) | One-bit error correcting circuit based upon crc operation | |
JP5589995B2 (en) | Information processing device | |
US11556412B2 (en) | Processing of data | |
Zhang et al. | Design and Implementation of CRC Based on FPGA | |
JP5761944B2 (en) | Error check circuit and error check method | |
CN106330400A (en) | Rapid CRC method and device | |
JP6109090B2 (en) | Serial communication device | |
Wang et al. | The design of parallelized BCH codec |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130703 |