CN103970289A - Method for transmitting encoded infrared rays through PC - Google Patents

Method for transmitting encoded infrared rays through PC Download PDF

Info

Publication number
CN103970289A
CN103970289A CN201410227410.XA CN201410227410A CN103970289A CN 103970289 A CN103970289 A CN 103970289A CN 201410227410 A CN201410227410 A CN 201410227410A CN 103970289 A CN103970289 A CN 103970289A
Authority
CN
China
Prior art keywords
code
keyboard
usb interface
infrared
power supply
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.)
Granted
Application number
CN201410227410.XA
Other languages
Chinese (zh)
Other versions
CN103970289B (en
Inventor
管存忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201410227410.XA priority Critical patent/CN103970289B/en
Publication of CN103970289A publication Critical patent/CN103970289A/en
Application granted granted Critical
Publication of CN103970289B publication Critical patent/CN103970289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a method for transmitting encoded infrared rays through a PC. According to the method, a keyboard, a main board, a USB port, an infrared emitting tube and a power source of the PC are used, under the support of software, the PC can have the encoded infrared ray transmitting function, electronic equipment can be controlled remotely by operating the keyboard, therefore, infrared remote operation is simple and convenient to achieve and efficient, and convenience is achieved.

Description

A kind of by the ultrared method of PC launching code
Technical field
The present invention relates to PC, particularly relate to a kind of by the ultrared method of PC launching code.
Background technology
At present, the PC on market does not have the ultrared function of launching code, and remote controlled electronic device sometimes can feel inconvenient.
Summary of the invention
The technical problem to be solved in the present invention is, provide a kind of by the ultrared method of PC launching code, the method is utilized keyboard, mainboard, USB interface, infrared transmitting tube, the power supply of PC, under software support, can solve PC and there is no the ultrared function of launching code, sometimes remote controlled electronic device, can feel inconvenient problem.
for achieving the above object, technical scheme of the present invention is as follows:
A kind of by the ultrared method of PC launching code, described PC comprises, keyboard, mainboard, USB interface, infrared transmitting tube, power supply, mainboard is connected with power supply, keyboard, USB interface respectively, described USB interface is also connected with infrared transmitting tube, power supply is to keyboard, mainboard, USB interface, infrared transmitting tube power supply, and described method, comprises the following steps:
A, initialization;
B, operation master routine;
C, operation keyboard produce scan code, and this scan code is sent into 60H port and caused int9 interruption, jumps to b step while not having button;
D, CPU carry out int9 and interrupt processing keyboard input, read the scan code in 60H port, and this scan code is not the scan code of Esc key, jumps to g step;
E, the negate of launching code infrared ray discrimination bit;
F, interruption are returned;
G, launching code infrared ray discrimination bit are not 0, jump to j step;
H, interruption are returned;
J, call the coding infrared emitting driven element program corresponding with scan code in 60H port;
K, this subroutine drive infrared transmitting tube by USB interface, the infrared ray of launching code;
M, interruption are returned.
beneficial effect of the present invention:
The present invention is a kind of by the ultrared method of PC launching code, the method is utilized keyboard, mainboard, USB interface, infrared transmitting tube, the power supply of PC, under software support, can make PC have the ultrared function of launching code, operation keyboard just can remote controlled electronic device, thereby make infrared remote-control operation become easy and efficient, can feel convenient.
Brief description of the drawings
Fig. 1 is structural representation of the present invention.
Fig. 2 is that the present invention is a kind of with the ultrared method workflow diagram of PC launching code.
Embodiment
In order to further illustrate principle of the present invention and structure, existing by reference to the accompanying drawings to a preferred embodiment of the present invention will be described in detail, but described embodiment is only for furnishing an explanation and the use of explaining, can not be used for limiting scope of patent protection of the present invention.
The ultrared method of PC launching code for one as shown in Figure 1 and Figure 2, described PC comprises, keyboard 1, mainboard 2, USB interface 3, infrared transmitting tube 4, power supply 5, mainboard 2 is connected with power supply 5, keyboard 1, USB interface 3 respectively, described USB interface 3 is also connected with infrared transmitting tube 4, power supply 5 powers to keyboard 1, mainboard 2, USB interface 3, infrared transmitting tube 4, and described method, comprises the following steps:
A, initialization;
B, operation master routine;
C, operation keyboard produce scan code, and this scan code is sent into 60H port and caused int9 interruption, jumps to b step while not having button;
D, CPU carry out int9 and interrupt processing keyboard input, read the scan code in 60H port, and this scan code is not the scan code of Esc key, jumps to g step;
E, the negate of launching code infrared ray discrimination bit;
F, interruption are returned;
G, launching code infrared ray discrimination bit are not 0, jump to j step;
H, interruption are returned;
J, call the coding infrared emitting driven element program corresponding with scan code in 60H port;
K, this subroutine drive infrared transmitting tube by USB interface, the infrared ray of launching code;
M, interruption are returned.
Described embodiment advantage and beneficial effect are, the present invention is a kind of by the ultrared method of PC launching code, the method is utilized keyboard, mainboard, USB interface, infrared transmitting tube, the power supply of PC, under software support, can make PC have the ultrared function of launching code, operation keyboard just can remote controlled electronic device, thereby makes infrared remote-control operation become easy and efficient, can feel convenient.
The just embodiment of invention described above; various not illustrating limited essence of an invention Composition of contents; person of an ordinary skill in the technical field read after instructions can to before described embodiment make an amendment or be out of shape, all should be considered as belonging to protection scope of the present invention.

Claims (1)

1. one kind by the ultrared method of PC launching code, described PC comprises, keyboard, mainboard, USB interface, infrared transmitting tube, power supply, mainboard is connected with power supply, keyboard, USB interface respectively, described USB interface is also connected with infrared transmitting tube, power supply is to keyboard, mainboard, USB interface, infrared transmitting tube power supply, and described method is characterized in that, comprises the following steps:
A, initialization;
B, operation master routine;
C, operation keyboard produce scan code, and this scan code is sent into 60H port and caused int9 interruption, jumps to b step while not having button;
D, CPU carry out int9 and interrupt processing keyboard input, read the scan code in 60H port, and this scan code is not the scan code of Esc key, jumps to g step;
E, the negate of launching code infrared ray discrimination bit;
F, interruption are returned;
G, launching code infrared ray discrimination bit are not 0, jump to j step;
H, interruption are returned;
J, call the coding infrared emitting driven element program corresponding with scan code in 60H port;
K, this subroutine drive infrared transmitting tube by USB interface, the infrared ray of launching code;
M, interruption are returned.
CN201410227410.XA 2014-05-28 2014-05-28 A method of emitting coding infrared ray with PC machine Active CN103970289B (en)

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 true CN103970289A (en) 2014-08-06
CN103970289B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN103970289B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
MY168389A (en) Input-output device and information input-output system
CN203118209U (en) Intelligent remote controller and intelligent remote control system
TW200639641A (en) System and method using bluetooth transmission
CN103458283A (en) Remote control learning method based on smart television application
CN105023406A (en) Remote control device controlling method, system and remote control device
CN103970289A (en) Method for transmitting encoded infrared rays through PC
US20160232110A1 (en) Input Interface Device for Portable Device
CN204516035U (en) A kind of telepilot
CN103475923A (en) Television with remote control function defined by user and remote control
CN104965660B (en) A kind of method that tri-state key is realized on tablet
CN103456159A (en) Multifunctional learning type integrated remote controller
CN105573521A (en) Mouse with keyboard projection function
CN204087756U (en) A kind of laser cartoon emitter
CN204408554U (en) Video system
CN203204825U (en) Wireless hand-control box of medical accelerator
CN203405946U (en) Voice remote controller
CN202372930U (en) Infrared keyboard
CN103514728A (en) Multifunctional remote controller
CN106702694A (en) Drying system
Jørgensen et al. ARTIST: Adaptable Radiative Transfer Innovations for Submillimeter Telescopes
CN205377826U (en) Portable scram switch
CN202771415U (en) Wireless operating equipment of light-emitting diode (LED) display
CN206421267U (en) A kind of controllable multiple computers display
US20130278495A1 (en) All New One Stroke Operation Control Devices
CN204663204U (en) A kind of Intelligent electronic coded lock system

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