CN101699533B - Coding and decoding method applicable to remote controller - Google Patents
Coding and decoding method applicable to remote controller Download PDFInfo
- Publication number
- CN101699533B CN101699533B CN2009100592253A CN200910059225A CN101699533B CN 101699533 B CN101699533 B CN 101699533B CN 2009100592253 A CN2009100592253 A CN 2009100592253A CN 200910059225 A CN200910059225 A CN 200910059225A CN 101699533 B CN101699533 B CN 101699533B
- Authority
- CN
- China
- Prior art keywords
- yard
- level
- coding
- pulsewidth
- pulse width
- 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
Images
Landscapes
- Dc Digital Transmission (AREA)
Abstract
The invention discloses a coding and decoding method applicable to remote controller. Coding is carried out on a control message in a transmitting device, the bits of the control message are expressed by a coded string formed by 0 and 1 codes, then message code is transmitted by the transmitting device, and a carrier transmitting device is controlled to transmit corresponding radio wave according to the bits of the message code; wherein the period for expressing 0 and 1 codes of the control message all ranges from 100us to 2000us, the pulse widths of the front part of levels of 0 and 1 codes are the same, the pulse width of the rear part of level of 0 code is 50us widen than the pulse width of the front part of level of 0 code, and the pulse width of the rear part of level of 1 code is twice of pulse width of the front part of level of 1 code. The coding of the invention adopts methods forming codes containing common wave form, coding is simple and convenient; and the decoding method of the invention is simple in utilization and saves storing space, by adopting the invention, product development period can be reduced and product cost can be reduced.
Description
Technical field
The present invention relates to consumer electronics, intelligent distant control apparatus field, particularly a kind of coding, coding/decoding method that is applied to Digiplex.
Background technology
Under some environment, have only through Wireless transmission mode equipment is controlled or monitored, so just need the relevant wireless messages of transmission, will encode, decode information.
Some that exist at present are applied to the coding method of telepilot; High-low level all adopts the waveform of distinct pulse widths to distinguish 0 and 1 coded format; Also have the radix-minus-one complement of employing to distinguish 0 and 1 coded format, the coding method that these coding methods are distinguished for the waveform of 0 yard and 1 yard distinct pulse widths that all adopts is not only complicated when encoding, and because the restriction of this waveform coding form; So must adopt the method for whole sign indicating number storage to the waveform that receives; To take bigger storage space like this, not handle method for the waveform that receives simultaneously, so just take storage space more with regard to whole sign indicating number storage.
For coded format, as shown in Figure 1, this waveform has adopted the waveform of distinct pulse widths to distinguish 0 and 1 yard, when coding and decoding is handled, need all will handle the high-low level of the whole waveform of sign indicating number, also needs whole sign indicating number storage in the time of storage.Therefore, the implementation method more complicated of coding and decoding, and take bigger storage space.
All in all, the coding, the coding/decoding method that exist at present because the waveform of sign indicating number is different, be inconvenient to encode, yard form or the disposal route of sign indicating number all can not simple and conveniently be utilized, and can not utilize storage resources efficiently.
Summary of the invention
The invention provides a kind of coding, coding/decoding method that is applied to Digiplex, carry out distinctive agreement, use simple and conveniently, and can save storage space, reduce cost of products through a sign indicating number shape to 0,1 yard.
Technical scheme of the present invention is following:
A kind of coding, coding/decoding method that is applied to Digiplex; At first in transmitter, control information is encoded; Represent control information that with binary mode each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; It is characterized in that: in the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard low-level pulse width is identical with 1 yard low-level pulse width, the long 50uS of low-level pulse width that 0 yard high level peak pulse duration is 0 yard, and 1 yard high level pulsewidth is 0 yard 2 times of high level pulsewidth.
Perhaps; A kind of coding, coding/decoding method that is applied to Digiplex at first encoded to control information in transmitter, representes control information with binary mode; Each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; It is characterized in that: in the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard high level pulsewidth is identical with 1 yard high level pulsewidth, the high level pulsewidth long 50uS of 0 yard low-level pulse width than 0 yard, and 1 yard low-level pulse width is 0 yard 2 times of low-level pulse width.
Said 0 yard initial high-low level with 1 yard is relevant with the circuit of transmitter module, and in general, low earlier back is high if transmitter module is provided with phase inverter, and then the high back of elder generation is low if be added with phase inverter.
The error range of said each pulsewidth is ± 5uS.
The waveform of said information code all is square waves.
Since we 0 with 1 yard pulsewidth waveform that identical part is all arranged; So during one section radiowave of transmitter emission; Be to judge earlier that through transmitter module the position in the control information is 0 or 1; Control that section of transmitter emission radiowave again, so just be encoded into control information by described 0 yard and 1 yard yard ganging up transmitter and launching of forming.
Said 0 yard pulsewidth with the level of 1 yard last portion waveshape is identical, is low level, and a part of waveform in back is a high level.
As carrier transmit, demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier, this coded strings at first reads one section low level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment; Because 0 yard low level level pulsewidth with 1 yard is identical; Therefore do not read this low level pulsewidth length, up to reading the level saltus step, the pulsewidth length of ability opening entry level; According to 1 yard high level pulsewidth is 2 times relation of 0 yard high level pulsewidth, identifies 0 yard or 1 yard.
When transmitter module was provided with phase inverter, said 0 yard pulsewidth with the level of 1 yard last portion waveshape was identical, is high level, and a part of waveform in back is a low level.
As carrier transmit, demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier, this coded strings at first reads one section high level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment; Because 0 yard level pulsewidth with 1 yard high level is identical; Therefore do not read the pulsewidth length of this high level, up to reading the level saltus step, the pulsewidth length of ability opening entry level; According to 1 yard low-level pulse width is 2 times relation of 0 yard low-level pulse width, identifies 0 yard or 1 yard.
Store the pulsewidth width information if desired, the pulse width information of a part of level in storage back only just can be the complete storage of relevant information, and 0 yard level pulse width information identical with 1 yard does not need to store, and has saved storage space.
Beneficial effect of the present invention is following:
The present invention encodes and adopts some to have common wave form to come the method for generated code, and it is simple and convenient to encode; Coding/decoding method utilization of the present invention is simple, and saves storage space; Adopt the present invention can shorten product development cycle, reduce cost of products.
Description of drawings
Fig. 1 is traditional coding waveforms synoptic diagram of background technology
Fig. 2 is a coding waveforms synoptic diagram of the present invention
Fig. 3 is the coding waveforms synoptic diagram of the embodiment of the invention 3
Embodiment
A kind of coding, coding/decoding method that is applied to Digiplex; At first in transmitter, control information is encoded; Represent control information that with binary mode each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; In the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard low-level pulse width is identical with 1 yard low-level pulse width, the long 50uS of low-level pulse width that 0 yard high level peak pulse duration is 0 yard, and 1 yard high level pulsewidth is 0 yard 2 times of high level pulsewidth.
The error range of said each pulsewidth is ± 5uS.
The waveform of said information code all is square waves.
Said 0 yard pulsewidth with the level of 1 yard last portion waveshape is identical, is low level, and a part of waveform in back is a high level.
Since we 0 with 1 yard pulsewidth waveform that identical part is all arranged; So during one section radiowave of transmitter emission; Be to judge earlier that through transmitter module the position in the control information is 0 or 1; Control that section of transmitter emission radiowave again, so just be encoded into control information by described 0 yard and 1 yard yard ganging up transmitter and launching of forming.
As carrier transmit, can demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier, this coded strings reads one section low level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment; Because 0 yard low-level pulse width with 1 yard is identical; Therefore can not need reading low level pulsewidth length, is high level up to reading low transition, just the pulsewidth length of opening entry high level; According to 1 yard high level pulsewidth is 2 times of relations of 0 yard high level pulsewidth; Just can identify 0 yard or 1 yard, store the pulsewidth width information if desired, only store the pulse width information of high level; Just can be the complete storage of relevant information, and 0 yard low-level pulse width information identical with 1 yard does not need storage.
Embodiment 2
A kind of coding, coding/decoding method that is applied to Digiplex; At first in transmitter, control information is encoded; Represent control information that with binary mode each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; In the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard high level pulsewidth is identical with 1 yard high level pulsewidth, the high level pulsewidth long 50uS of 0 yard low-level pulse width than 0 yard, and 1 yard low-level pulse width is 0 yard 2 times of low-level pulse width.
The error range of said each pulsewidth is ± 5uS.
The waveform of said information code all is square waves.
Said 0 yard pulsewidth with the level of 1 yard last portion waveshape is identical, is high level, and a part of waveform in back is a low level.
Since we 0 with 1 yard pulsewidth waveform that identical part is all arranged; So during one section radiowave of transmitter emission; Be to judge earlier that through transmitter module the position in the control information is 0 or 1; Control that section of transmitter emission radiowave again, so just be encoded into control information by described 0 yard and 1 yard yard ganging up transmitter and launching of forming.
As carrier transmit, can demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier, this coded strings reads one section high level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment; Because 0 yard high level pulsewidth with 1 yard is identical, therefore can not need read the pulsewidth length of high level, be low level up to reading the high level saltus step; The low level pulsewidth length of ability opening entry; According to 1 yard low-level pulse width is 2 times of relations of 0 yard low-level pulse width, just can identify 0 yard or 1 yard, stores the pulsewidth width information if desired; Only store low level pulse width information; Just can be the complete storage of relevant information, and 0 yard high level pulse width information identical with 1 yard does not need storage, has saved storage space.
Embodiment 3
Operating process is following:
8052 single-chip microcomputers are the control module (coding) of master control, and--------------------------------8052 single-chip microcomputers are the controlled module (decoding) of master control to 433M receiver module (carrier wave receiving equipment) to carrier-wave transmission to 433M transmitter module (carrier transmit equipment)
The implementation process introduction is following:
Be to use software that control information is encoded in the control module of master control at first at 8052 single-chip microcomputers; Represent the information that will be transmitted to controlled module with binary mode; According to each position 0 or 1 of scale-of-two, represent with 0 yard or 1 yard of Fig. 3 respectively, so just realized information is encoded.
To information compiled the sign indicating number after; Transmit this information coding through the 433M transmitter module; Control the radiowave of 433M transmitter module emission 433MHZ according to each yard position of information code; Since 0 yard with 1 yard pulsewidth waveform that identical part is all arranged, so emission time the radiowave of one section identical time span of control transmitter emission earlier, have then emission software judge position present in the control information be 0 yard or 1 control again transmitter launch that section different time length radiowave.So just, launch through the 433M transmitter module 0 and 1 yard of control information.
As the 433MHZ radio wave transmission; The 433M receiver module receives this radiowave, and receiving equipment can demodulate the coding of emission, and this coding is that the software systems in the controlled module of master control are accepted by 8052 single-chip microcomputers; Software systems can be got one section low level from 433M receiver module port reads earlier; Here the length that receiving software can unevaluated low-level pulse width is 450uS, is uprised by low level and is level, the length of software opening entry high level pulsewidth up to reading 433M receiver module port; If the high level pulsewidth that reads is 500uS then is 0 yard; If the high level pulsewidth that reads is 1000uS then is 1 yard that controlled modular design has the E2ROM storer, the pulsewidth length of only storing high level here is 5005uS or 1000uS.
Claims (6)
1. coding, coding/decoding method that is applied to Digiplex; At first in transmitter, control information is encoded; Represent control information that with binary mode each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; It is characterized in that: in the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard low-level pulse width is identical with 1 yard low-level pulse width, the long 50uS of low-level pulse width that 0 yard high level peak pulse duration is 0 yard, and 1 yard high level pulsewidth is 0 yard 2 times of high level pulsewidth;
During one section radiowave of transmitter emission; Be to judge that through transmitter module the position of control information is 0 yard or 1 yard control transmitter emitting radio wave, therefore launch through transmitter through control information being encoded into by described 0 yard and 1 yard coded strings of forming;
Said coded strings is through behind the transmitter; Demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier; This coded strings at first reads one section low level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment, because 0 yard low level level pulsewidth with 1 yard is identical, does not therefore read this low level pulsewidth length; Up to reading the level saltus step; Just the pulsewidth length of opening entry level is 2 times relation of 0 yard high level pulsewidth according to 1 yard high level pulsewidth, identifies 0 yard or 1 yard.
2. coding, coding/decoding method that is applied to Digiplex; At first in transmitter, control information is encoded; Represent control information that with binary mode each of control information then represented through the coded strings of 0 yard and 1 yard composition, forms information code; Transmit information code through carrier transmit equipment then; Control carrier transmit equipment according to each yard position of information code and launch corresponding radiowave; It is characterized in that: in the said cataloged procedure; The cycle that is used to represent 0 yard of control information and 1 yard, all between 100uS-2000uS, promptly frequency range was 500HZ-10KHZ; Wherein, 0 yard high level pulsewidth is identical with 1 yard high level pulsewidth, the high level pulsewidth long 50uS of 0 yard low-level pulse width than 0 yard, and 1 yard low-level pulse width is 0 yard 2 times of low-level pulse width;
During one section radiowave of transmitter emission; Be to judge that through transmitter module the position of control information is 0 yard or 1 yard control transmitter emitting radio wave, therefore launch through transmitter through control information being encoded into by described 0 yard and 1 yard coded strings of forming;
Said coded strings is through behind the transmitter; Demodulate the coded strings of emission behind the carrier wave receiving equipment reception carrier; This coded strings at first reads one section high level by the receiver module of carrier wave receiving equipment from the carrier wave receiving equipment, because 0 yard level pulsewidth with 1 yard high level is identical, does not therefore read the pulsewidth length of this high level; Up to reading the level saltus step; Just the pulsewidth length of opening entry level is 2 times relation of 0 yard low-level pulse width according to 1 yard low-level pulse width, identifies 0 yard or 1 yard.
3. according to claim 1 or 2 said a kind of coding, coding/decoding methods that are applied to Digiplex; It is characterized in that: the initial high-low level of said 0 yard and 1 yard is by the circuit decision of transmitter module, when being provided with phase inverter in the circuit of transmitter module and opposite when not having phase inverter.
4. according to claim 1 or 2 said a kind of coding, coding/decoding methods that are applied to Digiplex, it is characterized in that: the error range of said each pulsewidth is ± 5uS.
5. according to claim 1 or 2 said a kind of coding, coding/decoding methods that are applied to Digiplex, it is characterized in that: the waveform of said information code all is square waves.
6. according to said a kind of coding, the coding/decoding method that is applied to Digiplex of claim 1, it is characterized in that: when storage pulsewidth width information, the pulse width information of only storing a part of distinct pulse widths level after 0 yard and 1 yard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100592253A CN101699533B (en) | 2009-05-08 | 2009-05-08 | Coding and decoding method applicable to remote controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100592253A CN101699533B (en) | 2009-05-08 | 2009-05-08 | Coding and decoding method applicable to remote controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101699533A CN101699533A (en) | 2010-04-28 |
CN101699533B true CN101699533B (en) | 2012-02-29 |
Family
ID=42147991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100592253A Expired - Fee Related CN101699533B (en) | 2009-05-08 | 2009-05-08 | Coding and decoding method applicable to remote controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101699533B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779259B (en) * | 2011-05-12 | 2015-08-19 | 国民技术股份有限公司 | A kind of communication mode adaptive approach, module and contactless IC card |
CN103714690B (en) * | 2013-12-23 | 2018-03-06 | 乐视致新电子科技(天津)有限公司 | The method and device of physics code is parsed from remote control code pulse |
CN105118285B (en) * | 2015-09-25 | 2018-09-25 | 广州视睿电子科技有限公司 | The method and system of anti-interference infrared remote control decoding |
CN107888339A (en) * | 2017-11-27 | 2018-04-06 | 卫星电子(中山)有限公司 | A kind of carrier wave sending method for being easy to reduce the binary code of transmission power |
CN108259958B (en) * | 2018-02-07 | 2020-12-22 | 深圳创维-Rgb电子有限公司 | Remote control key response method, device, equipment and storage medium |
CN113242032B (en) * | 2021-05-13 | 2024-06-04 | 苏州英威腾电力电子有限公司 | Method, device, equipment and medium for determining minimum pulse width of PWM (pulse Width modulation) signal |
CN113327412B (en) * | 2021-08-04 | 2021-11-16 | 深圳宇凡微电子有限公司 | Wireless signal decoding method, device, equipment and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN87103886A (en) * | 1986-05-30 | 1988-01-20 | 三菱电机株式会社 | Digital telecontrol transport unit |
US5640160A (en) * | 1994-11-15 | 1997-06-17 | Smk Corporation | Pulse modulation method |
-
2009
- 2009-05-08 CN CN2009100592253A patent/CN101699533B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN87103886A (en) * | 1986-05-30 | 1988-01-20 | 三菱电机株式会社 | Digital telecontrol transport unit |
US5640160A (en) * | 1994-11-15 | 1997-06-17 | Smk Corporation | Pulse modulation method |
Also Published As
Publication number | Publication date |
---|---|
CN101699533A (en) | 2010-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101699533B (en) | Coding and decoding method applicable to remote controller | |
CN101620664A (en) | Method for transmitting data information from reader to label | |
CN101719310B (en) | Long-distance infrared remote-controlled device and method used for embedded equipment | |
CN103428830A (en) | Wireless communication system and method | |
CN102119520A (en) | Techniques for solving overhearing problems of body area network medium access control protocols | |
CN102185817B (en) | Method and device for transmitting information from reader-writer to label | |
CN100438518C (en) | Radio communication coding and decoding method using variable length signal to express digital data | |
CN102129586B (en) | Information encoding method, method and device for transmitting information from reader-writer to label | |
CN201130985Y (en) | Mobile phone, receiving apparatus and communication system | |
CN106508105B (en) | For RF identification read write line to label information transferring method | |
CN101620663B (en) | Data coding method in passive radio frequency identification system | |
CN101989329B (en) | Data encoding method applying in radio frequency identification system | |
CN102339529A (en) | Radio frequency remote control device with infrared learning function | |
CN104598946B (en) | A kind of method of testing of the minimum triggering power of the RFID label tag based on virtual instrument | |
CN101222300B (en) | Antenna amount transmission method | |
CN103325237B (en) | The generation method of infrared carrier signal and device | |
RU2585992C2 (en) | System and method for wireless communication | |
CN101494507A (en) | Dipulse interval modulation method of wireless optical communication system | |
CN201984622U (en) | Wireless remote control communication module | |
CN110831118B (en) | Method for generating Chirp signal of wake-up code with low power consumption and communication method | |
US20120188060A1 (en) | Method and system for counting tags in radio frequency identification system | |
CN102946255B (en) | For the code and decode method of passive radio frequency identification system | |
CN107124248B (en) | A kind of communication means, apparatus and system | |
CN202816123U (en) | Multifunctional same frequency interference-resistance radio telecontrol module | |
CN108333398B (en) | High energy-saving ammeter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
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: 20120229 Termination date: 20180508 |