CN214125285U - RS485 nonpolarity communication circuit - Google Patents

RS485 nonpolarity communication circuit Download PDF

Info

Publication number
CN214125285U
CN214125285U CN202120209692.6U CN202120209692U CN214125285U CN 214125285 U CN214125285 U CN 214125285U CN 202120209692 U CN202120209692 U CN 202120209692U CN 214125285 U CN214125285 U CN 214125285U
Authority
CN
China
Prior art keywords
line
controlled switch
interface
identification
comparison module
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
Application number
CN202120209692.6U
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.)
Guangdong Tiexintong Technology Co ltd
Original Assignee
Guangdong Tiexintong Technology 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 Guangdong Tiexintong Technology Co ltd filed Critical Guangdong Tiexintong Technology Co ltd
Priority to CN202120209692.6U priority Critical patent/CN214125285U/en
Application granted granted Critical
Publication of CN214125285U publication Critical patent/CN214125285U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The utility model belongs to the technical field of communication, concretely relates to communication circuit. The RS485 nonpolar communication circuit comprises an interface line, wherein the interface line comprises an A line, a B line, a first identification line and a second identification line, the other end of the first identification line and the other end of the second identification line are both connected with the input end of a comparison module, the output end of the comparison module is respectively connected with a first controlled switch and a second controlled switch, and the output end of the comparison module is respectively connected with a third controlled switch and a fourth controlled switch through a NOT gate; the line A is provided with a first controlled switch, the line A is connected with the line B through a fourth controlled switch, the line B is provided with a second controlled switch, and the line B is connected with the line A through a third controlled switch. The utility model discloses a purpose that the communication can all be ensured to the positive and negative connection of interface line.

Description

RS485 nonpolarity communication circuit
Technical Field
The utility model belongs to the technical field of communication, concretely relates to communication circuit.
Background
RS485 has advantages such as convenient operation, strong immunity, low price, etc., and occupies a large share in domestic long-distance data communication market, and is often used in the fields of industrial control, intelligent equipment, instruments, etc.
However, the traditional RS485 transceiver has strict requirements on polarity, and communication can be ensured only after a is correctly connected to a and B is correctly connected to B, but in practical application, people prefer simple and fast operation, and often expect to be able to directly use the transceiver by directly plugging the transceiver.
The existing market has a nonpolar RS485 chip which is sold, but the price is 1 time more expensive than the traditional chip, and the damage rate is higher.
SUMMERY OF THE UTILITY MODEL
The utility model discloses to the technical problem who takes place the material incline easily among the long material transportation process, aim at provides a RS485 nonpolarity communication circuit.
The RS485 non-polar communication circuit comprises an interface line, wherein the interface line comprises an A line and a B line, the A line is used for being connected with the A end of an RS485 transceiver, the B line is used for being connected with the B end of the RS485 transceiver, one end of the interface line is used for being connected with the input end of a transmitter of the RS485 transceiver, one end of the interface line is used for being connected with the output end of a receiver of the RS485 transceiver, the other end of the first identification line and the other end of the second identification line are both connected with the input end of a comparison module, the output end of the comparison module is respectively connected with a first controlled switch and a second controlled switch, and the output end of the comparison module is respectively connected with a third controlled switch and a fourth controlled switch through a NOT gate;
the first controlled switch is arranged on the line A, the line A is connected with the line B through the fourth controlled switch, the second controlled switch is arranged on the line B, and the line B is connected with the line A through the third controlled switch.
The utility model discloses increase a wiring on original RS485 interface line for the automatic identification of positive and negative connection, line preface constitutes A line-discernment line-B line or person B line-discernment line-A line, makes things convenient for when personnel in use connect, behind the discernment line in the middle of making clear and definite, can connect A line and B line at will, and it is consuming time to shorten the wiring to a certain extent. After the circuit is connected, the transmitter and the receiver are taken to the comparison module, when the two signal levels are consistent, the insertion is not wrong, the comparison module outputs a low level to drive the first controlled switch and the second controlled switch to be conducted, after the inversion is performed through the NOT gate, the third controlled switch and the fourth controlled switch are turned off in an opposite mode, the RS485 transceivers connected with the two ends of the A line communicate with the A end according to a normal A end, and the RS485 transceivers connected with the two ends of the B line communicate with the B end according to a normal B end. When the two signal levels are not consistent, the insertion is considered to be wrong at the moment, the comparison module outputs a high level to drive the third controlled switch and the fourth controlled switch to be switched on, the first controlled switch and the second controlled switch are switched off, the A end of the RS485 transceiver connected with the two ends of the A line is automatically communicated with the B end, and the B end of the RS485 transceiver connected with the two ends of the B line is automatically communicated with the A end. The utility model discloses a purpose that the communication can all be ensured to the positive and negative connection of interface line.
One end of the first identification line, one end of the line A and one end of the line B are integrated on an RS485 interface;
one end of the second identification line, the other end of the line A and the other end of the line B are integrated on another RS485 interface. And the RS485 interfaces are respectively arranged at the two ends of the interface line, and the communication of the two RS485 transceivers can be realized by randomly plugging the RS485 interfaces.
The first controlled switch, the second controlled switch, the third controlled switch and the fourth controlled switch all adopt field effect transistors, and preferably adopt N-channel field effect transistors.
The grid electrode of the first controlled switch is connected with the output end of the comparison module, the first controlled switch divides the A line into two sections, and the drain electrode and the source electrode of the first controlled switch are respectively connected with the two sections of the A line;
the grid electrode of the second controlled switch is connected with the output end of the comparison module, the second controlled switch divides the B line into two sections, and the drain electrode and the source electrode of the second controlled switch are respectively connected with the two sections of B lines;
the grid electrode of the third controlled switch is connected with the output end of the comparison module through the NOT gate, the source electrode of the third controlled switch is connected with one section of line B, and the drain electrode of the third controlled switch is connected with the other section of line A;
the grid electrode of the fourth controlled switch is connected with the output end of the comparison module through the NOT gate, the source electrode of the fourth controlled switch is connected with one section of line A, and the drain electrode of the fourth controlled switch is connected with the other section of line B.
One end of the first identification line, the end of one section of the A line and the end of one section of the B line are integrated on the same RS485 interface;
one end of the second identification line, the end of the other section of the line A and the end of the other section of the line B are integrated on the same RS485 interface.
The line A is connected with a power supply through a first resistor, and the line B is grounded through a second resistor.
The first resistor and the second resistor are arranged on the same side of the interface line and are both 1k omega.
The utility model discloses an actively advance the effect and lie in: the utility model discloses a RS485 nonpolarity communication circuit has following advantage:
1. the identification line is set between the line A and the line B in the line sequence, and both the positive connection and the negative connection can ensure communication when the terminal is used for connection;
2. the traditional RS485 chip can be continuously used, the identification circuit is externally expanded, and compared with the non-polar RS485 chip, the maintenance cost is reduced.
Drawings
Fig. 1 is a schematic circuit diagram of the present invention.
Detailed Description
In order to make the technical means, creation features, achievement purposes and functions of the present invention easy to understand, the present invention will be further explained with reference to the specific drawings.
Referring to fig. 1, the RS485 non-polar communication circuit includes an interface line, the interface line includes an a line for connecting with an a end of an RS485 transceiver, a B line for connecting with a B end of the RS485 transceiver, a first identification line having one end for connecting with a transmitter input DI of an RS485 transceiver U1, and a second identification line having one end for connecting with a receiver output RO of an RS485 transceiver U2, the other end of the first identification line and the other end of the second identification line are both connected with an input end of a comparison module U3, an output end of the comparison module U3 is respectively connected with a first controlled switch Q2 and a second controlled switch Q3, and an output end of the comparison module U3 is respectively connected with a third controlled switch Q4 and a fourth controlled switch Q5 through a not gate U11. One end of the first identification line, one end of the line A and one end of the line B are integrated on one RS485 interface. One end of the second identification line, the other end of the line A and the other end of the line B are integrated on the other RS485 interface. And the RS485 interfaces are respectively arranged at the two ends of the interface line, and the communication of the two RS485 transceivers can be realized by randomly plugging the RS485 interfaces. Preferably, the line a is connected to a power supply through a first resistor R2, and the power supply adopts a 5V power supply. The line B is connected to ground through a second resistor R3. The first resistor R2 and the second resistor R3 are disposed on the same side of the interface line and are each 1k Ω.
The line A is provided with a first controlled switch Q2, the line A is connected with the line B through a fourth controlled switch Q5, namely the first controlled switch Q2 switches on or off the ends A of the two RS485 transceivers connected with the two ends of the line A, and the fourth controlled switch Q5 switches on or off the ends A of the RS485 transceivers connected with one end of the line A and the ends B of the RS485 transceivers connected with the other end of the line B.
The line B is provided with a second controlled switch Q3, and the line B is connected with the line A through a third controlled switch Q4. Namely, the second controlled switch Q3 turns on or off the B terminals of the two RS485 transceivers connected to the two ends of the B line, and the third controlled switch Q4 turns on or off the B terminal of the RS485 transceiver connected to one end of the B line and the a terminal of the RS485 transceiver connected to the other end of the a line.
Preferably, the first controlled switch Q2, the second controlled switch Q3, the third controlled switch Q4 and the fourth controlled switch Q5 are all field effect transistors, preferably N-channel field effect transistors. The gate of the first controlled switch Q2 is connected to the output terminal of the comparison module U3, the first controlled switch Q2 divides the a line into two segments, and the drain and source of the first controlled switch Q2 are respectively connected to the two segments of the a line. The gate of the second controlled switch Q3 is connected to the output terminal of the comparison module U3, the second controlled switch Q3 divides the B line into two segments, and the drain and the source of the second controlled switch Q3 are respectively connected to the two segments of the B line. The gate of the third controlled switch Q4 is connected to the output terminal of the comparison module U3 through the not gate U11, and the source of the third controlled switch Q4 is connected to the B line and the drain is connected to the a line. The gate of the fourth controlled switch Q5 is connected to the output terminal of the comparing module U3 through the not gate U11, and the source of the fourth controlled switch Q5 is connected to the a line and the drain is connected to the B line. One end of the first identification line, the end of the section of the A line and the end of the section of the B line are integrated on the same RS485 interface. One end of the second identification line, the end of the other section of line A and the end of the other section of line B are integrated on the same RS485 interface.
The utility model discloses increase a wiring on original RS485 interface line for the automatic identification of positive and negative connection, line preface constitutes A line-discernment line-B line or person B line-discernment line-A line, makes things convenient for when personnel in use connect, behind the discernment line in the middle of making clear and definite, can connect A line and B line at will, and it is consuming time to shorten the wiring to a certain extent. After the lines are connected, a transmitter input end DI and a receiver output end RO are taken to a comparison module U3, when the two signal levels are consistent, the two signal levels are not considered to be inserted wrongly, the comparison module U3 outputs a low level to drive a first controlled switch Q2 and a second controlled switch Q3 to be switched on, after the two signal levels are inverted through a NOT gate U11, a third controlled switch Q4 and a fourth controlled switch Q5 are switched off in an opposite mode, an RS485 transceiver U1 and an RS485 transceiver U2 which are connected with two ends of an A line communicate with the A end according to a normal end A, and an RS485 transceiver U1 and an RS485 transceiver U2 which are connected with two ends of a B line communicate with the B end according to a normal end B. When the two signal levels are not consistent, the insertion is considered to be wrong at the moment, the comparison module U3 outputs a high level to drive the third controlled switch Q4 and the fourth controlled switch Q5 to be switched on, the first controlled switch Q2 and the second controlled switch Q3 are switched off, the A end of the RS485 transceiver U1 connected with one end of the A wire is automatically communicated with the B end of the RS485 transceiver U2 connected with the other end of the B wire, and the B end of the RS485 transceiver U1 connected with one end of the B wire is automatically communicated with the A end of the RS485 transceiver U2 connected with the other end of the A wire. The utility model discloses a purpose that communication can all be ensured to the positive and negative connection.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the above embodiments, and that the foregoing embodiments and descriptions are provided only to illustrate the principles of the present invention without departing from the spirit and scope of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (7)

1. An RS485 non-polar communication circuit comprises an interface line, wherein the interface line comprises an A line and a B line, the A line is used for being connected with the A end of an RS485 transceiver, the B line is used for being connected with the B end of the RS485 transceiver, the interface line is characterized by further comprising a first identification line and a second identification line, one end of the first identification line is used for being connected with the input end of a transmitter of the RS485 transceiver, one end of the second identification line is used for being connected with the output end of a receiver of the RS485 transceiver, the other end of the first identification line and the other end of the second identification line are both connected with the input end of a comparison module, the output end of the comparison module is respectively connected with a first controlled switch and a second controlled switch, and the output end of the comparison module is respectively connected with a third controlled switch and a fourth controlled switch through a NOT gate;
the first controlled switch is arranged on the line A, the line A is connected with the line B through the fourth controlled switch, the second controlled switch is arranged on the line B, and the line B is connected with the line A through the third controlled switch.
2. The RS485 nonpolarity communication circuit according to claim 1, wherein one end of the first identification line, one end of the a line, and one end of the B line are integrated on one RS485 interface;
one end of the second identification line, the other end of the line A and the other end of the line B are integrated on another RS485 interface.
3. The RS485 nonpolarity communication circuit according to claim 1 or 2, wherein the first controlled switch, the second controlled switch, the third controlled switch and the fourth controlled switch all employ N-channel field effect transistors.
4. The RS485 nonpolarity communication circuit according to claim 3, wherein a gate of the first controlled switch is connected to an output terminal of the comparison module, the first controlled switch divides the A line into two segments, and a drain and a source of the first controlled switch are respectively connected to the two segments of the A line;
the grid electrode of the second controlled switch is connected with the output end of the comparison module, the second controlled switch divides the B line into two sections, and the drain electrode and the source electrode of the second controlled switch are respectively connected with the two sections of B lines;
the grid electrode of the third controlled switch is connected with the output end of the comparison module through the NOT gate, the source electrode of the third controlled switch is connected with one section of line B, and the drain electrode of the third controlled switch is connected with the other section of line A;
the grid electrode of the fourth controlled switch is connected with the output end of the comparison module through the NOT gate, the source electrode of the fourth controlled switch is connected with one section of line A, and the drain electrode of the fourth controlled switch is connected with the other section of line B.
5. The RS485 nonpolarity communication circuit according to claim 4, wherein one end of the first identification line, an end of a segment of the A line and an end of a segment of the B line are integrated on the same RS485 interface;
one end of the second identification line, the end of the other section of the line A and the end of the other section of the line B are integrated on the same RS485 interface.
6. The RS485 nonpolarity communication circuit of claim 1, wherein the a line is connected to a power supply through a first resistor and the B line is grounded through a second resistor.
7. The RS485 nonpolarity communication circuit of claim 6, wherein the first resistor and the second resistor are disposed on the same side of the interface wire and are both 1 kOmega.
CN202120209692.6U 2021-01-26 2021-01-26 RS485 nonpolarity communication circuit Active CN214125285U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120209692.6U CN214125285U (en) 2021-01-26 2021-01-26 RS485 nonpolarity communication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120209692.6U CN214125285U (en) 2021-01-26 2021-01-26 RS485 nonpolarity communication circuit

Publications (1)

Publication Number Publication Date
CN214125285U true CN214125285U (en) 2021-09-03

Family

ID=77495827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120209692.6U Active CN214125285U (en) 2021-01-26 2021-01-26 RS485 nonpolarity communication circuit

Country Status (1)

Country Link
CN (1) CN214125285U (en)

Similar Documents

Publication Publication Date Title
CN105191221B (en) The method of bidirectional bus system and operation bidirectional bus
CN105122229B (en) Fault-tolerant circuit for communication bus
US10998737B2 (en) Intelligent switch system
CN110728938B (en) Display control system and display screen
CN102538137B (en) Anti-jamming circuit and anti-jamming method for air-conditioning strong-electricity communication
CN207010674U (en) A kind of single-wire communication circuit
CN204506783U (en) Vehicle-mounted condition indication circuit and vehicle intelligent terminal
CN214125285U (en) RS485 nonpolarity communication circuit
CN100549887C (en) Bus line data transceiver
CN101226672A (en) Communication control alarm device
CN204790997U (en) A general circuit for electronic equipment RS -485RS -422 communication
CN204314873U (en) A kind of I2C buffer circuit and I2C bus system
CN204291487U (en) Based on the LED automatic addressing circuit of DMX512, light fixture and system
CN109639120A (en) The driving interlock circuit and intelligent power module of intelligent power module
CN203554746U (en) DALI signal transmit-receive circuit
CN221041793U (en) Gating system of Type-C interface
CN206863545U (en) A kind of nonpolarity conversion equipment of communication bus
CN202126687U (en) RS485 bus interface circuit
CN204515763U (en) Data line and terminal system
CN204832824U (en) Frequency isolated safety barrier
CN103873104A (en) Main machine communication circuit and communication system
CN218918095U (en) Mipi interface circuit and electronic equipment
CN214204210U (en) One-to-three quick charging data line with TYPE-C as input interface
CN107633803A (en) Signal masking unit, signal masking method and display panel
CN220896334U (en) Battery charging identification circuit and battery

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant