CN106533450B - PMS code compression method and device - Google Patents
PMS code compression method and device Download PDFInfo
- Publication number
- CN106533450B CN106533450B CN201611001908.XA CN201611001908A CN106533450B CN 106533450 B CN106533450 B CN 106533450B CN 201611001908 A CN201611001908 A CN 201611001908A CN 106533450 B CN106533450 B CN 106533450B
- Authority
- CN
- China
- Prior art keywords
- group
- bytes
- byte
- character code
- code value
- 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.)
- Active
Links
- 230000006835 compression Effects 0.000 title claims abstract description 52
- 238000007906 compression Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000005516 engineering process Methods 0.000 abstract description 9
- 230000008569 process Effects 0.000 description 6
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000005684 electric field Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10297—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a kind of PMS code compression method and devices.Wherein, this method comprises: searching the character code value of 16 bytes corresponding to the coding of 16 bytes of electrical equipment according to predictive encoding table;It is stored according to one group of the every 4 bytes character code value by 16 bytes according to each 6 bit of byte, wherein each group of character code value for 24 bits;The character code value of 24 bits in each group is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes.The technical issues of memory capacity and storage format in the region EPC that the coding that the present invention solves electrical equipment in PMS system in the related technology does not meet RFID label tag.
Description
Technical field
The present invention relates to electric fields, in particular to a kind of PMS code compression method and device.
Background technique
Currently, RFID radio-frequency technique can be applied in the information exchanging process of power equipment system, and still, the relevant technologies
In RFID label tag reading area EPC can only store 96 bits, and in PMS system electrical equipment coding be greater than EPC storage
Capacity, and the coded format of electrical equipment does not meet the storage format of EPC yet in PMS system, and therefore, it is necessary to PMS system
The coding of middle electrical equipment carries out conversion compression, can be stored in the region EPC of RFID label tag.
Storage for the region EPC that the coding of electrical equipment in PMS system in the related technology does not meet RFID label tag is held
The problem of amount and storage format, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of PMS code compression method and devices, at least to solve PMS system in the related technology
The technical issues of memory capacity and storage format in the region EPC that the coding of electrical equipment does not meet RFID label tag in system.
According to an aspect of an embodiment of the present invention, a kind of PMS code compression method is provided, comprising: according to delimiting the organizational structure in advance
The character code value of 16 bytes corresponding to the coding of 16 bytes of Codebook Lookup electrical equipment;According to every 4 bytes one
Group stores the character code value of 16 bytes according to each 6 bit of byte, wherein each group of character for 24 bits is compiled
Code value;The character code value of 24 bits in each group is encoded according to each 8 bit of byte, by each group of 4 bytes
It is compressed into each group of 3 bytes
Further, 4 bytes in each group are respectively S1, S2, S3, S4, wherein by 24 bits in each group
Character code value is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes include: meter
Calculate A=S1*643+S2*642+S3*64+S4;The value of A is encoded according to each 8 bit of byte, by each group of 4 bytes
It is compressed into each group of 3 bytes.
Further, the character code value of 24 bits in each group is being encoded according to each 8 bit of byte, it will
After each group of 4 byte-code compressions are at each group of 3 bytes, method further include: by the coding pressure of 16 bytes of electrical equipment
Each byte in 12 bytes shortened into carries out hexadecimal conversion, obtains 24 hexadecimal characters;It is stored in the EPC of RFID
Region stores 24 hexadecimal characters.
Further, after the EPC storage region of RFID stores 24 hexadecimal characters, method further include: from
The EPC storage region of RFID reads 24 hexadecimal characters, and is one group by 24 16 according to every 6 hexadecimal characters
System character is divided into 4 groups;Decimal system conversion is carried out to the hexadecimal character in each group, obtains character code value;According to
Predictive encoding table searches the coding of electrical equipment corresponding to character code value.
Further, in each group hexadecimal character carry out decimal system conversion, obtain character code value include: by
It is calculated according to following formula: T1=T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+
48;T1, T2, T3, T4 are spliced into composition character code value.
According to another aspect of an embodiment of the present invention, a kind of PMS coding compression set is additionally provided, comprising: first searches
Unit, for according to predictive encoding table search electrical equipment 16 bytes coding corresponding to 16 bytes character code
Value;First storage unit, for according to one group of the every 4 bytes character code value by 16 bytes according to each 6 bit of byte
It is stored, wherein each group of character code value for 24 bits;Coding unit, for by the word of 24 bits in each group
Symbol encoded radio is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes.
Further, 4 bytes in each group are respectively S1, S2, S3, S4, wherein coding unit includes: the first meter
Module is calculated, for calculating A=S1*643+S2*642+S3*64+S4;Coding module, for comparing the value of A according to each byte 8
Spy encodes, by each group of 4 byte-code compressions at each group of 3 bytes.
Further, the device further include: the first converting unit, for by the character code of 24 bits in each group
Value is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes after, by electrical equipment
16 bytes 12 bytes that are compressed into of coding in each byte carry out hexadecimal conversion, obtain 24 hexadecimal words
Symbol;Second storage unit stores 24 hexadecimal characters for the EPC storage region in RFID.
Further, the device further include: division unit, for RFID EPC storage region store 24 16 into
After character processed, 24 hexadecimal characters are read from the EPC storage region of RFID, and be according to every 6 hexadecimal characters
24 hexadecimal characters are divided into 4 groups by one group;Second converting unit, for being carried out to the hexadecimal character in each group
Decimal system conversion, obtains character code value;Second searching unit, for being searched corresponding to character code value according to predictive encoding table
Electrical equipment coding.
Further, the second converting unit includes: the second computing module, for being calculated according to following formula: T1=
T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+48;Splicing module, for by T1, T2,
T3, T4 splicing composition character code value.
In embodiments of the present invention, corresponding to the coding by 16 bytes for searching electrical equipment according to predictive encoding table
16 bytes character code value;Compare according to one group of the every 4 bytes character code value by 16 bytes according to each byte 6
Spy stores, wherein each group of character code value for 24 bits;By the character code value of 24 bits in each group according to
Each 8 bit of byte is encoded, and by each group of 4 byte-code compressions at each group of 3 bytes, has been reached the volume of electrical equipment
Code carries out the purpose of compression storage, and then the coding for solving electrical equipment in PMS system in the related technology does not meet RFID mark
The technical issues of memory capacity and storage format in the region EPC of label, improves electrical equipment coding compression efficiency to realize
Technical effect.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of PMS code compression method according to an embodiment of the present invention;And
Fig. 2 is the schematic diagram of PMS coding compression set according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of embodiment of the method for PMS code compression method is provided, it should be noted that
Step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, and
It, in some cases, can be to be different from sequence execution institute herein and although logical order is shown in flow charts
The step of showing or describing.
Fig. 1 is the flow chart of PMS code compression method according to an embodiment of the present invention, as shown in Figure 1, this method includes such as
Lower step:
Step S102 searches 16 bytes corresponding to the coding of 16 bytes of electrical equipment according to predictive encoding table
Character code value;
Step S104 is carried out according to one group of the every 4 bytes character code value by 16 bytes according to each 6 bit of byte
Storage, wherein each group of character code value for 24 bits;
Step S106 encodes the character code value of 24 bits in each group according to each 8 bit of byte, will be every
One group of 4 byte-code compression is at each group of 3 bytes.
Through the above steps, the purpose that the coding of electrical equipment is carried out to compression storage may be implemented, and then solve phase
The coding of electrical equipment does not meet the memory capacity and storage format in the region EPC of RFID label tag in PMS system in the technology of pass
Technical problem, to realize the technical effect for improving electrical equipment coding compression efficiency.
In the scheme that step S102 is provided, the coding of electrical equipment may include 0-9 number and A-Z letter totally 36 words
Symbol, the coding of electrical equipment can be 16 bytes.Predictive encoding table can be set according to actual needs, in the embodiment of the present invention
Predictive encoding table it is as follows:
Table 1
0:0 | 1:1 | 2:2 | 3:3 | 4:4 | 5:5 |
6:6 | 7:7 | 8:8 | 9:9 | A:17 | B:18 |
C:19 | D:20 | E:21 | F:22 | G:23 | H:24 |
I:25 | J:26 | K:27 | L:28 | M:29 | N:30 |
O:31 | P:32 | Q:33 | R:34 | S:35 | T:36 |
U:37 | V:38 | W:39 | X:40 | Y:41 | Z:42 |
Character code value corresponding to the coding of electrical equipment can be inquired using above-mentioned predictive encoding table.
In the scheme that step S104 is provided, the character code value for searching to obtain 16 bytes according to predictive encoding table it
Afterwards, 4 groups can be divided by every one group of 4 bytes of these character code values, and is stored according to each 6 bit of byte, it is each
Group is 24 bits.
In the scheme that step S106 is provided, the character code system of 24 bits in each group is compared according to each byte 8
Spy encodes, and may be implemented 4 byte-code compressions in each group into 3 bytes.Optionally, 4 bytes in each group
Respectively S1, S2, S3, S4, wherein compile the character code value of 24 bits in each group according to each 8 bit of byte
Code, by each group of 4 byte-code compressions at each group of 3 bytes may include: calculate A=S1*643+S2*642+S3*64+S4;It will
The value of A is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes.
As a kind of optionally embodiment, the character code value of 24 bits in each group is being compared according to each byte 8
Spy encodes, by each group of 4 byte-code compressions at each group of 3 bytes after, which can also include: electrically to set
Each byte in 12 bytes that the coding of 16 standby bytes is compressed into carries out hexadecimal conversion, obtains 24 hexadecimals
Character;24 hexadecimal characters are stored in the EPC storage region of RFID.
It should be noted that may be implemented by the above process by 16 byte-code compressions of electrical equipment into 12 bytes,
And then it can store in the EPC storage region of RFID.
For 24 hexadecimal characters stored in the EPC storage region of RFID, the embodiment of the invention also provides one
Kind coding/decoding method, specifically can be described as:
After the EPC storage region of RFID stores 24 hexadecimal characters, 24 are read from the EPC storage region of RFID
A hexadecimal character, and be one group according to every 6 hexadecimal characters and 24 hexadecimal characters are divided into 4 groups;To every
Hexadecimal character in one group carries out decimal system conversion, obtains character code value;Character code is searched according to predictive encoding table
The coding of the corresponding electrical equipment of value.
Wherein, in each group hexadecimal character carry out decimal system conversion, obtain character code value may include: by
It is calculated according to following formula: T1=T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+
48;T1, T2, T3, T4 are spliced into composition character code value.
It should be noted that 24 16 stored in the EPC storage region to RFID may be implemented by the above process
System character is decoded, and then achievees the purpose that the coding for restoring electrical equipment.
The present invention also provides a kind of preferred embodiments, provide a kind of PMS coding compression side in the preferred embodiment
The program is described in detail below in case:
RFID radio-frequency technique is in the application of power equipment system in information exchanging process, the electrical equipment information content and information
The selection of format formulates and preliminary specification is arranged.
Electrical equipment PMS encoded information is compressed, solves RFID radio-frequency technique in power equipment systematic difference,
Carrier RFID label tag storage format needed for being interacted between PMS electrical equipment and Mobile portable formula equipment and content encoding format system
It is fixed.
Device coding includes total 36 characters of A-Z letter of 0-9 number and capitalization, it is possible to using 6 bits to every
A character is substituted, to realize the compression to device coding.
Specific coding table is as follows:
Coding mode specifically: for each character of the device coding of input, corresponding character code is inquired in upper table
It is worth (Si), then every four character code values are divided into one group of A (S1S2S3S4), then it is calculated as follows:
A=S1*643+S2*642+S3*64+S4;
Resulting value meets 0 < A < 16777216 (2563), therefore A value can use 3 bytes and directly be encoded, so
It realizes and stores 4 device coding character compressions in 3 bytes.Each group device coding is successively pressed according to the above method
Contracting, therefore 16 device coding character compressions can be stored in 12 bytes, and then realize and stored in 96 EPC of RFID
The purpose of PMS device coding.
The each byte for the data compressed is subjected to hexadecimal code, the region EPC of RFID is arrived in storage.
Decompression mode specifically: the data read from the region EPC of RFID are 24 hexadecimal characters;It will be wherein every
6 hexadecimal numbers are divided into one group of data (Ti), and totally four groups, every group of hexadecimal data is converted to decimal data;
Then it is calculated as follows:
T1=T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+48;
Then this group of data are spliced, gained T=T1T2T3T4;Finally successively four groups of hexadecimal datas are turned
It changes.By obtained character string by 2 control character code table intermediate values, final decoding is completed.
According to embodiments of the present invention, a kind of Installation practice of PMS coding compression set is additionally provided, needs to illustrate
It is that PMS coding compression set can be used for executing the PMS code compression method in the embodiment of the present invention, the embodiment of the present invention
In PMS code compression method can the PMS encode compression set in execute.
Fig. 2 is the schematic diagram of PMS coding compression set according to an embodiment of the present invention, as shown in Fig. 2, the device can wrap
It includes:
First searching unit 22, for according to predictive encoding table search electrical equipment 16 bytes coding corresponding to
The character code value of 16 bytes;First storage unit 24, for according to every one group of 4 bytes character code by 16 bytes
Value is stored according to each 6 bit of byte, wherein each group of character code value for 24 bits;Coding unit 26, being used for will
The character code value of 24 bits in each group is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at every
One group of 3 byte.
It should be noted that the first searching unit 22 in the embodiment can be used for executing the step in the embodiment of the present application
Rapid S102, the first storage unit 24 in the embodiment can be used for executing the step S104 in the embodiment of the present application, the implementation
Coding unit 26 in example can be used for executing the step S106 in the embodiment of the present application.Above-mentioned module and corresponding step institute are real
Existing example is identical with application scenarios, but is not limited to the above embodiments disclosure of that.
Optionally, 4 bytes in each group are respectively S1, S2, S3, S4, wherein coding unit includes: the first calculating
Module, for calculating A=S1*643+S2*642+S3*64+S4;Coding module, for by the value of A according to each 8 bit of byte
It is encoded, by each group of 4 byte-code compressions at each group of 3 bytes.
Optionally, which can also include: the first converting unit, for compiling by the character of 24 bits in each group
Code value is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes after, will electrically set
Each byte in 12 bytes that the coding of 16 standby bytes is compressed into carries out hexadecimal conversion, obtains 24 hexadecimals
Character;Second storage unit stores 24 hexadecimal characters for the EPC storage region in RFID.
Optionally, which can also include: division unit, store 24 16 for the EPC storage region in RFID
After system character, 24 hexadecimal characters are read from the EPC storage region of RFID, and according to every 6 hexadecimal characters
24 hexadecimal characters are divided into 4 groups for one group;Second converting unit, for the hexadecimal character in each group into
The conversion of the row decimal system, obtains character code value;Second searching unit is right for searching character code value institute according to predictive encoding table
The coding for the electrical equipment answered.
Optionally, the second converting unit includes: the second computing module, for being calculated according to following formula: T1=
T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+48;Splicing module, for by T1, T2,
T3, T4 splicing composition character code value.
By above-mentioned module, the purpose that the coding of electrical equipment is carried out to compression storage may be implemented, and then solve phase
The coding of electrical equipment does not meet the memory capacity and storage format in the region EPC of RFID label tag in PMS system in the technology of pass
Technical problem, to realize the technical effect for improving electrical equipment coding compression efficiency.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of PMS code compression method characterized by comprising
The character code value of 16 bytes corresponding to the coding of 16 bytes of electrical equipment is searched according to predictive encoding table;
It is stored according to one group of the every 4 bytes character code value by 16 bytes according to each 6 bit of byte,
In, each group of character code value for 24 bits;
The character code value of 24 bits in each group is encoded according to each 8 bit of byte, by each group of 4 byte pressures
Shorten each group of 3 bytes into;
Wherein, 4 bytes in each group are respectively S1, S2, S3, S4, wherein the character by 24 bits in each group
Encoded radio is encoded according to each 8 bit of byte, includes: at each group of 3 bytes by each group of 4 byte-code compressions
Calculate A=S1*643+S2*642+S3*64+S4;
The value of A is encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes.
2. the method according to claim 1, wherein in the character code value by 24 bits in each group
Encoded according to each 8 bit of byte, by each group of 4 byte-code compressions at each group of 3 bytes after, the method is also wrapped
It includes:
Each byte in 12 bytes that the coding of 16 bytes of the electrical equipment is compressed into carries out hexadecimal conversion,
Obtain 24 hexadecimal characters;
24 hexadecimal characters are stored in the EPC storage region of RFID.
3. according to the method described in claim 2, it is characterized in that, the EPC storage region in the RFID stores described 24
After hexadecimal character, the method also includes:
24 hexadecimal characters are read from the EPC storage region of the RFID, and are according to every 6 hexadecimal characters
24 hexadecimal characters are divided into 4 groups by one group;
Decimal system conversion is carried out to the hexadecimal character in each group, obtains the character code value;
The coding of electrical equipment corresponding to the character code value is searched according to the predictive encoding table.
4. according to the method described in claim 3, it is characterized in that, the hexadecimal character in each group carry out ten into
System conversion, obtaining the character code value includes:
It is calculated according to following formula:
T1=T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+48;
T1, T2, T3, T4 splicing are formed into the character code value.
5. a kind of PMS encodes compression set characterized by comprising
First searching unit, for according to predictive encoding table search electrical equipment 16 bytes coding corresponding to 16 words
The character code value of section;
First storage unit, for according to one group of the every 4 bytes character code value by 16 bytes according to each byte 6
Bit is stored, wherein each group of character code value for 24 bits;
Coding unit will be every for encoding the character code value of 24 bits in each group according to each 8 bit of byte
One group of 4 byte-code compression is at each group of 3 bytes;
Wherein, 4 bytes in each group are respectively S1, S2, S3, S4, wherein the coding unit includes:
First computing module, for calculating A=S1*643+S2*642+S3*64+S4;
Coding module, for encoding the value of A according to each 8 bit of byte, by each group of 4 byte-code compressions at each
3 bytes of group.
6. device according to claim 5, which is characterized in that described device further include:
First converting unit, for the character code value by 24 bits in each group according to each 8 bit of byte into
Row coding, by each group of 4 byte-code compressions at each group of 3 bytes after, by the coding of 16 bytes of the electrical equipment
Each byte in 12 bytes being compressed into carries out hexadecimal conversion, obtains 24 hexadecimal characters;
Second storage unit stores 24 hexadecimal characters for the EPC storage region in RFID.
7. device according to claim 6, which is characterized in that described device further include:
Division unit, for after the EPC storage region of the RFID stores 24 hexadecimal characters, from described
The EPC storage region of RFID reads 24 hexadecimal characters, and will be described for one group according to every 6 hexadecimal characters
24 hexadecimal characters are divided into 4 groups;
Second converting unit obtains the character code for carrying out decimal system conversion to the hexadecimal character in each group
Value;
Second searching unit, for searching the volume of electrical equipment corresponding to the character code value according to the predictive encoding table
Code.
8. device according to claim 7, which is characterized in that second converting unit includes:
Second computing module, for being calculated according to following formula:
T1=T1%64+48;T2=T2%64-3+48;T3=T2%64-5+48;T4=T2%64-7+48;
Splicing module, for T1, T2, T3, T4 splicing to be formed the character code value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611001908.XA CN106533450B (en) | 2016-11-14 | 2016-11-14 | PMS code compression method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611001908.XA CN106533450B (en) | 2016-11-14 | 2016-11-14 | PMS code compression method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106533450A CN106533450A (en) | 2017-03-22 |
CN106533450B true CN106533450B (en) | 2019-05-24 |
Family
ID=58351944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611001908.XA Active CN106533450B (en) | 2016-11-14 | 2016-11-14 | PMS code compression method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106533450B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110942127B (en) * | 2019-11-26 | 2021-09-10 | 苏州长光华医生物医学工程有限公司 | Method, system and storage medium for encrypting reagent two-dimensional code information of medical instrument |
CN112200286B (en) * | 2020-08-25 | 2023-10-03 | 中国物品编码中心 | Character string coding method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101908176A (en) * | 2010-08-02 | 2010-12-08 | 国电南瑞科技股份有限公司 | Method for modeling on basis of power information data and applying metadata management |
CN101984382A (en) * | 2010-10-15 | 2011-03-09 | 重庆市电力公司超高压局 | Method for intelligently inspection substation equipment by using robot |
CN102355063A (en) * | 2011-10-27 | 2012-02-15 | 广东省电力设计研究院 | Power equipment monitoring system |
CN102508824A (en) * | 2011-09-29 | 2012-06-20 | 苏州大学 | Compression coding and decoding method and device for microblog information |
CN103618554A (en) * | 2013-12-01 | 2014-03-05 | 西安电子科技大学 | Internal storage page compression method based on dictionary |
CN103702071A (en) * | 2013-12-11 | 2014-04-02 | 国家电网公司 | Transformer substation equipment video monitoring method based on RFID (Radio Frequency Identification) technique |
CN104281862A (en) * | 2014-10-10 | 2015-01-14 | 国家电网公司 | Segmented continuous writing and protecting method of ultrahigh frequency RFID memory zone |
CN105787089A (en) * | 2016-03-15 | 2016-07-20 | 国家电网公司 | Power distribution network scheduling foundation data integrating method |
CN105868194A (en) * | 2015-01-19 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Methods and devices for text data compression and decompression |
-
2016
- 2016-11-14 CN CN201611001908.XA patent/CN106533450B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101908176A (en) * | 2010-08-02 | 2010-12-08 | 国电南瑞科技股份有限公司 | Method for modeling on basis of power information data and applying metadata management |
CN101984382A (en) * | 2010-10-15 | 2011-03-09 | 重庆市电力公司超高压局 | Method for intelligently inspection substation equipment by using robot |
CN102508824A (en) * | 2011-09-29 | 2012-06-20 | 苏州大学 | Compression coding and decoding method and device for microblog information |
CN102355063A (en) * | 2011-10-27 | 2012-02-15 | 广东省电力设计研究院 | Power equipment monitoring system |
CN103618554A (en) * | 2013-12-01 | 2014-03-05 | 西安电子科技大学 | Internal storage page compression method based on dictionary |
CN103702071A (en) * | 2013-12-11 | 2014-04-02 | 国家电网公司 | Transformer substation equipment video monitoring method based on RFID (Radio Frequency Identification) technique |
CN104281862A (en) * | 2014-10-10 | 2015-01-14 | 国家电网公司 | Segmented continuous writing and protecting method of ultrahigh frequency RFID memory zone |
CN105868194A (en) * | 2015-01-19 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Methods and devices for text data compression and decompression |
CN105787089A (en) * | 2016-03-15 | 2016-07-20 | 国家电网公司 | Power distribution network scheduling foundation data integrating method |
Non-Patent Citations (2)
Title |
---|
"RFID路径数据编码压缩存储技术研究";伏楠等;《兰州交通大学学报》;20130228;第32卷(第1期);第82页到第87页 |
"超高频RFID标签压缩算法的实现与应用研究——以条码压缩为例";曲建峰等;《现代图书情报技术》;20130325;第83页到第87页 |
Also Published As
Publication number | Publication date |
---|---|
CN106533450A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108920457B (en) | Address recognition method and device and storage medium | |
CN101989443B (en) | For the multi-mode encoding of data compression | |
CN100576753C (en) | The system and method for static Huffman decoding | |
CN104301737B (en) | The coding/decoding method of target image block and coding method and decoder and encoder | |
CN102831001B (en) | The upgrade method of the method for making of software upgrade package and device, program and equipment | |
CN102750268A (en) | Object serializing method as well as object de-serializing method, device and system | |
CN105450232A (en) | Encoding method, decoding method, encoding device and decoding device | |
US7650040B2 (en) | Method, apparatus and system for data block rearrangement for LZ data compression | |
CN110445860A (en) | A kind of file transmitting method, device, terminal device and storage medium | |
CN110019865A (en) | Mass picture processing method, device, electronic equipment and storage medium | |
CN108121565B (en) | Method, device and system for generating instruction set code | |
CN106533450B (en) | PMS code compression method and device | |
CN104915698B (en) | Chemical producting safety information quick search and complete period tracking digital labelling system | |
CN103078646A (en) | Dictionary lookup compression and decompression method and device | |
CN113505273B (en) | Data sorting method, device, equipment and medium based on repeated data screening | |
CN104133883B (en) | Telephone number ownership place data compression method | |
JP5362592B2 (en) | Optimal selection of compression entries for compression of program instructions | |
CN107911570A (en) | A kind of method for being compressed and decompressing to picture feature | |
CN110266834B (en) | Area searching method and device based on internet protocol address | |
CN108092670B (en) | Coding method and device | |
CN113761917A (en) | Named entity identification method and device | |
CN109104198A (en) | A kind of data compression method, decompressing method, device and electronic equipment | |
CN109474826A (en) | Picture compression method, apparatus, electronic equipment and storage medium | |
EP2245743B1 (en) | Methods for compressing and decompressing mifare applications | |
CN103138766A (en) | Method and device of compression and decompression of data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |