CN111854548A - UID code feature extraction method for electronic detonator - Google Patents
UID code feature extraction method for electronic detonator Download PDFInfo
- Publication number
- CN111854548A CN111854548A CN202010763018.2A CN202010763018A CN111854548A CN 111854548 A CN111854548 A CN 111854548A CN 202010763018 A CN202010763018 A CN 202010763018A CN 111854548 A CN111854548 A CN 111854548A
- Authority
- CN
- China
- Prior art keywords
- uid
- code
- electronic detonator
- extracting
- serial number
- 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
- 238000000605 extraction Methods 0.000 title claims abstract description 7
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000004891 communication Methods 0.000 abstract description 9
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 abstract description 2
- 239000000284 extract Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005422 blasting Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F42—AMMUNITION; BLASTING
- F42C—AMMUNITION FUZES; ARMING OR SAFETY MEANS THEREFOR
- F42C19/00—Details of fuzes
- F42C19/08—Primers; Detonators
- F42C19/12—Primers; Detonators electric
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Recording Measured Values (AREA)
Abstract
The invention provides a method for extracting UID code characteristics of an electronic detonator, belonging to the technical field of UID code processing of electronic detonators. The extraction method comprises the following steps: respectively extracting a feature code, a year, a month, a date and a serial number in the UID code of the electronic detonator; storing the feature codes separately; combining the years and months and then storing the combined years and months separately; and combining the date and the serial number into a group of data, converting the data into an integer, and then independently storing the integer. According to the method for extracting the UID code characteristics of the electronic detonator, the characteristic codes in the UID code of the electronic detonator are independently stored, the characteristic codes are independently stored after being combined in year and month, the date and the serial number are combined into a group of data, the group of data is converted into an integer and then is independently stored, so that the UID code of the electronic detonator is compressed, the number of data transmission is reduced, the anti-interference capacity of communication is improved, the power is reduced, the program and the decryption time are optimized, and the method has popularization and application values in the using process of the electronic detonator.
Description
Technical Field
The invention belongs to the technical field of electronic detonator UID code processing, and particularly relates to a method for extracting characteristics of an electronic detonator UID code.
Background
In the using process, the electronic detonators are connected to the initiation bus after being connected with a multi-detonator assembly network. In order to distinguish the electronic detonators, each electronic detonator has a unique UID code. According to the specification of the UID code design in GA 1531 and 2018 information management general rules of industrial electronic detonators and UID code coding and initiator coding specification, the number of UID code characters is required to be not less than 13.
The field communication needs to carry out point-to-point communication on the detonator, and the UID code is used as the communication characteristic of the electronic detonator, so that the defects of large number of communication bytes, long communication time and the like exist. Meanwhile, the electronic detonator is used in a severe environment, the probability of interference can be greatly improved when the data communication signal is exposed in an interference environment, and the overall power consumption is not reduced.
In addition, according to the encoding specification, each UID code has a fixed special field. And in field use, electronic detonators of detonator manufacturers used by blasting companies all use specific detonators.
Disclosure of Invention
In view of this, the present invention provides a method for extracting UID code characteristics of an electronic detonator.
Through research, the invention adopts the following technical scheme:
a UID code feature extraction method for an electronic detonator comprises the following steps:
respectively extracting a feature code, a year, a month, a date and a serial number in the UID code of the electronic detonator;
storing the feature codes separately;
combining the years and months together for separate storage;
and combining and converting the date and the serial number, and then storing the dates and the serial number separately.
Preferably, the feature code is stored by 1 byte.
Preferably, the year and month are stored using 1 byte.
Preferably, the year is stored in the upper 4 bits of the byte and the month is stored in the lower 4 bits of the byte.
Preferably, the year and month are combined into hexadecimal data and then stored with 1 byte.
Preferably, the specific manner of combining and converting the date and the serial number is that the date and the serial number are combined into a group of data, and after the group of data is converted into an integer, the data is stored by using 3 bytes.
Preferably, the specific operation of combining the date and the serial number into a group of data is to splice the date and the serial number into a character string directly from head to tail.
Preferably, the spliced character string is converted into a hexadecimal integer.
Preferably, the value converted to an integer is less than 1 million.
The invention has the beneficial effects that:
the invention relates to a method for extracting the UID code characteristics of an electronic detonator, which extracts the characteristic code, year, month, date and serial number in the UID code of the electronic detonator, then respectively and independently stores the characteristic code, the year and month are combined and then independently stored, the date and the serial number are combined into a group of data, and the group of data is converted into an integer and then independently stored, thereby compressing the UID code of the electronic detonator, so as to compress the number of data transmission, improve the anti-interference capability of communication, reduce power, optimize program and decryption time, and have popularization and application values in the using process of the electronic detonator.
Drawings
Fig. 1 is a schematic flow diagram of the method for extracting the UID code characteristic of the electronic detonator according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
A UID code feature extraction method for an electronic detonator comprises the following steps:
respectively extracting a feature code, a year, a month, a date and a serial number in the UID code of the electronic detonator;
storing the feature codes by adopting 1 byte;
the years and the months are combined together to be stored separately, in particular, after the years and the months are combined into hexadecimal data, the data are stored by 1 byte,
the specific mode of combining and converting the date and the serial number is that the date and the serial number are directly spliced into a group of data end to end, and the data are converted into a hexadecimal integer and then stored by adopting 3 bytes, namely, the UID code is compressed into 5 bytes for storage.
The UID code of the electronic detonator adopts ASCII code, one character adopts one byte for storage, and the UID feature extraction method is as follows: the digital portion in the UID is converted to integer data. The integer data described later is described in hexadecimal (0 x).
For example, the UID code of an electronic detonator is: 581900330A 00112.
In the UID code (1), the character 'A' represents the characteristic code of the UID and is stored by one byte, namely 0x41 in hexadecimal; (2) in the UID code, a character string '19' represents a date, '03' represents a month, then a single digit '9' and the month '03' of a year are extracted and combined into hexadecimal data 0x93 which is stored by a byte; (3) in the UID code, a character string "30" indicates a date, and "00112" indicates a serial number, two character strings are spliced end to form "3000112", and then converted into hexadecimal integer data 0x2DC730, which is stored in three bytes. Finally, the UID code is compressed into 5 bytes for storage, that is, a [5] ═ {0x41,0x93,0x2D,0xC7,0x30 }.
In summary, the method for extracting the characteristics of the electronic detonator UID code extracts the characteristic code, the year, the month, the date and the serial number in the electronic detonator UID code, then respectively stores the characteristic code by using 1 byte, stores the characteristic code by using 1 byte in the year and the month, combines the date and the serial number into a group of data, converts the group of data into an integer and stores the integer by using 3 bytes, so that the electronic detonator UID code is compressed into 5 bytes, the quantity of data transmission is compressed, the anti-interference capability of communication is improved, the power is reduced, the program and decryption time are optimized, and the method has popularization and application values in the use process of the electronic detonator.
It should be understood that the above description is only a preferred embodiment of the present invention, and not intended to limit the present invention, and although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications and equivalents may be made in the technical solutions described in the foregoing embodiments, or some technical features may be substituted. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A UID code feature extraction method for an electronic detonator is characterized by comprising the following steps:
respectively extracting a feature code, a year, a month, a date and a serial number in the UID code of the electronic detonator;
storing the feature codes separately;
combining the years and months together for separate storage;
and combining and converting the date and the serial number, and then storing the dates and the serial number separately.
2. The method for extracting UID (device identifier) code features of the electronic detonator according to claim 1, wherein the feature code is stored by 1 byte.
3. The method for extracting UID code characteristics of electronic detonators according to claim 1, wherein the year and month are combined and stored by 1 byte.
4. The method for extracting UID code characteristics of electronic detonators according to claim 3, wherein the year is stored in the upper 4 bits of the byte and the month is stored in the lower 4 bits of the byte.
5. The method for extracting UID code characteristics of electronic detonators according to claim 4, wherein the year and month are combined into hexadecimal data and then stored with 1 byte.
6. The method for extracting UID (device identifier) code features of the electronic detonator according to claim 1, wherein the date and serial number are combined and converted in a way that the date and serial number are combined into a group of data, and the group of data is converted into an integer and then stored by using 3 bytes.
7. The method for extracting UID (user identification) code features of the electronic detonator according to claim 6, wherein the specific operation of combining the date and the serial number into a group of data is to splice the date and the serial number into a character string directly from head to tail.
8. The method for extracting UID code characteristics of electronic detonators according to claim 7, wherein the spliced character string is converted into a hexadecimal integer.
9. The method for extracting UID code characteristics of electronic detonators of claim 8, wherein the value converted to an integer is less than 1 million.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010763018.2A CN111854548A (en) | 2020-07-31 | 2020-07-31 | UID code feature extraction method for electronic detonator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010763018.2A CN111854548A (en) | 2020-07-31 | 2020-07-31 | UID code feature extraction method for electronic detonator |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111854548A true CN111854548A (en) | 2020-10-30 |
Family
ID=72952512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010763018.2A Pending CN111854548A (en) | 2020-07-31 | 2020-07-31 | UID code feature extraction method for electronic detonator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111854548A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112696995A (en) * | 2020-12-04 | 2021-04-23 | 上海微符尔半导体有限公司 | Electronic detonator network quick addressing method and device and electronic detonator system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4626829A (en) * | 1985-08-19 | 1986-12-02 | Intelligent Storage Inc. | Data compression using run length encoding and statistical encoding |
US5557935A (en) * | 1995-05-23 | 1996-09-24 | Kelsey-Hayes Company | Apply-rate-independent fast-fill master cylinder |
US20040233077A1 (en) * | 2003-05-22 | 2004-11-25 | Toyota Jidosha Kabushiki Kaisha | Vehicle identification code storing device and method for storing vehicle identification code |
CN108196937A (en) * | 2017-12-26 | 2018-06-22 | 金蝶软件(中国)有限公司 | Processing method, device, computer equipment and the storage medium of string |
CN109696097A (en) * | 2019-02-16 | 2019-04-30 | 华夏世昌(北京)科技有限公司 | Digital electric detonator chip and control method based on dual-wire bus |
CN110210588A (en) * | 2019-06-03 | 2019-09-06 | 北京宏诚创新科技有限公司 | A kind of data memory format of blood information, parsing method and system |
-
2020
- 2020-07-31 CN CN202010763018.2A patent/CN111854548A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4626829A (en) * | 1985-08-19 | 1986-12-02 | Intelligent Storage Inc. | Data compression using run length encoding and statistical encoding |
US5557935A (en) * | 1995-05-23 | 1996-09-24 | Kelsey-Hayes Company | Apply-rate-independent fast-fill master cylinder |
US20040233077A1 (en) * | 2003-05-22 | 2004-11-25 | Toyota Jidosha Kabushiki Kaisha | Vehicle identification code storing device and method for storing vehicle identification code |
CN108196937A (en) * | 2017-12-26 | 2018-06-22 | 金蝶软件(中国)有限公司 | Processing method, device, computer equipment and the storage medium of string |
CN109696097A (en) * | 2019-02-16 | 2019-04-30 | 华夏世昌(北京)科技有限公司 | Digital electric detonator chip and control method based on dual-wire bus |
CN110210588A (en) * | 2019-06-03 | 2019-09-06 | 北京宏诚创新科技有限公司 | A kind of data memory format of blood information, parsing method and system |
Non-Patent Citations (1)
Title |
---|
郭豪: "雷管编码规则与技术探讨", 《采矿技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112696995A (en) * | 2020-12-04 | 2021-04-23 | 上海微符尔半导体有限公司 | Electronic detonator network quick addressing method and device and electronic detonator system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011007956A2 (en) | Data compression method | |
CN102118293B (en) | Method for compressing and storing communication messages | |
CN101558405B (en) | Migration apparatus which convert database of mainframe system into database of open system and method for thereof | |
CN107561564A (en) | A kind of compression implementation method of big-dipper satellite information transfer | |
CN103236847A (en) | Multilayer Hash structure and run coding-based lossless compression method for data | |
CN111854548A (en) | UID code feature extraction method for electronic detonator | |
Nandi et al. | A compression technique based on optimality of LZW code (OLZW) | |
CN116016606B (en) | Sewage treatment operation and maintenance data efficient management system based on intelligent cloud | |
CN107861724B (en) | Scripted coding method for fast adapting DLMS/COSEM object | |
CN101754155B (en) | Call bill format conversion method and device and call bill processing method and system | |
CN103618554B (en) | Memory pages compression method based on dictionary | |
CN110912563A (en) | Data compression optimization method for power battery | |
CN110839022A (en) | Vehicle-mounted control software communication protocol analysis method based on xml language | |
CN114025024B (en) | Data transmission method and device | |
KR100494876B1 (en) | Data compression method for multi-byte character language | |
CN115718676A (en) | Method and system for recovering electronic data of GoIP equipment | |
CN101707588A (en) | Method and device for processing messages on basis of rule set | |
CN114024952A (en) | File compression transmission method based on DL/T698.45-2007 protocol | |
CN103716127A (en) | TTCN-3 based compression coding and decoding method and system | |
CN111858391A (en) | Method for optimizing compressed storage format in data processing process | |
Shanmugasundaram et al. | Text preprocessing using enhanced intelligent dictionary based encoding (EIDBE) | |
CN112214461A (en) | Fuzzy XML (extensive markup language) compression method for remote sensing metadata | |
EP0871294B1 (en) | Method and apparatus for compression and decompression of data | |
CN110323722A (en) | A kind of cross-iteration method of relay protection information identification | |
CN113923262B (en) | Data communication real-time dynamic compression method based on cache |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201030 |
|
RJ01 | Rejection of invention patent application after publication |