CN219435329U - Function-adjustable serial port communication protocol adapter - Google Patents

Function-adjustable serial port communication protocol adapter Download PDF

Info

Publication number
CN219435329U
CN219435329U CN202320669789.4U CN202320669789U CN219435329U CN 219435329 U CN219435329 U CN 219435329U CN 202320669789 U CN202320669789 U CN 202320669789U CN 219435329 U CN219435329 U CN 219435329U
Authority
CN
China
Prior art keywords
ttl
module
signal
gear
pin
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
CN202320669789.4U
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.)
Suzhou Aerospace Information Research Institute
Original Assignee
Suzhou Aerospace Information Research Institute
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 Suzhou Aerospace Information Research Institute filed Critical Suzhou Aerospace Information Research Institute
Priority to CN202320669789.4U priority Critical patent/CN219435329U/en
Application granted granted Critical
Publication of CN219435329U publication Critical patent/CN219435329U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Communication Control (AREA)

Abstract

The utility model discloses a serial port communication protocol adapter with adjustable functions, wherein one end of a USB-to-TTL module is connected with USB signals through a USB interface, the other end of the USB-to-TTL module is connected with a TTL-to-RS 232 module, a TTL-to-RS 422 module and a TTL-to-RS 485 module through a signal type selection module, and one module is selected from TTL, RS232, RS422 and RS485 to be connected through the signal type selection module; the other ends of the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module are connected with the DB9 interface through the signal pin adaptation module, and any one of external serial port signals in TTL, RS232, RS422 or RS485 is matched with the pin of the DB9 interface. The utility model can realize the conversion of TTL, RS232, RS422 and RS485 serial port protocols of any line sequence DB9 interface and USB protocols.

Description

Function-adjustable serial port communication protocol adapter
Technical Field
The utility model relates to the field of industrial Internet of things, in particular to a serial port communication protocol adapter with adjustable functions in a serial port equipment interconnection scene of multiple protocols.
Background
USB is currently the most widely used external bus standard with hot plug function, and can be accessed to various peripheral devices. Meanwhile, serial ports are also an important type of data communication interface. In serial communication, common protocols include TTL, RS232, RS422, and RS485. At present, the definition of the DB9 interface pins of the RS232 is conventional, but the definition of the DB9 interface pins of the RS485, the RS422 and the TTL is various, and the pin sequences are not standardized and normalized, so that the problem that the serial devices of the same type use the same interface and cannot normally communicate is caused.
The prior patent 'a universal serial port adapter', which adopts a singlechip microprocessor to connect an electronic switch, a MAX232 level converter and a MAX491 signal converter, and realizes the bidirectional conversion of TTL level and RS-232 level through MAX 232. The signal adaptable in the patent is only TTL signal and RS232 signal, and the signal type adaptable is limited.
Disclosure of Invention
The utility model aims to provide a serial port communication protocol adapter with adjustable functions.
The technical solution for realizing the purpose of the utility model is as follows: a function-adjustable serial communications protocol adapter, comprising: the hardware circuit comprises a USB-to-TTL module, a TTL-to-RS 232 module, a TTL-to-RS 422 module, a TTL-to-RS 485 module, a signal type selection module, a signal pin adaptation module, a USB interface and a DB9 interface;
one end of the USB-to-TTL module is connected with USB signals through a USB interface to provide working voltage and TTL input for the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module, the other end of the USB-to-TTL module is connected with the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module through a signal type selection module, and the TTL signals, the RS232 signals, the RS422 signals or the RS485 signals are selected to be connected through the signal type selection module; the other ends of the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module are connected with the DB9 interface through the signal pin adaptation module, and TTL signals, RS232 signals, RS422 signals or RS485 signals are matched with pins of the DB9 interface.
Compared with the prior art, the utility model has the remarkable advantages that: (1) The method integrates common USB to TTL, USB to RS232, USB to RS422 and USB to RS485, and realizes the conversion of USB signals and serial signals of common multiple electrical protocols. (2) The system is provided with a signal type selection module and a signal pin adaptation module, and corresponding signal types are selected from TTL, RS232, RS422 and RS485 through a knob switch; the adaptation function of any sequence of the DB9 pins is realized by adjusting 5 10-gear knobs of the signal pin adaptation module.
Drawings
FIG. 1 is a block diagram of a function-adjustable serial communication protocol adapter.
Fig. 2 is a flow chart of the functional adjustable serial communication protocol adapter operation.
Fig. 3 is a circuit board diagram of a serial communication protocol adapter with adjustable functions.
Fig. 4 is a general outline view of a function-adjustable serial communication protocol adapter.
Fig. 5 is a four-type serial port protocol pin layout design.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As shown in fig. 1 and 3, the serial communication protocol adapter can implement conversion between a USB signal and a serial signal; the serial port communication protocol adapter mainly comprises a USB-to-TTL module, a TTL-to-RS 232 module, a TTL-to-RS 422 module, a TTL-to-RS 485 module, a signal type selection module, a signal pin adaptation module, a DB9 interface and a USB interface.
The USB-to-TTL module consists of a CH340B chip and a peripheral circuit, the USB interface adopts a USB2.0 female port, and a +5V VCC of the USB interface provides 5V working voltage for the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module. TX and RX of TTL signals output by the USB-to-TTL module are needed to be used as TTL input of the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module through the signal type selection module.
The TTL-to-RS 232 module consists of an SP232EEN chip and a peripheral circuit. The working states of the VCC power supply pin, the TX and RX pins of the chip are determined by a signal type selection module, and when the serial port communication protocol adapter is connected with an RS232 signal, the signal type selection module adjusts to an RS232 level, the USB-to-TTL module and the TTL-to-RS 232 module work together to realize the function of converting the USB into the RS 232.
The TTL-to-RS 422 module consists of a MAX490EPA chip and a peripheral circuit. The working states of the VCC power supply pin, the TX and RX pins of the MAX490EPA chip are determined by a signal type selection module, and when the serial port communication protocol adapter is accessed to an RS422 signal, the signal type selection module adjusts to an RS422 grade, the USB-to-TTL module and the TTL-to-RS 422 module work together to realize the function of converting the USB into the RS 422.
The TTL-to-RS 485 module consists of a MAX485 chip, an AMS1117 chip and a peripheral circuit. The AMS1117 chip and peripheral circuitry convert 5V voltage to 3.3V, providing 3.3V operating voltage for the MAX485 chip. The working states of the VCC power supply pin, the TX and RX pins of the MAX485 chip are determined by a signal type selection module, and when the serial port communication protocol adapter is accessed to an RS485 signal, the signal type selection module is adjusted to an RS485 gear, the USB-to-TTL module and the TTL-to-RS 485 module work together to realize the function of converting the USB into the RS485.
As shown in fig. 1, 2 and 4, the signal type selection module is composed of 1 5-gear knob and 4-way MOS tube switch circuits, wherein 5 gears are respectively OFF gear, TTL gear, RS232 gear, RS422 gear and RS485 gear, 4-way MOS tube switch circuits are respectively TTL switch circuits, RS232 switch circuits, RS422 switch circuits and RS485 switch circuits, TTL gear, RS232 gear, RS422 gear and RS485 gear of the 5-gear knob are respectively corresponding to the TTL switch circuits, RS232 switch circuits, RS422 switch circuits and RS485 switch circuits, OFF gear is suspended, OFF gear is a closing gear, and the serial port communication protocol adapter stops working under the gear; each switch circuit controls the on-off of 3 paths of signals, wherein the 3 paths of signals are VCC, TX_TTL and RX_TTL respectively. When the signal type selection module works in a TTL file, the TTL switch circuit is opened, and VCC, TX_TTL and RX_TTL signals are directly led to the signal pin adaptation module; when the signal type selection module works in RS232, RS422 and RS485, the RS232, RS422 and RS485 switch circuits are opened, and 3 paths of signals (VCC, TX_TTL and RX_TTL signals) are respectively led to the SP232EEN chip, the MAX490EPA chip and the MAX485 chip. The serial port communication protocol adapter is used for selecting the signal type through the knob switch according to the type of the external signal.
As shown in fig. 2, 4 and 5, the signal pin adapting module is composed of 5 10-gear knobs and a connection circuit of the knob and DB9, the public ends of the 5 knobs are respectively connected with five pins A1, A2, A3, A4 and A5, the pin A1 is communicated with the RXB pin of the RS422 module RS422 signal of the TTL to RS485 module RS485 signal of the TTL to RS485 module, the TXD pin of the RS232 module RS232 signal of the TTL to TTL module TTL signal of the TTL to RS485 signal of the TTL, A3 is communicated with a TXA pin of an RS422 signal of a TTL-to-RS 422 module, a RXD pin of an RS232 signal of the TTL-to-RS 232 module and a TXD pin of a TTL-to-TTL signal of a USB-to-TTL module, A4 is communicated with a TXB pin of the RS422 signal of the TTL-to-RS 422 module, A5 is grounded, 10 gears of 5 knobs are respectively ' 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 ', wherein 0 gear is suspended, 1, 2, 3, 4, 5, 6, 7, 8 and 9 gears are respectively connected with ' 1, 2, 3, 4, 5, 6, 7, 8 and 9"9 pins of DB9, and the gear sequence numbers of the knobs and the sequence numbers of the pins of DB9 are in one-to-one correspondence. When any one of the signals TTL, RS232, RS422 and RS485 is accessed to the serial port communication protocol adapter, the signals TTL, RS232, RS422 and RS485 are successfully accessed to the serial port communication protocol adapter through adjusting 5 10-gear knobs of the signal pin adapting module, and the conversion of the signals TTL, RS232, RS422 and RS485 and USB signals is realized.
As shown in fig. 3, two interfaces of USB and DB9 are designed on the side of the housing, 5 10-gear knobs and 1 5-gear knob are designed on the top, 6 knobs are distributed in 2 rows and 3 columns, the first row is from left to right three corresponding to A1, A2 and A3, and the second row is from left to right A4, A5 and a signal type selection knob. The housing provides circuit protection for the serial communication protocol adapter.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (8)

1. A function-adjustable serial communications protocol adapter, comprising: the hardware circuit comprises a USB-to-TTL module, a TTL-to-RS 232 module, a TTL-to-RS 422 module, a TTL-to-RS 485 module, a signal type selection module, a signal pin adaptation module, a USB interface and a DB9 interface;
one end of the USB-to-TTL module is connected with USB signals through a USB interface to provide working voltage and TTL input for the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module, the other end of the USB-to-TTL module is connected with the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module through a signal type selection module, and the TTL signals, the RS232 signals, the RS422 signals or the RS485 signals are selected to be connected through the signal type selection module; the other ends of the TTL-to-RS 232 module, the TTL-to-RS 422 module and the TTL-to-RS 485 module are connected with the DB9 interface through the signal pin adaptation module, and TTL signals, RS232 signals, RS422 signals or RS485 signals are matched with pins of the DB9 interface.
2. The functionally adjustable serial communications protocol adapter of claim 1 wherein the USB to TTL module employs a CH340B chip.
3. The functionally adjustable serial port communications protocol adapter of claim 1 wherein said TTL to RS232 module employs an SP232EEN chip.
4. The functionally adjustable serial port communication protocol adapter according to claim 1, wherein the TTL-to-RS 422 module employs a MAX490EPA chip.
5. The function-adjustable serial port communication protocol adapter according to claim 1, wherein the TTL-to-RS 485 module is composed of a MAX485 chip and an AMS1117 chip, wherein the AMS1117 chip converts 5V voltage into 3.3V, provides 3.3V working voltage for the MAX485 chip, and the MAX485 chip is matched with the USB-to-TTL module to realize USB-to-RS 485.
6. The function-adjustable serial port communication protocol adapter according to claim 1, wherein the signal type selection module comprises 1 5-gear knob and 4-way MOS tube switch circuits, the 5-gear is an OFF gear, a TTL gear, an RS232 gear, an RS422 gear and an RS485 gear respectively, the 4-way MOS tube switch circuits are a TTL switch circuit, an RS232 switch circuit, an RS422 switch circuit and an RS485 switch circuit, the TTL gear, the RS232 gear, the RS422 gear and the RS485 gear of the 5-gear knob correspond to the TTL switch circuit, the RS232 switch circuit, the RS422 switch circuit and the RS485 switch circuit respectively, and the OFF gear is suspended; each switch circuit controls the on-off of 3 paths of signals, wherein the 3 paths of signals are VCC, TX_TTL and RX_TTL respectively.
7. The function-adjustable serial port communication protocol adapter according to claim 1, wherein the signal pin adapting module comprises 5 10-gear knobs and a connection circuit of the knobs and DB9, the common ends of the 5 knobs are respectively connected with five pins A1, A2, A3, A4 and A5, the pin A1 is communicated with the RXB pin of the RS422 module RS422 signal and the A pin of the RS485 module RS485 signal of the TTL-to-RS 422 module RS422 signal, the pin A2 is communicated with the RXA pin of the RS422 module RS422 signal, the B pin of the RS485 module RS485 signal of the TTL-to-RS 485 module, the TXD pin of the RS232 signal of the TTL-to-RS 232 module and the RXD pin of the TTL-to-TTL module TTL signal, A3 is communicated with a TXA pin of an RS422 signal of a TTL-to-RS 422 module, a RXD pin of an RS232 signal of the TTL-to-RS 232 module and a TXD pin of a TTL-to-TTL signal of a USB-to-TTL module, A4 is communicated with a TXB pin of the RS422 signal of the TTL-to-RS 422 module, A5 is grounded, 10 gears of 5 knobs are respectively ' 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 ', wherein 0 gear is suspended, 1, 2, 3, 4, 5, 6, 7, 8 and 9 gears are respectively connected with ' 1, 2, 3, 4, 5, 6, 7, 8 and 9"9 pins of a DB9 interface, and the gear sequence numbers of the knobs and the sequence numbers of the DB9 pins are in one-to-one correspondence.
8. The function-adjustable serial port communication protocol adapter according to claim 1, comprising a housing, wherein two interfaces of USB and DB9 are designed on the side of the housing, 5 10-speed knobs and 1 5-speed knob are designed on the top, 6 knobs are distributed in 2 rows and 3 columns, the first row is from left to right three knobs corresponding to A1, A2 and A3, respectively, and the second row is from left to right A4, A5 and a signal type selection knob, respectively.
CN202320669789.4U 2023-03-30 2023-03-30 Function-adjustable serial port communication protocol adapter Active CN219435329U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202320669789.4U CN219435329U (en) 2023-03-30 2023-03-30 Function-adjustable serial port communication protocol adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202320669789.4U CN219435329U (en) 2023-03-30 2023-03-30 Function-adjustable serial port communication protocol adapter

Publications (1)

Publication Number Publication Date
CN219435329U true CN219435329U (en) 2023-07-28

Family

ID=87345559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202320669789.4U Active CN219435329U (en) 2023-03-30 2023-03-30 Function-adjustable serial port communication protocol adapter

Country Status (1)

Country Link
CN (1) CN219435329U (en)

Similar Documents

Publication Publication Date Title
WO2005008508A2 (en) Multi-protocol port
CN216596246U (en) Self-adaptive circuit compatible with multi-serial port protocol and communication equipment
CN211742107U (en) USB TYPE-C-based bidirectional transmission circuit and electronic equipment
CN212009333U (en) Interface board compatible with multiple interface signals
CN201204574Y (en) Circuit for switching RS232 signal level
CN207020661U (en) One kind communication multiplex circuit
CN107204992B (en) Multifunctional serial server and data transmission method
CN219435329U (en) Function-adjustable serial port communication protocol adapter
CN107908584B (en) Multi-path RS-485 communication network
CN103853684A (en) Serial bus communication bridging device
CN101667168A (en) Experimental development board of multi-functional single chip
AU2008200997B2 (en) A conversion circuit
CN203786725U (en) Serial bus communication bridge
CN206350008U (en) Interface circuit compatible with RS232/RS485/RS422 communication
US20060039644A1 (en) Arrangement for connecting an optical waveguide to a microprocessor-controlled electrical appliance
CN205091733U (en) Communication interface conversion device
CN211604103U (en) Composite serial interface extension circuit
CN206594811U (en) A kind of multi-functional node assignor
CN212515793U (en) USB high-speed serial port card
CN212675548U (en) RS232 and RS485 serial port hardware self-adaptive receiving and transmitting device
CN221177747U (en) Serial server
CN218471293U (en) OLED display module based on Modbus protocol
CN104915313A (en) FMC board card for realizing level transformation by using FPGA (field programmable gate array)
CN219936402U (en) Converter for quickly selecting channel Type-C to four-way RS232
CN214504405U (en) Integrated signal conversion device of optical communication test system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant