CN103970289B - A method of emitting coding infrared ray with PC machine - Google Patents
A method of emitting coding infrared ray with PC machine Download PDFInfo
- Publication number
- CN103970289B CN103970289B CN201410227410.XA CN201410227410A CN103970289B CN 103970289 B CN103970289 B CN 103970289B CN 201410227410 A CN201410227410 A CN 201410227410A CN 103970289 B CN103970289 B CN 103970289B
- Authority
- CN
- China
- Prior art keywords
- infrared ray
- machine
- keyboard
- usb interface
- coding
- 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
Landscapes
- Input From Keyboards Or The Like (AREA)
- Selective Calling Equipment (AREA)
Abstract
A kind of method for emitting coding infrared ray with PC machine of the present invention, this method utilizes keyboard, mainboard, USB interface, infrared transmitting tube, the power supply of PC machine, under software support, PC machine can be made to have the function of transmitting coding infrared ray, operating keyboard can remote controlled electronic device, to make infrared remote-control operation become easy and efficient, it can feel convenient.
Description
Technical field
The present invention relates to PC machine, more particularly to a kind of method for emitting coding infrared ray with PC machine.
Background technique
Currently, PC machine in the market does not emit the function of coding infrared ray, remote controlled electronic device, can feel not side sometimes
Just.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of method for emitting coding infrared ray with PC machine, this method benefit
It can solve PC machine under software support with the keyboard of PC machine, mainboard, USB interface, infrared transmitting tube, power supply and do not emit volume
The function of code infrared ray, remote controlled electronic device sometimes, the problem of being inconvenienced.
To achieve the above object, technical scheme is as follows:
A method of emitting coding infrared ray with PC machine, the PC machine includes keyboard, mainboard, USB interface, infrared emission
Pipe, power supply, mainboard are connect with power supply, keyboard, USB interface respectively, and the USB interface is also connect with infrared transmitting tube, and power supply is given
Keyboard, mainboard, USB interface, infrared transmitting tube power supply, wherein the following steps are included:
A, it initializes;
B, main program is run;
C, operation keyboard generates scan code, which is sent into the port 60H and causes int9 interruption, jumps to b when not having key
Step;
D, CPU executes the input of int9 interrupt processing keyboard, the scan code in the port 60H is read, if the scan code is not
The scan code of Esc key then jumps to g step;
E, transmitting coding infrared ray identification position negates;
F, it interrupts and returns;
If g, transmitting coding infrared ray identification position is not 0, j step is jumped to;
H, it interrupts and returns;
J, calling coding infrared ray transmitting driving subprogram corresponding with scan code in the port 60H;
K, the subprogram drives the infrared ray of infrared transmitting tube transmitting coding by USB interface;
M, it interrupts and returns.
Beneficial effects of the present invention:
A kind of method for emitting coding infrared ray with PC machine of the present invention, this method are connect using the keyboard, mainboard, USB of PC machine
Mouth, infrared transmitting tube, power supply can make PC machine have the function of transmitting coding infrared ray, operation keyboard can under software support
With remote controlled electronic device, so that infrared remote-control operation be made to become easy and efficient, it can feel convenient.
Detailed description of the invention
Fig. 1 is structural schematic diagram of the invention.
Fig. 2 is a kind of method work flow diagram for emitting coding infrared ray with PC machine of the present invention.
Specific embodiment
Principle and structure in order to further illustrate the present invention carry out the preferred embodiment of the present invention now in conjunction with attached drawing detailed
Describe in detail bright, however the embodiment is only to provide explanation to be used with explanation, cannot be for limiting scope of patent protection of the invention.
A kind of method emitting coding infrared ray with PC machine as shown in Figure 1 and Figure 2, the PC machine includes keyboard 1, mainboard
2, USB interface 3, infrared transmitting tube 4, power supply 5, mainboard 2 are connect with power supply 5, keyboard 1, USB interface 3 respectively, the USB interface 3
Also it is connect with infrared transmitting tube 4, power supply 5 is powered to keyboard 1, mainboard 2, USB interface 3, infrared transmitting tube 4, the method, including
Following steps: a, initialization;
B, main program is run;
C, operation keyboard generates scan code, which is sent into the port 60H and causes int9 interruption, jumps to b when not having key
Step;
D, CPU executes the input of int9 interrupt processing keyboard, reads the scan code in the port 60H, which is not Esc key
Scan code, jump to g step;
E, transmitting coding infrared ray identification position negates;
F, it interrupts and returns;
G, transmitting coding infrared ray identification position is not 0, jumps to j step;
H, it interrupts and returns;
J, calling coding infrared ray transmitting driving subprogram corresponding with scan code in the port 60H;
K, the subprogram drives infrared transmitting tube by USB interface, emits the infrared ray of coding;
M, it interrupts and returns.
The specific embodiment advantages and beneficial effects are that the present invention is a kind of to emit the side for encoding infrared ray with PC machine
Method, this method can make PC machine under software support using keyboard, mainboard, USB interface, infrared transmitting tube, the power supply of PC machine
Have a function of transmitting coding infrared ray, operation keyboard can remote controlled electronic device, so that infrared remote-control operation be made to become easy
And it is efficient, it can feel convenient.
The specific embodiment of only invention described above, various illustrations do not constitute limit to the substantive content of invention
System, person of an ordinary skill in the technical field can repair the specific embodiment described in the past after having read specification
Change or deform, all shall be regarded as belonging to protection scope of the present invention.
Claims (1)
1. a kind of method for emitting coding infrared ray with PC machine, the PC machine includes keyboard, mainboard, USB interface, infrared emission
Pipe, power supply, mainboard are connect with power supply, keyboard, USB interface respectively, and the USB interface is also connect with infrared transmitting tube, and power supply is given
Keyboard, mainboard, USB interface, infrared transmitting tube power supply, which comprises the following steps:
A, it initializes;
B, main program is run;
C, operation keyboard generates scan code, which is sent into the port 60H and causes int9 interruption, jumps to b step when not having key;
D, CPU executes the input of int9 interrupt processing keyboard, the scan code in the port 60H is read, if the scan code is not Esc key
Scan code, then jump to g step;
E, transmitting coding infrared ray identification position negates;
F, it interrupts and returns;
If g, transmitting coding infrared ray identification position is not 0, j step is jumped to;
H, it interrupts and returns;
J, calling coding infrared ray transmitting driving subprogram corresponding with scan code in the port 60H;
K, the subprogram drives the infrared ray of infrared transmitting tube transmitting coding by USB interface;
M, it interrupts and returns.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410227410.XA CN103970289B (en) | 2014-05-28 | 2014-05-28 | A method of emitting coding infrared ray with PC machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410227410.XA CN103970289B (en) | 2014-05-28 | 2014-05-28 | A method of emitting coding infrared ray with PC machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103970289A CN103970289A (en) | 2014-08-06 |
CN103970289B true CN103970289B (en) | 2019-03-15 |
Family
ID=51239890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410227410.XA Active CN103970289B (en) | 2014-05-28 | 2014-05-28 | A method of emitting coding infrared ray with PC machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103970289B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862616A (en) * | 2005-05-14 | 2006-11-15 | 深圳市顶星数码网络技术有限公司 | Television infrared remote-receiver for notebook computer and receiving method |
CN201286145Y (en) * | 2008-10-20 | 2009-08-05 | 华南理工大学 | Television set remote control apparatus equipped with television game function |
CN101719311A (en) * | 2009-12-21 | 2010-06-02 | 成都九洲电子信息系统有限责任公司 | Method for infrared remote control of computer |
CN203119906U (en) * | 2013-03-21 | 2013-08-07 | 管存忠 | Computer universal serial bus (USB) interface infrared transmitter |
-
2014
- 2014-05-28 CN CN201410227410.XA patent/CN103970289B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862616A (en) * | 2005-05-14 | 2006-11-15 | 深圳市顶星数码网络技术有限公司 | Television infrared remote-receiver for notebook computer and receiving method |
CN201286145Y (en) * | 2008-10-20 | 2009-08-05 | 华南理工大学 | Television set remote control apparatus equipped with television game function |
CN101719311A (en) * | 2009-12-21 | 2010-06-02 | 成都九洲电子信息系统有限责任公司 | Method for infrared remote control of computer |
CN203119906U (en) * | 2013-03-21 | 2013-08-07 | 管存忠 | Computer universal serial bus (USB) interface infrared transmitter |
Also Published As
Publication number | Publication date |
---|---|
CN103970289A (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
MX2015006990A (en) | Facility-management-system control interface. | |
BR112015028442A2 (en) | method, apparatus, and system for intelligently controlling device and plug-and-play device | |
EP3267291A3 (en) | Gesture-based user interface | |
GB2555544A9 (en) | International multi-language implementation method of configuration software | |
WO2011103568A3 (en) | Towrope winch dead start | |
EP2711825A3 (en) | System for providing a user interface for use by portable and other devices | |
MX2017005192A (en) | Job authoring with data preview. | |
EP2290954A3 (en) | Method for providing control widget and device using the same | |
EP2378497A3 (en) | Communication system and communication device | |
EP2613546A3 (en) | Display apparatus, user input apparatus, and control methods thereof | |
EP2579606A3 (en) | Remote control apparatus, remote control method and display apparatus | |
EP3187976A3 (en) | System for gaze interaction | |
CN103970289B (en) | A method of emitting coding infrared ray with PC machine | |
CN202351838U (en) | Novel projector curtain | |
MX2013011407A (en) | Facilitating transport mode input/output operations between a channel subsystem and input/output devices. | |
EP2752756A3 (en) | Input device, device and operating methods thereof | |
GB201221357D0 (en) | Video system for representing pictorial data,process and computer program | |
CN203910205U (en) | Intrinsic safety type mining liquid crystal display screen | |
CN204189165U (en) | A kind of smart machine and embedded device carry out the device of data transmission | |
CN211062002U (en) | Gesture recognition AR application system based on OPENVR | |
CN103631143A (en) | Remote computer controller | |
CN103810121B (en) | Method for achieving mouse right key for windows virtual desktop connection under environment of Android system | |
CN203204825U (en) | Wireless hand-control box of medical accelerator | |
CN202763787U (en) | Novel guide nail hammering base | |
Jørgensen et al. | ARTIST: Adaptable Radiative Transfer Innovations for Submillimeter Telescopes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |