CN211606536U - Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment - Google Patents

Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment Download PDF

Info

Publication number
CN211606536U
CN211606536U CN202020455482.0U CN202020455482U CN211606536U CN 211606536 U CN211606536 U CN 211606536U CN 202020455482 U CN202020455482 U CN 202020455482U CN 211606536 U CN211606536 U CN 211606536U
Authority
CN
China
Prior art keywords
infrared
tube
module
data
ttl
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
Application number
CN202020455482.0U
Other languages
Chinese (zh)
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.)
WEIHAI PLOUMETER CO Ltd
Original Assignee
WEIHAI PLOUMETER CO Ltd
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 WEIHAI PLOUMETER CO Ltd filed Critical WEIHAI PLOUMETER CO Ltd
Priority to CN202020455482.0U priority Critical patent/CN211606536U/en
Application granted granted Critical
Publication of CN211606536U publication Critical patent/CN211606536U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Communication System (AREA)

Abstract

The utility model relates to a single tube infrared four-wire TTL serial port transceiver in a dirty environment, which solves the technical problems that the prior TTL serial port communication can not realize electromagnetic isolation, the feed problem exists between modules, and the modules are complicated to replace and maintain; the electric device is provided with an anode control module, a cathode data module, a TTL cable and an infrared receiving and transmitting module, wherein the TTL cable data drives the infrared receiving and transmitting module through the anode control module and the cathode data module to complete photoelectric data receiving and transmitting conversion. The utility model discloses can extensively be applied to single tube infrared four-wire TTL serial ports transceiver in dirty environment.

Description

Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment
Technical Field
The utility model belongs to the technical field of infrared data communication technique and specifically relates to single tube infrared four-wire TTL serial ports transceiver in dirty environment.
Background
The intelligent water meter, the heat meter and other full electronic instrument equipment with the communication remote transmission function are generally divided into a base meter module and a communication module, the base meter module and the communication module are provided with respective MCU and batteries and work independently, and the base meter module and the communication module are directly connected through TTL serial ports to realize data intercommunication. However, this connection has the following problems:
1. electromagnetic isolation cannot be realized by TTL serial communication. Voltage fluctuation can be caused by a certain module in a high-current working mode, so that the working stability of another module is influenced, for example, in NB-IoT communication module wireless data connection, the current can reach hundreds of mA, and the voltage fluctuation is obvious at the moment, so that the metering function of a base meter module is seriously interfered.
2. There is a problem of feeding power between the modules. The base meter module and the communication module usually adopt respective batteries, and the level between the base meter module and the communication module is different, so that the current of a sending pin and a receiving pin of the TTL serial port flows back and forth, the energy consumption of the batteries is unbalanced, and the service life synchronization of the batteries cannot be realized.
3. Module replacement and maintenance are complicated. Equipment needs use in filthy adverse circumstances such as humidity, high temperature, many dusts, especially equipment in the ground well, because of sleet ponding, probably long-term bubble water work, need the encapsulating to realize dampproofing and waterproofing, the both sides module of TTL serial port line is all by the embedment in epoxy glue, and the change module can destroy waterproof construction, and is very inconvenient, even adopt water joint, volume and cost also can't guarantee, can't ensure the reliability of working under the long-term filthy environment.
The communication between the modules adopts a wireless or infrared light communication mode. The wireless mode does not need close contact, but has large power consumption and high cost, and is difficult to apply in common products. The infrared communication comprises far infrared communication and near infrared communication, and a far infrared modulation one-way communication mode of the television remote controller has larger power consumption and cannot be applied to low-power-consumption products; the near-infrared bidirectional communication is large in size, needs to be aligned on the structure in a short distance, and is easy to mildew and deposit dirt in a humid environment, so that communication is abnormal, and therefore a common infrared transceiving mode is not suitable for communication among modules which is small in size and easy to pollute.
Disclosure of Invention
The utility model aims to solve the not enough of prior art, provide single tube infrared four-wire TTL serial ports transceiver in the filthy environment, adopt the integrative infrared single tube of receiving and dispatching, design dedicated microstructure and connect protector, externally provide the four-wire TTL serial ports, support low-power consumption, half-duplex, high speed's close range serial communication, be applicable to the intermodule data communication of the high isolation requirement in the filthy environment.
The utility model provides a single tube infrared four-wire TTL serial port transceiver in a dirty environment, which is provided with a structural device and an electrical device, wherein the structural device is provided with a male head and a female head, the male head is externally provided with an external thread, the female head is externally provided with a sealing ring, the male head and the female head are locked by a locking nut with an internal thread, the structural device is formed by low-pressure injection molding, and the electrical device is arranged in the structural device; the electric device is provided with an anode control module, a cathode data module, a TTL cable and an infrared receiving and transmitting module, wherein the TTL cable data drives the infrared receiving and transmitting module through the anode control module and the cathode data module to complete photoelectric data receiving and transmitting conversion.
Preferably, the TTL cable is provided with TX, RX, GND and VCC pins, the anode control module is provided with a gate resistor R4, a gate resistor R5, an NMOS tube Q1 and a PMOS tube Q2, the cathode data module is provided with a pull-up resistor R1, a bias resistor R2 and a bias resistor R3, the infrared transceiving module is provided with an infrared tube IR _ LED integrating transceiving, the anode control module is connected with the TX pin and the infrared tube IR _ LED anode, and the cathode data module is connected with the TX and RX data transceiving pins of the TTL and the infrared tube IR _ LED cathode.
Preferably, the infrared tube IR _ LED has infrared receiving and infrared transmitting functions, and supports both receiving and transmitting two-way communication.
Preferably, the typical on-off response time of the infrared tube is less than 20us, high-speed infrared data communication is supported, the baud rate is not lower than 9600bps, and the communication speed requirement of common low-power-consumption equipment is met.
Preferably, the device operating mode is half duplex.
The utility model discloses beneficial effect:
(1) the utility model is provided with a special miniature structure connection protection device, effectively realizes water and dust prevention, can not be influenced by light attenuation after long-term use, and is easy to disassemble and replace parts during maintenance;
(2) the utility model has compact structure, can be applied to the interior of products with limited space, and simultaneously, because the connection mode of flexible wires is adopted with the single chip part, the board is not required to align the structure of the board infrared lamp, thereby facilitating the layout of internal modules;
(3) the utility model is provided with a special adaptive single-tube infrared circuit, the TX and RX pins can realize data transmission, and simultaneously can realize receiving and sending control through the level signal, no extra pin is needed, the processing requirement on the singlechip is reduced, and only the receiving and sending can be realized according to the standard TTL circuit;
(4) the utility model discloses infrared tube's high-speed receiving and dispatching characteristic and control circuit's optimization, the communication rate of 9600bps can be realized to the device, effectively satisfies the high-speed communication requirement of low-power consumption equipment, and optical communication does not have actual electrical physics and connects, does not have the electromagnetic interference problem, does not also have the feed problem.
Through the technical scheme, the utility model provides an instrument internal module interconnected's half-duplex single tube infrared communication device in dirty environment possesses miniature waterproof connection structure, and compatible general TTL interface can realize low-power consumption, high speed, the data communication of soft connection.
Drawings
FIG. 1 is a schematic structural view of the present invention;
fig. 2 is a schematic circuit diagram of the present invention.
Description of the symbols of the drawings:
1. a female head; 2. a male head; 3. a circuit board; 4. a seal ring; 5. locking the nut; 6. an infrared tube; 7. TTL cable interface.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and examples, so that those skilled in the art can easily implement the present invention.
Example 1: as shown in fig. 1, which is a schematic structural diagram of the present invention, the structural device of the present invention includes a male head 2, a female head 1, a circuit board 3, a sealing ring 4, a locking nut 5, an infrared tube 6, and a TTL cable interface 7; the structure device adopts low-pressure injection molding process one-step molding, the circuit board 3 is completely wrapped, only the infrared tube 6 is exposed outside, the self can realize a waterproof function, the structure device is connected with the back, the sealing ring 4 and the locking nut 5 are used for realizing the airtight waterproof and dustproof of the infrared tube 6 space, the infrared tube 6 is directly opposite, and the distance is not more than 3 mm.
As shown in fig. 2, it is the utility model discloses the circuit schematic diagram, electric device are equipped with positive pole control module, negative pole data module, TTL cable and infrared transceiver module, and the TTL cable is equipped with TX, RX, GND and VCC pin, and TTL cable data passes through positive pole control module and negative pole data module drive infrared transceiver module, accomplishes photoelectric data receiving and dispatching conversion. The anode control module is provided with a gate resistor R4, a gate resistor R5, an NMOS tube Q1 and a PMOS tube Q2, the cathode data module is provided with a pull-up resistor R1, a bias resistor R2 and a bias resistor R3, the infrared transceiving module is provided with a transceiving integrated infrared tube IR _ LED, the anode control module is connected with a TX pin and an infrared tube IR _ LED anode, and the cathode data module is connected with TX and RX data transceiving pins of TTL and an infrared tube IR _ LED cathode.
And the level change of the TX pin and the RX pin simultaneously carries out data receiving and transmitting control and data information transmission, thereby realizing single-tube half-duplex data communication in a near infrared mode. The bias resistors R2 and R3 realize low-level pull-down when receiving data, the pull-up resistor R1 is higher than R2 and R3 by one order of magnitude, the gate resistors R4 and R5 are used for protecting MOS (metal oxide semiconductor) transistors, the MOS transistor Q1 and the PMOS transistor Q2 are combined to realize the anode push-pull control of the IR _ LED, the electrical parts have comprehensive effects, and TX and RX are not only used for normal data bit transmission, but also used for a control pin for data transceiving when level change occurs, so that the use of an external module is simplified. Through the infrared circuit of dedicated adaptation single tube, TX, RX pin can realize data transmission, can realize receiving and dispatching control through level signal itself again simultaneously, need not extra pin, has reduced the processing requirement to the singlechip, only need according to the TTL circuit of standard receiving and dispatching can.
Level changes of four-wire TTL interfaces TX, RX, GND and VCC of an external singlechip are simultaneously subjected to data receiving and transmitting control and data information transmission, and single-tube half-duplex data communication in a near-infrared mode is realized. The TX pin and the RX pin send or receive high level to represent bit 1, otherwise, the low level represents bit 0, the infrared tube sends or receives infrared to represent bit 0, and otherwise, no infrared represents bit 1.
In the data transmission process, when a TX pin transmits a high level, an IR _ LED anode of an infrared tube is controlled to be grounded through an MOS tube, the infrared tube is in a reverse bias state, infrared rays are not emitted, and a bit 1 is transmitted; when the TX pin sends a low level, the anode of the IR _ LED of the infrared tube is controlled by the MOS tube to be connected with a power supply, and the IR is in a positive bias state to send infrared rays, namely a bit 0 is sent. In the data receiving process, the TX pin is at a high level, the anode of the IR _ LED is grounded and is in a reverse bias state, if the IR _ LED does not receive infrared rays, the RX pin is pulled up to a power supply through a resistor R1 and is at a high level, namely bit 1; if IR _ LED receives IR, IR _ LED is turned on and RX pin is pulled down to ground through IR _ LE, at a low level, bit 0.
The data transmission process is preferentially performed, the RX pin can receive data only when the TX pin has no data transmission, and both ends generate collision when transmitting simultaneously, and both the transmission and the reception fail. Use the utility model discloses a singlechip product, the TTL serial ports pin of singlechip directly links the pin of device, handles according to normal TTL serial ports receiving and dispatching data flow, when data transmission, should abandon the serial ports data received this moment.
Embodiment 2, the steps of data transmission are as follows:
1. when no data is transmitted or received, both the TX and RX are at high level, the IR _ LED cathode is pulled up by the R1, R2 and R3 at high level, the TX high level controls the NMOS transistor Q1 to turn on the PMOS transistor Q2 and turn off, and the IR _ LED anode is pulled down by the Q1 to low level, which is in a reverse bias state and does not emit infrared light to the outside.
2. When TX transmits data, RX is kept high, and R1 and R2 keep pulling up IR _ LED.
3. TX firstly sends a start bit of 0, a TX pin is at low level, an NMOS tube Q1 is controlled to be turned off, a PMOS tube Q2 is turned on, the anode of an IR _ LED is pulled up to high level through Q2, the cathode of the IR _ LED is pulled down to low level through a resistor R3, the IR _ LED is turned on in the forward direction, and infrared light is emitted.
4. And (3) the TX sends a data bit and subsequent check bits and stop bits, when a bit 0 is sent, the TX pin is at a low level, the step 3 is repeated, when a bit 1 is sent, the TX pin is at a high level, and the step 1 is repeated.
5. The TX pin repeats steps 1-4 for subsequent data byte transmissions. And after the data transmission is finished, the TX is kept in a high level state, and the infrared lamp does not emit infrared light outwards.
Embodiment 3, the steps of data reception are as follows:
1. when no data is transmitted or received, no infrared light is received, RX is pulled up to a high level, a TX pin outputs a low level, an IR _ LED cathode is pulled up to a high level through R1, R2 and R3, the TX high level controls an NMOS tube Q1 to be switched on and switched off a PMOS tube Q2, and an IR _ LED anode is pulled down to a low level through Q1 and is in a reverse bias state.
2. When data is received, infrared light is received, the IR _ LED is turned on, the cathode and the anode of the IR _ LED are pulled down to a low level through Q1, the RX pin is pulled down to a low level through a resistor R2, and a bit 0 is received.
3. No infrared light is received and step 1 is repeated, RX is pulled up to high level and bit 1 is received.
4. The RX pin receives all data bytes and pulls up to high, keeping bit 1 idle.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention, as various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the scope defined by the claims of the present invention shall be within the protection scope of the present invention.

Claims (5)

1. A single-tube infrared four-wire TTL serial port transceiving device in a dirty environment is characterized by being provided with a structural device and an electrical device, wherein the structural device is provided with a male head and a female head, external threads are arranged outside the male head, a sealing ring is arranged outside the female head, the male head and the female head are locked through a locking nut with internal threads, the structural device is formed in a low-pressure injection molding mode, and the electrical device is arranged inside the structural device; the electric device is provided with an anode control module, a cathode data module, a TTL cable and an infrared receiving and transmitting module, wherein the TTL cable data drives the infrared receiving and transmitting module through the anode control module and the cathode data module to complete photoelectric data receiving and transmitting conversion.
2. The single-tube infrared four-wire TTL serial port transceiver device in the dirty environment of claim 1, wherein the TTL cable is provided with TX, RX, GND and VCC pins, the anode control module is provided with a gate resistor R4, a gate resistor R5, an NMOS tube Q1 and a PMOS tube Q2, the cathode data module is provided with a pull-up resistor R1, a bias resistor R2 and a bias resistor R3, the infrared transceiver module is provided with an infrared tube IR _ LED integrated with transceiver, the anode control module is connected with the TX pin and an infrared tube IR _ LED anode, and the cathode data module is connected with the TX and RX data transceiver pins of TTL and an infrared tube IR _ LED cathode.
3. The single-tube infrared four-wire TTL serial port transceiver device in a filthy environment according to claim 2, wherein the infrared tube IR _ LED has infrared receiving and infrared transmitting functions and supports both receiving and transmitting two-way communication.
4. The single-tube infrared four-wire TTL serial port transceiver device in the dirty environment as claimed in claim 2 or 3, wherein the typical on-off response time of the infrared tube is less than 20us, the high speed infrared data communication is supported, the baud rate is not less than 9600bps, and the communication speed requirement of the common low power consumption equipment is met.
5. The single-tube infrared four-wire TTL serial port transceiver device in a filthy environment according to claim 1, wherein the device operation mode is a half-duplex mode.
CN202020455482.0U 2020-04-01 2020-04-01 Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment Expired - Fee Related CN211606536U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020455482.0U CN211606536U (en) 2020-04-01 2020-04-01 Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020455482.0U CN211606536U (en) 2020-04-01 2020-04-01 Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment

Publications (1)

Publication Number Publication Date
CN211606536U true CN211606536U (en) 2020-09-29

Family

ID=72583145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020455482.0U Expired - Fee Related CN211606536U (en) 2020-04-01 2020-04-01 Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment

Country Status (1)

Country Link
CN (1) CN211606536U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342901A (en) * 2020-04-01 2020-06-26 威海市天罡仪表股份有限公司 Single-tube infrared four-wire TTL serial port receiving and transmitting device and method in dirty environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342901A (en) * 2020-04-01 2020-06-26 威海市天罡仪表股份有限公司 Single-tube infrared four-wire TTL serial port receiving and transmitting device and method in dirty environment

Similar Documents

Publication Publication Date Title
CN208834295U (en) A kind of 232 and 485 Bus isolation conversion modules
CN211606536U (en) Single-tube infrared four-wire TTL serial port receiving and transmitting device in dirty environment
CN201204574Y (en) Circuit for switching RS232 signal level
CN201004689Y (en) A device for remote distance video transfer, voltage stabilization of power supply, audio or signal control
CN111895614A (en) Monitoring circuit and system for outdoor unit of air conditioner
CN105991195A (en) Fiber-to-CAN circuit applied to plastic optical fiber network
US20230376436A1 (en) Apparatus with forward-reverse insertion interface and detection method
CN111342901A (en) Single-tube infrared four-wire TTL serial port receiving and transmitting device and method in dirty environment
CN219204614U (en) Network extender
CN217063992U (en) Level switching time-sharing multiplexing and isolating circuit and TWS earphone system
CN214704618U (en) Serial port communication multiplexing circuit
CN210669926U (en) Motor control circuit of electric engineering machinery
CN201149659Y (en) Simple serial port control apparatus
CN211236597U (en) Dual-redundancy CAN network photoelectric isolation device
CN115066060B (en) Receiving and transmitting integrated multiplexing circuit for LED driving power supply communication
CN219322401U (en) Half-duplex optical communication module and multi-device communication system thereof
CN110890851A (en) Motor control circuit of electric engineering machinery
CN114513726B (en) Level switching time-sharing multiplexing and isolating circuit, method and TWS earphone system
CN217847281U (en) Far-near infrared receiving and transmitting circuit and meter
CN220171538U (en) Isolation serial port circuit
CN220857655U (en) Dual-battery serial power supply communication circuit
CN218482773U (en) Compatible circuit of power supply based on RS485 interface
CN208986953U (en) A kind of wireless docking facilities of PLC input and output
CN215379295U (en) Be applied to magnetic navigation AGV's circuit connection board
CN218549500U (en) High-voltage isolation communication circuit

Legal Events

Date Code Title Description
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: 20200929