CN101719311B - Method for infrared remote control of computer - Google Patents
Method for infrared remote control of computer Download PDFInfo
- Publication number
- CN101719311B CN101719311B CN2009102635003A CN200910263500A CN101719311B CN 101719311 B CN101719311 B CN 101719311B CN 2009102635003 A CN2009102635003 A CN 2009102635003A CN 200910263500 A CN200910263500 A CN 200910263500A CN 101719311 B CN101719311 B CN 101719311B
- Authority
- CN
- China
- Prior art keywords
- code
- infrared remote
- remote control
- computer
- infrared
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention relates to a method for the infrared remote control of a computer, which is applied to an infrared remote control system of the computer. The infrared remote control system of the computer consists of an infrared signal sending terminal, an infrared signal receiving terminal and the computer. The method comprises the following steps of: S1, performing initialization; S2, scanning a keyboard; S3, sending an infrared remote control signal with a complete code; and S4, judging whether an infrared remote control signal with a duplication code is sent or not. The method has the advantages that: by extending the encoding bits of an address code and a data code of the complete code of the infrared remote control signal and extending the encoding bits to 12bit from 8bit, the data capacity of the infrared remote control signal is increased by 16 times, the conflicts and the mutual interferences between the address codes of different remote control devices are avoided, and simultaneously, the increase of the data code adapts to complex operational processes of the computer, so the integration of the operations of household electrical appliances and the computer is implemented.
Description
Technical field
The invention belongs to the Infrared Ray Remote Control Technology field, particularly a kind of infrared remote control method that is applicable to computer infrared remote control.
Background technology
At present, the equipment room technology of carrying out low coverage wireless transmission or control mainly contains Bluetooth, WAPI, Wi-Fi, NFC, Zigbee, Wireless USB, Wireless 1394 and IrDA etc.Wherein economic way is IrDA infrared transmission and control mode.Infrared technology is to utilize the near infrared ray between wavelength 0.76 μ m~1.5 μ m to transmit control signal, and the infrared communication process mainly comprises infrared emission and two processes of infrared reception.To reduce error probability, carrier frequency is between 30kHZ-60kHZ through ovennodulation for the signal demand of infrared transmission.Infra-red code method commonly used has NEC, Philips, Sony, Sharp, Panasonic, Nokia etc. several, different agreement based on technology mainly to be divided into " transform coding ", " space coding ", " pulse code " etc. several.Infra-red remote control is used for equipment such as TV, set-top box, air-conditioning more, and application on computers is fewer.But at hotel industry, the popular in the world small-size computer that utilizes connects televisor.By the powerful processing power of computing machine, the service quality in hotel is got a promotion.Existing computer infrared remote control apparatus and method all are based on traditional infrared remote coding method, its address code and numeric data code all are 8bit usually, thereby the problem that existing computer infrared remote control apparatus and method mainly exist is: the address code extendability is not strong, causes address code to repeat easily and causes the mutual interference of infrared remote-controlled signal phase, produces misoperation.The numeric data code extendability is not strong, 3C merges today Infrared Transmission equipment except transmission simple key-press information, in concrete the application, may also to transmit information such as state such as date, time, temperature, geographic position, existing infra-red code method code capacity extendability is not strong, can't transmit more data.
Summary of the invention
The objective of the invention is to have proposed a kind of method for infrared remote control of computer in order to solve its address code of existing method for infrared remote control of computer and the not strong defective of numeric data code dilatancy.
In order to realize purpose of the present invention, the technical scheme of computer infrared remote control device of the present invention is:
A kind of method for infrared remote control of computer, this method are applied in the computer infrared remote control system, and described computer infrared remote control system is made up of infrared signal transmitting terminal, infrared signal receiving end and computing machine, it is characterized in that, comprises step
S1. initialization: at first I/O port, timer, the counter to the computer infrared remote control system carries out initialization zero clearing and set and makes it enter emission state;
S2. keyboard scan: carry out key scan by the keyboard scan program;
S3. send the infrared remote-controlled signal of full code: if scanning sequence scans button and is pressed, promptly call the infrared remote-controlled signal that the encoded radio that presets in the storer sends the full code of this button correspondence, described full code is by preamble code, numeric data code, address code and data address check code are formed, described data address check code is made up of the radix-minus-one complement of address code and numeric data code, preamble code is 8ms and free time to be that the pulse signal of 4ms is represented by the pulsewidth time, numeric data code and address code constitute by the information of 12bit, the information of each bit is that binary logical zero or logical one are represented, logical zero is 320us by the pulsewidth time, cycle is that the pulse signal of 1ms is represented, logical one is 320us by the pulsewidth time, cycle is that the pulse signal of 2ms is represented, the transmission cycle of described full code is 110ms;
S4. judge whether to send the infrared remote-controlled signal of duplication code: check whether button is released, discharged and surpassed 0.1s release time as button and can reenter step S2 and carry out keyboard scan, do not discharge and then send the infrared remote-controlled signal of duplication code above 0.25s as button, described duplication code is 8ms and free time to be that the pulse signal of 2ms represents that the transmission cycle of described duplication code is 110ms by the pulsewidth time.
The numeric data code of full code is made up of 4bit high position data sign indicating number and 8bit low data sign indicating number among the above-mentioned steps S3, and the address code of full code is made up of 4bit high address sign indicating number and 8bit low order address sign indicating number.
The invention has the beneficial effects as follows: by the address code of expansion infrared remote-controlled signal full code and the coding figure place of numeric data code, it is expanded to 12bit by 8bit, make its data capacity increase by 16 times, the conflict of different remote control equipment address codes and mutual interference have mutually been avoided, the increase of numeric data code simultaneously, the complex operations process that has adapted to computing machine again makes household electrical appliances, integrated the obtaining of computer operation implement.
Description of drawings
Fig. 1 is the applied computer infrared remote control of a present invention system.
Fig. 2 is the hardware principle synoptic diagram of infrared signal transmitting terminal of the present invention and receiving end.
Fig. 3 is the hardware structure diagram of infrared signal transmitting terminal of the present invention.
Fig. 4 is the pulse code synoptic diagram of full code of the present invention.
The pulse code synoptic diagram of the preamble code of Fig. 5 full code of the present invention.
Fig. 6 is the pulse code synoptic diagram of logical zero of the present invention and logical one.
The pulse code synoptic diagram of the preamble code of Fig. 7 full code of the present invention, numeric data code and address code.
Fig. 8 is the pulse code synoptic diagram of duplication code of the present invention.
Fig. 9 is the transmission synoptic diagram of full code of the present invention and duplication code.
Figure 10 is a main flow chart of the present invention.
Figure 11 is the USB catenation principle figure of infrared signal receiving end of the present invention and computing machine.
Figure 12 is the decoding process figure of infrared signal receiving end of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
Be illustrated in figure 1 as the applied computer infrared remote control of the present invention system, in this system, mainly comprise infrared signal transmitting terminal (as telepilot), infrared signal receiving end (as infrared remote receiver, infrared adapter) and computing machine (as small-size computer) composition, telepilot and infrared remote receiver are wireless connections, the employing infrared signal communicates, and connects and realization communication by USB interface between infrared remote receiver and the small-size computer.Expansion as native system, televisor and server have also been comprised, televisor is connected with small-size computer by looking tone frequency channel wire, display device as small-size computer, server is made up of Portal server, movie and video programs server, game server, and is connected with small-size computer with the broadband network interface by the internet.Said system can be applied in hotel industry, as with in the hotel room after telepilot, infrared remote receiver, small-size computer and the televisor, server is placed the server room, just realized communicating by letter of telepilot and TV, computer network, infrared remote receiver inserts small-size computer by USB interface, and computer booting is visited remote server after moving corresponding software automatically automatically.The user can be by Infrared remote controller control computer visit remote server browser server content, carry out that video display are watched, online game fight etc.Because this system has more operational motion, thereby the coded format of original infrared remote control do not re-use, and need expand the coded format of infrared remote control.
As shown in Figures 2 and 3, general infrared remote control system is formed by transmitting and receiving the two large divisions.Application coding/decoding dedicated IC chip carries out control operation as the Code And Decode processor of system, and the infrared signal transmitting terminal comprises keyboard matrix, coded modulation, LED infrared transmitter; The infrared signal receiving end comprises light, electric switching amplifier, demodulation, decoding circuit.By after the PWM modulation, 38kHz pulse and I/O emission output through U1 with door, after the output modulated wave is amplified by triode Q1, thereby driving TSAL6200 infrarede emitting diode obtains the remote-control transmitting signal.
The infrared signal transmitting terminal of aforementioned calculation machine infrared remote control system can send out two kinds of infrared remote-controlled signals, and a kind of is full code, after pressing certain button, send the control signal corresponding with this button, a kind of is duplication code, and when pressing certain button, expression repeats to send full code always.
Fig. 4, Fig. 5, Fig. 6, show the form of full code of the present invention with Fig. 7 and Fig. 9, described full code is by preamble code, numeric data code, address code and data address check code are formed, described data address check code is made up of the radix-minus-one complement of address code and numeric data code, preamble code is 8ms and free time to be that the pulse signal of 4ms is represented by the pulsewidth time, numeric data code and address code constitute by the information of 12bit, the information of each bit is that binary logical zero or logical one are represented, logical zero is 320us by the pulsewidth time, cycle is that the pulse signal of 1ms is represented, logical one is 320us by the pulsewidth time, cycle is that the pulse signal of 2ms is represented, the transmission cycle of described full code is 110ms; Repeat to transmit an instruction after having transmitted address code and numeric data code 40ms, wherein address code is with original regular transmission, and command code adopts the radix-minus-one complement mode to transmit, and address code that repeats to transmit and numeric data code are the data address check code.The numeric data code of full code is made up of 4bit high position data sign indicating number and 8bit low data sign indicating number, and the address code of full code is made up of 4bit high address sign indicating number and 8bit low order address sign indicating number.
Fig. 8 and Fig. 9 show the form of duplication code of the present invention, and described duplication code is 8ms and free time to be that the pulse signal of 2ms represents that the transmission cycle of described duplication code is 110ms by the pulsewidth time.
As shown in figure 10, for being applied to the method for infrared remote control of computer of aforementioned calculation machine infrared remote control system.Comprise step:
S1. initialization: at first I/O port, timer, the counter to the computer infrared remote control system carries out initialization zero clearing and set and makes it enter emission state;
S2. keyboard scan: carry out key scan by the keyboard scan program;
S3. send the infrared remote-controlled signal of full code: if scanning sequence scans button and is pressed, promptly call the infrared remote-controlled signal that the encoded radio that presets in the storer sends the full code of this button correspondence, described full code is by preamble code, numeric data code, address code and data address check code are formed, described data address check code is made up of the radix-minus-one complement of address code and numeric data code, preamble code is 8ms and free time to be that the pulse signal of 4ms is represented by the pulsewidth time, numeric data code and address code constitute by the information of 12bit, the information of each bit is that binary logical zero or logical one are represented, logical zero is 320us by the pulsewidth time, cycle is that the pulse signal of 1ms is represented, logical one is 320us by the pulsewidth time, cycle is that the pulse signal of 2ms is represented, the transmission cycle of described full code is 110ms;
S4. judge whether to send the infrared remote-controlled signal of duplication code: check whether button is released, discharged and surpassed 0.1s release time as button and can reenter step S2 and carry out keyboard scan, do not discharge and then send the infrared remote-controlled signal of duplication code above 0.25s as button, described duplication code is 8ms and free time to be that the pulse signal of 2ms represents that the transmission cycle of described duplication code is 110ms by the pulsewidth time.
As shown in figure 11, provided infrared signal receiving end (as infrared remote receiver, infrared adapter) and computing machine (as small-size computer) and realized that the present invention proposes the USB catenation principle figure of method.Infrared adapter connects computing machine by USB interface, and the USB HID driver that computing machine provides in conjunction with Windows self by usb host controller calls bus apparatus and drives.
Among Figure 12, provided the decoding process figure of infrared signal receiving end of the present invention.。Infrared decoding program is judged according to the coding method that the present invention proposes.Program run is in this idle condition of IRIN_STATE_IDLE, receives that infrared signal enters IRIN_STATE_LEAD_IN and judges the opening code respective interrupt, and IRIN_STATE_LEAD_END judges whether end of transmission of opening code.Opening code satisfies the reception IRIN_STATE_ADDRESS software module that enters address code after the infrared coding method that the present invention proposes, and the correct back of checking address code receives infrared reception data I RIN_STATE_DATE software module and also decodes.
According to the described method for infrared remote control of computer of present embodiment.Infrared signal receiving end (as infrared remote receiver, infrared adapter) receives the infrared signal that telepilot sends.Infrared decoding and data-switching through embedded main board are sent in the computing machine.Infrared adapter is modeled as mouse, meets human interface device (HID) standard.Utilizing computing machine self to drive can be modeled as telepilot mouse moves, left button, right button, the global function operation such as double-click, click according to key assignments.
Those of ordinary skill in the art will appreciate that embodiment described here is in order to help reader understanding's principle of the present invention, should to be understood that protection scope of the present invention is not limited to such special statement and embodiment.Everyly make various possible being equal to according to foregoing description and replace or change, all be considered to belong to the protection domain of claim of the present invention.
Claims (2)
1. method for infrared remote control of computer, this method is applied in the computer infrared remote control system, and described computer infrared remote control system is made up of infrared signal transmitting terminal, infrared signal receiving end, USB interface and computing machine, it is characterized in that, comprises step
S1. initialization: at first I/O port, timer, the counter to the computer infrared remote control system carries out initialization zero clearing and set and makes it enter emission state;
S2. keyboard scan: carry out key scan by the keyboard scan program;
S3. send the infrared remote-controlled signal of full code: if scanning sequence scans button and is pressed, promptly call the encoded radio that presets in the storer, and send the infrared remote-controlled signal of the full code of this button correspondence, described full code is by preamble code, numeric data code, address code and data address check code are formed, described data address check code is made up of the radix-minus-one complement of address code and numeric data code, preamble code is 8ms and free time to be that the pulse signal of 4ms is represented by the pulsewidth time, numeric data code and address code constitute by the information of 12bit, the information of each bit is that binary logical zero or logical one are represented, logical zero is 320us by the pulsewidth time, cycle is that the pulse signal of 1ms is represented, logical one is 320us by the pulsewidth time, cycle is that the pulse signal of 2ms is represented, the transmission cycle of described full code is 110ms;
S4. judge whether to send the infrared remote-controlled signal of duplication code: check whether button is released, discharged and surpassed 0.1s release time as button and can reenter step S2 and carry out keyboard scan, do not discharge and then send the infrared remote-controlled signal of duplication code above 0.25s as button, described duplication code is 8ms and free time to be that the pulse signal of 2ms represents that the transmission cycle of described duplication code is 110ms by the pulsewidth time.
2. a kind of method for infrared remote control of computer according to claim 1, it is characterized in that, the numeric data code of full code is made up of 4bit high position data sign indicating number and 8bit low data sign indicating number among the above-mentioned steps S3, and the address code of full code is made up of 4bit high address sign indicating number and 8bit low order address sign indicating number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102635003A CN101719311B (en) | 2009-12-21 | 2009-12-21 | Method for infrared remote control of computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102635003A CN101719311B (en) | 2009-12-21 | 2009-12-21 | Method for infrared remote control of computer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101719311A CN101719311A (en) | 2010-06-02 |
CN101719311B true CN101719311B (en) | 2011-08-17 |
Family
ID=42433879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102635003A Active CN101719311B (en) | 2009-12-21 | 2009-12-21 | Method for infrared remote control of computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101719311B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102064834A (en) * | 2011-02-15 | 2011-05-18 | 苏州华芯微电子股份有限公司 | Method for scanning extension ground key |
CN102624445B (en) * | 2012-03-12 | 2014-12-24 | 成都龙冠科技实业有限公司 | Infrared-based unidirectional data transmission equipment |
CN103051417B (en) * | 2012-11-30 | 2015-09-09 | 浙江西盈科技有限公司 | A kind of fixing code length complementary type coding method for Infrared remote controller and coding/decoding method thereof |
CN103442279B (en) * | 2013-08-02 | 2016-12-28 | 四川长虹电器股份有限公司 | A kind of based on Set Top Box and the interactive system of intelligent television and method |
CN103699005A (en) * | 2013-12-26 | 2014-04-02 | 河南东骏智能科技有限公司 | Infrared gesture switch controller |
CN103970289B (en) * | 2014-05-28 | 2019-03-15 | 管存忠 | A method of emitting coding infrared ray with PC machine |
CN104348495B (en) * | 2014-10-27 | 2017-09-15 | 黑龙江大学 | Infrared voice and literal code emitter |
CN105717828B (en) * | 2014-12-23 | 2018-06-08 | 曹一宁 | Indoor electric appliance control signal radio optical communication system based on optical information field |
CN106803902B (en) * | 2017-02-14 | 2022-04-12 | 海信视像科技股份有限公司 | Electric quantity display method and display device of infrared remote control device |
CN112530149B (en) * | 2019-09-17 | 2023-09-22 | 青岛海信宽带多媒体技术有限公司 | Remote control method and device |
CN113777664A (en) * | 2021-08-31 | 2021-12-10 | 拉扎斯网络科技(上海)有限公司 | Detection method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1095497A (en) * | 1993-11-25 | 1994-11-23 | 天津艾威电脑系统有限公司 | Computer remote control input method and remote keypad |
CN1336577A (en) * | 2000-07-31 | 2002-02-20 | 旭丽股份有限公司 | Infrared keyboard for computer and its remote control format generating method |
CN201274039Y (en) * | 2008-08-15 | 2009-07-15 | 庆盟工业股份有限公司 | Computer system capable of expanding infrared control and infrared transceiving hub |
-
2009
- 2009-12-21 CN CN2009102635003A patent/CN101719311B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1095497A (en) * | 1993-11-25 | 1994-11-23 | 天津艾威电脑系统有限公司 | Computer remote control input method and remote keypad |
CN1336577A (en) * | 2000-07-31 | 2002-02-20 | 旭丽股份有限公司 | Infrared keyboard for computer and its remote control format generating method |
CN201274039Y (en) * | 2008-08-15 | 2009-07-15 | 庆盟工业股份有限公司 | Computer system capable of expanding infrared control and infrared transceiving hub |
Also Published As
Publication number | Publication date |
---|---|
CN101719311A (en) | 2010-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101719311B (en) | Method for infrared remote control of computer | |
US20110144778A1 (en) | Smart Audio Plug-in for Enabling Smart Portable Device to be Universal Remote Control | |
US20110153885A1 (en) | Plug-in Peripheral Device for Enabling Smart Portable Device to be Universal Remote Control | |
US20070223500A1 (en) | Home Network System | |
US20110117850A1 (en) | Apparatus and Methods for Enabling Smart Portable Device to be Universal Remote Control | |
US9542840B2 (en) | Remote control system and method having reduced vulnerability to noise | |
CN100530262C (en) | Domestic electric appliance remote controller utilizing laser transmission technique to control remote-control signal | |
CN102647522A (en) | Multifunctional universal remote control system based on mobile phone platform | |
CN102665124A (en) | Set top box based learning type remote control system, and learning remote control method | |
CN1202648C (en) | Method for wireless remote control using mobile phone short message | |
CN201751920U (en) | Computer infrared remote control system | |
CN103281558A (en) | Testing method based on set top box and set top box testing system | |
CN101799971A (en) | Remote control method and remote control system | |
CN1185852A (en) | Wireless and secure control of electrical equipment | |
CN101540783B (en) | Service control signal sending and receiving method, device and system | |
CN100435074C (en) | Television infrared remote-receiver for notebook computer and receiving method | |
CN102339529A (en) | Radio frequency remote control device with infrared learning function | |
CN105207747B (en) | A kind of data transmission method based on HID protocol | |
CN203386343U (en) | Learning infrared remote controller based on WIFI (wireless fidelity) | |
CN202565422U (en) | Set top box-based learning-type remote control system | |
KR100495959B1 (en) | Remote Controller System | |
WO2011118227A1 (en) | Wireless remote control signal transmitter and wireless remote control signal receiver | |
CN203300023U (en) | Dual-code-system remote control system | |
CN101290709A (en) | Anti-jamming remote controlling device | |
CN202004838U (en) | Mobile terminal with remote control function |
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 | ||
C56 | Change in the name or address of the patentee |
Owner name: CHENGDU JIUZHOU ELECTRONIC INFORMATION SYSTEM CO., Free format text: FORMER NAME: CHENGDU JIUZHOU ELECTRONIC INFORMATION SYSTEMS CO., LTD. |
|
CP01 | Change in the name or title of a patent holder |
Address after: The middle Tianfu Avenue in Chengdu city Sichuan province 610041 No. 765 Patentee after: Chengdu Jiuzhou Electronic Information System Co., Ltd. Address before: The middle Tianfu Avenue in Chengdu city Sichuan province 610041 No. 765 Patentee before: Chengdu Jiuzhou Electronic Information Systems Co., Ltd. |