Serial port conversion device and server
By designing a serial port conversion device, the USB and UART serial port protocol conversion is realized using the CPLD module and IO board, and the CPLD module is reset through an external reset circuit, which solves the problem of unstable USB to serial port communication and ensures the stable operation of the server and The validity of reset.
Patent Information
- Application Number
- CN202421365732.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2034-06-14
AI Technical Summary
In the prior art, the USB to serial communication is unstable due to external interference, and the reset signal cannot reset it in time and effectively, affecting the stable operation of the server.
A serial port conversion device is designed, including a CPLD module and an IO board. Through the communication connection between the serial port conversion circuit and the TYPEC interface component, the USB communication protocol and the standard UART serial port protocol are converted, and the CPLD module is reset through an external reset circuit.
It ensures the effectiveness and reliability of the server based on serial port communication, realizes the stability of the communication signal, and ensures the effectiveness and reliability of the reset operation.
Smart Images

Figure CN222514732U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of server serial port communication, and in particular relates to a serial port conversion device and a server. Background Art
[0002] Serial communication is a common data communication method, which uses a serial interface to send and receive data between two devices; as one of the communication methods in the computer industry, serial communication plays a role in data transmission between the host and peripherals and between the host. The notable features of serial communication are fewer communication transmission lines, simple and easy wiring, flexible structure and low cost. It is mainly used for short-range human-device data exchange, real-time monitoring and other system communication work. Therefore, the serial communication interface is a commonly used interface in computer systems.
[0003] At present, with the development of technology, USB will be applied as an external plug-in device to connect to the server, communicate with the server, realize the communication between the external device and the server, and reset the server. However, in the existing technology, USB to serial port communication will cause unstable communication due to external interference, resulting in the reset signal not being able to effectively reset in time, which brings hidden dangers to the stable operation of the server. Utility Model Content
[0004] The utility model provides a serial port conversion device, which can ensure the effectiveness and reliability of serial port communication based on a server.
[0005] The device includes: a CPLD module and an IO board;
[0006] The IO board is provided with a serial port conversion circuit and a TYPEC interface component;
[0007] The CPLD module is connected to the serial port conversion circuit for communication;
[0008] The serial port conversion circuit is communicatively connected with the TYPEC interface component;
[0009] The TYPEC interface component resets the CPLD module through an external reset circuit.
[0010] It should be further explained that the serial port conversion circuit includes: a USB to serial port chip U1, a resistor R1, a capacitor C1, a capacitor C2, a capacitor C3 and a capacitor C4; an interface 1 of the USB to serial port chip U1, a first end of the capacitor C1 and a first end of the capacitor C2 are respectively connected to a USB to serial port power supply; an interface 14 of the USB to serial port chip U1, a second end of the capacitor C1, a second end of the capacitor C2, a second end of the capacitor C3 and a second end of the capacitor C4 are respectively grounded;
[0011] The USB to serial port chip U1 interface 4 is connected to the resistor R1; the USB to serial port chip U1 interface 11, the first end of the capacitor C3 and the first end of the capacitor C4 are respectively connected to the USB to serial port power supply;
[0012] The USB to serial port chip U1 adopts CP2102 chip, or CH340 chip, or FT232 chip, or PL2303 chip.
[0013] It should be further explained that the USB to serial port power supply is a DC 3.3V power supply.
[0014] It should be further explained that the interface B10 and the interface B11 of the TYPEC interface component are USB 3.0 signals respectively.
[0015] It should be further explained that the interface A5 and the interface B5 of the TYPEC interface assembly are grounded through grounding resistors respectively.
[0016] It should be further explained that the communication link between the serial port conversion circuit and the TYPEC interface component is connected with a TVS tube U11.
[0017] It should be further explained that the external reset circuit includes: MOS tube Q11, MOS tube Q12, resistor R11, resistor R12, resistor R13, capacitor C11 and capacitor C12;
[0018] The interface 1 of the MOS tube Q11 is connected to the second end of the resistor R11, and the first end of the resistor R11, the first end of the capacitor C11 and the first end of the capacitor C12 are respectively connected to the power supply; the interface 2 of the MOS tube Q11, the interface 2 of the MOS tube Q12, the second end of the capacitor C11 and the second end of the capacitor C12 are respectively grounded; the interface 3 of the MOS tube Q11 is respectively connected to the interface 1 of the MOS tube Q12 and the second end of the resistor R12; the interface 3 of the MOS tube Q12 is respectively connected to the output end of the external reset circuit and the second end of the resistor R13; the first end of the resistor R12 and the first end of the resistor R13 are respectively connected to the power supply.
[0019] It should be further explained that the CPLD module is also connected to the serial port conversion circuit through a communication on-off control circuit; the communication on-off control circuit includes: transistor Q1 and transistor Q2;
[0020] The base of transistor Q1 and the base of transistor Q2 are connected to the communication control terminal respectively;
[0021] The emitter of the transistor Q1 and the emitter of the transistor Q2 are respectively connected to the CPLD module, and the collector of the transistor Q1 and the collector of the transistor Q2 are respectively connected to the serial port conversion circuit for communication.
[0022] It is further necessary to explain that the CPLD module is connected to an on-board reset circuit;
[0023] The on-board reset circuit includes: a reset control chip U21, a resistor R21, a resistor R22, a resistor R23, a resistor R24, a resistor R25, a capacitor C21 and a capacitor C22;
[0024] The first end of the resistor R21, the first end of the capacitor C21, the first end of the capacitor C22, the first end of the resistor R22, the first end of the resistor R23 and the interface 5 of the reset control chip U21 are respectively connected to the power supply;
[0025] The second end of the resistor R21 is respectively connected to the first end of the resistor R25, the first input end of the on-board reset circuit and the first interface of the reset control chip U21, the third interface of the reset control chip U21 is respectively connected to the second input end of the on-board reset circuit and the first end of the resistor R24, and the fourth interface of the reset control chip U21 is respectively connected to the second end of the resistor R24, the second end of the resistor R22 and the second output end of the on-board reset circuit;
[0026] The interface 6 of the reset control chip U21 is respectively connected to the first output terminal of the reset circuit in the board, the second terminal of the resistor R23 and the second terminal of the resistor R25;
[0027] The reset control chip U21 uses the 74LVC2G07GW chip.
[0028] The utility model also provides a server, comprising: a serial port conversion device.
[0029] It can be seen from the above technical solutions that the utility model has the following advantages:
[0030] In the serial port conversion device provided by the utility model, the CPLD module is connected to the TYPEC interface component through the serial port conversion circuit. The utility model realizes the conversion between the USB communication protocol and the standard UART serial port protocol, and can ensure the stability of the communication signal. The reset operation of the CPLD module is realized by using the USB to serial port communication mode, so that the effectiveness and reliability of the reset action can be guaranteed, and the flexibility of the reset can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solution of the utility model, the drawings required for use in the description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a schematic diagram of a serial port conversion device;
[0033] Figure 2 This is the serial port conversion circuit diagram;
[0034] Figure 3 It is the circuit diagram of TYPEC interface component;
[0035] Figure 4 It is a schematic diagram of an embodiment of a TVS tube;
[0036] Figure 5 This is the external reset circuit diagram;
[0037] Figure 6 This is the communication on-off control circuit diagram. DETAILED DESCRIPTION
[0038] In order to make the purpose, features and advantages of the utility model more obvious and easy to understand, the technical scheme of the utility model will be clearly and completely described below in combination with the drawings in the specific embodiment. Obviously, the embodiments described below are only part of the embodiments of the utility model, not all of them. Based on the embodiments in this patent, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this patent.
[0039] like Figure 1 As shown, the serial port conversion device provided by the utility model includes: a CPLD module and an IO board.
[0040] The CPLD module here stands for Complex Programmable Logic Device (Complex Programmable Logic Device). The CPLD module can realize the combination and control of various logic functions through programming.
[0041] For example, the CPLD module can be installed on the motherboard, and the status information of each component on the motherboard can be obtained through the motherboard, such as CPU temperature, fan speed, memory usage, etc. The CPLD module can also control the power supply of the system and ensure the normal operation of the server by monitoring and controlling the working status of the power module. The CPLD module is highly programmable, and users can construct logical functions according to their needs.
[0042] The IO board of this embodiment is mainly responsible for data transmission and communication between the CPLD module and external devices or networks. The IO board is connected to external devices (such as storage devices, network devices, etc.) through data cables or network interfaces to achieve efficient data transmission. The IO board can also play a role in the communication protocol and process between external devices to ensure the stability and reliability of data transmission.
[0043] Specifically, the IO board is provided with a serial port conversion circuit and a TYPEC interface component; the CPLD module is communicatively connected with the serial port conversion circuit via a communication on-off control circuit; and the serial port conversion circuit is communicatively connected with the TYPEC interface component.
[0044] In order to realize the on-off control of the communication between the CPLD module and the serial port conversion circuit, the CPLD module is also connected to the serial port conversion circuit through the communication on-off control circuit; the communication on-off control circuit includes: transistor Q1 and transistor Q2; the base of the transistor Q1 and the base of the transistor Q2 are respectively connected to the communication control end; the emitter of the transistor Q1 and the emitter of the transistor Q2 are respectively connected to the CPLD module, and the collector of the transistor Q1 and the collector of the transistor Q2 are respectively connected to the serial port conversion circuit.
[0045] For example, the communication control terminal can be connected to a CPLD module, and the CPLD module can communicate with the serial port conversion circuit based on the communication control instruction. Of course, the communication control terminal can also be connected to other processors of the server to control the communication link.
[0046] In the embodiments of the present application, Figure 2 As shown, the serial port conversion circuit includes: a USB to serial port chip U1, a resistor R1, a capacitor C1, a capacitor C2, a capacitor C3 and a capacitor C4; the USB to serial port chip U1 interface 1, the first end of the capacitor C1 and the first end of the capacitor C2 are respectively connected to the USB to serial port power supply; the USB to serial port power supply here can be a DC 3.3v power supply. The USB to serial port chip U1 interface 14, the second end of the capacitor C1, the second end of the capacitor C2, the second end of the capacitor C3 and the second end of the capacitor C4 are respectively grounded; the USB to serial port chip U1 interface 4 is connected to the resistor R1; the USB to serial port chip U1 interface 11, the first end of the capacitor C3 and the first end of the capacitor C4 are respectively connected to the USB to serial port power supply.
[0047] Optionally, the USB-to-serial port chip U1 uses a CP2102 chip, a CH340 chip, a FT232 chip, or a PL2303 chip.
[0048] It should be noted that the utility model supports 5V and 3.3V power supply voltages, which can be used to adapt to USB 5V power supply and internal 3.3V power supply modes, and adapt to more power supply modes. Based on the input signal of USB2.0 or USB3.0, RS232, RS485, RS422 and other interface circuits can be output through external level conversion. RST is used as an external reset input, and low level is effective.
[0049] The implementation of TYPEC interface component is as follows Figure 3As shown, interface B10 and interface B11 of the TYPEC interface component are USB3.0 signals respectively. Interface A5 and interface B5 of the TYPEC interface component are grounded through grounding resistors respectively, and the TYPEC interface component realizes the transmission function of USB data. According to actual needs, the TYPEC interface component can be applied to both communication products and external equipment interface types. The TYPEC interface component can have 4 pairs of TX / RX branch lines, 2 pairs of USB D+ / D-, and four VBUS and 4 ground lines. The P5V_VUSB in the TYPEC interface component introduces the power supply of the external PC or other USB. The P5V_VUSB power supply adds TVS and filter capacitor protection devices to the ground to avoid the impact caused by hot plugging.
[0050] In this embodiment, in order to ensure the stability of signal communication, Figure 4 As shown, the communication link between the serial port conversion circuit and the TYPEC interface component is connected with a TVS tube U11. The TVS tube U11 is used to protect the EMC interference signal during the data communication process. As the USB signal input of the conversion signal, the signal passing through the TVS tube U11 has a certain degree of anti-interference and meets the communication requirements.
[0051] This embodiment also involves resetting the CPLD module, and the TYPEC interface component resets the CPLD module through an external reset circuit. The reset method can be reset through an external device, and the reset information is transmitted to the CPLD module through the serial port conversion circuit and the TYPEC interface component to perform the reset.
[0052] Specifically, if Figure 5 As shown, the external reset circuit includes: a MOS tube Q11, a MOS tube Q12, a resistor R11, a resistor R12, a resistor R13, a capacitor C11 and a capacitor C12; an interface 1 of the MOS tube Q11 is connected to the second end of the resistor R11, and a first end of the resistor R11, a first end of the capacitor C11 and a first end of the capacitor C12 are respectively connected to a power supply; an interface 2 of the MOS tube Q11, an interface 2 of the MOS tube Q12, a second end of the capacitor C11 and a second end of the capacitor C12 are respectively grounded; an interface 3 of the MOS tube Q11 is respectively connected to an interface 1 of the MOS tube Q12 and a second end of the resistor R12; an interface 3 of the MOS tube Q12 is respectively connected to an output end of the external reset circuit and a second end of the resistor R13; a first end of the resistor R12 and a first end of the resistor R13 are respectively connected to a power supply.
[0053] Because the TYPEC interface component has an external P5V_VUSB power supply, the P5V_TYPE_RST signal of the P5V_VUSB power-off reset circuit can be pulled low by plugging and unplugging the data line on the TYPEC interface component, and a reset can be performed based on the external reset circuit.
[0054] This embodiment also relates to a reset method when the IO board is powered off and the conversion chip is powered off. Here, the power supply of the USB to serial port chip is powered by the 3.3V power supply inside the board. When the IO board is powered off, the power supply of the USB to serial port chip will also be powered off, so that the entire IO board cannot work. This application can be based on Figure 6 As shown, the CPLD module is connected to an on-board reset circuit.
[0055] The on-board reset circuit includes: a reset control chip U21, a resistor R21, a resistor R22, a resistor R23, a resistor R24, a resistor R25, a capacitor C21 and a capacitor C22; the first end of the resistor R21, the first end of the capacitor C21, the first end of the capacitor C22, the first end of the resistor R22, the first end of the resistor R23 and an interface five of the reset control chip U21 are respectively connected to a power supply; the second end of the resistor R21 is respectively connected to the first end of the resistor R25, the first input end of the on-board reset circuit and the interface one of the reset control chip U21, the interface three of the reset control chip U21 is respectively connected to the second input end of the on-board reset circuit and the first end of the resistor R24, the interface four of the reset control chip U21 is respectively connected to the second end of the resistor R24, the second end of the resistor R22 and the second output end of the on-board reset circuit; the interface six of the reset control chip U21 is respectively connected to the first output end of the on-board reset circuit, the second end of the resistor R23 and the second end of the resistor R25; the reset control chip U21 adopts a 74LVC2G07GW chip.
[0056] This embodiment also provides a server, including: a serial port conversion device.
[0057] The technology described in the server provided by the utility model can be implemented in hardware, software, firmware or any combination thereof. The various features described as modules, units or components can be implemented together in an integrated logic device or separately as discrete but interoperable logic devices or other hardware devices. In some cases, various features of the electronic circuit can be implemented as one or more integrated circuit devices, such as integrated circuit chips or chipsets.
[0058] If implemented in hardware, the present invention relates to a device, such as a processor or an integrated circuit device, such as an integrated circuit chip or chipset. Alternatively or additionally, if implemented in software or firmware, the technology may be implemented at least in part by a computer-readable data storage medium, including instructions that, when executed, cause a processor to perform one or more of the above methods. For example, a computer-readable data storage medium may store instructions such as those executed by a processor.
[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present utility model and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the utility model described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0060] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A serial port conversion device, characterized in that: include: CPLD modules and IO boards; The IO board is provided with a serial port conversion circuit and a TYPEC interface component; The CPLD module is connected to the serial port conversion circuit for communication; The serial port conversion circuit is communicatively connected with the TYPEC interface component; The TYPEC interface component resets the CPLD module through an external reset circuit.
2. The serial port conversion device according to claim 1, characterized in that: The serial port conversion circuit includes: a USB to serial port chip U1, a resistor R1, a capacitor C1, a capacitor C2, a capacitor C3 and a capacitor C4; the first interface of the USB to serial port chip U1, the first end of the capacitor C1 and the first end of the capacitor C2 are respectively connected to the USB to serial port power supply; the fourteenth interface of the USB to serial port chip U1, the second end of the capacitor C1, the second end of the capacitor C2, the second end of the capacitor C3 and the second end of the capacitor C4 are respectively grounded; The USB to serial port chip U1 interface 4 is connected to the resistor R1; the USB to serial port chip U1 interface 11, the first end of the capacitor C3 and the first end of the capacitor C4 are respectively connected to the USB to serial port power supply; The USB to serial port chip U1 adopts CP2102 chip, or CH340 chip, or FT232 chip, or PL2303 chip.
3. The serial port conversion device according to claim 2, characterized in that: The USB to serial port power supply is a DC 3.3v power supply.
4. The serial port conversion device according to claim 1 or 2, characterized in that: Interface B10 and interface B11 of the TYPEC interface component are USB3.0 signals respectively.
5. The serial port conversion device according to claim 1 or 2, characterized in that: Interface A5 and interface B5 of the TYPEC interface assembly are grounded through grounding resistors respectively.
6. The serial port conversion device according to claim 1 or 2, characterized in that: The communication link between the serial port conversion circuit and the TYPEC interface component is connected with a TVS tube U11.
7. The serial port conversion device according to claim 1 or 2, characterized in that: The external reset circuit includes: a MOS tube Q11, a MOS tube Q12, a resistor R11, a resistor R12, a resistor R13, a capacitor C11 and a capacitor C12; The interface 1 of the MOS tube Q11 is connected to the second end of the resistor R11, and the first end of the resistor R11, the first end of the capacitor C11 and the first end of the capacitor C12 are respectively connected to the power supply; the interface 2 of the MOS tube Q11, the interface 2 of the MOS tube Q12, the second end of the capacitor C11 and the second end of the capacitor C12 are respectively grounded; the interface 3 of the MOS tube Q11 is respectively connected to the interface 1 of the MOS tube Q12 and the second end of the resistor R12; the interface 3 of the MOS tube Q12 is respectively connected to the output end of the external reset circuit and the second end of the resistor R13; the first end of the resistor R12 and the first end of the resistor R13 are respectively connected to the power supply.
8. The serial port conversion device according to claim 1 or 2, characterized in that: The CPLD module is also connected to the serial port conversion circuit through the communication on-off control circuit; The communication on-off control circuit includes: transistor Q1 and transistor Q2; The base of transistor Q1 and the base of transistor Q2 are connected to the communication control terminal respectively; The emitter of the transistor Q1 and the emitter of the transistor Q2 are respectively connected to the CPLD module, and the collector of the transistor Q1 and the collector of the transistor Q2 are respectively connected to the serial port conversion circuit for communication.
9. The serial port conversion device according to claim 1 or 2, characterized in that: The CPLD module is connected to an on-board reset circuit; The on-board reset circuit includes: a reset control chip U21, a resistor R21, a resistor R22, a resistor R23, a resistor R24, a resistor R25, a capacitor C21 and a capacitor C22; The first end of the resistor R21, the first end of the capacitor C21, the first end of the capacitor C22, the first end of the resistor R22, the first end of the resistor R23 and the interface 5 of the reset control chip U21 are respectively connected to the power supply; The second end of the resistor R21 is respectively connected to the first end of the resistor R25, the first input end of the on-board reset circuit and the first interface of the reset control chip U21, the third interface of the reset control chip U21 is respectively connected to the second input end of the on-board reset circuit and the first end of the resistor R24, and the fourth interface of the reset control chip U21 is respectively connected to the second end of the resistor R24, the second end of the resistor R22 and the second output end of the on-board reset circuit; The interface 6 of the reset control chip U21 is respectively connected to the first output terminal of the reset circuit in the board, the second terminal of the resistor R23 and the second terminal of the resistor R25; The reset control chip U21 uses the 74LVC2G07GW chip.
10. A server, characterized in that: include: A serial port conversion device as claimed in any one of claims 1 to 9.