CN207543128U - A kind of communication equipment for being used to prevent RS485 equipment misconnection - Google Patents
A kind of communication equipment for being used to prevent RS485 equipment misconnection Download PDFInfo
- Publication number
- CN207543128U CN207543128U CN201721431610.2U CN201721431610U CN207543128U CN 207543128 U CN207543128 U CN 207543128U CN 201721431610 U CN201721431610 U CN 201721431610U CN 207543128 U CN207543128 U CN 207543128U
- Authority
- CN
- China
- Prior art keywords
- chip
- circuit
- control
- connect
- lines
- 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
Abstract
The utility model discloses a kind of for preventing the communication equipment of RS485 equipment misconnection, belong to field of communication technology.The communication equipment includes AB lines switching circuit, AB signals line detection circuit, transmission circuit, control circuit and power circuit;The AB line interfaces of the input terminal connection communication equipment of AB signal line detection circuits, the output terminal of AB signal line detection circuits is with controlling the capture mouth of chip to connect;The control terminal of the output terminal connection AB line switching circuits of chip is controlled, the signal transmission end of AB line switching circuits and the differential signal end of communication interface chip connect;Communication interface chip is connect with control chip;Power circuit is connect with control chip;Erecting bed, the problem of causing debugging efficiency not high complicated for operation must be arrived by solving debugging AB lines;AB lines need not be differentiated during wiring by having reached, and the AB lines of wrong are switched to correct connection mode automatically after the completion of wiring, improve installation effectiveness, the effect for simplifying debugging flow.
Description
Technical field
The utility model embodiment is related to field of communication technology, more particularly to a kind of to be used to prevent RS485 equipment misconnection
Communication equipment.
Background technology
With the digitized development of situ industrial device intelligence, bus communication control is more and more common, at the scene bus
In, RS485 buses are because the features such as price is low, performance is stable and maturity is high is widely used.RS485 buses are a kind of serial
Bus is transmitted using differential signal in A, B both threads.In a communications system, the AB mouths of slave are straight by RS485 telecommunication circuits
It connects and is incorporated to the AB mouths of host communication between slave and host can be realized.
In connection, it is desirable that A lines connect A mouthful, B mouthfuls of B lines connection, after the completion of connection, from host to slave
Information is sent, whether test slave work is normal, however often will appear the reversed situation of A, B line in actual application,
At this point, slave can not work normally, need to debug circuit until armamentarium works normally.
If there are multiple devices in system, the debugging work load after wiring is big, and debugging process is cumbersome.
Utility model content
In order to solve problem of the prior art, the utility model embodiment provides one kind for preventing RS485 equipment wrong
The communication equipment connect.The technical solution is as follows:
In a first aspect, providing a kind of communication equipment for being used to prevent RS485 equipment misconnection, which includes AB lines
Switching circuit, AB signals line detection circuit, transmission circuit, control circuit and power circuit;
The control circuit includes control chip, and the AB signals line detection circuit includes operational amplifier, the AB lines
Switching circuit includes single-pole double-throw switch (SPDT) chip, and the transmission circuit includes communication interface chip;
The input terminal of the AB signals line detection circuit connects the AB line interfaces of the communication equipment, the AB signal wires inspection
The output terminal of slowdown monitoring circuit is connect with the capture mouth of the control chip;
The output terminal of the control chip connects the control terminal of the AB lines switching circuit, the letter of the AB lines switching circuit
Number transmission end is connect with the differential signal end of the communication interface chip in the transmission circuit;
The communication interface chip in the transmission circuit is connect with the control chip;
The power circuit is connect with the power end of the control chip.
Optionally, the AB lines switching circuit includes two handoff legs, and each handoff leg includes a hilted broadsword
Commutator chip, triode, capacitance, resistance and diode;
In each handoff leg, in the switch moved end of the single-pole double-throw switch (SPDT) chip and the AB line interfaces
One interface connection, two output terminals of the single-pole double-throw switch (SPDT) chip correspond to two signal output ends;
The collector of first control terminal connecting triode of the single-pole double-throw switch (SPDT) chip, the single-pole double-throw switch (SPDT) core
First control terminal of piece is also associated with capacitance in parallel;
A diode is connected between first control terminal of the single-pole double-throw switch (SPDT) chip and the second control terminal;
The base stage of the triode connects an output terminal of the control chip by a resistance, the triode
There are one resistance, the emitter ground connection of the triode for connection between base stage and emitter.
Optionally, in the AB signals line detection circuit, the in-phase input end of the operational amplifier is connected by resistance
An AB line interface is connect, the inverting input of the operational amplifier connects another AB line interface by resistance;
The capture mouth of the output terminal connection control chip of the operational amplifier.
Optionally, the transmission circuit further includes logic gate buffer;
The data input pin of the communication interface chip connects the output terminal of the first logic gate buffer, and first logic is delayed
The input terminal for rushing device connects the data-signal transmitting terminal of the control chip in the control circuit;
The data output end of the communication interface chip connects the input terminal of the second logic gate buffer, and second logic is delayed
The output terminal for rushing device connects the data signal recipients of the control chip in the control circuit;
The differential signal end of the communication interface chip is connect with the signal transmission end of the AB lines switching circuit.
Optionally, the power circuit includes voltage stabilizing chip;
The input terminal connection external power supply of the voltage stabilizing chip, the input terminal of the voltage stabilizing chip are connected with electricity in parallel
Hold;
The output terminal of the voltage stabilizing chip is connect with the power end of the control chip, and the output terminal of the voltage stabilizing chip is also
It is connected with capacitance in parallel.
The advantageous effect brought of technical solution that the utility model embodiment provides is:
This is used to prevent the communication equipments of RS485 equipment wrongs, including AB lines switching circuit, AB signals line detection circuit,
Transmission circuit, control circuit and power circuit, the AB line interfaces of the input terminal connection communication equipment of AB signal line detection circuits, AB
The output terminal of signal line detection circuit is with controlling the capture mouth of chip to connect;Control the output terminal connection AB line switching circuits of chip
Control terminal, the signal transmission end of AB line switching circuits is connect with the differential signal end of the communication interface chip in transmission circuit;
Communication interface chip in transmission circuit is connect with control chip;Power circuit is with controlling the power end of chip to connect;It solves
Debugging AB lines must arrive erecting bed, the problem of causing debugging efficiency not high complicated for operation;Having reached need not during wiring
AB lines are differentiated, the AB lines of wrong are switched to correct connection mode automatically after the completion of wiring, installation effectiveness is improved, simplifies debugging
The effect of flow.
Description of the drawings
It is required in being described below to embodiment in order to illustrate more clearly of the technical scheme in the embodiment of the utility model
Attached drawing to be used is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the utility model
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 be according to shown in an exemplary embodiment it is a kind of for prevent RS485 equipment misconnection communication equipment knot
Structure block diagram;
Fig. 2 is the circuit diagram according to a kind of control circuit shown in an exemplary embodiment;
Fig. 3 is the circuit diagram according to a kind of AB signals line detection circuit shown in an exemplary embodiment;
Fig. 4 is the circuit diagram according to a kind of AB lines switching circuit shown in an exemplary embodiment;
Fig. 5 is the circuit diagram according to a kind of transmission circuit shown in an exemplary embodiment;
Fig. 6 is the circuit diagram according to a kind of power circuit shown in an exemplary embodiment.
Specific embodiment
It is new to this practicality below in conjunction with attached drawing to make the purpose of this utility model, technical solution and advantage clearer
Type embodiment is described in further detail.
It please refers to Fig.1, it illustrates what the utility model one embodiment provided to be used to prevent the logical of RS485 equipment misconnection
Believe the structure diagram of equipment.As shown in Figure 1, this is used to prevent the communication equipment of RS485 equipment misconnection from including AB line switching circuits
120th, AB signals line detection circuit 130, transmission circuit 150, control circuit 110 and power circuit 140.
Control circuit 110 includes control chip, and AB signals line detection circuit 130 includes operational amplifier, AB lines switching electricity
Road 120 includes single-pole double-throw switch (SPDT) chip, and transmission circuit 150 includes communication interface chip.
The input terminal of AB signals line detection circuit 130 connects the AB line interfaces 121 of the communication equipment.
AB signals line detection circuit 130 is used to detect whether AB line interfaces have data transmission.
AB line interfaces 121 include two interface, that is, A mouthful and B mouthfuls, are respectively used to connect A lines and B lines, connect A lines when A mouthfuls, B mouthfuls
When connecing B lines, control chip can be properly received data.
The output terminal of AB signals line detection circuit 130 is with controlling the capture mouth of chip to connect.
When AB line interfaces 121 have data transmission, mouth trigging signal is captured;When 121 no data of AB line interfaces transmits, control
The capture mouth level of coremaking piece does not change.
The communication equipment connects AB lines by AB line interfaces 121, realizes the data transmission with other communication equipments.
Control the control terminal of the output terminal connection AB lines switching circuit 120 of chip.
Chip output control signal is controlled, control signal is used to that AB lines switching circuit 120 to be controlled to work.
When the level of capture mouth is overturn, but control chip is unable to properly receive data, illustrate that A lines, B line wrongs are corresponding
A mouthfuls, B mouthfuls, i.e. A lines access B mouthfuls, and B lines access A mouthfuls, control chip output control signal, control signal control AB line switchings at this time
Circuit 120 works, and enables control chip that can be properly received data.
The signal transmission end of AB lines switching circuit 120 and the differential signal end of the communication interface chip in transmission circuit 150
Connection.
AB lines switching circuit 120 is used to switch AB lines.
Communication interface chip in transmission circuit 150 is connect with control chip.
With the power end of chip is controlled to connect, power circuit is used to believe for AB lines switching circuit 120, AB power circuit 140
Number line detection circuit 130, transmission circuit 150, control circuit 110 are powered.
The utility model embodiment schematically illustrates a kind of electricity for the communication equipment for being used to prevent RS485 equipment misconnection
Road schematic diagram, Fig. 2 shows the circuit diagram of control circuit, Fig. 3 shows the circuit diagram of AB signal line detection circuits,
Fig. 4 shows the circuit diagram of AB line switching circuits, and Fig. 5 shows the circuit diagram of transmission circuit, and Fig. 6 shows power supply
The circuit diagram of circuit.
Optionally, control chip is singlechip chip.Such as the model STM32F030K6T6 of singlechip chip.
Optionally, control chip U1 is also associated with external controller part P1.
As shown in figure 3, in AB signal line detection circuits, the in-phase input end of operational amplifier U2 is connected by resistance R41
Meet the A in an AB line interface, such as connection AB line interfaces;The inverting input of operational amplifier U2 is connected by resistance R42
B in another AB line interface, such as connection AB line interfaces.
The capture mouth A-B CAP of the output terminal connection control chip U1 of operational amplifier U2.
AB lines switching circuit includes two handoff legs, and each handoff leg includes single-pole double-throw switch (SPDT) chip, three
Pole pipe, capacitance, resistance and diode.
In each handoff leg, switch moved end and the interface in AB line interfaces of single-pole double-throw switch (SPDT) chip connect
It connects, two output terminals of single-pole double-throw switch (SPDT) chip correspond to two signal output ends;First control of single-pole double-throw switch (SPDT) chip
The collector of connecting triode is held, the first control terminal of single-pole double-throw switch (SPDT) chip is also associated with capacitance in parallel;Single-pole double throw
A diode is connected between the first control terminal and the second control terminal of switch chip;The base stage of triode is connected by a resistance
An output terminal of control chip is connect, there are one resistance, the emitters of triode for connection between the base stage and emitter of triode
Ground connection.
As shown in figure 4, AB lines switching circuit includes single-pole double-throw switch (SPDT) chip Relay1 and single-pole double-throw switch (SPDT) chip
The switch moved end 1 of Relay2, single-pole double-throw switch (SPDT) chip Relay1 connect A mouthfuls, the switch of single-pole double-throw switch (SPDT) chip Relay2
Moved end 1 connects B mouthfuls.
The first control terminal 2 of single-pole double-throw switch (SPDT) chip Relay1 is connected with capacitance C21, C22 in parallel.Single-pole double throw is opened
Diode D1 is connected between the first control terminal 2 and the second control terminal 5 of pass chip Relay1.
The first control terminal 2 of the collector connection single-pole double-throw switch (SPDT) chip Relay1 of triode Q1, the hair of triode Q1
Emitter grounding, the base stage of triode Q1 control the output terminal RELY1 of chip by resistance R12 connections, the base stage of triode Q1 and
Resistance R11 is connected between emitter.
Two output terminals of single-pole double-throw switch (SPDT) chip Relay1 correspond to two signal output ends, a signal output end pair
Two signal output ends are answered, a signal output end connects A lines, and a signal output end connects B lines.Single-pole double-throw switch (SPDT) chip
One signal output end of control signal behavior that Relay1 is sent according to control chip U1.
The first control terminal 2 of single-pole double-throw switch (SPDT) chip Relay2 is connected with capacitance C23, C24 in parallel.Single-pole double throw is opened
Diode D2 is connected between the first control terminal 2 and the second control terminal 5 of pass chip Relay2.
The first control terminal 2 of the collector connection single-pole double-throw switch (SPDT) chip Relay2 of triode Q2, the hair of triode Q2
Emitter grounding, the base stage of triode Q2 control the output terminal RELY2 of chip by resistance R13 connections, the base stage of triode Q2 and
Resistance R14 is connected between emitter.
Two output terminals of single-pole double-throw switch (SPDT) chip Relay2 correspond to two signal output ends, a signal output end pair
Two signal output ends are answered, a signal output end connects A lines, and a signal output end connects B lines.Single-pole double-throw switch (SPDT) chip
One signal output end of control signal behavior that Relay2 is sent according to control chip U1.
As shown in figure 5, transmission circuit further includes logic gate buffer.
The data input pin of communication interface chip U3 connects the output terminal of the first logic gate buffer U4, the first logic gate buffer
The data-signal transmitting terminal 485-TX of control chip U1 in 44 input terminal connection control circuit;
The data output end of communication interface chip U3 connects the input terminal of the second logic gate buffer U5, the second logic gate buffer
The data signal recipients 485-RX of control chip U1 in the output terminal connection control circuit of U5;
The differential signal end of communication interface chip U3 and signal transmission end 485-Net1,485-Net2 of AB line switching circuits
Connection.
The differential signal end of communication interface chip U3 is also associated with resistance, capacitance, bi-directional voltage stabilizing diode.
Wherein, the specific connection mode of capacitance, resistance and bi-directional voltage stabilizing diode refers to Fig. 5, and which is not described herein again.
As shown in fig. 6, power circuit includes voltage stabilizing chip U6;The input terminal IN connection external power supply CN1 of voltage stabilizing chip U6,
The input terminal IN of voltage stabilizing chip U6 is connected with capacitance in parallel.
The output terminal IN of voltage stabilizing chip U6 is with controlling the power end of chip U1 to connect, and the output terminal OUT of voltage stabilizing chip U1 is also
It is connected with capacitance in parallel.
Wherein, the specific connection mode of capacitance refers to Fig. 6, and which is not described herein again.
The utility model embodiment provide it is a kind of for prevent RS485 equipment wrongs communication equipment operation principle
For:
Whether the AB interfaces for detecting the communication equipment by AB signal line detection circuits have data transmission, when there is data transmission
When, the capture mouth trigging signal of chip is controlled in control circuit, control chip detects whether that data can be properly received, if can
Data are properly received, then illustrate to connect for the AB that the RS485 equipment connecting with other communication equipments does not have the wrong communication equipment
Mouthful;If data can not be properly received, illustrate the RS485 equipment wrong communication equipment for being connect with other communication equipments
AB interfaces, control chip to AB lines switching circuit send control signal, according to control signal AB line switching circuits in hilted broadsword
Commutator chip operation switches AB lines circuit namely exchanges A lines and B lines, and control chip can be correct after switching A lines and B lines
Receive data.
In conclusion the communication equipment for being used to prevent RS485 equipment wrongs that the utility model embodiment provides, including AB
Line switching circuit, AB signals line detection circuit, transmission circuit, control circuit and power circuit, AB signal line detection circuits it is defeated
Enter to hold the AB line interfaces of connection communication equipment, the output terminal of AB signal line detection circuits is with controlling the capture mouth of chip to connect;Control
The control terminal of the output terminal connection AB line switching circuits of coremaking piece, the signal transmission ends of AB line switching circuits in transmission circuit
The differential signal end connection of communication interface chip;Communication interface chip in transmission circuit is connect with control chip;Power circuit
It is connect with the power end for controlling chip;Erecting bed must be arrived by solving debugging AB lines, complicated for operation to cause debugging efficiency not high
The problem of;AB lines need not be differentiated during wiring by having reached, and automatically be switched to the AB lines of wrong correctly after the completion of wiring
Connection mode improves installation effectiveness, the effect for simplifying debugging flow.
It should be noted that:Above-mentioned the utility model embodiment serial number is for illustration only, does not represent the quality of embodiment.
The above is only the preferred embodiment of the present invention, is not intended to limit the utility model, all in this practicality
Within novel spirit and principle, any modification, equivalent replacement, improvement and so on should be included in the guarantor of the utility model
Within the scope of shield.
Claims (5)
1. a kind of communication equipment for being used to prevent RS485 equipment misconnection, which is characterized in that the communication equipment includes AB lines and switches
Circuit, AB signals line detection circuit, transmission circuit, control circuit and power circuit;
The control circuit includes control chip, and the AB signals line detection circuit includes operational amplifier, the AB lines switching
Circuit includes single-pole double-throw switch (SPDT) chip, and the transmission circuit includes communication interface chip;
The input terminal of the AB signals line detection circuit connects the AB line interfaces of the communication equipment, the AB signal wires detection electricity
The output terminal on road is connect with the capture mouth of the control chip;
The output terminal of the control chip connects the control terminal of the AB lines switching circuit, and the signal of the AB lines switching circuit passes
Defeated end is connect with the differential signal end of the communication interface chip in the transmission circuit;
The communication interface chip in the transmission circuit is connect with the control chip;
The power circuit is connect with the power end of the control chip.
2. communication equipment according to claim 1, which is characterized in that the AB lines switching circuit includes two switching branch
Road, each handoff leg include a single-pole double-throw switch (SPDT) chip, triode, capacitance, resistance and diode;
In each handoff leg, switch moved end and one in the AB line interfaces of the single-pole double-throw switch (SPDT) chip
Interface connects, and two output terminals of the single-pole double-throw switch (SPDT) chip correspond to two signal output ends;
The collector of first control terminal connecting triode of the single-pole double-throw switch (SPDT) chip, the single-pole double-throw switch (SPDT) chip
First control terminal is also associated with capacitance in parallel;
A diode is connected between first control terminal of the single-pole double-throw switch (SPDT) chip and the second control terminal;
The base stage of the triode connects an output terminal of the control chip, the base stage of the triode by a resistance
There are one resistance, the emitter ground connection of the triode for connection between emitter.
3. communication equipment according to claim 1, which is characterized in that in the AB signals line detection circuit, the fortune
The in-phase input end for calculating amplifier connects an AB line interface by resistance, and the inverting input of the operational amplifier passes through electricity
Resistance connects another AB line interface;
The capture mouth of the output terminal connection control chip of the operational amplifier.
4. communication equipment according to claim 1, which is characterized in that the transmission circuit further includes logic gate buffer;
The data input pin of the communication interface chip connects the output terminal of the first logic gate buffer, first logic gate buffer
Input terminal connect the data-signal transmitting terminal of the control chip in the control circuit;
The data output end of the communication interface chip connects the input terminal of the second logic gate buffer, second logic gate buffer
Output terminal connect the data signal recipients of the control chip in the control circuit;
The differential signal end of the communication interface chip is connect with the signal transmission end of the AB lines switching circuit.
5. communication equipment according to any one of claims 1 to 4, which is characterized in that the power circuit includes voltage stabilizing chip;
The input terminal connection external power supply of the voltage stabilizing chip, the input terminal of the voltage stabilizing chip are connected with capacitance in parallel;
The output terminal of the voltage stabilizing chip is connect with the power end of the control chip, and the output terminal of the voltage stabilizing chip is also connected with
There is capacitance in parallel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721431610.2U CN207543128U (en) | 2017-10-30 | 2017-10-30 | A kind of communication equipment for being used to prevent RS485 equipment misconnection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721431610.2U CN207543128U (en) | 2017-10-30 | 2017-10-30 | A kind of communication equipment for being used to prevent RS485 equipment misconnection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN207543128U true CN207543128U (en) | 2018-06-26 |
Family
ID=62611795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201721431610.2U Active CN207543128U (en) | 2017-10-30 | 2017-10-30 | A kind of communication equipment for being used to prevent RS485 equipment misconnection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN207543128U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116299071A (en) * | 2023-05-18 | 2023-06-23 | 天津博益气动股份有限公司 | Pressure sensor prevents wrong line detection circuitry that connects |
-
2017
- 2017-10-30 CN CN201721431610.2U patent/CN207543128U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116299071A (en) * | 2023-05-18 | 2023-06-23 | 天津博益气动股份有限公司 | Pressure sensor prevents wrong line detection circuitry that connects |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2192426C (en) | Bidirectional voltage translator | |
CN110285552B (en) | Line controller power supply control circuit, air conditioner internal unit and air conditioning system | |
CN215897719U (en) | SIM card switching device and electronic equipment | |
CN107395243A (en) | A kind of single-wire communication circuit | |
CN207543128U (en) | A kind of communication equipment for being used to prevent RS485 equipment misconnection | |
CN111181738B (en) | POE power supply equipment and system | |
CN106095708A (en) | The electric current loop means of communication of two-wire system half-duplex one master and multiple slaves multi computer communication and system | |
CN102290862B (en) | Peer to peer communication method and system of power distribution terminals | |
CN103916105A (en) | Apparatus for converting terminal polarity for rs communication | |
CN104795803A (en) | Regional selective interlocking device | |
CN103403563B (en) | Reverse supply line test macro and equipment | |
EP0199338B1 (en) | Repeater circuit | |
CN104125173B (en) | data communication path switching circuit, vehicle-mounted router and automobile | |
CN103731172A (en) | Road side unit equipment and radio frequency transmit-receive method | |
CN217385788U (en) | Broken wire detection circuit | |
CN105515607A (en) | Communication circuit | |
CN109449876A (en) | A kind of short-circuit protection circuit | |
CN215419641U (en) | Communication system | |
CN101436425B (en) | Circuit for controlling power supply of functional module and wireless data terminal equipment | |
CN205105240U (en) | Communication circuit | |
CN107770017A (en) | The processing unit and method that a kind of CAN reversal connection can not communicate | |
CN211959571U (en) | Electric information acquisition terminal communication module and acquisition terminal | |
JPH04247742A (en) | Bus line termination system | |
CN207232954U (en) | S BUS bus communication circuitries | |
CN205453784U (en) | Network communication interface equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 214072 Building No. 777, Building No. A3, West Jianhu Road, Binhu District, Wuxi City, Jiangsu Province, 16 floors 1602 Patentee after: Wuxi Lefu Energy Technology Co., Ltd. Address before: 214072 805, 8th floor, Building 777, A3 West Road, Binhu District, Wuxi City, Jiangsu Province Patentee before: Wuxi happy network technology Co., Ltd. |