CN105869383A - Infrared data processing method, infrared instruction calling method and infrared instruction calling system - Google Patents

Infrared data processing method, infrared instruction calling method and infrared instruction calling system Download PDF

Info

Publication number
CN105869383A
CN105869383A CN201610228542.3A CN201610228542A CN105869383A CN 105869383 A CN105869383 A CN 105869383A CN 201610228542 A CN201610228542 A CN 201610228542A CN 105869383 A CN105869383 A CN 105869383A
Authority
CN
China
Prior art keywords
code
infrared
data
change
infrared 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
Application number
CN201610228542.3A
Other languages
Chinese (zh)
Inventor
廉羿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lean Ideal Technology Co Ltd
Original Assignee
Beijing Lean Ideal Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Lean Ideal Technology Co Ltd filed Critical Beijing Lean Ideal Technology Co Ltd
Priority to CN201610228542.3A priority Critical patent/CN105869383A/en
Publication of CN105869383A publication Critical patent/CN105869383A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/70Device selection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses an infrared data processing method, an infrared instruction calling method and an infrared instruction calling system. The infrared data processing method comprises the following steps: decomposing infrared data for the model of infrared equipment before transmitting and/or storing the infrared data to form fixed codes and changing codes, wherein the fixed codes include characteristic information of the infrared data and a preset format, the changing codes include instruction content of the infrared data, and the fixed codes and the changing codes can be respectively independently used for transmitting and/or storing; and synthesizing the fixed codes and the changing codes in the preset format after transmitting and/or storing the infrared data in order to afresh form an instruction used for forming the infrared equipment. The method reduces the data bulk in the transmission and/or storage process of the infrared data, facilitates improvement of the processing efficiency of the infrared data, and simplifies the data generation process.

Description

Infrared data processing method, ultra-red order call method and system
Technical field
The invention belongs to field of infrared control, particularly relate to a kind of infrared data processing method, ultra-red order calls Method and system.
Background technology
Infrared communication at home electrical domain of being in uses extensively, including TV, air-conditioning, switch, signal light control etc.. There is infrared communication protocol and the form of oneself in different producers, therefore lacks versatility between product.When simultaneously When different family products is controlled, need to send between different devices, receive, store different manufacturers Infrared data, due to the agreement between various infrared datas and the restriction of form, cause transmission cost higher.
Mainly come real by the level value of each signal of preservation when at present infrared data being transmitted and stores Existing.But this processing mode there is problems of, the data length of different infrared control device is from more than 20 electricity Putting down more than 800 level, each level at least needs 2 bytes to store, and therefore can take substantial amounts of Memory space, this acquires a certain degree of difficulty for embedded device.The infrared waveform of Toshiba 1 as shown in Figure 1a, its In have 96 valid data, level number is 200, if it is infrared to preserve this in the way of the length of memory level Data, then to take 854 bytes, and as shown in Figure 1 b, in figure, first is high level, and second is low electricity Flat, the 3rd is high level, and by that analogy, unit is microsecond.
Therefore, the process for infrared data of a kind of general method processing infrared data is needed badly to reduce storage Cost with transmission.
Summary of the invention
One of the technical problem to be solved is to need to provide a kind of general side processing infrared data Method stores and the cost of transmission to reduce for processing of infrared data.
In order to solve above-mentioned technical problem, embodiments herein provide firstly a kind of infrared data process side Method, is included in before infrared data is transmitted and/or is stored, for the model of infrared equipment, by described red Outer data are decomposed into fixed code and change code, wherein, described fixed code include the characteristic information of infrared data with And the form preset, described change code includes the command content of infrared data, described fixed code and change code energy Enough being each independently used for is transmitted and/or storage;After infrared data is transmitted and/or stores, according to institute State default form to synthesize described fixed code and change code to re-form the instruction controlling infrared equipment.
Preferably, the characteristic information of the infrared data in described fixed code includes: carrier wave attribute code 1, with one The length of byte represents carrier frequency;Carrier wave attribute code 2, represents carrier duty cycle with the length of a byte; Counting system, represents each system code bit, wherein, with a byte in the way of the length of memory level respectively Length represent the number of level, represent the length of each level respectively with the length of two bytes.
Preferably, the form preset in described fixed code includes in guidance code, end code, synchronous code Or it is multinomial;In each item of described default form, in the way of the length of memory level, represent every attribute Value, wherein, represents the number of level, represents each electricity respectively with the length of two bytes with the length of a byte Flat length.
Preferably, the command content of the infrared data in described change code includes: number of repetition, with a byte Length represent this infrared data repeat transmission number of times;The number of data group N, with the length of two bytes Represent the number of the data bit of data group N output;The data bit of data group N, obtains according to the model of infrared equipment The director data taken;The number of data group N+1, exports according to group N+1 with the lengths table registration of two bytes The number of data bit;With the fixing code value of two byte lengths, stop bits, represents that this infrared data transmission terminates.
Preferably, in the step described fixed code and change code synthesized according to described default form, When the numerical value of the number of data group N+1 changed in code is not 0, according to the definition of synchronous code in fixed code, After the data bit of each data group has exported, insert a synchronous code, and output should after described synchronous code The number of data group N+1 of item property value instruction;When the numerical value of the number of data group N+1 in change code is 0 Time, direct end of output position.
Embodiments herein additionally provides a kind of ultra-red order call method, including the type for infrared equipment Number, infrared data is decomposed into fixed code and stores with change code, wherein, described fixed code includes infrared The characteristic information of data and default form, described change code includes the command content of infrared data;Based on The model of infrared equipment, infrared data are transmitted in the request obtaining infrared equipment model, fixed code and change code respectively Fixed code and the change code of infrared data;In the fixed code obtaining the infrared data corresponding with infrared equipment model And after change code, synthesize to re-form control with change code to described fixed code according to described default form The instruction of infrared equipment processed.
Preferably, when transmitting the change code of the fixed code of infrared data and infrared data respectively, based on for phase The request of the fixed code obtaining infrared data of same infrared equipment model, only transmission primaries fixed code, and by institute State fixed code to store;Based on the multiple different acquisition infrared data for identical infrared equipment model The request of change code, transmits respectively corresponding to each change code obtaining request.
Preferably, described change code is provided with the number attribute item of data group N+1, is presetting according to described Form to described fixed code with in the change step that synthesizes of code, when data group N+1 in change code When the numerical value of number is not 0, according to the definition of synchronous code in fixed code, the data bit in each data group has exported One synchronous code of insertion after one-tenth, and after described synchronous code, export data group N+1 of this property value instruction Number;When the numerical value of the number of data group N+1 changed in code is 0, direct end of output position.
On the other hand, it is provided that a kind of ultra-red order calling system, including infrared server, storage has different shaped Number the infrared data of infrared equipment, described infrared data is broken down into fixed code and change code, wherein, described Fixed code includes the characteristic information of infrared data and default form, and described change code includes infrared data Command content, its request sent according to locally applied end returns corresponding data;Locally applied end, Xiang Hong Outer server sends and obtains infrared equipment model, fixed code and the request of change code, and according to described default lattice Described fixed code and change code are synthesized to re-form the instruction controlling infrared equipment by formula.
Preferably, also include interface server, be connected with infrared server and locally applied end, receive this locality What application end sent obtains infrared equipment model, fixed code and the request of change code, forwards institute to infrared server State acquisition request, and the data that infrared server returns are sent back locally applied end.
Compared with prior art, the one or more embodiments in such scheme can have the advantage that or useful Effect:
By by infrared data decompose after transmit respectively and/or store, and will process after infrared data recombine For the ultra-red order for controlling infrared equipment, reduce data volume when transmission and/or storage infrared data, have It is beneficial to improve the treatment effeciency of infrared data, simplifies data generating procedure.
Other advantages of the present invention, target, and feature will explain to a certain extent in the following description State, and to a certain extent, based on to investigating hereafter will be to those skilled in the art aobvious and It is clear to, or can be instructed from the practice of the present invention.The target of the present invention and other advantages can be led to Crossing description below, structure specifically noted in claims, and accompanying drawing realizes and obtains.
Accompanying drawing explanation
Accompanying drawing is used for providing being further appreciated by of the technical scheme to the application or prior art, and constitutes A part for bright book.Wherein, the accompanying drawing expressing the embodiment of the present application is used for solving together with embodiments herein Release the technical scheme of the application, but be not intended that the restriction to technical scheme.
Fig. 1 a-Fig. 1 b is the transmission schematic diagram with storage of prior art mid-infrared data;
Fig. 2 is the schematic flow sheet of the infrared data processing method according to one embodiment of the invention;
Fig. 3 a-Fig. 3 c is the level character schematic diagram of the Haier 7 according to the present invention one example;
Fig. 4 be the infrared data according to the present invention one example transmission schematic diagram is repeated several times;
Fig. 5 is the form schematic diagram of the infrared data of the SA3010RC-5 according to the present invention one example;
Fig. 6 is the schematic flow sheet of the ultra-red order call method according to another embodiment of the present invention;
Fig. 7 is the building-up process schematic diagram of the fixed code according to another embodiment of the present invention and change code;
Fig. 8 a-Fig. 8 f is the schematic diagram of the fixed code according to the present invention one example and the synthesis mode of change code;
Fig. 9 is the structural representation of the ultra-red order calling system according to further embodiment of this invention.
Detailed description of the invention
Embodiments of the present invention are described in detail, whereby to the present invention how below with reference to drawings and Examples Application technology means solve technical problem, and the process that realizes reaching relevant art effect can fully understand and evidence To implement.Each feature in the embodiment of the present application and embodiment, can mutually tie under not colliding premise Closing, the technical scheme formed is all within protection scope of the present invention.
By the infrared data of the infrared equipment of different model is analyzed it can be seen that the difference of every kind of equipment All there are the data that part is identical between the instruction code of function, for this attributive character of infrared data, Embodiments of the invention provide and a kind of carries out respectively with constant part based on the variable part in infrared data Transmission and the data processing method of storage, describe in detail below in conjunction with embodiment.
It is further to note that the part accompanying drawing of the application directly intercepts the infrared code waveform from infrared spectrum analyser Figure, is merely to illustrate the method for each embodiment in the application, does not constitute limitation of the invention.
Fig. 2 is the schematic flow sheet of the infrared data processing method according to one embodiment of the invention, as it can be seen, The method includes:
Step S210, before infrared data is transmitted and/or stores, for the model of infrared equipment, Infrared data is decomposed into fixed code and change code, wherein, fixed code include the characteristic information of infrared data with And the form preset, change code includes the command content of infrared data, and fixed code can be the most only with change code Stand for transmitting and/or storing.
Step S220, after infrared data is transmitted and/or stores, according to above-mentioned default form to solid Determine code and change the instruction that code carries out synthesizing to re-form control infrared equipment.
Wherein, the characteristic information of the infrared data in fixed code includes:
Carrier wave attribute code 1, represents carrier frequency with the length of a byte.
Carrier wave attribute code 2, represents carrier duty cycle with the length of a byte.
Counting system, represents each system code bit, wherein, with one in the way of the length of memory level respectively The length of byte represents the number of level, represents the length of each level respectively with the length of two bytes.
Concrete, the value of carrier wave attribute code 1 takies a byte, and the unit of the frequency of infrared carrier wave is generally KHz. For example, conventional carrier frequency is 38KHz, then the value of carrier wave attribute code 1 is 38.If carrier frequency is 56KHz, then the value of carrier wave attribute code 1 is 56.Some infrared products also can represent this with the binary-coded decimal of 16 systems Property value, the such as carrier frequency of Haier 7 are 38, and the binary-coded decimal of 16 systems is expressed as " 26 ".
The value of carrier wave attribute code 2 takies a byte, with numeric representation dutycycle set in advance.For example, Represent that dutycycle is 1:2 with " 0 ", represent that dutycycle is 1:3 with " 1 ", represent that dutycycle is 1 with " 2 ": 4 etc..The such as carrier duty cycle of Haier 7 is 1:3, then corresponding binary-coded decimal is " 01 ".
The value of counting system takies multiple byte, and its form is as shown in table 1:
Table 1 counts the form of system
The number of level The length of level 0 The length of level 1 The length of level 2 The length of level 3
Wherein, the number of level takies a byte, when the first from left position (Bit [7]) of this byte is 0, and table First level showing follow-up output is high level, when the first from left position (Bit [7]) of this byte is 1, represents First level of follow-up output is low level.Represent follow-up defeated with the remaining bit (Bit [6]-Bit [0]) of this byte The number of the level gone out.The property value of the length of each level takies two bytes, represents and exports how long Level, chronomere is microsecond.
For example, for binary counting, need with the length of level represent respectively system code bit " 0 " and System code bit " 1 ".Still as a example by Haier 7, it is used for representing the level of " 0 " and " 1 " as shown in Figure 3 a, By high level 550 microsecond, low level 550 microsecond represents code bit " 0 ", then system in corresponding counting system The BCD of code bit 0 is encoded to " 0202260226 ".By high level 550 microsecond, low level 1660 microsecond represents Code bit " 1 ", then in corresponding counting system, the BCD of system code bit 1 is encoded to " 020226067C ".
It should be noted that table 1 has been only shown schematically several level, only for illustrating the present invention The method of embodiment, is not intended that limitation of the invention.As above example is when counting system and being binary system, each System code bit is made up of the length of the number of level, the length of level 0 and level 1.For concrete infrared data The counting system used, under the thought guidance of above-described embodiment, enters with different level length or phase place Row differentiation is expressed.
Above-mentioned carrier wave attribute code 1, carrier wave attribute code 2 and counting system are must comprise in fixed code fixing , additionally, fixed code also includes in the form preset, generally guidance code, end code, synchronous code Or it is multinomial.
Concrete, guidance code, as the beginning flag of infrared data, can have and can also not have, according to concrete The model of infrared equipment selects to arrange.The form of guidance code is as shown in table 2:
The form of table 2 guidance code
Wherein, the number of level takies a byte, and chronomere is microsecond.The first from left position when this byte When (Bit [7]) are 0, represent that first level of follow-up output is high level, when the first from left position of this byte When (Bit [7]) are 1, represent that first level of follow-up output is low level.With the remaining bit of this byte (Bit [6]- Bit [0]) represent the number of the level of follow-up output.If remaining bit is 0, then it represents that there is no guidance code.
Still as a example by Haier 7, the pulse schematic diagram of its guidance code as shown in Figure 3 b, includes high level 3000 successively Microsecond, low level 3000 microsecond, high level 3000 microsecond, low level 4500 microsecond, then in corresponding guidance code Level 0, level 1, the BCD coding of level 2 is all " 0BB8 ", and the BCD of level 3 coding is " 1194 ". Therefore the guidance code of Haier 7 be completely encoded to " 040BB80BB80BB81194 ".
End code, for representing the end of a communication data transfer, can have and can also not have, according to concrete The model of infrared equipment selects to arrange.The form of end code is identical with guidance code with set-up mode, the most superfluous State.
Still such as precedent, the level character of the end code of Haier 7 as shown in Figure 3 c, first exports high level 500 microsecond, Output low level 20000 microsecond again, therefore the number of level is two, length (the i.e. level 0 of first level Length) be " 01F4 ", the length (i.e. the length of level 1) of second level is " 4E20 ", so The end code of Haier 7 be completely encoded to " 0201F44E20 ".
Synchronous code distinguishes different data groups or specific data, Ke Yiyou at a ultra-red order in sending Can also not have, select to arrange according to the model of concrete infrared equipment.The form of synchronous code and set-up mode with Guidance code is identical, and here is omitted.Haier 7 does not has synchronous code, and therefore the synchronous code item of Haier 7 is set to “00”。
Above-mentioned every property value is grouped together into fixed code, and table 3 illustrates the ginseng of the form of a kind of fixed code Examine, the method being merely to illustrate the present embodiment, the present invention is not constituted restriction.
The form of table 3 fixed code
For example, the carrier wave attribute code 1 of Haier 7 is " 26 ", and carrier wave attribute code 2 is " 01 ", guidance code For " 040BB80BB80BB81194 ", the Bit0/Bit1 of counting system is " 0202260226020226067C ", End code is " 0201F44E20 ", and synchronous code is " 00 ", therefore the fixed code of the Haier 7 after combination For " 2601040BB80BB80BB811940202260226020226067C0201F44E2000 ", total length It is 54 bytes.
In an embodiment of the present invention, in fixed code, storage has the multinomial property value relevant to infrared equipment model, Compared in prior art memory level length but do not differentiate between the mode of attribute, the solution to infrared data of being more convenient for Analysis and process.
Further, the command content of the infrared data in change code includes:
With the length of a byte, number of repetition, represents that this infrared data repeats the number of times of transmission.
The number of data group N, with the number of the data bit that the lengths table registration of two bytes exports according to group N.
The data bit of data group N, the director data obtained according to the model of infrared equipment.
The number of data group N+1, with the lengths table registration of two bytes according to group N+1 output data bit Number.
With the fixing code value of two byte lengths, stop bits, represents that this infrared data transmission terminates.
When sending ultra-red order, for guaranteeing to reliably receive, infrared data is usually and repeatedly sends. Specifying this infrared data to repeat the number of times sent in the beginning of change code, this takies a byte.Example As, if this numerical value is 4, then it represents that this infrared data (i.e. follow-up signal) continuously transmits 4 times, as Shown in Fig. 4.
The transmission of infrared data typically can comprise multiple data groups of successively transmission, the number of data group N The number of the data bit of n-th burst data transmission that these data send is represented by the length of two bytes.
The data bit of data group N is configured according to the concrete control instruction of infrared equipment.Data group is with byte Arrange for unit.Such as, the binary number of transmission is 12, is 101010010000 according to the order sent, 16 corresponding system numbers are 0xA90x00.
What data group N+1 represented is the data group sent below in data group N, if an infrared data Transmission only one data group of transmission, then represent that the item of the number of data group N+1 does not exists.
Above-mentioned every being grouped together into is changed code, and table 4 illustrates the reference of a kind of form changing code, only For the method that the present embodiment is described, the present invention is not constituted restriction.
Table 4 changes the form of code
For example, Haier 7 needs the data group of transmission to be " 65 35 B7 00 06 05 00 04 00 01 00 00 A0 27 ", this data group only transmission primaries, stop bits is fixed value " 0000 ", therefore passes for this The change code of defeated Haier 7 is " 0170006535B7000605000400010000A0270000 ".Wherein " 7000 " represent the figure place of these data transmitted, due to processor, the height of actual double byte Position is exchanged, and the figure place of the data i.e. transmitted is " 0x0070 ", i.e. 112.The total length of change code It is 38 bytes.
Above-mentioned fixed code and change code respective independent process when transmission and/or storage.
If transmit the above-mentioned instruction of Haier 7 in existing mode, the total length of communication data is 924 bytes, After infrared data is processed by the method that have employed the present embodiment, the length of fixed code and change code is respectively Being 54 bytes and 38 bytes, the total length of its fixed code and change code is 92 bytes, the most existing mode 10%.Further, owing to fixed code and change code can independently transmit, and fixed code is for same It is identical for the infrared equipment of individual model, the most only needs transmission primaries, only 38 byte longs need to be transmitted several times The change code of degree, so the 2.5-5% of the most existing mode, efficiency is about 20 to 40 times of traditional approach, Considerably improve the efficiency that data process.
According to default form, fixed code and change code are carried out synthesis and can re-form control infrared equipment Instruction.During synthesis control instruction, when the numerical value of the number of data group N+1 in change code is not 0 Time, there is two pieces thing to do when transmitting data, the first step is to judge whether according to the definition of synchronous code in fixed code Comprise synchronous code, as synchronous code Xiang Buwei 0 in fixed code, illustrate to comprise synchronous code, therefore in data group One synchronization code signal of last byte following transmission of N.When the synchronous code item in fixed code is 0, say The bright synchronous code that do not comprises, now without inserting synchronous code.Even comprise synchronous code, when the biography of this infrared data Defeated when sending N number of data group altogether, then the 0th~(N-1) individual data group last byte after insert with Step code.Second step is the number of data group N+1 exporting the instruction of this property value after synchronous code.Work as change When the numerical value of the number of data group N+1 in change code is 0, represent that the data group of this infrared data has been transmitted Complete, direct end of output position.
It is further to note that the configuration when synthesizing fixed code with change code is not fixing, in reality Can take different form according to the infrared equipment of different model.Further, infrared for same model Equipment, fixed code is the most unique with the decomposition method of change code, it is only necessary to immovable part put under as far as possible Fixed code part, puts change code under by the part of change.
For example, shown in Fig. 5 be infrared type be the form of the infrared data of SA3010RC-5, according to need Want there are two kinds of dividing mode.First kind of way is as the guidance code of fixed code using three level started, Level below is put under the data division of change code.The most corresponding fixed code is " 26010379037903790302790379038279037903813ac500 ", change code is “010c003E030000”.The second way is as the guidance code of fixed code using first level started, Level below being put under the data division of change code, the most corresponding fixed code is " 260101790302790379038279037903813ac500 ", change code is " 010d007D060000 ".
In an embodiment of the present invention, by the changing unit of infrared data is separated place with other parts Reason, significantly reduces and needs data volume to be processed when being transmitted infrared data and/or store.Pass through simultaneously The data characteristics of infrared data is described, it is provided that the data of a kind of infrared equipment being common to different model Processing method, infrared data can be entered by the method for the embodiment of the present invention based on consistent agreement and data form Row processes.
Processing method based on above-mentioned infrared data, the invention allows for a kind of ultra-red order call method, under Face describes in detail in conjunction with the embodiments.
Fig. 6 is the schematic flow sheet of the ultra-red order call method according to another embodiment of the present invention, as it can be seen, The method includes:
Step S610, model for infrared equipment, be decomposed into infrared data fixed code and deposit with change code Storage, wherein, fixed code includes the characteristic information of infrared data and default form, and change code includes red The command content of outer data.
Infrared setting is transmitted in step S620, request based on acquisition infrared equipment model, fixed code and change code respectively The change code of standby model, the fixed code of infrared data and infrared data.
Step S630, obtain the infrared data corresponding with infrared equipment model fixed code and change code after, press According to default form, fixed code and change code are synthesized the instruction re-forming control infrared equipment.
Concrete, in step S610, according to the processing method of aforesaid infrared data, infrared data is decomposed into Fixed code and change code, and fixed code is not stored with change code division, here is omitted.
In step S620, when needing to transmit infrared data, first transmission obtains request, and acquisition request includes depending on Secondary transmission obtains the request of infrared equipment model, the request obtaining the fixed code of infrared data and acquisition infrared data Change code request, be then based on obtain request transmission infrared data.
It should be noted that the data volume in order to reduce transmission, can be in advance by the fixed code part of particular device Coding is pre-loaded in control equipment, so needs only to transmission change when ultra-red order is identified by needs The coding of code part.During transmission infrared data, when obtaining the infrared equipment involved by request When model is identical, request based on the fixed code obtaining infrared data, only transmission primaries fixed code, and will receive To fixed code store.Based on the change code obtaining infrared data for different infrared equipment instructions Request, obtains request, respectively transmission change code corresponding to each.
Further, the request at the change code obtaining infrared data includes infrared command code, infrared command Code represents usual instructions and the setting of infrared equipment with the pattern of bit combination.Such as represent out with the pattern of Close infrared equipment, if this position is set to 1, then it represents that open infrared equipment, if this position is set to 0, then it represents that close Close infrared equipment, if this position is set to F, then it represents that brought forward state.The most such as air-conditioning kind equipment, with one The pattern of position represents air quantity, if this position is set to 0, then it represents that automatically, if this position is set to 1, then it represents that low wind, If this position is set to 2, then it represents that apoplexy, if this position is set to 3, then it represents that Gao Feng, if this position is set to F, Then represent brought forward state.
Finally, synthesize to re-form control infrared equipment with change code to fixed code according to default form Instruction, the instruction after synthesis can send to infrared signal generator generate infrared signal launch, as figure Shown in 7.For the infrared equipment of different model, its fixed code is different with the mode of change code synthesis, and Fig. 8 illustrates The examples of some fixed code and change code synthesis.
The change code part of Fig. 8 a only transmits a data group, and is provided with guidance code and end code.The change of Fig. 8 b Change the data group that two length of code fractional transmission are identical, and between two data groups, be provided with synchronous code, simultaneously It is provided with guidance code and end code.Fig. 8 c changes the data group that two length of code fractional transmission are different, and two It is provided with synchronous code between individual data group, is provided with guidance code and end code simultaneously.The change code part of Fig. 8 d passes The data group that defeated three length are different, and it is respectively arranged with synchronous code, simultaneously between two adjacent data groups It is provided with guidance code and end code.Fig. 8 e changes the data group that three length of code fractional transmission are different, and in phase It is respectively arranged with synchronous code between two adjacent data groups, end code is set simultaneously, but without guidance code.Fig. 8 f's The data group that change three length of code fractional transmission are different, and be respectively arranged with between two adjacent data groups Synchronous code, but it is not provided with guidance code and end code.These synthesis modes be only intended to illustrate fixed code with The synthesis mode of change code, is not intended that limitation of the invention.
During synthesis control instruction, when the numerical value of the number of data group N+1 changed in code is not 0, Having two pieces thing to do when transmitting data, the first step is one synchronization code signal of transmission, synchronizes according in fixed code The definition of code, inserts a synchronous code, even this infrared number after the data bit of each data group has exported According to transmission send N number of data group altogether, then the 0th~(N-1) individual data group last byte after pass Defeated synchronous code, and after synchronous code, export the number of data group N+1 of this property value instruction.Work as change When the numerical value of the number of data group N+1 in Ma is 0, represent that the data group of this infrared data has transferred Finish, direct end of output position.
Compared to generation and the processing method of infrared data of the prior art, fixing in the embodiment of the present invention Code and change code are during carrying out decomposing and synthesizing, and the data volume of process is few, decompose and the side of synthesis simultaneously Method is the most easily implemented, and can significantly increase the efficiency that data process.
In yet another embodiment of the present invention, additionally provide a kind of ultra-red order calling system, as it is shown in figure 9, This system includes:
Infrared server 91, storage has the infrared data of the infrared equipment of different model, and infrared data is broken down into Fixed code and change code, wherein, fixed code includes the characteristic information of infrared data and default form, becomes Changing code and include the command content of infrared data, its request sent according to locally applied end returns corresponding number According to.
Locally applied end 92, sends to infrared server and obtains asking of infrared equipment model, fixed code and change code Ask, and synthesize to re-form control infrared equipment with change code to described fixed code according to default form Instruction.
Further, this ultra-red order calling system also includes interface server 93, with infrared server and this locality Application end is connected, and receives acquisition infrared equipment model, fixed code and change code that locally applied end 92 sends Acquisition request, forward this acquisition to ask to infrared server 91, and the data returned by infrared server 91 Send back locally applied end 92.
Interface server 93 is used for authentication and the balance system load of system.
The communication process of infrared server 91, locally applied end 92 and interface server 93 is as shown in Figure 9:
At infrared server 91 end, first according to the infrared equipment management infrared data standing part of unlike signal Data, then the model for infrared equipment, set up the infrared finger corresponding with different model infrared equipment respectively Make storehouse.For example, respectively Haier 7 and Toshiba 1 set up fixed code " 260104b80bb80bb80b941102260226020226027c06022602204e00 " and “2601029411fe1002460246020246022c06024602881300”.Corresponding to Toshiba 1, respectively Set up for represent its power-on command and shutdown command change code " 0230004DB2F80712ED0000 " and “0230004DB2DE2107F80000”。
The user using infrared equipment sends acquisition infrared equipment by locally applied end 92 to interface server 93 The request of type information data, the request obtaining type information data is transmitted to infrared clothes by interface server 93 Business device 91.Infrared server 91 receive acquisition request after, return type information data to interface server 93, Type information data are returned to locally applied end 92 by interface server 93 again.
After receiving type information data, then send acquisition by locally applied end 92 to interface server 93 The request of the fixed code of the infrared equipment of specific model, 93 acquisition requests of interface server are sent to infrared clothes Business device 91, infrared server 91 returns the fixed code corresponding with this model device to interface server 93, interface Fixed code is returned to locally applied end 92 by server 93 again.
If wanting to obtain the change code information of specific model, need to be by locally applied end 92 to interface server 93 Going to change the request of code after sending, interface server 93 forwards the request of acquisition, infrared clothes to infrared server 91 again The change code information that business device 91 is corresponding with the ultra-red order of this model device returns to interface server 93, connects Change code is returned to locally applied end 92 by mouth server 93 again.
It should be noted that locally applied end 92 is when sending the request obtaining fixed code, it is possible to use with solid Determine infrared equipment model corresponding to code-phase and send the request of acquisition.Locally applied end 92 is sending acquisition specific change Code request time, it is possible to use the infrared command code corresponding with the control instruction of infrared equipment.
The ultra-red order calling system of the embodiment of the present invention, using the teaching of the invention it is possible to provide to the instruction of different model infrared equipment Unified infrared coding and analysis service, treatment effeciency is high and realizes low cost.
Although the embodiment that disclosed herein is as above, but described content is only to facilitate understand the present invention And the embodiment used, it is not limited to the present invention.Technology people in any the technical field of the invention Member, on the premise of without departing from the spirit and scope that disclosed herein, can be in the formal and details implemented On make any amendment and change, but the scope of patent protection of the present invention, still must be with appending claims institute Define in the range of standard.

Claims (10)

1. an infrared data processing method, including:
Before infrared data is transmitted and/or stores, for the model of infrared equipment, by described infrared number According to being decomposed into fixed code and change code, wherein, described fixed code includes the characteristic information of infrared data and pre- If form, described change code includes the command content of infrared data, and described fixed code can be each with change code From being independently used for transmission and/or storage;
After infrared data is transmitted and/or stores, according to described default form to described fixed code with Change code carries out synthesizing to re-form the instruction controlling infrared equipment.
Infrared data processing method the most according to claim 1, it is characterised in that in described fixed code The characteristic information of infrared data include:
Carrier wave attribute code 1, represents carrier frequency with the length of a byte;
Carrier wave attribute code 2, represents carrier duty cycle with the length of a byte;
Counting system, represents each system code bit, wherein, with one in the way of the length of memory level respectively The length of byte represents the number of level, represents the length of each level respectively with the length of two bytes.
Infrared data processing method the most according to claim 2, it is characterised in that in described fixed code The form preset include in guidance code, end code, synchronous code one or more;
In each item of described default form, in the way of the length of memory level, represent every property value, Wherein, represent the number of level with the length of a byte, represent each level respectively with the length of two bytes Length.
Infrared data processing method the most according to claim 3, it is characterised in that in described change code The command content of infrared data include:
With the length of a byte, number of repetition, represents that this infrared data repeats the number of times of transmission;
The number of data group N, with the number of the data bit that the lengths table registration of two bytes exports according to group N;
The data bit of data group N, the director data obtained according to the model of infrared equipment;
The number of data group N+1, with the lengths table registration of two bytes according to group N+1 output data bit Number;
With the fixing code value of two byte lengths, stop bits, represents that this infrared data transmission terminates.
Infrared data processing method the most according to claim 4, it is characterised in that according to described pre- If form to described fixed code with in the change step that synthesizes of code,
When the numerical value of the number of data group N+1 changed in code is not 0, according to the determining of synchronous code in fixed code Justice, inserts a synchronous code after the data bit of each data group has exported, and defeated after described synchronous code Go out the number of data group N+1 of this property value instruction;
When the numerical value of the number of data group N+1 changed in code is 0, direct end of output position.
6. a ultra-red order call method, including:
For the model of infrared equipment, infrared data is decomposed into fixed code and stores with change code, wherein, Described fixed code includes the characteristic information of infrared data and default form, and described change code includes infrared The command content of data;
Based on obtain infrared equipment model, fixed code and change code request transmit respectively infrared equipment model, The fixed code of infrared data and the change code of infrared data;
After the fixed code obtaining the infrared data corresponding with infrared equipment model and change code, preset according to described Form described fixed code and change code synthesize to re-form the instruction controlling infrared equipment.
Ultra-red order call method the most according to claim 6, is transmitting the fixing of infrared data respectively When code and the change code of infrared data,
Request based on the fixed code obtaining infrared data for identical infrared equipment model, only transmission primaries Fixed code, and described fixed code is stored;
Request based on the multiple different change code obtaining infrared data for identical infrared equipment model, Transmit respectively corresponding to each change code obtaining request.
Ultra-red order call method the most according to claim 7, it is characterised in that at described change code In be provided with the number attribute item of data group N+1, according to described default form to described fixed code and change Code carries out in the step synthesized,
When the numerical value of the number of data group N+1 changed in code is not 0, according to the determining of synchronous code in fixed code Justice, inserts a synchronous code after the data bit of each data group has exported, and defeated after described synchronous code Go out the number of data group N+1 of this property value instruction;
When the numerical value of the number of data group N+1 changed in code is 0, direct end of output position.
9. a ultra-red order calling system, including:
Infrared server, storage has the infrared data of the infrared equipment of different model, and described infrared data is decomposed For fixed code and change code, wherein, described fixed code includes the characteristic information of infrared data and default lattice Formula, described change code includes the command content of infrared data, and its request sent according to locally applied end returns Corresponding data;
Locally applied end, sends to infrared server and obtains infrared equipment model, fixed code and the request of change code, And described fixed code and change code synthesize to re-form according to described default form control is infrared sets Standby instruction.
Ultra-red order calling system the most according to claim 9, it is characterised in that also include,
Interface server, is connected with infrared server and locally applied end, receives obtaining of locally applied end transmission Take infrared equipment model, fixed code and the request of change code, forward described acquisition to ask to infrared server, and The data that infrared server returns are sent back locally applied end.
CN201610228542.3A 2016-04-13 2016-04-13 Infrared data processing method, infrared instruction calling method and infrared instruction calling system Pending CN105869383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610228542.3A CN105869383A (en) 2016-04-13 2016-04-13 Infrared data processing method, infrared instruction calling method and infrared instruction calling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610228542.3A CN105869383A (en) 2016-04-13 2016-04-13 Infrared data processing method, infrared instruction calling method and infrared instruction calling system

Publications (1)

Publication Number Publication Date
CN105869383A true CN105869383A (en) 2016-08-17

Family

ID=56637720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610228542.3A Pending CN105869383A (en) 2016-04-13 2016-04-13 Infrared data processing method, infrared instruction calling method and infrared instruction calling system

Country Status (1)

Country Link
CN (1) CN105869383A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106297264A (en) * 2016-08-31 2017-01-04 杭州赫智电子科技有限公司 The coded method of the multiple ultra-red order of a kind of compatibility and system
CN107580240A (en) * 2017-09-12 2018-01-12 中广热点云科技有限公司 A kind of efficiently Advertisement arrangement method and system
CN109859454A (en) * 2017-11-30 2019-06-07 珠海格力电器股份有限公司 Infrared code transmitting line, chip, remote control equipment and air-conditioning based on infrared protocol
CN110445548A (en) * 2019-08-30 2019-11-12 科大智能电气技术有限公司 A kind of infrared carrier wave communication code method and system
CN111833584A (en) * 2019-04-17 2020-10-27 百度在线网络技术(北京)有限公司 Device control method, control device, control system, and storage medium
CN112908326A (en) * 2021-01-29 2021-06-04 思必驰科技股份有限公司 Household voice control learning and application method and device
CN114153546A (en) * 2021-12-09 2022-03-08 江苏赞奇科技股份有限公司 Data stream transmission method and system for cloud desktop operation management system
CN114745050A (en) * 2022-03-08 2022-07-12 浙江威星智能仪表股份有限公司 Long data processing method based on far infrared data transmission system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998034208A1 (en) * 1997-01-31 1998-08-06 Thomson Consumer Electronics, Inc. Communications system for remote control systems
KR20000069921A (en) * 1997-01-31 2000-11-25 크리트먼 어윈 엠 Remote control apparatus and method
US6204796B1 (en) * 1994-07-01 2001-03-20 Gemstar Development Corporation Apparatus and methods for generating codes for controlling appliances from a remote controller
CN1599258A (en) * 2004-06-25 2005-03-23 浙江大学 Coding mode suitable for different refrared control signal
CN101188457A (en) * 2007-09-21 2008-05-28 广州市聚晖电子科技有限公司 A learning and access method for infrared data based on communication devices
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN201754301U (en) * 2009-12-31 2011-03-02 深圳市创荣发电子有限公司 Universal remote controller
CN103680122A (en) * 2013-12-30 2014-03-26 Tcl海外电子(惠州)有限公司 Custom control method and system for remote control equipment
CN103745590A (en) * 2014-01-08 2014-04-23 无锡讯泰科技有限公司 Infrared remote coding method
CN104680770A (en) * 2013-11-29 2015-06-03 红板凳科技股份有限公司 Infrared remote controller capable of remotely updating control code
CN104966396A (en) * 2015-07-16 2015-10-07 四川长虹电子部品有限公司 Learning method for remote control codes of air conditioner based on cloud platform
CN105281777A (en) * 2014-07-04 2016-01-27 Tcl集团股份有限公司 Compression method of remote controller learning data, system and remote controller

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6204796B1 (en) * 1994-07-01 2001-03-20 Gemstar Development Corporation Apparatus and methods for generating codes for controlling appliances from a remote controller
WO1998034208A1 (en) * 1997-01-31 1998-08-06 Thomson Consumer Electronics, Inc. Communications system for remote control systems
KR20000069921A (en) * 1997-01-31 2000-11-25 크리트먼 어윈 엠 Remote control apparatus and method
CN1599258A (en) * 2004-06-25 2005-03-23 浙江大学 Coding mode suitable for different refrared control signal
CN101188457A (en) * 2007-09-21 2008-05-28 广州市聚晖电子科技有限公司 A learning and access method for infrared data based on communication devices
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN201754301U (en) * 2009-12-31 2011-03-02 深圳市创荣发电子有限公司 Universal remote controller
CN104680770A (en) * 2013-11-29 2015-06-03 红板凳科技股份有限公司 Infrared remote controller capable of remotely updating control code
CN103680122A (en) * 2013-12-30 2014-03-26 Tcl海外电子(惠州)有限公司 Custom control method and system for remote control equipment
CN103745590A (en) * 2014-01-08 2014-04-23 无锡讯泰科技有限公司 Infrared remote coding method
CN105281777A (en) * 2014-07-04 2016-01-27 Tcl集团股份有限公司 Compression method of remote controller learning data, system and remote controller
CN104966396A (en) * 2015-07-16 2015-10-07 四川长虹电子部品有限公司 Learning method for remote control codes of air conditioner based on cloud platform

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106297264A (en) * 2016-08-31 2017-01-04 杭州赫智电子科技有限公司 The coded method of the multiple ultra-red order of a kind of compatibility and system
CN107580240A (en) * 2017-09-12 2018-01-12 中广热点云科技有限公司 A kind of efficiently Advertisement arrangement method and system
CN107580240B (en) * 2017-09-12 2019-06-28 中广热点云科技有限公司 A kind of efficient Advertisement arrangement method and system
CN109859454A (en) * 2017-11-30 2019-06-07 珠海格力电器股份有限公司 Infrared code transmitting line, chip, remote control equipment and air-conditioning based on infrared protocol
CN109859454B (en) * 2017-11-30 2020-03-10 珠海格力电器股份有限公司 Infrared code sending circuit, chip, remote control equipment and air conditioner based on infrared protocol
US11004331B2 (en) 2017-11-30 2021-05-11 Gree Electric Appliances (Wuhan) Co., Ltd Infrared protocol-based infrared code transmission circuit, chip, remote control device and air conditioner
CN111833584A (en) * 2019-04-17 2020-10-27 百度在线网络技术(北京)有限公司 Device control method, control device, control system, and storage medium
CN110445548A (en) * 2019-08-30 2019-11-12 科大智能电气技术有限公司 A kind of infrared carrier wave communication code method and system
CN112908326A (en) * 2021-01-29 2021-06-04 思必驰科技股份有限公司 Household voice control learning and application method and device
CN114153546A (en) * 2021-12-09 2022-03-08 江苏赞奇科技股份有限公司 Data stream transmission method and system for cloud desktop operation management system
CN114153546B (en) * 2021-12-09 2023-11-03 江苏赞奇科技股份有限公司 Data stream transmission method and system for cloud desktop operation management system
CN114745050A (en) * 2022-03-08 2022-07-12 浙江威星智能仪表股份有限公司 Long data processing method based on far infrared data transmission system

Similar Documents

Publication Publication Date Title
CN105869383A (en) Infrared data processing method, infrared instruction calling method and infrared instruction calling system
CN103095941B (en) Intelligent adapter and apply the remote control system of this intelligent adapter
CN104009900B (en) A kind of home equipment control method and system
CN102760186B (en) Method for automatically generating vector graphics of intelligent transformer station
MY143294A (en) An apparatus and method for fast access in a wireless communication system
CN108449407A (en) Multi-source heterogeneous coal mine safety monitoring collecting method
CN102970796A (en) Wireless partitioning system with LED (Light-Emitting Diode) controller
CN105897537B (en) A kind of method and system of battery management system configuration vehicle communication protocol
CN109450747A (en) A kind of method, apparatus and computer storage medium waking up smart home device
CN109523606A (en) A kind of editing device and method of high voltage pulse waveform
CN116853055B (en) Charging station group control system and control method based on cloud platform
CN105897936B (en) The processing method of control configuration information based on industry internet, apparatus and system
WO2021088252A1 (en) Intelligent human settlement control system
CN104617983B (en) Ultrashort wave network system with sub-main station
CN203276519U (en) Intelligent adapter and long distance remote control system applying the same
WO2021088251A1 (en) Smart home control center
CN101677252B (en) Method and device for acquiring downlink burst data
CN113746503B (en) Low-voltage transformer area data display system and method based on HPLC technology
CN204408361U (en) A kind of Internet of Things encryption system
CN111065091A (en) Wireless data acquisition system and data transmission method based on lora
CN116208333B (en) Quantum key regulation and control method and system for remote control terminal of intelligent substation
CN106527388A (en) Control system and method for intelligent home equipment
CN116761167B (en) Data encryption transmission method, system, electronic equipment and storage medium
CN108833419B (en) Remote parameter updating message safety interaction method between terminal and main station
CN104714457A (en) Device and method for multimode synchronous control of intelligent switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160817