CN107170227B - IR emission device and method - Google Patents
IR emission device and method Download PDFInfo
- Publication number
- CN107170227B CN107170227B CN201710514555.1A CN201710514555A CN107170227B CN 107170227 B CN107170227 B CN 107170227B CN 201710514555 A CN201710514555 A CN 201710514555A CN 107170227 B CN107170227 B CN 107170227B
- Authority
- CN
- China
- Prior art keywords
- infrared
- resistor
- serial port
- level conversion
- capacitor
- 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 12
- 238000006243 chemical reaction Methods 0.000 claims abstract description 31
- 239000003990 capacitor Substances 0.000 claims description 26
- 238000012360 testing method Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 238000004566 IR spectroscopy Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Communication System (AREA)
- Communication Control (AREA)
- Dc Digital Transmission (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention relates to an IR emission method and device, the IR emission device is characterized in that the method comprises the following steps: the system comprises a PC, a level conversion circuit and an infrared transmitting tube; the PC machine uses the RS232 serial port, utilizes the MSComm control to control the RS232 serial port to code infrared data according to the infrared protocol code, and transmits the infrared data to the infrared transmitting tube after the infrared data is subjected to level conversion by the level conversion circuit, and the infrared transmitting tube transmits the infrared data. The invention only uses the PC, uses the RS232 serial port, uses the MSComm control to control the RS232 serial port to code the infrared data according to the infrared protocol code, and transmits the infrared data to the infrared transmitting tube for transmitting after level conversion by the level conversion circuit.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to an IR transmitting apparatus and method.
Background
At present, Infrared (IR) remote control is widely used in various electronic devices, especially household appliances, because of its low cost, simple development and simple application.
The infrared remote control sensitivity can directly affect the user experience, so that in the development of products with infrared control, the pressure test of infrared receiving sensitivity must be carried out in different environments, and an infrared transmitting device is required to be used as an infrared transmitting source for testing. The existing infrared transmitting device uses a PC (or other terminal control equipment) as an upper computer, uses a single chip microcomputer MCU as an infrared encoder, and transmits after being processed by an infrared transmitting circuit, only transmits control information between the PC and the MCU, but not transmits infrared data, and the infrared data must be transmitted to the infrared transmitting circuit by the MCU code, so that the infrared transmitting device must be provided with the MCU, the cost of the infrared transmitting device is higher, and the test cost is greatly increased.
Disclosure of Invention
In view of the above, it is desirable to provide an IR emitting device and method for solving the problem of high cost of the IR emitting device.
The invention provides an IR emission device, comprising: the system comprises a PC, a level conversion circuit and an infrared transmitting tube; the PC machine uses an RS232 serial port, utilizes an MSComm control to control the RS232 serial port to code infrared data according to an infrared protocol code, and transmits the infrared data to the infrared transmitting tube after level conversion is carried out on the infrared data by the level conversion circuit, and the infrared transmitting tube transmits the infrared data.
In one embodiment, the PC encodes and transmits infrared data according to an infrared protocol by using a VB language by using an RS232 serial port and an mscom control.
In one embodiment, the level shift circuit includes a first resistor, a capacitor, a diode, a transistor, and a second resistor; the filter circuit is composed of the first resistor and the capacitor, one end of the first resistor is connected with a data output pin of an RS232 serial port, the other end of the first resistor is connected with the anode of one end of the capacitor and the anode of the diode, the other end of the capacitor is grounded, the cathode of the diode is connected with the base of the triode, the emitting electrode of the triode is grounded, the collecting electrode of the triode is connected with the cathode of the infrared emission tube, the second resistor is a current-limiting protection resistor, one end of the second resistor is connected with the anode of the infrared emission tube, and the other end.
The invention provides an IR emission method, which comprises the following steps:
providing a PC, using an RS232 serial port through the PC, and controlling the RS232 serial port to encode infrared data by utilizing an MSComm control according to an infrared protocol code;
and the infrared data is subjected to level conversion and then transmitted to an infrared transmitting tube, and the infrared transmitting tube transmits the infrared data.
In one embodiment, the PC encodes and transmits infrared data according to an infrared protocol by using a VB language by using an RS232 serial port and an mscom control.
In one embodiment, a level shift circuit is provided for level shifting; the level conversion circuit comprises a first resistor, a capacitor, a diode, a triode and a second resistor; the filter circuit is composed of the first resistor and the capacitor, one end of the first resistor is connected with a data output pin of an RS232 serial port, the other end of the first resistor is connected with the anode of one end of the capacitor and the anode of the diode, the other end of the capacitor is grounded, the cathode of the diode is connected with the base of the triode, the emitting electrode of the triode is grounded, the collecting electrode of the triode is connected with the cathode of the infrared emission tube, the second resistor is a current-limiting protection resistor, one end of the second resistor is connected with the anode of the infrared emission tube, and the other end.
The IR transmitting method and the device only use the PC, use the RS232 serial port, utilize the MSComm control to control the RS232 serial port to code the infrared data according to the infrared protocol code, and transmit the infrared data to the infrared transmitting tube after the level conversion by the level conversion circuit, the PC not only sends the control information, but also sends the infrared data, and does not need the singlechip, thereby reducing the cost of the transmitting device and the test cost.
Drawings
FIG. 1 is a block diagram of an IR emitting device in one embodiment;
fig. 2 is a circuit diagram of a level shift circuit in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a block diagram of an IR transmitting device in one embodiment, and fig. 2 is a circuit diagram of a level shift circuit in one embodiment, which is shown in conjunction with fig. 1 and 2, the IR transmitting device including: PC 100, level shifter circuit 200, and infrared transmitter IR 1. The PC 100 uses the RS232 serial port, utilizes the MSComm control to control the RS232 serial port to encode infrared data according to the infrared protocol, and transmits the infrared data to the infrared transmitting tube IR1 after level conversion by the level conversion circuit 200, and the infrared transmitting tube IR1 transmits the infrared data.
The MSComm (Microsoft Communications control) control is an ActiveX control provided by Microsoft corporation and used for simplifying serial communication programming under Windows, and provides a simple and convenient method for receiving and transmitting data through a serial port. The PC 100 utilizes the existing RS232 serial port and MSComm control to encode and send the infrared data according to the infrared protocol by using VB language, thereby realizing that the PC 100 can not only transmit control information, but also transmit the infrared data without using a singlechip, and further reducing the test cost.
However, since the RS232 serial port level of the PC 100 is not compatible with the TTL level of the IR transmitting tube IR, the IR data transmitted by the RS232 serial port cannot directly drive the IR transmitting tube IR1 for IR transmission, and the level shifter circuit 200 is required for level shifting.
In this embodiment, the level shifter circuit 200 includes a first resistor R1, a capacitor C1, a diode D1, a transistor Q1, and a second resistor R2. The first resistor R1 and the capacitor C1 form a filter circuit, one end of the first resistor R1 is connected with a data output Pin (PCTXD) of an RS232 serial port, the other end of the first resistor R1 is connected with one end of the capacitor C1 and the anode of the diode D1, and the other end of the capacitor C1 is grounded. The cathode of the diode D1 is connected with the base B of the triode Q1, the emitter E of the triode Q1 is grounded, and the collector C1 is connected with the cathode of the infrared emission tube IR 1. The second resistor R2 is a current-limiting protection resistor, one end of which is connected with the anode of the infrared emission tube IR1, and the other end of which is connected with a 5V power supply. A filter circuit consisting of the first resistor R1 and the capacitor C1 filters high-frequency interference signals in the PCTXD; when the transistor Q1 is turned on, the R2 limits the current flowing through the IR1 and the transistor Q1 to protect the IR1 and the transistor Q1. When the PCTXD sends a logic level 1(-15V to-3V), the diode D1 is not conducted, the transistor Q1 is in a cut-off state, and the level of the infrared emission tube IR1 is 5V and is logic 1. When the PCTXD transmits a logic level 0(+3V to 15V), the transistor D1 is turned on, the transistor Q1 is in a conducting state, and the level of the infrared emission tube IR1 is close to 0 (the conducting voltage drop of the Q1 is 0.2V to 0.7V), which is logic 0, thereby realizing level conversion.
The IR transmitting device only uses the PC 100, uses the RS232 serial port, utilizes the MSComm control to control the RS232 serial port coding infrared data according to the infrared protocol coding, carries out level conversion through the level conversion circuit 200 and then transmits the data to the IR1 of the infrared transmitting tube for transmitting, and the PC not only transmits control information, but also transmits the infrared data without a singlechip, thereby reducing the cost of the IR transmitting device and the test cost.
Meanwhile, the invention also provides an IR emission method, which comprises the following steps:
providing a PC, using an RS232 serial port through the PC, and controlling the RS232 serial port to encode infrared data by utilizing an MSComm control according to an infrared protocol code;
the MSComm (Microsoft Communications control) control is an ActiveX control provided by Microsoft corporation and used for simplifying serial communication programming under Windows, and provides a simple and convenient method for receiving and transmitting data through a serial port. In the step, the PC machine can encode and send the infrared data by using the existing RS232 serial port and MSComm control and VB language according to the infrared protocol, so that the PC machine can transmit control information and infrared data without using a single chip microcomputer, and the test cost is reduced.
And the infrared data is subjected to level conversion and then transmitted to an infrared transmitting tube, and the infrared transmitting tube transmits the infrared data.
However, since the level of the RS232 serial port of the PC is incompatible with the TTL level of the infrared transmitting tube, the infrared data sent by the RS232 serial port cannot directly drive the infrared transmitting tube to perform infrared transmission, and level conversion is required.
In this step, a level conversion circuit is provided for level conversion. As shown in fig. 2, the level shifter circuit includes a first resistor R1, a capacitor C1, a diode D1, a transistor Q1, and a second resistor R2. The first resistor R1 and the capacitor C1 form a filter circuit, one end of the first resistor R1 is connected with a data output Pin (PCTXD) of an RS232 serial port, the other end of the first resistor R1 is connected with one end of the capacitor C1 and the anode of the diode D1, and the other end of the capacitor C1 is grounded. The cathode of the diode D1 is connected with the base B of the triode Q1, the emitter E of the triode Q1 is grounded, and the collector C1 is connected with the cathode of the infrared emission tube IR 1. The second resistor R2 is a current-limiting protection resistor, one end of which is connected with the anode of the infrared emission tube IR1, and the other end of which is connected with a 5V power supply. A filter circuit consisting of the first resistor R1 and the capacitor C1 filters high-frequency interference signals in the PCTXD; when the transistor Q1 is turned on, the R2 limits the current flowing through the IR1 and the transistor Q1 to protect the IR1 and the transistor Q1. When the PCTXD sends a logic level 1(-15V to-3V), the diode D1 is not conducted, the transistor Q1 is in a cut-off state, and the level of the infrared emission tube IR1 is 5V and is logic 1. When the PCTXD transmits a logic level 0(+3V to 15V), the transistor D1 is turned on, the transistor Q1 is in a conducting state, and the level of the infrared emission tube IR1 is close to 0 (the conducting voltage drop of the Q1 is 0.2V to 0.7V), which is logic 0, thereby realizing level conversion.
The IR transmitting device only uses a PC (personal computer), uses an RS232 serial port, utilizes an MSComm control to control RS232 serial port coding infrared data according to infrared protocol coding, and transmits the data to an infrared transmitting tube IR1 for transmitting after level conversion, and the PC not only transmits control information, but also transmits infrared data without a singlechip, thereby reducing the cost of the IR transmitting device and the test cost.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (2)
1. An IR emitting device, comprising: the system comprises a PC, a level conversion circuit and an infrared transmitting tube; the PC machine uses an RS232 serial port, utilizes an MSComm control to control the RS232 serial port to encode infrared data according to an infrared protocol, and transmits the infrared data to the infrared transmitting tube after level conversion is carried out on the infrared data by the level conversion circuit so as to drive the infrared transmitting tube to transmit;
the PC machine utilizes an RS232 serial port and an MSComm control and uses VB language to code and send the infrared data according to an infrared protocol;
the level conversion circuit comprises a first resistor, a capacitor, a diode, a triode and a second resistor; the filter circuit is composed of the first resistor and the capacitor, one end of the first resistor is connected with a data output pin of an RS232 serial port, the other end of the first resistor is connected with the anode of one end of the capacitor and the anode of the diode, the other end of the capacitor is grounded, the cathode of the diode is connected with the base of the triode, the emitting electrode of the triode is grounded, the collecting electrode of the triode is connected with the cathode of the infrared emission tube, the second resistor is a current-limiting protection resistor, one end of the second resistor is connected with the anode of the infrared emission tube, and the other end.
2. An IR emission method, comprising the steps of:
providing a PC, and controlling the RS232 serial port to encode infrared data by using VB language according to infrared protocol codes by using an RS232 serial port and an MSComm control through the PC;
the infrared data are subjected to level conversion and then transmitted to an infrared emission tube so as to drive the infrared emission tube to emit;
providing a level conversion circuit for level conversion; the level conversion circuit comprises a first resistor, a capacitor, a diode, a triode and a second resistor; the filter circuit is composed of the first resistor and the capacitor, one end of the first resistor is connected with a data output pin of an RS232 serial port, the other end of the first resistor is connected with the anode of one end of the capacitor and the anode of the diode, the other end of the capacitor is grounded, the cathode of the diode is connected with the base of the triode, the emitting electrode of the triode is grounded, the collecting electrode of the triode is connected with the cathode of the infrared emission tube, the second resistor is a current-limiting protection resistor, one end of the second resistor is connected with the anode of the infrared emission tube, and the other end.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710514555.1A CN107170227B (en) | 2017-06-29 | 2017-06-29 | IR emission device and method |
PCT/CN2018/086721 WO2019001155A1 (en) | 2017-06-29 | 2018-05-14 | Ir emitting device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710514555.1A CN107170227B (en) | 2017-06-29 | 2017-06-29 | IR emission device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107170227A CN107170227A (en) | 2017-09-15 |
CN107170227B true CN107170227B (en) | 2020-06-16 |
Family
ID=59826457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710514555.1A Expired - Fee Related CN107170227B (en) | 2017-06-29 | 2017-06-29 | IR emission device and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107170227B (en) |
WO (1) | WO2019001155A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107170227B (en) * | 2017-06-29 | 2020-06-16 | 深圳市九洲电器有限公司 | IR emission device and method |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751769B (en) * | 2008-12-03 | 2013-04-17 | 深圳Tcl新技术有限公司 | Remote control transmitting and decoding system and implementation method thereof |
CN201773486U (en) * | 2009-05-19 | 2011-03-23 | 苏州新协力工业控制工程技术研究中心有限公司 | Far-distance infrared controller |
FR2950458B1 (en) * | 2009-09-23 | 2012-08-03 | Agath | DEVICE FOR TRANSMITTING CODES FROM A REMOTE CONTROL |
CN202075860U (en) * | 2011-05-12 | 2011-12-14 | 冠捷显示科技(厦门)有限公司 | Automated testing system of remote control terminal |
CN102790887A (en) * | 2012-07-25 | 2012-11-21 | 广州视源电子科技股份有限公司 | Automatic white balance adjusting system and method for liquid crystal display television |
CN203397510U (en) * | 2013-08-19 | 2014-01-15 | 赖诚 | Anti-interference infrared intrusion sensor |
CN204375154U (en) * | 2014-12-29 | 2015-06-03 | 漳州科能电器有限公司 | A kind of infrared transmitting circuit |
CN204740724U (en) * | 2015-06-18 | 2015-11-04 | 福建捷联电子有限公司 | Automatic wireless communication system of UART |
CN205883467U (en) * | 2016-05-18 | 2017-01-11 | 上海中基国威电子股份有限公司 | 2. 4G infrared study remote control circuit is changeed to privately owned agreement |
CN106056895B (en) * | 2016-07-21 | 2021-11-16 | 国家电网公司 | 485-to-infrared circuit and data transmission method |
CN107170227B (en) * | 2017-06-29 | 2020-06-16 | 深圳市九洲电器有限公司 | IR emission device and method |
-
2017
- 2017-06-29 CN CN201710514555.1A patent/CN107170227B/en not_active Expired - Fee Related
-
2018
- 2018-05-14 WO PCT/CN2018/086721 patent/WO2019001155A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2019001155A1 (en) | 2019-01-03 |
CN107170227A (en) | 2017-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103283148A (en) | Voltage-mode driver with pre-mphasis | |
CN105679004A (en) | Method and system for controlling multiple slave devices with main device | |
CN104320160A (en) | Data receiving and dispatching method, device and system | |
CN107170227B (en) | IR emission device and method | |
CN103135054A (en) | Press key detection circuit integrating light-emitting diode (LED) driving and infrared remote control receiving function and integration achieving method | |
CN110164115B (en) | Multi-mode thing networking wisdom energy data acquisition terminal | |
CN105182447A (en) | Photoelectric correlation sensor detection system and method | |
CN203630953U (en) | Infrared emitting and receiving circuit of learning remote-controller | |
CN204390042U (en) | The little automobile-used radio transmitting device of AGV | |
CN203520392U (en) | Communication circuit for electronic exploration detonator | |
CN216599583U (en) | Communication circuit, electronic equipment and communication system | |
CN101751772B (en) | Infrared remote control system for controlling household appliance and remote control method thereof | |
CN104269046A (en) | Bus communication based infrared remote control device | |
CN102930709B (en) | Far-infrared communication circuit with hardware transmitting/receiving self-control function | |
CN104202208B (en) | A kind of measurement jig of communication terminal winding function | |
CN105871422B (en) | For wireless between transmitting terminal and receiving terminal to code method and from mobile adsorption system | |
CN101364199B (en) | Serial communication monitoring system and monitoring equipment | |
CN203191518U (en) | Key detection circuit combining LED driving and infrared remote control receiving functions | |
CN105243828A (en) | Remote control device based on ultrasonic communication and remote control method thereof | |
CN219162823U (en) | Bluetooth changes infrared circuit | |
CN206096334U (en) | Net twine test circuit | |
CN104183113A (en) | Remote control circuit | |
CN203706416U (en) | Circuit for converting RS485 communication into infrared communication | |
CN204089826U (en) | Infrared transceiver module | |
CN213213461U (en) | Single-wire communication circuit capable of receiving and transmitting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 | ||
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: 20200616 Termination date: 20210629 |