CN105719473B - A kind of SCM Based multifunction remote-control method and remote control device - Google Patents
A kind of SCM Based multifunction remote-control method and remote control device Download PDFInfo
- Publication number
- CN105719473B CN105719473B CN201610069859.7A CN201610069859A CN105719473B CN 105719473 B CN105719473 B CN 105719473B CN 201610069859 A CN201610069859 A CN 201610069859A CN 105719473 B CN105719473 B CN 105719473B
- Authority
- CN
- China
- Prior art keywords
- code
- infrared
- coding
- remote
- sequence
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004458 analytical method Methods 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims abstract description 11
- 230000006835 compression Effects 0.000 claims description 20
- 238000007906 compression Methods 0.000 claims description 20
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 238000004378 air conditioning Methods 0.000 claims description 9
- 238000004321 preservation Methods 0.000 claims description 6
- 238000003909 pattern recognition Methods 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 4
- 239000007787 solid Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 230000006837 decompression Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
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
Abstract
The present invention discloses a kind of SCM Based multifunction remote-control method, including infrared coding step and infrared decoding step, wherein, infrared coding step specifically: the special frequency channel infrared waves that B1, acquisition household electrical appliance remote controller issue, then infrared waves are converted into digit time sequence code;B2, digit time sequence code is subjected to pattern analysis according to infrared coding agreement, and the infrared coding that pattern analysis obtains is stored using formatted text mode;Infrared decoding step specifically: J1, be decoded the digit time sequence code for generating infrared waveform to infrared coding according to infrared coding agreement;J2, household electrical appliance are remotely controlled according to digit time sequence code output logical waveform sequence.Meanwhile the invention also discloses a kind of SCM Based multifunction remote-controllers.The present invention is decoded by the automatic compressed encoding of algorithm and by low performance single-chip microcontroller and carries out carrier wave transmission, can be adapted to the infrared control of current mainstream household electrical appliance.
Description
Technical field
The present invention relates to a kind of multifunction remote-controller, a kind of SCM Based show with LCD screen is more particularly related to
Multifunction remote-controller belongs to household electrical appliances infrared control technical field.
Background technique
Currently, most conventional domestic electric appliances are remotely controlled it using infrared-ray, the big portion of infrared carrier wave frequency
Divide and be in 38KHz and 52KHz frequency range, carries out information transmission according to digit time train wave shape code, and make in code stream time sequence
It with " having carrier level signal " and " carrierfree level signal " and then indicates logic 1 and logical zero, distinguishes in sender and recipient
Carry out D/A and A/D conversion.In traditional home appliance industry development course, also gradually accumulates and form a set of with protocol
The infrared digital agreement that code, system code, data code are composed.Household appliances manufacturer's invention utilizes existing mark
Quasi- infrared protocol code and the panel for combining itself remote control device can store specific infrared carrier wave sequence in storage built in remote controler
Column code, and then infrared signal transmission is carried out to specific household electrical appliances, still, infrared carrier wave sequence code in current infrared signal control
Algorithm comparison is huge, and the speed of service is slow, and the requirement to processor is also relatively high, largely limits its development.
Summary of the invention
Goal of the invention: present invention aims in view of the deficiencies of the prior art, providing, a kind of algorithm is simple, the speed of service
Fastly, the SCM Based multifunction remote-control method not high to processor requirement.
Meanwhile the present invention also provides a kind of SCM Based multifunction remote-controllers to solve the above problems.
Technical solution: a kind of SCM Based multifunction remote-control method of the present invention, including infrared coding step and
Infrared decoding step, wherein infrared coding step specifically:
The special frequency channel infrared waves that B1, acquisition household electrical appliance remote controller issue, then infrared waves are converted into digit time sequence
Column code;
B2, digit time sequence code is subjected to pattern analysis according to infrared coding agreement, and pattern analysis is obtained red
Outer coding is stored using formatted text mode;
Infrared decoding step specifically:
J1, the infrared coding for reading storage are simultaneously loaded, and are decoded life to infrared coding according to infrared coding agreement
At the digit time sequence code of infrared waveform;
J2, household electrical appliance are remotely controlled according to digit time sequence code output logical waveform sequence.
The technical solution of the present invention is further defined as in the step B1 in infrared coding step, when the number of generation
Between sequence code be 2 byte numerical digits coding, by one group have boot code, seperator code, end code and logical zero/1
Code is constituted, wherein logical zero/1 code is carried out by the time segment of fixed " with carrier wave " and " not having carrier wave " respectively
It indicates.
Further, in the pattern analysis step in the step B2 in infrared coding step, first according to digit time
Boot code in sequence code identifies infrared protocol protocol code, and judge the infrared code be command code or
Status code, without receiving more reference number time serieses, directly patrols subsequent expression if the infrared code is command code
Volume 0 and the digit time sequence of logic 1 carry out pattern-recognition according to infrared coding agreement, until identifying complete remote keying
Remote code is encoded, and remote code is stored using this paper mode is formatted;If the infrared code is status code,
More reference encoders are continued to, it, will after receiving and identifying successfully to identify each field combination under different conditions
Complete remote keying coding remote code is stored using formatted text mode.
Further, in infrared coding step, step B2 is gone back after being stored infrared coding using formatted text mode
Carry out coding compression step, specific compression method are as follows:
Order code type: by " there is carrier wave " of boot code, end code, seprator code in infrared coding
" the not having carrier wave " time is compressed to reference key of the binary coding head as decoding when respectively, will be in infrared coding
Logical zero/1 code is indicated using 16 systems, completes the double word of logical zero/1 represented by " having carrier wave " and " not having carrier wave "
Conversion of the section number to binary representation;
State code type: by infrared coding boot code, seperator code, end code is according to above-mentioned life
Protocol headers generating mode in code type is enabled to be compressed, meanwhile, default code is obtained in step B2, and is based on
Default code is encoded according to the amendment of starting, end logic bit when by various state changes.
Further, the specific decoding process in the step J1 in infrared decoding step are as follows:
To the decoding process of the infrared coding of order code type are as follows:
M1, boot code, end code in parsing infrared coding and seperator code time series, and keep in;
The logical zero of expression carrier wave in M 2, parsing infrared coding and the time series of logic 1, and keep in;
M 3, the key according to input are indexed lookup in the region remote of infrared coding, have this if found
Its hexadecimal data is then taken out, is converted into binary representation, and according to large and small end syllable sequence, protected by key set code
It deposits;
M 4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out
Conversion of the binary code to time sequence code;
M 5, on the basis of the logical time code of generation, according to the boot code, end code, seperator of frame sequence
Code is reduced into final digit time sequence.
To the decoding process of the infrared coding of state code type are as follows:
Z1, boot code, end code in parsing infrared coding and seperato code r time series, and temporarily
It deposits;
The logical zero of expression carrier wave in Z2, parsing infrared coding and the time series of logic 1, and keep in;
Z3, air-conditioning type status code decoding when need according to specified button, extract the amendment of default code
Bit bit field, and by the value of bit field specific in default code extract, according still further to switch state, mode state, air quantity, wind direction,
Temperature value is overlapped covering, the specified verification of finally superposition and, and be converted into default code code equal length but packet
Binary sequence containing each state;
Z4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out
Conversion of the binary code to time sequence code;
Z5, on the basis of the logical time code of generation, according to the boot code, end code, seperator of frame sequence
Code is reduced into final digit time sequence.
The present invention also provides a kind of SCM Based multifunction remote-controllers, including infrared encoder and infrared decoding
Device, the infrared encoder and the IR decoder are connected to by transmission module, carry out the transmission of infrared coded data,
The infrared encoder includes coding acquisition module, and the special frequency channel for acquiring household electrical appliance remote controller sending is red
External wave, then infrared waves are converted into digit time sequence code;
Code analysis module, for digit time sequence code to be carried out pattern analysis according to infrared coding agreement, and by mould
The infrared coding that formula is analyzed is stored using formatted text mode;
The IR decoder includes infrared decoding module, for reading the infrared coding of storage and being loaded, according to
Infrared coding agreement is decoded the digit time sequence code for generating infrared waveform to infrared coding;
Infrared remote control module, it is distant to household electrical appliance progress for exporting logical waveform sequence according to digit time sequence code
Control.
The technical program is further defined to, and includes digit time sequential sampling unit in the coding acquisition module,
For generation digit time sequence code be 2 byte numerical digits coding, by one group with boot code, seperator code,
End code and logical zero/1 code are constituted, wherein logical zero/1 code by fixed " having carrier wave " and " does not have and carries respectively
The time segment of wave " is indicated.
Further, the code analysis module is to protocal analysis method particularly includes: first according to digit time sequence
Boot code in code identifies infrared protocol protocol code, and judges that the infrared code is command code or state
Code, if the infrared code is command code, without receiving more reference number time serieses, directly to subsequent expression logical zero
Pattern-recognition is carried out according to infrared coding agreement with the digit time sequence of logic 1, until identifying that complete remote keying is compiled
Code remote code, and remote code is stored using this paper mode is formatted;If the infrared code is status code, after
More reference encoders are received in continued access, to identify that each field combination under different conditions will be complete after receiving and identifying successfully
Whole remote keying coding remote code is stored using formatted text mode.
Further, the infrared encoder further includes coding compression module, for infrared coding is literary using formatting
Coding compression, compression method are also carried out after the method storage are as follows: order code type: by boot code, the end in infrared coding
Code, " the having carrier wave " of seprator code and " not having carrier wave " time are compressed to the conduct of binary coding head respectively
Reference key when decoding indicates the logical zero in infrared coding/1 code using 16 systems, completes " have carrier wave " and " no
With carrier wave " represented by logical zero/1 conversion of the double byte bit digital to binary representation;
State code type: by infrared coding boot code, seperator code, end code is according to above-mentioned life
Protocol headers generating mode in code type is enabled to be compressed, meanwhile, default code is obtained in step B2, and is based on
Default code is encoded according to the amendment of starting, end logic bit when by various state changes.
Further, the IR decoder further includes coding decompression module, compressed for that will encode compression module
File unzips it.
The utility model has the advantages that the present invention provides a kind of SCM Based multifunction remote-control method and its remote control device, synthesis is examined
Consider ultra-red order in command instruction and status command two types, by the automatic compressed encoding of algorithm and by low performance single-chip microcontroller into
Row decoding and progress carrier wave transmission, can be adapted to the infrared control of current mainstream household electrical appliance;The present invention is compared with tradition according to infrared
The solution of carrier wave sequence code has the lower processor of frequency and the lesser RAM single-chip microcontroller of capacity, occupies memory space more
It is few, multifunctional Infrared Telequipment easy to accomplish;Infrared encoder can cooperate non-embedding as the external system of IR decoder
Enter formula environment to be operated, and since compressed encoding occupied space is smaller, efficiency of transmission with higher;Because will entirely encode
Fixed protocol headers and unfixed remote control mode ontology are split into, therefore than tradition according to digit time train wave shape code solution
Certainly scheme is more generally applicable;Decoding process of the present invention has load function, can be when system starts and initializes by lesser coding
It is mounted in Installed System Memory and resides by certain algorithm, only need to be implemented decoding algorithm when receiving external key request,
It can solve the low situation of embedded system CPU processing capacity.
Detailed description of the invention
Fig. 1 provides a kind of structural schematic diagram of SCM Based multifunction remote-controller for the present invention;
Fig. 2 is showing for the digit time sequence code in a kind of SCM Based multifunction remote-control method provided by the invention
It is intended to;
Fig. 3 is the remote control mode schematic diagram for the typical television set type that the present embodiment 1 provides;
Fig. 4 is the typical air-conditioning type remote control mode schematic diagram that the present embodiment 1 provides;
Fig. 5 is the flow chart for the infrared decoding step that the present embodiment 1 provides.
Specific embodiment
Technical solution of the present invention is described in detail below by attached drawing, but protection scope of the present invention is not limited to
The embodiment.
Embodiment 1: a kind of SCM Based multifunction remote-controller, structural schematic diagram is as shown in Figure 1, include infrared
Encoder and IR decoder, the infrared encoder and the IR decoder are connected to by transmission module.The infrared volume
Code device includes coding acquisition module, code analysis module and coding compression module, and the coding acquisition module includes infrared receiver
Device, digit time sequential sampling unit and master controller.The IR decoder includes infrared decoding module, infrared remote control mould
Block and coding decompression module.
The working principle of various modules passes through remote control in SCM Based multifunction remote-controller provided in this embodiment
Method makes a concrete explanation.
SCM Based multifunction remote-control method provided in this embodiment, including infrared coding step and infrared decoding step
Suddenly, wherein infrared coding step specifically:
The special frequency channel infrared waves that B1, coding acquisition module acquisition household electrical appliance remote controller issue, then infrared waves are converted
For digit time sequence code.
After infrared receiving device has received special frequency channel infrared waves, input is generated to master controller and is interrupted, and will carry
Wave signal is by being transmitted to master controller, the number that main controller controls digit time sequential sampling unit generates after A/D conversion
The schematic diagram of word time sequence code for 2 byte numerical digits as shown in Fig. 2, encode, by one group with boot code, seperator
Code, end code and logical zero/1 code are constituted, in addition to boot code, seperator code and end code, logic
0/1 code is indicated by the time segment of fixed " with carrier wave " and " not having carrier wave " respectively.
Digit time sequence code is carried out pattern analysis according to infrared coding agreement by B2, code analysis module, and by mode
Obtained infrared coding is analyzed to store using formatted text mode.
Infrared protocol protocol code is identified according to the boot code in digit time sequence code first, and is sentenced
Disconnected infrared code out is command code or status code, if the infrared code is command code, without receiving more reference numbers
Time series directly carries out mode knowledge according to infrared coding agreement to the digit time sequence of subsequent expression logical zero and logic 1
Not, until identifying complete remote keying coding remote code, and remote code is used into formatting this paper mode
It stores (such as xml document);If the infrared code is status code, more reference encoders are continued to, to identify in difference
Complete remote keying coding remote code after receiving and identifying successfully, is used lattice by each field combination under state
The storage of formula text mode.
The digit time sequence code that code analysis module obtains carries out pattern analysis according to common infrared coding agreement, such as
Fruit is the command code of television set type household electrical appliances, then is decomposed into protocol code and code code, is stored as text formatting number respectively
According to;If it is the status code of air-conditioning type household electrical appliances, then other than analyzing protocol code and code code, also need according to air-conditioning
Power supply, temperature, operational mode, 5 air quantity, wind direction factors carry out state parsings, and are stored as the status code of text formatting.
B3, coding compression module also carry out coding compression after storing infrared coding using formatted text mode.
The command code and status code remote code file that coding compression module is saved according to code analysis module,
Equally by command code and status code format it is larger to occupied space, be not easy the format data analyzed by single-chip microcontroller programming language into
Row compression is reset, and is not realized as follows:
Order code type: by the boot code, end code, seprator code of the part protocol in infrared coding
" with carrier wave " and " not having carrier wave " time be compressed to binary coding head respectively as reference key when decoding, general
Logical zero/1 code in infrared coding is indicated using 16 systems, completes to patrol " with carrier wave " and represented by " not having carrier wave "
Conversion of volume 0/1 double byte bit digital to binary representation.It is all when household electrical appliances type is television set, DVD, set-top box
Key set code should be converted all, and make each key according to certain byte length, be closely spaced under protocol headers
Side.The remote control code table of one typical television set type is as shown in Figure 3.
State code type: by infrared coding boot code, seperator code, end code is according to above-mentioned life
Protocol headers generating mode in code type is enabled to be compressed, meanwhile, default code is obtained in step B2, and is based on
Default code is encoded according to the amendment of starting, end logic bit when by various state changes.The amendment of air-conditioning is compiled
Code is divided into 5 grades according to switch state, state of temperature, operating mode, air quantity state, wind direction state one, and for certain skies
It adjusts, should also have cumulative and verification amendment coding, a certain section of position calculated by bit of same corresponding default code coding
(bit field).The state remote control mode of one typical air-conditioning type is as shown in Figure 4.
Either command code or status code store frame in encoded content and constitute sequence: is i.e. one complete infrared
The each component part of control code sequentially in time, it is boot code, end code, seperator code, remote
Any combination of code, this combination is defined according to protocol to be generated.Compression module is encoded according to television set type command code
The binary coding compression for carrying out different-format respectively with two kinds of infrared codings of air-conditioning type state code, by text formatting data
It is compressed to respectively according to gauge outfit, each field of protocol (next section detailed description), remote code key set code suitable for monolithic
Machine embedded device receives and the binary code of storage, to improve efficiency of transmission, save storage overhead.
The infrared coding compressed is transmitted by wired or wireless mode, and the mode of transmission is in the present embodiment not
It is repeating.
Infrared decoding step specifically:
The infrared coding that the reading of J1, infrared decoding module store, coding decompression module decompress infrared coding and carry out
It loads, is decoded the digit time sequence code for generating infrared waveform to infrared coding according to infrared coding agreement.
IR decoder is stored after receiving infrared coding by memory, convenient for the reading of infrared decoding module.
Memory can be used the modes such as flash or EEPROM and realize, not elaborate herein.
When system needs are decoded according to the key-press event of domestic electrical equipment remote controller, triggering decoder module operation.
To the decoding process of the infrared coding of order code type are as follows:
M1, compressed coding is loaded from memory according to file size, parses boot code, end in infrared coding
Code and seperator code time series, and keep in;
The logical zero of expression carrier wave in M 2, parsing infrared coding and the time series of logic 1, and keep in;
M 3, the key according to input are indexed lookup in the region remote of infrared coding, have this if found
Its hexadecimal data is then taken out, is converted into binary representation, and according to large and small end syllable sequence, protected by key set code
It deposits;
M 4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out
Conversion of the binary code to time sequence code;
M 5, on the basis of the logical time code of generation, according to the boot code, end code, seperator of frame sequence
Code is reduced into final digit time sequence.
The generation method of the time series final to the infrared coding of order code type are as follows:
(1) part agreement protocol and the part remote control mode remote code are extracted respectively from code database,
It is mapped in different data structures;
(2) it is mapped according to the key pre-defined on remote controler, the code value of key is extracted from remote control mode;
(3) code value of key is inserted key set code, and according to the frame sequence mode of protocol section according to protocol section
Logic level and 0/1 indicate be interpreted as Microsecond grade time slot sequence with/without subcarrier time gap;
(4) according to the Microsecond grade time slot number of the boot code of protocol section, seperator code and end code
According to being packaged into complete data frame
To the decoding process of the infrared coding of state code type are as follows:
Z1, compressed coding is loaded from memory according to file size, parses boot code, end in infrared coding
Code and seperato code r time series, and keep in;
The logical zero of expression carrier wave in Z2, parsing infrared coding and the time series of logic 1, and keep in;
Z3, air-conditioning type status code decoding when need according to specified button, extract the amendment of default code
Bit bit field, and by the value of bit field specific in default code extract, according still further to switch state, mode state, air quantity, wind direction,
Temperature value is overlapped covering, the specified verification of finally superposition and, and be converted into default code code equal length but packet
Binary sequence containing each state;
Z4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out
Conversion of the binary code to time sequence code;
Z5, on the basis of the logical time code of generation, according to the boot code, end code, seperator of frame sequence
Code is reduced into final digit time sequence.
The generation method of the time series final to the infrared coding of state code type are as follows:
(1) default code is parsed from coding, both initial default status code;
(2) data bit offset and correction value that each status code requires modification to default code are parsed from coding;
(3) combinations of states is calculated according to remote controller key;
(4) it according to each state (such as switching, mode, wind speed, wind direction etc.) in combinations of states, is successively resolved to respectively
Different data structure;
(5) successively each state is modified default code according to position offset and correction value, obtains end-state
Code;
(6) boot code, seperator code and end code are parsed from coding, difference insert state code
Head, middle section (if there is) and tail portion;
(7) logic level according to specified in coding and when being interpreted as Microsecond grade with/without subcarrier time gap of 0/1 expression
Between gap sequence, construct complete data frame.
Command code and status code are upper identical in protocol header extraction and final time series generation in decoding process,
But it is different in logic code process flow.Their working principle is as shown in Figure 5.
J2, infrared remote control module export logical waveform sequence according to digit time sequence code and are remotely controlled to household electrical appliance.
Infrared remote control module is exported by controller general timer to infrared output equipment according to logic 1 and logical zero
Logical waveform sequence carries out D/A(number à simulation by infrared output equipment) signal conversion, infrared carrier wave is sent to household electrical appliance
It is remotely controlled.
To sum up, the versatility of the general household electrical appliance infrared coding-decoding method proposed in the present invention is embodied in traditional home appliance
The command code and status code used has carried out adaptation according to protocol specification and has realized the compression of coding on this basis.It is limited to
The various hardware limitations of Single Chip MC in Embedded System, this method very good solution single-chip microcontroller memory space is small, CPU processing capacity
Low problem, so that it is a in an encoding process, several different home wiring control code can be carried out according to agreement code and remote control mode
Independent assortment only carries out generalization processing to them in decoding stage.
As described above, must not be explained although the present invention has been indicated and described referring to specific preferred embodiment
For the limitation to invention itself.It without prejudice to the spirit and scope of the invention as defined in the appended claims, can be right
Various changes can be made in the form and details for it.
Claims (4)
1. a kind of SCM Based multifunction remote-control method, which is characterized in that walked including infrared coding step and infrared decoding
Suddenly, wherein infrared coding step specifically:
The special frequency channel infrared waves that B1, acquisition household electrical appliance remote controller issue, then infrared waves are converted into digit time sequence code;
In the step B1 in infrared coding step, the digit time sequence code of generation is 2 byte numerical digits coding, is had by one group
Boot code, seperator code, end code and logical zero/1 code are constituted, wherein logical zero/1 code is respectively by solid
The time segment of fixed " with carrier wave " and " not having carrier wave " is indicated;
B2, digit time sequence code is subjected to pattern analysis, and the infrared volume that pattern analysis is obtained according to infrared coding agreement
Code is stored using formatted text mode;
In pattern analysis step, infrared protocol protocol is identified according to the boot code in digit time sequence code first
Code, and judge that the infrared code is command code or status code, it is more without receiving if the infrared code is command code
Reference number time series, directly to it is subsequent expression logical zero and logic 1 digit time sequence according to infrared coding agreement into
Remote code until identifying complete remote keying coding remote code, and is used formatting by row pattern-recognition
This paper mode stores;If the infrared code is status code, more reference encoders are continued to, to identify under different conditions
Each field combination, after receiving and identifying successfully, by complete remote keying coding remote code using format text
The method storage;
Coding compression step, specific compression method are also carried out after infrared coding is stored using formatted text mode are as follows:
Order code type: by infrared coding boot code, end code, seprator code " have carrier wave " and
" the not having carrier wave " time is compressed to reference key of the binary coding head as decoding when respectively, by patrolling in infrared coding
Collect 0/1 code is indicated using 16 systems, completes the double byte of logical zero/1 represented by " having carrier wave " and " not having carrier wave "
Conversion of the bit digital to binary representation;
State code type: by infrared coding boot code, seperator code, end code is according to mentioned order code
Protocol headers generating mode is compressed in type, meanwhile, default code is obtained in step B2, and is based on
Default code is encoded according to the amendment of starting, end logic bit when by various state changes;
Infrared decoding step specifically:
J1, the infrared coding for reading storage are simultaneously loaded, and it is red to be decoded generation to infrared coding according to infrared coding agreement
The digit time sequence code of outer waveform;
J2, household electrical appliance are remotely controlled according to digit time sequence code output logical waveform sequence.
2. a kind of SCM Based multifunction remote-control method according to claim 1, which is characterized in that in infrared decoding
The specific decoding process in step J1 in step are as follows:
To the decoding process of the infrared coding of order code type are as follows:
M1, boot code, end code in parsing infrared coding and seperator code time series, and keep in;
The logical zero of expression carrier wave in M 2, parsing infrared coding and the time series of logic 1, and keep in;
M 3, the key according to input are indexed lookup in the region remote of infrared coding, have this key if found
Its hexadecimal data is then taken out, is converted into binary representation, and according to large and small end syllable sequence, saved by code;
M 4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out two into
Conversion of the code processed to time sequence code;
M 5, on the basis of the logical time code of generation, according to the boot code, end code, seperator of frame sequence
Code is reduced into final digit time sequence;
To the decoding process of the infrared coding of state code type are as follows:
Z1, boot code, end code in parsing infrared coding and seperator code time series, and keep in;
The logical zero of expression carrier wave in Z2, parsing infrared coding and the time series of logic 1, and keep in;
Z3, air-conditioning type status code decoding when need according to specified button, extract amendment bit of default code
Domain, and the value of bit field specific in default code is extracted, according still further to switch state, mode state, air quantity, wind direction, temperature
Value is overlapped covering, the specified verification of finally superposition and, and be converted into default code code equal length including still each
The binary sequence of a state;
Z4, by the binary sequence of preservation logically 0 and logic 1 and frame sequence in remote code sequence carry out two into
Conversion of the code processed to time sequence code;
Z5, on the basis of the logical time code of generation, according to the boot code of frame sequence, end code, seperator code
It is reduced into final digit time sequence.
3. the remote control device of SCM Based multifunction remote-control method according to claim 1, which is characterized in that including
Infrared encoder and IR decoder, the infrared encoder and the IR decoder are connected to by transmission module, are carried out red
The transmission of outer coding data,
The infrared encoder includes coding acquisition module, and the special frequency channel for acquiring household electrical appliance remote controller sending is infrared
Wave, then infrared waves are converted into digit time sequence code;It include digit time sequential sampling unit in the coding acquisition module,
For generation digit time sequence code be 2 byte numerical digits coding, by one group with boot code, seperator code,
End code and logical zero/1 code are constituted, wherein logical zero/1 code by fixed " having carrier wave " and " does not have and carries respectively
The time segment of wave " is indicated;
Code analysis module for digit time sequence code to be carried out pattern analysis according to infrared coding agreement, and mode is divided
Obtained infrared coding is analysed to store using formatted text mode;Specific method of the code analysis module to protocal analysis
Are as follows: infrared protocol protocol code is identified according to the boot code in digit time sequence code first, and is judged
The infrared code is command code or status code, if the infrared code is command code, without receiving more reference number times
Sequence directly carries out pattern-recognition according to infrared coding agreement to the digit time sequence of subsequent expression logical zero and logic 1, directly
To identifying complete remote keying coding remote code, and remote code is stored using this paper mode is formatted;
If the infrared code is status code, more reference encoders are continued to, to identify each field groups under different conditions
It closes, after receiving and identifying successfully, complete remote keying coding remote code is stored using formatted text mode;
Compression module is encoded, for also carrying out coding compression, compression side after storing infrared coding using formatted text mode
Method are as follows: order code type: by infrared coding boot code, end code, seprator code " have carrier wave " and
" the not having carrier wave " time is compressed to reference key of the binary coding head as decoding when respectively, by patrolling in infrared coding
Collect 0/1 code is indicated using 16 systems, completes the double byte of logical zero/1 represented by " having carrier wave " and " not having carrier wave "
Conversion of the bit digital to binary representation;State code type: by infrared coding boot code, seperator code,
End code is compressed according to protocol headers generating mode in mentioned order code type, meanwhile, it obtains in step B2
Default code, and based on default code according to starting, terminate logic bit when by various state changes
Amendment coding;
The IR decoder includes infrared decoding module, for reading the infrared coding of storage and being loaded, according to infrared
Coding protocol is decoded the digit time sequence code for generating infrared waveform to infrared coding;
Infrared remote control module is remotely controlled household electrical appliance for exporting logical waveform sequence according to digit time sequence code.
4. remote control device according to claim 3, which is characterized in that the IR decoder further includes coding solution pressing mold
Block is unziped it for will encode the compressed file of compression module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069859.7A CN105719473B (en) | 2016-04-07 | 2016-04-07 | A kind of SCM Based multifunction remote-control method and remote control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069859.7A CN105719473B (en) | 2016-04-07 | 2016-04-07 | A kind of SCM Based multifunction remote-control method and remote control device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105719473A CN105719473A (en) | 2016-06-29 |
CN105719473B true CN105719473B (en) | 2019-04-05 |
Family
ID=56154537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610069859.7A Expired - Fee Related CN105719473B (en) | 2016-04-07 | 2016-04-07 | A kind of SCM Based multifunction remote-control method and remote control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105719473B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112003624B (en) * | 2020-08-05 | 2024-01-26 | 北京有生志广科技有限公司 | Radio monitoring data lossless compression and online decompression method and device |
CN112634556A (en) * | 2020-11-18 | 2021-04-09 | 清研讯科(北京)科技有限公司 | Electronic device, detection method, detection device, storage medium, and computer device |
CN114120617B (en) * | 2021-11-29 | 2022-12-09 | 珠海格力电器股份有限公司 | Method and device for encoding infrared signal of remote controller |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354830A (en) * | 2007-07-25 | 2009-01-28 | 杭州士兰微电子股份有限公司 | Remote controller code type general-purpose coding method |
CN101546475A (en) * | 2009-04-30 | 2009-09-30 | 余翀 | System and method for learning remote controller |
CN101751772A (en) * | 2010-02-01 | 2010-06-23 | 青岛海信电器股份有限公司 | Infrared remote control system for controlling household appliance and remote control method thereof |
CN102945599A (en) * | 2012-11-17 | 2013-02-27 | 福州大学 | Self-adaptive multi-system infrared decoding method, module and control circuit applying module |
CN103426290A (en) * | 2013-07-18 | 2013-12-04 | 惠州市和易科技有限公司 | Intelligent remote-control unit code learning method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012036475A2 (en) * | 2010-09-17 | 2012-03-22 | 주식회사 디지엔스 | Digital device control system using smart phone |
-
2016
- 2016-04-07 CN CN201610069859.7A patent/CN105719473B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354830A (en) * | 2007-07-25 | 2009-01-28 | 杭州士兰微电子股份有限公司 | Remote controller code type general-purpose coding method |
CN101546475A (en) * | 2009-04-30 | 2009-09-30 | 余翀 | System and method for learning remote controller |
CN101751772A (en) * | 2010-02-01 | 2010-06-23 | 青岛海信电器股份有限公司 | Infrared remote control system for controlling household appliance and remote control method thereof |
CN102945599A (en) * | 2012-11-17 | 2013-02-27 | 福州大学 | Self-adaptive multi-system infrared decoding method, module and control circuit applying module |
CN103426290A (en) * | 2013-07-18 | 2013-12-04 | 惠州市和易科技有限公司 | Intelligent remote-control unit code learning method |
Non-Patent Citations (1)
Title |
---|
通用学习式红外遥控器中数据压缩与识别算法;李冬梅等;《清华大学学报(自然科学版)》;20001231;第40卷(第7期);第85页左栏第2段-第88页左栏第3段 |
Also Published As
Publication number | Publication date |
---|---|
CN105719473A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105719473B (en) | A kind of SCM Based multifunction remote-control method and remote control device | |
KR900007131B1 (en) | Programable remote control transmitter | |
US8189620B2 (en) | Communication system with cross-compatibility and associated communication frame | |
JPH02190096A (en) | Remote control transmitter | |
JP2007174116A (en) | Communication method of infrared remote controller data and learning type infrared remote controller | |
CN102968897A (en) | Household appliance remote control method based on handheld equipment | |
CN103248930A (en) | Voice television and household appliance system | |
CN101881948A (en) | Remote air conditioner control starter design method based on wireless mobile communication network | |
JP2004348441A (en) | Vehicle identification code storage and vehicle identification code store method | |
CN105281777B (en) | A kind of compression method, system and the remote controler of remote controler learning data | |
CN101345053A (en) | Speech signal processing device | |
CN104156990A (en) | Lossless compressed encoding method and system supporting oversize data window | |
CN206775651U (en) | A kind of intelligent converter based on power line carrier | |
CN201754301U (en) | Universal remote controller | |
CN103325233A (en) | Method, apparatus and system for realizing infrared ray learning type remote control | |
CN1185852A (en) | Wireless and secure control of electrical equipment | |
US11490134B2 (en) | Method and system for codec of visual feature data | |
CN111787325B (en) | Entropy encoder and encoding method thereof | |
CN203057380U (en) | Signal pile processing device for expanding controllable functions of remote controller and system thereof | |
CN104320143A (en) | Method and device for compressing three-phase voltage and current signal waveform sample data | |
CN106297264A (en) | The coded method of the multiple ultra-red order of a kind of compatibility and system | |
CN109743353B (en) | Data conversion method based on Internet of things | |
CN109872522B (en) | Algorithm for decompressing infrared code based on sample index | |
CN204044547U (en) | Remote circuit device and remote controlled lantern assembly thereof | |
KR101377214B1 (en) | System for mapping data based on the schema and method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190314 Address after: Room 301, Unit 1, Building 15, Xiyuan, Qingjiang, 418 Jiangbei Road, Gulou District, Nanjing City, Jiangsu Province, 210000 Applicant after: Xu Wenjie Address before: 210012 8 blocks, 50 Andmen Street, Yuhuatai District, Nanjing City, Jiangsu Province Applicant before: NANJING YUEKONG INTELLIGENT TECHNOLOGY CO., LTD. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190405 Termination date: 20210407 |