CN202150108U - Mode converter for realizing data transmission - Google Patents

Mode converter for realizing data transmission Download PDF

Info

Publication number
CN202150108U
CN202150108U CN 201120184363 CN201120184363U CN202150108U CN 202150108 U CN202150108 U CN 202150108U CN 201120184363 CN201120184363 CN 201120184363 CN 201120184363 U CN201120184363 U CN 201120184363U CN 202150108 U CN202150108 U CN 202150108U
Authority
CN
China
Prior art keywords
mode
data pattern
data
control
pattern device
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 - Lifetime
Application number
CN 201120184363
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN 201120184363 priority Critical patent/CN202150108U/en
Application granted granted Critical
Publication of CN202150108U publication Critical patent/CN202150108U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

A mode converter for realizing data transmission is disclosed, and in particular relates to implementation of serial port data conversion control by means of an RS232 mode, an RS485 mode or an RS422 mode. The mode converter for realizing data transmission comprises a mode conversion controller, a data mode device and a power supply unit. The mode converter for realizing data transmission is characterized in that the mode controller is connected with the data mode device through a connecting line, the mode controller outputs a mode conversion signal to the data mode device and the data mode device converts corresponding data transmission mode according to a mode conversion instruction. The mode converter for realizing data transmission comprises a control switching device of a power supply and a direct control switching device for the data mode device. The two mode switching devices are simple and convenient so as to solve the conversion problem of three data mode devices which has not been solved in actual use due to technical prejudices.

Description

Realize the mode conversion device of data transmission
Technical field
The utility model relates to the mode conversion device of realizing data transmission, particularly relate to and utilize RS232 pattern, RS485 pattern or RS422 pattern to carry out the serial data conversion and control.
Background technology
Data between computing machine and terminal transmit can adopt serial communication and two kinds of modes of parallel communication.The circuit of use is few, cost is low because serial communication mode has, and particularly when remote transmission, has avoided the inconsistent of many line characteristics and extensively employing of quilt.Walk communication and comprise RS232 pattern, RS485 pattern or RS422 pattern.The RS-232-C bus standard is provided with 25 signal line, comprises a main channel and an accessory channel.Mainly use the main channel as a rule,, only need several signal line just can realize, send line, a reception line and a ground wire as one for general duplex communication.Wherein on TxD and RxD: logical one (MARK)=-3V~-15V; Logical zero (SPACE)=+ 3~+ 15V, on control lines such as RTS, CTS, DSR, DTR and DCD: signal effectively (is connected the ON state; Positive voltage)=+ 3V~+ 15V; Invalidating signal (breaking off OFF state, negative voltage)=-3V~-15V.
And RS-485/422 adopts the balance transmission to realize communication with the differential received mode: transmitting terminal becomes differential signal A, the output of B two-way with the Transistor-Transistor Logic level conversion of signals of serial port, at receiving end differential signal is reduced into the Transistor-Transistor Logic level signal through after the cable transmission.Because transmission line uses twisted-pair feeder usually, is again differential transfer, so the ability of extremely strong again anti-common mode interference, bus transceiver sensitivity is very high, can detect to be low to moderate 200mV voltage.So transmission signals all is to recover outside km.Electric property and the RS-485 of RS-422 are just the same.Main difference is: RS-422 has 4 signal wires: two transmissions (Y, Z), two receptions (A, B).So since the receipts of RS-422 be separate can receive and send out (full duplex) simultaneously.RS-485 has 2 signal wires: sending and receiving all is A and B.So because the receipts of RS-485 are that shared two lines can not be received and send out (half-duplex) simultaneously with sending out.
When reality is used above-mentioned serial communication mode transfer signal; Because there is the difference of physics transport property in three kinds of patterns; In order to prevent splicing ear generation grafting mistake; Only used wherein a certain pattern perhaps to do the anti-wrong plug processing of different mode interface when generally using, can only use a kind of pattern output data owing to mode confinement when using the single-mode interface at external interface; And when external interface has a plurality of different mode interface because the anti-wrong plug of different mode interface is handled, make in the time of must in the different mode interface, changing, often need manually directly patch the pattern interface that needs; And in some actual uses, not allowing manual plug pattern interface, MTS has appearred again; But MTS is faced with again in use repeatedly and uses the back because the switch loose contact has caused again because the difference of the interface voltage of mode switch chip has caused the damage of chip and can't use.
Method or device in existing above-mentioned three kinds of mode switch; Because the technician always thinks that there is very big difference in the transport property of above-mentioned three kinds of patterns and is used for data transmission; For the safety (because the words of transcription error are exactly to have damaged corresponding pattern chip) that realizes stability of data transmission and pattern chip; Three kinds of not conversion uses easily of serial data output mode, and adopted single mode data transmission or plug directly to connect use more.And existing above-mentioned three kinds of data-transmission mode conversion methods or device can't satisfy practical demand, need to break through technician's technology understanding prejudice for a long time and propose new mode conversion method or device.
Carry out novel content
Manually peg graft and the safety of different mode chip for conversion use, the different mode transmitting serial port of the different mode transmission that occurs in addressing the above problem, breaks through long-term technology and be familiar with prejudice, propose a kind of mode conversion device of realizing data transmission.
Realize the mode conversion device of data transmission; Comprise mode changeover control device, data pattern device and power-supply unit; It is characterized in that: described mode control device is connected with the data pattern device through connecting line; Described mode control device is to described data pattern device output mode switching signal, and described data pattern device is according to the corresponding data-transmission mode of mode switch command conversion; Described power-supply unit is that said data pattern device provides power supply.
Described mode changeover control device is CPLD control module or CPU control module, is used for the output mode conversion command.
Described data pattern device comprises: RS232 data pattern device, RS485 data pattern device or RS422 data pattern device.
The mode conversion device of said realization data transmission also comprises the load electronic switch.
Described CPU control module is to said load electronic switch output mode conversion command; When RS232 data pattern device, RS485 data pattern device or the work of RS422 data pattern device; The power supply of the corresponding data pattern device of said load electronic switch closes is guaranteed the work of corresponding data mode device.
Said data pattern device also comprises mode state work starting switch.
Said RS232 data pattern device is the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
Said RS485 data pattern device and/or RS422 data pattern device are the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
The mode switch order said RS485 data pattern device of input of described CPLD control module or
Figure BSA00000509745600021
and the DE pin in the RS422 data pattern device, said and DE pin are controlled the opening and closing of said RS485 data pattern device or RS422 data pattern device according to described control signal.
The RS232 data pattern device that proposes in according to the present invention, RS485 data pattern device or two kinds of mode control devices of RS422 data pattern device; The control switch device that comprises power supply is or/and for the direct control switch device of above-mentioned data pattern device; Above-mentioned two kinds of mode transition controllers are simple, convenient, solved the transfer problem that never has three kinds of data pattern devices that solve in actual use owing to technological prejudice.
Description of drawings
Fig. 1 is a data pattern transfer principle block diagram
Fig. 2 is a data pattern transfer principle synoptic diagram
Fig. 3 is a data pattern transfer principle synoptic diagram
Fig. 4 implements synoptic diagram for the data pattern transfer principle
Embodiment
Following further explain embodiment.
Realize the mode conversion device of data transmission; Comprise mode changeover control device, data pattern device and power-supply unit; It is characterized in that: described mode control device is connected with the data pattern device through connecting line; Described mode control device is to described data pattern device output mode switching signal, and described data pattern device is according to the corresponding data-transmission mode of mode switch command conversion; Described power-supply unit is that said data pattern device provides power supply, and is as shown in Figure 1.
Described mode changeover control device is CPLD control module or CPU control module, is used for the output mode conversion command.
Described data pattern device comprises: RS232 data pattern device, RS485 data pattern device or RS422 data pattern device;
The mode conversion device of said realization data transmission also comprises the load electronic switch.
Described CPU control module is to said load electronic switch output mode conversion command; When RS232 data pattern device, RS485 data pattern device or the work of RS422 data pattern device; The power supply of the corresponding data pattern device of said load electronic switch closes is guaranteed the work of corresponding data mode device.As shown in Figure 2.
Said data pattern device also comprises mode state work starting switch.
Said RS232 data pattern device is the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
Said RS485 data pattern device and/or RS422 data pattern device are the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
The mode switch order said RS485 data pattern device of input of described CPLD control module or
Figure BSA00000509745600031
and the DE pin in the RS422 data pattern device, said
Figure BSA00000509745600032
and DE pin are controlled the opening and closing of said RS485 data pattern device or RS422 data pattern device according to described control signal.As shown in Figure 3.
The serial data transmitting-receiving allows to be configured to RS232 pattern or RS485 pattern or RS422 pattern; Allow baud rate, data bit, position of rest, PB, the Flow Control of adjustment serial ports, through revising software parameter and adjusting hardware circuit and the conversion of register configuration implementation pattern.
Above-mentioned data pattern device adopts level transferring chip in embodiment, pattern control pin wherein is the Shutdown pin.
A1, draw the serial ports Transistor-Transistor Logic level to the RS232/RS485 level transferring chip, conversion chip is controlled, thereby realize the conversion between RS232 pattern, RS485 pattern, the RS422 pattern through electronic switch by CPU.
A2, connect the CPLD chip through bus, draw serial port control signal to level transferring chip by the CPLD chip, thereby realize the expansion of serial ports 9 lines by CPU.
A3, can select three kinds of different patterns to different interfaces according to different application.Serial port module is seen data off.The RS232/422/485 handoff functionality is realized.
Wherein said steps A 1 comprises:
A11, utilize the load electronic switch, control RS232 level transferring chip and RS485 level transferring chip, RS422 chip level conversion power supply respectively, thereby realize the conversion of different mode.
A12, utilize the CPLD chip, control this level transferring chip and between Shutdown pattern and normal mode of operation, switch, thus the implementation pattern conversion.
Wherein said steps A 2 comprises:
A21, CPLD chip internal design logic register; Corresponding serial port control signal line; When CPU made amendment to CPLD internal logic register, the CPLD chip adjusted the level of the serial port control signal line of drawing, thus the function of simulative serial port control signal wire.
A22, when the device external serial port control signal changes, level transferring chip will be notified the CPLD chip, CPLD reports control signal to change to interrupt to CPU, after by CPU the control signal state of port being inquired about, to make corresponding operating again.
The level transferring chip SP3243 that RS232 selects for use has the Shutdown pin, and the RS485 level transferring chip SP3076 that selects for use can make it get into the Shutdown pattern through control
Figure BSA00000509745600041
and DE pin.Use the CPLD control module to control these two level transferring chip respectively in the design and between Shutdown pattern and normal mode of operation, switch, the Shutdown pattern is " shut " mode", and is as shown in Figure 4.
Every road RS232/422/485 needs its break-make of I/O Combination Control of 5 CPLD.
RS232/422/485 mode switch logical table
Figure BSA00000509745600042
Figure BSA00000509745600051
RS232/485/422 carries out software arrangements and switches; Wherein RS232 is 10 line modes; RS422 is for being with the preceding full duplex mode of shaking hands; RS485 is a full duplex mode: the cpu chip of selecting for use in the design has 6 road serial ports, wherein only has 1 the tunnel to be 9 line modes, therefore in order to realize that 10 line RS232 use the CPLD extended mode; Three kinds of mode switch control modes of RS232/485/422 also can select for use RS232 and RS485 level transferring chip all to have the Shutdown function.Therefore, control the mode of operation of each chip respectively, thereby realize switching with the CPLD expansion I/O.
RJ4510 pin definition list
?PIN RS-232 RS-422 RS-485
?1 RI TxD-(A) TxD-(A)
?2 DSR RxD-(A) RxD-(A)
?3 RTS RTS+
?4 GND GND GND
?5 TxD TxD+(B) TxD+(B)
?6 RxD RxD+(B) RxD+(B)
?7 SG SG SG
?8 CTS CTS+
?9 DTR RTS-
?10 DCD CTS-

Claims (9)

1. realize the mode conversion device of data transmission; Comprise mode changeover control device, data pattern device and power-supply unit; It is characterized in that: described mode control device is connected with the data pattern device through connecting line; Described mode control device is to described data pattern device output mode switching signal, and described data pattern device is according to the corresponding data-transmission mode of mode switch command conversion; Described power-supply unit is that said data pattern device provides power supply.
2. device according to claim 1 is characterized in that: described mode changeover control device is CPLD control module or CPU control module, is used for the output mode conversion command.
3. device according to claim 1 is characterized in that: described data pattern device comprises: RS232 data pattern device, RS485 data pattern device or RS422 data pattern device.
4. device according to claim 1 is characterized in that: the mode conversion device of said realization data transmission also comprises the load electronic switch.
5. according to claim 1,2,3 or 4 described devices; It is characterized in that: described CPU control module is to said load electronic switch output mode conversion command; When RS232 data pattern device, RS485 data pattern device or the work of RS422 data pattern device; The power supply of the corresponding data pattern device of said load electronic switch closes is guaranteed the work of corresponding data mode device.
6. device according to claim 1 is characterized in that: said data pattern device also comprises mode state work starting switch.
7. according to claim 1,2,3,4 or 6 described devices; It is characterized in that: said RS232 data pattern device is the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
8. according to claim 1,2,3,4 or 6 described devices; It is characterized in that: said RS485 data pattern device and/or RS422 data pattern device are the chip that has pattern control pin; Described pattern control pin receives the mode switch order of described CPLD control module, opens or close the described chip that has pattern control pin according to said output control signal.
9. according to claim 1,2,3,4 or 6 described devices; It is characterized in that: the mode switch order said RS485 data pattern device of input of described CPLD control module or
Figure FSA00000509745500011
and the DE pin in the RS422 data pattern device, said
Figure FSA00000509745500012
and DE pin are controlled the opening and closing of said RS485 data pattern device or RS422 data pattern device according to described control signal.
CN 201120184363 2011-06-02 2011-06-02 Mode converter for realizing data transmission Expired - Lifetime CN202150108U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201120184363 CN202150108U (en) 2011-06-02 2011-06-02 Mode converter for realizing data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201120184363 CN202150108U (en) 2011-06-02 2011-06-02 Mode converter for realizing data transmission

Publications (1)

Publication Number Publication Date
CN202150108U true CN202150108U (en) 2012-02-22

Family

ID=45591161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201120184363 Expired - Lifetime CN202150108U (en) 2011-06-02 2011-06-02 Mode converter for realizing data transmission

Country Status (1)

Country Link
CN (1) CN202150108U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008167A (en) * 2019-03-26 2019-07-12 山东超越数控电子股份有限公司 A kind of method of adjust automatically serial ports output mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008167A (en) * 2019-03-26 2019-07-12 山东超越数控电子股份有限公司 A kind of method of adjust automatically serial ports output mode

Similar Documents

Publication Publication Date Title
US20050021890A1 (en) Multi-functional port
CN101595701A (en) Differential pair is as the utilization of single-ended data path with the transmission low speed data
CN101404001A (en) Serial port signal and USB signal compatible control circuit board and communication data cable
CN101246463B (en) Memory mechanism capable of automatic switching interface
KR100770856B1 (en) Device and method for performing multi- functions using unique port in wireless terminal
CN202150108U (en) Mode converter for realizing data transmission
CN202649998U (en) RS232/RS485/RS422 comprehensive test interface circuit
CN109376109A (en) Multiple serial communication switching device
CN204089768U (en) RS485 automatic reversing circuit
CN201867801U (en) Communication signal conversion device for air conditioner
CN101882124B (en) RS422/485 double-use signal converter capable of automatically judging connector
CN209328015U (en) Multi-functional serial data interface arrangement and equipment
CN201820120U (en) Self-adapting multibus execution mechanism controller
CN101674074B (en) Monobus interface conversion circuit of self-adaptive level
CN209543179U (en) A kind of power-supply system of low standby power loss
CN210669926U (en) Motor control circuit of electric engineering machinery
CN102521188A (en) Self-adaptive transmit-receive circuit for recommended standard (RS) 485 communication and RS 232 communication
CN110334039B (en) RJ11 changes RJ45 converter
CN212515793U (en) USB high-speed serial port card
CN203606824U (en) Circuit achieving intelligent serial port multiplexing through multi-way switch
CN201623714U (en) Two-way communication circuit
CN114839897A (en) Multi-interface, input and output configurable wiegand communication expansion board
CN110890851A (en) Motor control circuit of electric engineering machinery
CN109857010B (en) Control method for realizing real-time power supply and bidirectional communication by double lines
CN205809585U (en) A kind of total powerstation remote protection control device

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20120222

CX01 Expiry of patent term