CN106297264A - The coded method of the multiple ultra-red order of a kind of compatibility and system - Google Patents
The coded method of the multiple ultra-red order of a kind of compatibility and system Download PDFInfo
- Publication number
- CN106297264A CN106297264A CN201610783006.XA CN201610783006A CN106297264A CN 106297264 A CN106297264 A CN 106297264A CN 201610783006 A CN201610783006 A CN 201610783006A CN 106297264 A CN106297264 A CN 106297264A
- Authority
- CN
- China
- Prior art keywords
- ultra
- level
- red order
- coding
- data
- 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
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Communication System (AREA)
Abstract
The invention belongs to infrared technique field, particularly with regard to coded method and the system of the multiple ultra-red order of a kind of compatibility.Coding system receives ultra-red order information, by analyzing the level duration in ultra-red order information and the different manufacturers definition to logic level, encapsulate again after different level section is encoded, form complete Data Transport Protocol and transmission data, before storage infrared coding, the verification of infrared coding be ensure that the accuracy of infrared coding.The coded method of the multiple ultra-red order of compatibility of offer of the present invention is by receiving different types of ultra-red order, then according to different coding rules, formed coding information, the method can compatible multiple ultra-red order, expanded the limitation of existing infrared coding method;The coding system of the multiple ultra-red order of compatibility provided by the present invention can the ultra-red order of compatible number of different types, simplify the operation complexity of user, improve efficiency.
Description
Technical field
The invention belongs to infrared technique field, particularly with regard to the coded method of the multiple ultra-red order of a kind of compatibility and be
System.
Background technology
Along with increasing of electrical equipment kind, control different electrical equipment by different IR remote controllers, use multiple remote controller
Can be the heaviest complicated with operation, especially in same regional extent, different types of IR remote controller is easy to obscure,
The most unnecessary trouble is brought to user.The infrared coding form of the most each producer independence, has the biggest use to limit to
Property, applicable narrow range.
Summary of the invention
It is an object of the invention to, in order to overcome problems of the prior art, it is provided that a kind of compatible multiple infrared finger
The coded method of order.
To this end, the present invention is attained in that by the following technical solutions
The coded method of the multiple ultra-red order of a kind of compatibility, comprises the following steps:
Step 1: receive the ultra-red order information that infrared spectrum analyser sends;Ultra-red order through infrared spectrum analyser detection analyze after,
Relevant ultra-red order information is sent to coding system.
Step 2: build bit conversion protocols;Described bit conversion protocols is to analyze in ultra-red order logic ' 0 '
With the method for expressing of logic ' 1 ', coding system is after receiving ultra-red order information, by analyzing in ultra-red order logic
' 0 ' and the method for expressing of logic ' 1 ', obtain the persistent period of low and high level, determine the structure principle of bit conversion protocols.
Step 3: build and guide level section;The ultra-red order information that coding system is received by parsing, obtains this infrared
Instruction guides the persistent period of level, first determines whether whether the persistent period guiding level is 4 figure places, if less than 4,
High-order in its correspondence mends 0, and then the persistent period guiding level be expressed as 16 systems, is finally an electricity with two bytes
Flat, form all of level, and all of level is connected in series formation guiding level section.
Step 4: level section is carried out little endian mode conversion;Communication pattern between high in the clouds and equipment end is different, therefore needs
The communication pattern of equipment end is converted into little endian mode, the guiding level section data obtained in step 3 are changed into small end mould
Formula, then adds flag bit and total byte length in the stem guiding level section, forms complete level section.
Step 5: build and guide level-cell;Guide the transmission of level information for convenience, need to guide electricity by all of
Flat section is connected in series, and then adds the number of guiding level section in stem, forms complete guiding level-cell.
Step 6: build special level-cell;Multiple special level section constitute special level-cell, the special electricity of the present invention
Flat section includes logic ' 0 ' level section and logic ' 1 ' level section, regular according to the structure guiding level section, obtains logic ' 0 ' level
Both are connected in series by section and the level section of logic ' 1 ', then add the number of special level section in stem, are formed complete
Special level-cell.
Step 7: build host-host protocol;Host-host protocol is formed by special level-cell, guiding level-cell concatenation, then exists
Stem adds the Universal Number ' 00 ' of this agreement, forms complete host-host protocol.
Step 8: build data cell;Data cell is made up of multiple data segments, each bit table in data segment
Showing logic ' 0 ' or logic ' 1 ', be a byte according to the minimum unit of transmission, i.e. 8 bits, therefore by data segment with 8
Bit is a unit, is packaged into multiple byte, is not the integral multiple of 8 for bit figure place, before data highest order
Mend ' 0 ', all of byte is connected in series, then add number and the total length of byte of benefit ' 0 ' in stem, form data
Section, is connected in series all of data segment, adds the total number of data segment in stem, completes complete data cell.
Step 9: the data check after coding is judged;By the special level-cell after coding, guide level-cell sum
According to unit, parse the data of correspondence according to the inverse process of ultra-red order coding encapsulation, then carry out with corresponding initial data
Different verification computings, if complete verification is correct, performs step 10, otherwise performs step 2.
Step 10: storage ultra-red order coding;Encoded ultra-red order is stored in data base.
In described step 1, described ultra-red order can be the ultra-red order of different manufacturers, it is also possible to be same producer not
Same ultra-red order;It is to gather the persistent period of level in ultra-red order that ultra-red order is analyzed detection by described infrared spectrum analyser.
In described step 2, different manufacturers is different with the definition of the level duration of logic ' 1 ' level to logic ' 0 ' level.
In described step 3, described guiding level plays guiding function in ultra-red order, is normally at the head of ultra-red order
Portion, centre and afterbody, and guide persistent period of level the most long, it is easier to known by infrared spectrum analyser detection and equipment
Not.
In described step 4, described is the process facilitating high in the clouds to infrared coding by guiding level section to be converted into little endian mode.
Described flag bit is to indicate the beginning guiding level section, and flag bit can be any special symbol, as long as can district
The not coding of level duration in ultra-red order, the acquiescence that the present invention provides guides level flag position to be ' 0B '.Institute
State total byte length byte total length including flag bit.
In described step 5, described guiding level section concatenates, and is to depend on according to ultra-red order information order from a high position to low level
Secondary concatenation.
In described step 6, the structure of described special level-cell be in order to follow-up ultra-red order coding called after, resolve
Used in the persistent period of logic level.
In described step 8, the described number adding benefit ' 0 ' in stem, even if the not highest at the initial data of data segment
Position adds ' 0 ', and character string ' 00 ' also to be added to the stem of data segment;The total length of described byte comprises and with the addition of benefit
' 0 ' number is at interior byte total length.
In described step 9, described verification, is that the information after infrared coding is carried out resolving inversely.Through resolving, to obtaining
The persistent period guiding level duration and initial data carry out subtracting computing, if zero, then verification is correct;To obtain
Special level duration, i.e. logic ' 0 ' level duration and logic ' 1 ' level duration, if the persistent period is in factory
Within the scope of family's definition, then verification is correct;The data segment contents obtained and data segment initial data are carried out logic XOR fortune
Calculating, if zero, then verification is correct.
Further, according to the feature of ultra-red order, and ultra-red order coding transmission and the convenience of parsing, this agreement is advised
Fixed, data segment number is minimum is 1, more than data segment number one of the number of level section.
For the ultra-red order directly started with data segment, the imaginary persistent period is one high and one low two level of 0 and adds
It is added in stem.The ultra-red order terminated with data segment for afterbody, is the imaginary persistent period be 0 one high and one low two equally
Level is added in afterbody.
Data segment portion must be continuous print, and centre can not be cut off by any non-zero or non-1 low and high level, otherwise just should
This is considered two data segments.
Especially, the expression of flag bit, length and data segment is the conversion needing not move through big small end.
It is another object of the present invention to provide the coding system of the multiple ultra-red order of a kind of compatibility.
To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
A kind of coding system of the multiple ultra-red order of compatibility, described coding system includes:
-ultra-red order receiver module, described ultra-red order receiver module is for receiving the infrared of ultra-red order analyser transmission
Command information;
-ultra-red order parsing module, described ultra-red order parsing module is infrared for receive ultra-red order receiver module
Command information carries out resolving and obtains persistent period of varying level and different manufacturers to logical zero and the definition of logical one;
-ultra-red order coding module, described ultra-red order coding module is for referring to outside Different Red according to different coding rules
Make level different in information encode, and the information after coding is packaged;
-infrared coding correction verification module, described infrared coding correction verification module is for the coding rule according to ultra-red order, by inverse
Obtaining resolving data to parsing, then carry out different computings with initial data, the ultra-red order of check code is the most correct;With
And
-infrared coding memory module, described infrared coding memory module is for the number received during whole infrared coding
According to, and the intermediate data produced in cataloged procedure is stored.
The coded method of the multiple ultra-red order of compatibility of offer of the present invention by receive different types of ultra-red order,
Then according to different coding rules, formed coding information, the method can compatible multiple ultra-red order, expanded existing infrared
The limitation of coded method;The coding system of the multiple ultra-red order of compatibility provided by the present invention can compatible number of different types
Ultra-red order, simplify the operation complexity of user, improve efficiency.
Accompanying drawing explanation
Fig. 1 is the flow chart of the coded method of the multiple ultra-red order of a kind of compatibility provided by the present invention;
Fig. 2 is the schematic diagram of a kind of ultra-red order started with guidance code provided by the present invention;
Fig. 3 is the schematic diagram of a kind of ultra-red order directly to start with data segment provided by the present invention;
The schematic diagram of the ultra-red order after a kind of analysis provided by the present invention of Fig. 4 position;
Fig. 5 is the schematic diagram of the coding system of the multiple ultra-red order of a kind of compatibility provided by the present invention.
Detailed description of the invention
With specific embodiment, the present invention is described in further detail referring to the drawings.
Embodiment 1
Such as Fig. 1, in the present embodiment, it is provided that the coded method of the multiple ultra-red order of a kind of compatibility, comprise the following steps:
S01: coding system receives and parses through and obtains ultra-red order.Ultra-red order, after infrared spectrum analyser analysis detects, obtains
The structure of ultra-red order, is then sent to coding system by relevant ultra-red order information.
Ultra-red order comprises two kinds, and a kind of is the ultra-red order started with guidance code, and one is directly to open with data segment
The ultra-red order begun.
For the ultra-red order directly started with data segment, the imaginary persistent period is one high and one low two level of 0 and adds
It is added in stem.The ultra-red order terminated with data segment for afterbody, is the imaginary persistent period be 0 one high and one low two equally
Level is added in afterbody.
It is the ultra-red order started with guidance code as Fig. 2 illustrates a kind of, including guidance code, numeric data code and end code.
It is the ultra-red order directly to start with data segment as Fig. 3 illustrates a kind of, fabricates respectively in stem and afterbody
It is one high and one low two level of 0.
The ultra-red order started with guidance code in the present embodiment carries out analyzing examples.
S102: build bit conversion protocols.Bit conversion protocols i.e. determines logical zero and the expression side of logical one
Method.Build bit conversion protocols, be the structure principle by analyzing ultra-red order, obtain the persistent period of low and high level.Logical
The difference of too high low duration, determines the representation of bit logical zero or logical one.All of bit is equal
Collectively constituted by a high level and a low level.
As shown in Figure 4, after the ultra-red order in Fig. 2 is analyzed, the height of logical zero in this ultra-red order can be obtained
Level duration is 550 ± 200 μ s, and the low level persistent period is 500 ± 200 μ s.As long as two adjacent levels are simultaneously full
Foot high level between 350 μ s ~ 750 μ s, low level between 300 μ s ~ 700 μ s, mean that a logical zero;This infrared finger
In order, the high level lasting time of logical one is 550 μ s ± 200 μ s, and low duration is 1600 μ s ± 200 μ s.As long as
Two adjacent levels meet simultaneously high level between 350 μ s ~ 750 μ s, low duration 1400 μ s ~ 1800 μ s it
Between, mean that a logical one.
S103: build and guide level section.The ultra-red order received by analysis, obtains guiding low and high level in level section
Persistent period and number.Then the persistent period of low and high level is represented with 16 mechanism data, in order to reduce redundancy,
This agreement regulation one level of 2 byte representations, for level duration figure place less than 4, needs to mend ' 0 ' in a high position,
Then the value of low and high level is connected in series, forms a level section.
As shown in fig. 4, it can be seen that this ultra-red order comprises two guide level section, start level section " Lead
Code " and terminate level section " End code ".Wherein start in level section " Lead code ", high level lasting time 9000 μ s,
Low duration 4500 μ s, terminates in level section " End code ", and high level lasting time 550 μ s, when low level continues
Between 2000 μ s.By start level section " Lead code " level duration 9000,4500} be expressed as 16 systems be 2328,
1194}, terminate level section " End code " level duration 550,2000}, due to its high level lasting time figure place not
4, foot, therefore in its high-order benefit ' 0 ', by the level duration of " End code ", { 0550,2000} is expressed as 16 systems is
{ 0226,4E20}." Lead code " after concatenation is encoded to that { 23281194}, " End code " is encoded to
{02264E20}。
S104: to guiding level section to carry out little endian mode conversion, and add flag bit and length in the stem guiding level section
Scale is known.High in the clouds is different with the COM1 pattern of equipment end, and high in the clouds is that to hold greatly pattern, equipment end be little endian mode, in order to just
In the process of equipment end, guiding level section data being changed into little endian mode, then the stem in each guiding level section is added
Flag bit ' 0B ' and the byte length of guiding level section, form final guiding level section.
Such as: the coding of " Lead code " in S103 is become little endian mode for { 28239411}, the volume of " End code "
Code become little endian mode for 2602204E}, then adds flag bit and level byte length in corresponding level coding stem,
" Lead code " is finally encoded to that { 050B28239411}, " End code " is finally encoded to { 050B2602204E}.
S105: build and guide level-cell.For convenience of the transmission of ultra-red order data, need guiding level section to seal
Dress.All guiding level section are sequentially connected in series, and add the number of level section in its stem.
Such as: the guiding level section " Lead code " in S104 and " End code " are sequentially connected in series, in its stem
The number adding level section is " 02 ", and forming final guiding level-cell is { 02050B28239411050B2602204E}.
S106: build special level-cell.Special level-cell is to be made up of special level section.Special electricity in the present invention
Flat section includes logic ' 0 ' level section and logic ' 1 ' level section.After logic ' 0 ' level section and logic ' 1 ' level section are encoded successively
Concatenation, forms final special level.
Such as: in S102, the persistent period of logic ' 0 ' level be 550,500}, the persistent period of logic ' 1 ' level
For { 550,1600}.Logic ' 0 ' be encoded to 16 binary form for 0226,01F4}, and by low and high level concatenate, be then converted to little
End pattern, finally adds flag bit and byte length, is formed and be finally encoded to { 050B2602F401}.Logic ' 1 ' is encoded to 16
Binary form be 0226,0640}, low and high level is concatenated, is then converted to little endian mode, finally add flag bit and byte
Length, is formed and is finally encoded to { 050B26024006}.The coded strings of logic ' 0 ' level section and logic ' 1 ' level section is picked up
Come, then add special level section number in stem, form final coding { 02050B2602F401050B26024006}.
S107: build host-host protocol.By special level-cell, guide level-cell to be sequentially connected in series, and add in stem
Upper agreement Universal Number ' 00 ', represents with 16 systems, defines complete host-host protocol.
Such as: the coding of level-cell special in S106 { is drawn in 02050B2602F401050B26024006}, S105
Lead level-cell coding 02050B28239411050B2602204E} is sequentially connected in series, and stem add this agreement lead to
With numbering ' 00 ', form the most complete host-host protocol, its host-host protocol be encoded to { 0002050B2602F401050B2602
400602050B28239411050B2602204E}。
S108: build data cell.The minimum unit of data transmission is byte, i.e. 8 bits, the most bit of every eight bits
Position is encapsulated as a byte, and represents with its 16 binary form.Before encapsulation, it is necessary first to data bits is judged, right
It not the integral multiple of 8 in data bits, use the mode in high position benefit ' 0 ' to supply 8.Then data are packaged, finally
Add the number mending ' 0 ' in stem, form data segment.Multiple data segments are sequentially connected in series, add the number of data segment in stem,
Form complete data cell.
Such as: assume that certain data segment initial data is that { first 01001011010} mends ' 0 ' in a high position, its figure place mended
To the integer multiple of 8, mending the result after ' 0 ' is that { 0000001001011010} has mended 5 ' 0 ', altogether then by the number after cover
According to converting 16 system character strings, { 4B40}, in order to prevent mend ' 0 ' to be erroneously interpreted as valid data, in stem plus mending ' 0 '
Number, i.e. ' 05 ', the structure result of the most final data segment is { 054B40}.
Comprising only a data information in ultra-red order data as shown in Figure 4, its raw value is { 001000001010
1000110000000000000000110000}, is denoted as the data of 16 systems for { 20A8C00030}, because of this infrared finger
Make data be just 8 integral multiple, mended 0 ' 0 ', data length is 6 bytes, then data segment is encoded to
{060020A8C00030}.Due to this ultra-red order only one of which data segment, so the coding form of final data cell is
{01060020A8C00030}。
S109: the data message verification to coding judges.To the guiding level-cell obtained after coding, special level-cell
Carry out resolving inversely with data cell, obtain the parsing data of corresponding unit, and carry out different schools with corresponding initial data
Test computing, pass through if resolving data complete verification, then proceed to S110, otherwise proceed to S102.
Such as: to the coding of the data cell in S107, { 01060020A8C00030} carries out resolving inversely, is first
' 01 ' represents that this coding is a data segment, and ' 06 ' represents that this coding contains 6 bytes, and ' 00 ' represents that this coding high position is not mended
' 0 ', serial data is that { numeric string that its 16 system encoded translated is 2 systems is { 001000001010 by 20A8C00030}
1000110000000000000000110000}, by the initial data { 0010000010101000110000 with this data segment
000000000000110000} carries out XOR, and result is zero, and verification is correct;Guiding level to S105
02050B28239411050B2602204E} carries out resolving inversely, the parsing data that obtain 9000,4500} and 550,
2000}, and initial data carries out subtracting computing, result is zero, and verification is correct;Special level-cell { 02050B2602F to S106
401050B26024006} carries out resolving inversely, obtains resolving data { 550,500} and { 550,1600}, and initial data pair
Ratio, the persistent period, verification was passed through within the scope of initial data.Data check is all correct, proceeds to S110.
S110: storage ultra-red order coding.Through above-mentioned ultra-red order cataloged procedure, define complete ultra-red order and compile
Code, then stores data base by coding information.
Embodiment 2
Such as Fig. 5, in the present embodiment, it is provided that the coding system of the multiple ultra-red order of a kind of compatibility, coding system includes:
Ultra-red order receiver module 201, ultra-red order receiver module 201 is used for receiving ultra-red order information, and this ultra-red order is believed
Breath can be to obtain through infrared spectrum analyser analysis detection, and ultra-red order information includes that level duration, producer are to logic ' 0 '
With information such as logic ' 1 ' definition.
Ultra-red order parsing module 202, ultra-red order parsing module 202 is used for resolving ultra-red order information, through resolving
Can obtain guiding the persistent period of level and guiding level number, producer that logic ' 0 ' level and logic ' 1 ' level are determined
Justice, and data message persistent period and data segment number.
Such as: by the ultra-red order information shown in analysis diagram 2, can obtain two and guide level, the persistent period is respectively
For { 9000,45000} and { 550,2000};Producer's definition logical zero level, high level lasting time is 550 ± 200 μ s, low
The persistent period of level is 500 ± 200 μ s, logical one level, and high level lasting time is 550 μ s ± 200 μ s, and low level is held
The continuous time is 1600 μ s ± 200 μ s;And 1 data segment { 0010000010101000110000000 in this ultra-red order information
000000000110000}。
Ultra-red order coding module 203, ultra-red order coding module 203 is according to different coding rules, by ultra-red order
Middle different level information is encoded to different level-cells.First pass through high-order mend ' 0 ' mode, level, special will be guided
It is 4 that the figure place of level duration is supplied, data segment figure place supply be 8 integral multiple, then different level is entered with 16
Form processed represents, and adds benefit ' 0 ' number in data segment stem, for guiding level and special level, carries out little endian mode and turns
Change.Finally level section is sequentially connected in series, and adds flag bit and level section number in stem, form level-cell.Further, special
Different level-cell and guiding level-cell are sequentially connected in series, and add this agreement universal coding in stem, are packaged into host-host protocol.
Such as: { 550,2000}, its high level lasting time figure place supplies 4, mends in its stem to guide level in S202
After ' 0 ' with 16 systems be expressed as 0226,4E20}, then low and high level is sequentially connected in series, and is converted into little endian mode, stem adds
Level section coding { 050B2602204E} is formed after adding flag bit and byte long.In S202, data content is { 0010000010101
000110000000000000000110000}, is a byte with 8 bits, is expressed as with 16 systems
{ 20A8C00030}, then adds benefit ' 0 ' number and byte total length, forms data segment { 060020A8C00030}.In S202
Two guide level to form guiding level section according to coding rule, then level section are sequentially connected in series, and add level section in stem
Number is formed and guides level-cell { 02050B2602F401050B26024006}.By level-cell special in S202 and guiding electricity
Flat unit adds this agreement universal coding ' 00 ' in stem after being sequentially connected in series, and forms final host-host protocol, and its specific coding is
{0002050B2602F401050B2602400602050B28239411050B2602204E}。
Infrared coding correction verification module 204, infrared coding correction verification module 204 data after check code are the most correct.First
First the data message after coding is carried out resolving inversely operation, respectively obtain guiding the parsing data of level, special level-cell
Parsing data and the parsing data of data segment.The parsing data of level will be guided and guide level initial data to carry out subtracting fortune
Calculating, result is zero, then guide level verification to pass through;The parsing data of special level and the contrast of special level initial data, if
Parsing scope of data is within original data range, and the verification of the most special level is passed through;The parsing data sum of data message it is believed that
The initial data of breath carries out XOR, and result is zero, then data segment verification is passed through.When full detail verification by after, verification
Terminate.
Such as: in S203 data segment be encoded to 060020A8C00030}, ' 06 ' represents that this data segment byte length is 6,
' 00 ' represents that data segment stem does not add ' 0 ', and by the data segment of 16 systems, { 020A8C00030} is expressed as the data of 2 systems
For { 0010000010101000110000000000000000110000}, and the initial data of data segment
{ 0010000010101000110000000000000000110000} carries out XOR, and result is zero, then data segment verification
Pass through.
Infrared coding memory module 205, infrared coding memory module 205 is used for preserving all of data in cataloged procedure,
Including the initial data of ultra-red order information and the intermediate data that produces in an encoding process.
Such as: infrared coding memory module 205 stores the ultra-red order information that infrared spectrum analyser sends, as guided level
Persistent period, the initial data of data segment 9000,45000} etc., and the intermediate data produced in cataloged procedure, as guided electricity
Flat being encoded to guides level section { 050B28239411}.
The aforementioned description to the specific illustrative embodiment of the present invention illustrates that and the purpose of illustration.These describe
It is not wishing to limit the invention to disclosed precise forms, and it will be apparent that according to above-mentioned teaching, can much change
And change.The purpose selected exemplary embodiment and describe is to explain that the certain principles of the present invention and reality thereof should
With so that those skilled in the art be capable of and utilize the present invention various different exemplary and
Various different selections and change.The scope of the present invention is intended to be limited by claims and equivalents thereof.
Claims (10)
1. the coded method of the multiple ultra-red order of compatibility, it is characterised in that described coded method comprises the following steps successively:
(1) coding system receives the ultra-red order information that infrared spectrum analyser sends;
(2) bit conversion protocols is built;
(3) guiding level section is built;
(4) to guiding level section to carry out little endian mode conversion;
(5) guiding level-cell is built;
(6) special level-cell is built;
(7) host-host protocol is built;
(8) build data segment and be encapsulated as data cell;
(9) data after coding are carried out verification to judge: by the special level-cell after coding, guide level-cell and data sheet
Unit carries out resolving and obtaining corresponding data according to the inverse process of ultra-red order coding encapsulation, then enters with corresponding initial data
The verification computing that row is different, if complete verification is correct, performs step (10), otherwise performs step (2);
(10) storage ultra-red order coding.
2. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (2)
In: coding system is after receiving ultra-red order information, by analyzing in ultra-red order logical zero and the expression of logical one
Method, obtains the persistent period of low and high level, determines the structure principle of bit conversion protocols.
3. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (3)
In: the ultra-red order information that coding system is received by parsing, obtain this ultra-red order guides the persistent period of level, first
First judge whether the persistent period guiding level is 4 figure places, if less than 4, then mend 0 the high-order of its correspondence, then will draw
Conducting electricity the flat persistent period is expressed as 16 systems, is finally a level with two bytes, forms all of level, and will be all
Level be connected in series formation guide level section.
4. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (4)
In: by step (3) obtains be guide level section be converted into little endian mode, then guide level section stem add flag bit
With total byte length, form complete level section.
5. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (5)
In: all of guiding level section is connected in series, then adds the number of guiding level section in stem, form complete guiding electricity
Flat unit.
6. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (6)
In: multiple special level section constitute special level-cell, regular according to the structure guiding level section, obtain logical zero level section
With logical one level section, both being connected in series, then add the number of special level section in stem, it is complete special to be formed
Level-cell.
7. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that described step (7)
In: host-host protocol is formed by special level-cell, guidance unit concatenation, then adds the universal coding of this agreement in stem
" 00 ", forms complete host-host protocol.
8. according to the coded method of the multiple ultra-red order of the compatibility described in claim 1, it is characterised in that data cell is by many
Individual data segment is constituted, and in data segment, each bit represents logical zero or logical one, is one according to the minimum unit of transmission
Individual byte, i.e. 8 bits, thus be a unit by data segment with 8 bits, it is packaged into multiple byte;For bit
When position figure place is not the integral multiple of 8, before data highest order, mends " 0 ", all of byte is connected in series, then adds in stem
Add number and the total length of byte of benefit " 0 ", form data segment, all of data segment is connected in series, add data in stem
Total number of section, completes complete data cell.
The coded method of the multiple ultra-red order of compatibility described in the most according to Claim 8, it is characterised in that described byte total
Length comprises the byte total length that with the addition of benefit " 0 " number.
10. the coding system of the multiple ultra-red order of compatibility, it is characterised in that described coding system includes:
-ultra-red order receiver module, described ultra-red order receiver module is for receiving the infrared of ultra-red order analyser transmission
Command information;
-ultra-red order parsing module, described ultra-red order parsing module is infrared for receive ultra-red order receiver module
Command information carries out resolving and obtains persistent period of varying level and different manufacturers to logical zero and the definition of logical one;
-ultra-red order coding module, described ultra-red order coding module is for referring to outside Different Red according to different coding rules
Make level different in information encode, and the information after coding is packaged;
-infrared coding correction verification module, described infrared coding correction verification module is for the coding rule according to ultra-red order, by inverse
Obtaining resolving data to parsing, then carry out different computings with initial data, the ultra-red order of check code is the most correct;With
And
-infrared coding memory module, described infrared coding memory module is for the number received during whole infrared coding
According to, and the intermediate data produced in cataloged procedure is stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610783006.XA CN106297264A (en) | 2016-08-31 | 2016-08-31 | The coded method of the multiple ultra-red order of a kind of compatibility and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610783006.XA CN106297264A (en) | 2016-08-31 | 2016-08-31 | The coded method of the multiple ultra-red order of a kind of compatibility and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106297264A true CN106297264A (en) | 2017-01-04 |
Family
ID=57672892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610783006.XA Pending CN106297264A (en) | 2016-08-31 | 2016-08-31 | The coded method of the multiple ultra-red order of a kind of compatibility and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106297264A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110930684A (en) * | 2019-12-10 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Infrared control method and system supporting multiple coding formats |
CN111757157A (en) * | 2020-06-30 | 2020-10-09 | 深圳Tcl新技术有限公司 | Infrared code processing method, television and system |
CN113850988A (en) * | 2020-12-24 | 2021-12-28 | 广东朝歌智慧互联科技有限公司 | Key value correction method, device, equipment and computer readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090185809A1 (en) * | 2004-02-25 | 2009-07-23 | Zilog, Inc. | Irda transceiver module that also functions as remote control IR transmitter |
CN101667336A (en) * | 2008-09-05 | 2010-03-10 | 深圳Tcl新技术有限公司 | Remote controller identification method and remote controller |
CN102968897A (en) * | 2012-11-07 | 2013-03-13 | 沈丽琼 | Household appliance remote control method based on handheld equipment |
CN103745590A (en) * | 2014-01-08 | 2014-04-23 | 无锡讯泰科技有限公司 | Infrared remote coding method |
CN105869383A (en) * | 2016-04-13 | 2016-08-17 | 北京精益理想科技有限公司 | Infrared data processing method, infrared instruction calling method and infrared instruction calling system |
-
2016
- 2016-08-31 CN CN201610783006.XA patent/CN106297264A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090185809A1 (en) * | 2004-02-25 | 2009-07-23 | Zilog, Inc. | Irda transceiver module that also functions as remote control IR transmitter |
CN101667336A (en) * | 2008-09-05 | 2010-03-10 | 深圳Tcl新技术有限公司 | Remote controller identification method and remote controller |
CN102968897A (en) * | 2012-11-07 | 2013-03-13 | 沈丽琼 | Household appliance remote control method based on handheld equipment |
CN103745590A (en) * | 2014-01-08 | 2014-04-23 | 无锡讯泰科技有限公司 | Infrared remote coding method |
CN105869383A (en) * | 2016-04-13 | 2016-08-17 | 北京精益理想科技有限公司 | Infrared data processing method, infrared instruction calling method and infrared instruction calling system |
Non-Patent Citations (1)
Title |
---|
蔡燕玲: "一种基于单片机的智能红外遥控系统的解码方法", 《潍坊学院学报》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110930684A (en) * | 2019-12-10 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Infrared control method and system supporting multiple coding formats |
CN111757157A (en) * | 2020-06-30 | 2020-10-09 | 深圳Tcl新技术有限公司 | Infrared code processing method, television and system |
CN113850988A (en) * | 2020-12-24 | 2021-12-28 | 广东朝歌智慧互联科技有限公司 | Key value correction method, device, equipment and computer readable medium |
CN113850988B (en) * | 2020-12-24 | 2022-09-27 | 广东朝歌智慧互联科技有限公司 | Key value correction method, device, equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106297264A (en) | The coded method of the multiple ultra-red order of a kind of compatibility and system | |
US11178212B2 (en) | Compressing and transmitting structured information | |
CN104123364A (en) | Method and device for transmitting and receiving data through mobile terminal | |
CN110719296B (en) | A method for automatically parsing message data in a terminal communication protocol | |
CN108197087A (en) | Character code recognition methods and device | |
CN103036641B (en) | Method for interchanging data, system and unserializing method | |
CN107561564A (en) | A kind of compression implementation method of big-dipper satellite information transfer | |
CN103457845A (en) | Conversion technology capable of being configured with multiple protocols | |
CN105337991A (en) | Integrated message flow searching and updating method | |
CN104360988B (en) | The recognition methods of the coded system of Chinese character and device | |
JPH05122282A (en) | Data transmission system | |
CN106878285B (en) | A communication method applied to anti-fuse device programming and testing system | |
CN105281777B (en) | A kind of compression method, system and the remote controler of remote controler learning data | |
CN105719473B (en) | A kind of SCM Based multifunction remote-control method and remote control device | |
CN104065460B (en) | Encoding method and device based on binary tree | |
CN109543485A (en) | A kind of method and system read for bar code | |
CN101013420A (en) | Method for identifying coding form of Chinese text | |
CN106599058B (en) | A kind of RCD file model verification method and verification device | |
CN102508455B (en) | Control method and system of biochemical analyzer | |
EP2015456A2 (en) | A computer-implemented method for encoding numeric data and a method for encoding data structures for transmission in a telecommunications system, based on said method of encoding numeric data. | |
CN115185497A (en) | Automatic programming method based on human-computer interaction | |
CN110073604A (en) | For the multiple-symbol of hardware decompression engine, multi-format, paralleled code element decoder | |
CN107861724B (en) | Scripted coding method for fast adapting DLMS/COSEM object | |
CN105635160B (en) | A kind of design method of changeable data network communications | |
CN103716127B (en) | TTCN-3 based compression coding and decoding method and system |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170104 |