CN213754803U - Infrared RS485 and RS232 communication circuit that changes - Google Patents
Infrared RS485 and RS232 communication circuit that changes Download PDFInfo
- Publication number
- CN213754803U CN213754803U CN202023248800.5U CN202023248800U CN213754803U CN 213754803 U CN213754803 U CN 213754803U CN 202023248800 U CN202023248800 U CN 202023248800U CN 213754803 U CN213754803 U CN 213754803U
- Authority
- CN
- China
- Prior art keywords
- infrared
- circuit
- communication
- communication chip
- chip
- 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
- Optical Communication System (AREA)
Abstract
The utility model discloses an infrared RS485 and RS232 communication circuit that changes, including infrared receiving module, infrared emission module, power supply circuit, RS485 communication chip and RS232 communication chip, power supply circuit is the communication circuit power supply, and infrared receiving module is connected to the direction pin of RS485 communication chip and the first input of RS232 communication chip respectively, and the receiving output of RS485 communication chip and the first output of RS232 communication chip are connected to through the AND gate infrared emission module's input realizes that communication circuit can insert RS232 interface and RS485 interface simultaneously. And through setting up digital switch at infrared receiving module, disconnection infrared receiving module work when infrared emission module operating condition realizes half duplex communication.
Description
Technical Field
The utility model relates to an infrared RS485 and RS232 communication circuit that changes.
Background
The solar controller is applied to a solar photovoltaic system, coordinates the work of a solar cell panel, a storage battery and a load, and is an important component in the photovoltaic system. The solar controller needs to communicate with external connection during setting and maintaining states, so a communication interface needs to be arranged on the solar controller.
Most solar street lamp controllers in the market need to meet the characteristics of water resistance, lightning protection and the like, and usually adopt a traditional infrared communication connection mode. The infrared communication does not need entity connection and has lower cost, but has short transmission distance, low transmission rate and less adaptive equipment, and cannot meet the requirement of communication connection with other different equipment.
Disclosure of Invention
The utility model aims to solve the technical problem that an infrared RS485 and RS232 communication circuit that changes is provided to satisfy the demand that solar control ware and multiple general equipment are connected the communication.
The utility model provides a technical scheme that above-mentioned technical problem adopted does: the utility model provides an infrared RS485 and RS232 communication circuit that changes, includes infrared receiving module, infrared emission module, power supply circuit, RS485 communication chip and RS232 communication chip, its characterized in that: the power supply circuit supplies power to the communication circuit, the infrared receiving module is respectively connected to the direction pin of the RS485 communication chip and the first input end of the RS232 communication chip, and the receiving output end of the RS485 communication chip and the first output end of the RS232 communication chip are connected to the input end of the infrared emitting module through the AND gate.
Preferably, the infrared receiving module comprises a digital switch and an infrared receiving tube, the infrared receiving tube is connected to the RS485 communication chip and the RS232 communication chip through the digital switch, and the control end of the digital switch is connected with the input end of the infrared emitting module.
Preferably, the digital switch controls the connection or disconnection of the infrared receiving tube and the RS485 communication chip and the RS232 communication chip according to a signal received by the control end.
Preferably, the digital switch is connected to the RS485 communication chip through a not gate circuit.
Preferably, the infrared emission module comprises a modulation circuit, a square wave generation circuit and an infrared emission tube, wherein the input end of the infrared emission module and the square wave generation circuit are respectively connected to the modulation circuit and are connected to the infrared emission tube through an and gate in the modulation circuit.
Preferably, the modulation circuit comprises a triode Q1 and a triode Q2, collectors of the triode Q1 and the triode Q2 are respectively connected with two ends of the infrared emission tube, the square wave generation circuit is connected to a base of the triode Q2, and an input end of the modulation circuit is connected with a base of the triode Q1.
Preferably, the square wave generating circuit comprises a pulse generating chip, and the square wave generating circuit outputs a 38kHz square wave signal.
Preferably, the RS232 communication chip further includes a second input terminal and a second output terminal for communicating with external connections, respectively.
Preferably, a first input end of the RS232 communication chip corresponds to a second output end, and a second input end of the RS232 communication chip corresponds to the first output end.
Compared with the prior art, the utility model has the advantages of insert RS232 interface and RS485 interface simultaneously, the more industrial equipment of ability adaptation, for example PC, DTU and HMI etc. suitable occasion is more extensive.
Through setting up digital switch, disconnection infrared receiving module work when control infrared emission module operating condition realizes half duplex communication, has avoided infrared emission module and infrared receiving module simultaneous working to produce signal interference each other. And the RS485 chip can automatically control the direction, a control chip is not required to be independently arranged for reversing, and the circuit is simple and has reliable functions.
Drawings
Fig. 1 is a schematic diagram of a system framework according to an embodiment of the present invention.
Fig. 2 is a schematic circuit diagram according to an embodiment of the present invention.
Fig. 3 is a schematic circuit diagram of a square wave generating circuit according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments.
As shown in fig. 1 and fig. 2, the utility model discloses an infrared receiving module, infrared emission module, power supply circuit, RS485 communication chip U2 and RS232 communication chip U1. The power supply circuit is a 5V power supply circuit and respectively supplies power to electronic elements and chips in the communication circuit. In this embodiment, the RS232 communication chip U1 adopts MAX3232CPE, and the RS485 communication chip U2 adopts 65LBC 184.
The first output end (R2out pin) of the RS232 communication chip U1 outputs an RS232_ RX signal which is connected to the cathode of the diode VD1, and the receiving output end (R end) of the RS485 communication chip U2 outputs an RS485_ RX signal which is connected to the cathode of the diode VD 2. After passing through the diode VD1, the RS232_ RX signal and the RS485_ RX signal are combined into a TTL _ RX signal after passing through the diode VD2, and an AND gate logic circuit is formed. The infrared emission module comprises a modulation circuit, a square wave generation circuit CLK _38K and an infrared emission tube D1. The TTL _ RX signal is connected with the base electrode of a triode Q1 of the modulation circuit, the output end of a square wave generating circuit CLK _38K is connected with the base electrode of a triode Q2 of the modulation circuit, and the collecting electrodes of the triode Q1 and the triode Q2 are respectively connected with two ends of an infrared emission tube D1, so that a 38kHz square wave signal and a TTL _ RX signal output by the square wave generating circuit CLK _38K are connected to the infrared emission tube D1 after being logically and modulated.
The infrared receiving module comprises an infrared receiving tube D2 and a digital switch IC1, wherein the infrared receiving tube D2 is used for receiving external infrared signals, is connected to the Z end of the digital switch IC1, and outputs TTL _ TX signals through the Y end. The TTL _ TX signal is divided into two paths, one path is connected with a first input end (a pin T2 in) of an RS232 communication chip U1, the other path is converted into an RS485_ TX signal after passing through a NOT gate circuit, and then the signal is connected with a direction pin of an RS485 communication chip U2, namely a receiving enabling end (RE end) and a sending enabling end (DE end). When the TTL _ TX signal is at a high potential, the RS485_ TX signal is at a low potential, and the RS485 chip is a receiver; when the TTL _ TX signal is at a low potential, the RS485_ TX signal is at a high potential, and the RS485 chip is used as a receiver and is used as a transmitter. Therefore, the RS485 communication chip controls the working state through the RS485_ TX signal, and a control chip does not need to be independently arranged to switch receiving or sending. The RS485 communication chip U2 further comprises a bus A end and a bus B end which are connected with an external RS485 differential signal, and the transmitting input end (D end) of the RS485 communication chip U2 is grounded.
The RS232 communication chip U1 also includes a second input (pin R2 in) and a second output (pin T2 out) in communication with an external RS232 level signal connection. The R2in pin corresponds to the R2out pin and is used for converting an external RS232 level signal of the communication circuit into an internal TTL level signal; the pin T2in corresponds to the pin T2out and is used for converting the TTL level signal inside the communication circuit into an external RS232 level signal.
The TTL _ RX signal also forms another branch that is transmitted to the control terminal (terminal E) of the digital switch IC 1. When a TTL _ RX signal has high potential, namely the infrared emission module circuit is in a working state, the digital switch IC1 controls the connection disconnection of the Z end and the Y end, so that the connection between the infrared receiving tube D2 and the RS485 communication chip U2 and the connection between the infrared receiving tube D2 and the RS232 communication chip U1 are disconnected; when the TTL _ RX signal is at a low potential, the Z terminal of the digital switch IC1 is connected to the Y terminal, so that the infrared receiving module can normally transmit signals. The digital switch IC1 enables the communication circuit to implement half-duplex communication functions to avoid interference caused by simultaneous transmission and reception of signals.
As shown in fig. 3, the square wave generating circuit of the embodiment of the present invention uses a pulse generating chip IC2 to output a square wave with a frequency of 38Khz, and the pulse generating chip IC2 is preferably an NE555 timer.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (9)
1. The utility model provides an infrared RS485 and RS232 communication circuit that changes, includes infrared receiving module, infrared emission module, power supply circuit, RS485 communication chip and RS232 communication chip, its characterized in that: the power supply circuit supplies power to the communication circuit, the infrared receiving module is respectively connected to the direction pin of the RS485 communication chip and the first input end of the RS232 communication chip, and the receiving output end of the RS485 communication chip and the first output end of the RS232 communication chip are connected to the input end of the infrared emitting module through the AND gate.
2. The infrared RS485 and RS232 communication circuit as claimed in claim 1, wherein: the infrared receiving module comprises a digital switch and an infrared receiving tube, the infrared receiving tube is connected to the RS485 communication chip and the RS232 communication chip through the digital switch, and the control end of the digital switch is connected with the input end of the infrared transmitting module.
3. The infrared RS485 and RS232 communication circuit as claimed in claim 2, wherein: and the digital switch controls the connection or disconnection of the infrared receiving tube and the RS485 communication chip and the RS232 communication chip according to a signal received by the control end.
4. The infrared RS485 and RS232 communication circuit as claimed in claim 3, wherein: and the digital switch is connected to the RS485 communication chip after passing through the NOT gate circuit.
5. The infrared RS485 and RS232 communication circuit as claimed in claim 1, wherein: the infrared emission module comprises a modulation circuit, a square wave generation circuit and an infrared emission tube, wherein the input end of the infrared emission module and the square wave generation circuit are respectively connected to the modulation circuit and are connected to the infrared emission tube through an AND gate in the modulation circuit.
6. The infrared RS485 and RS232 communication circuit as claimed in claim 5, wherein: the modulation circuit comprises a triode Q1 and a triode Q2, collectors of the triode Q1 and the triode Q2 are respectively connected with two ends of the infrared emission tube, the square wave generation circuit is connected to a base electrode of the triode Q2, and an input end of the modulation circuit is connected with a base electrode of the triode Q1.
7. The infrared RS485 and RS232 communication circuit as claimed in claim 5, wherein: the square wave generating circuit comprises a pulse generating chip and outputs a square wave signal of 38 kHz.
8. The infrared RS485 and RS232 communication circuit as claimed in claim 1, wherein: the RS232 communication chip further comprises a second input end and a second output end which are connected with the outside for communication respectively.
9. The infrared RS485 and RS232 communication circuit of claim 8, wherein: the first input end of the RS232 communication chip corresponds to the second output end, and the second input end of the RS232 communication chip corresponds to the first output end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202023248800.5U CN213754803U (en) | 2020-12-29 | 2020-12-29 | Infrared RS485 and RS232 communication circuit that changes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202023248800.5U CN213754803U (en) | 2020-12-29 | 2020-12-29 | Infrared RS485 and RS232 communication circuit that changes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN213754803U true CN213754803U (en) | 2021-07-20 |
Family
ID=76837136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202023248800.5U Active CN213754803U (en) | 2020-12-29 | 2020-12-29 | Infrared RS485 and RS232 communication circuit that changes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN213754803U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113890610A (en) * | 2021-09-22 | 2022-01-04 | 深圳市佳华利道新技术开发有限公司 | Infrared communication system, infrared communication method and electronic equipment |
-
2020
- 2020-12-29 CN CN202023248800.5U patent/CN213754803U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113890610A (en) * | 2021-09-22 | 2022-01-04 | 深圳市佳华利道新技术开发有限公司 | Infrared communication system, infrared communication method and electronic equipment |
CN113890610B (en) * | 2021-09-22 | 2023-04-07 | 深圳市佳华利道新技术开发有限公司 | Infrared communication system, infrared communication method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201434881Y (en) | RS485 interface circuit and electric energy meter employing same | |
CN106383801A (en) | Single line type UART communication circuit | |
CN213754803U (en) | Infrared RS485 and RS232 communication circuit that changes | |
CN105471420A (en) | Differential I2C bus communication interface circuit | |
CN205142203U (en) | Automatic transceiver circuits of RS485 | |
CN201414124Y (en) | Isolation RS485 communication speed-raising circuit for low-speed optical coupler | |
CN204478392U (en) | Current loop communication circuit and air-conditioner | |
CN101694995B (en) | Passive RS232-485 signal converter | |
CN217741384U (en) | Circuit breaker control system based on LORA communication technology | |
CN214311733U (en) | RS485 circuit capable of automatically controlling receiving and transmitting | |
CN211604103U (en) | Composite serial interface extension circuit | |
CN107273330A (en) | Three-wire system serial communication interface isolation circuit module | |
CN209748544U (en) | RS485 half-duplex is from receiving and dispatching circuit | |
CN204613934U (en) | A kind of communication interface circuit | |
CN111404504A (en) | RS485 bus differential signal amplifier | |
CN210955468U (en) | Receiving and converting circuit of conveying equipment controller | |
CN202713345U (en) | RS-232/MBUS bus repeater | |
CN201018493Y (en) | Universal transmission device for narrowband power line communication | |
CN220399820U (en) | Multi-way switching value input module | |
CN211293673U (en) | Remote visual intelligent control device for multiple thermal systems | |
CN202077022U (en) | 485-bus Bluetooth conversion device | |
CN203522856U (en) | DTMF voice telecommunication device for financial POS system | |
CN217057885U (en) | Infrared remote control type air conditioner remote controller | |
CN213693695U (en) | Real-time data transceiver based on 4GLTE-cat1 | |
CN210075230U (en) | RTU system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |