Universal serial bus (USB) serial port multi-channel level conversion device
By designing a USB serial port multi-channel level conversion device, including USB/TTL, TTL/RS485 and TTL/RS232 conversion circuits, combined with level switching switches and indicator lights, the problem of single function and complex operation of existing tools is solved, and the Convenient conversion of multiple levels, suitable for interconnection and debugging of multiple devices.
Patent Information
- Application Number
- CN202420121267.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2034-01-18
AI Technical Summary
The existing USB to serial port tool has a single function and requires the preparation of multiple conversion tools. The conversion operation is complex and it is difficult to realize multi-channel mutual conversion of USB, TTL, RS485 and RS232 levels.
Design a USB serial port multi-channel level conversion device, including USB/TTL, TTL/RS485 and TTL/RS232 conversion circuits. It realizes mutual conversion of multi-channel levels through level switching switches and is equipped with indicator lights and DC-DC reduction. pressure unit to simplify interface design.
It realizes multi-channel mutual conversion of USB, TTL, RS485 and RS232 levels, improves the convenience of conversion, simplifies the operation process, and is suitable for equipment interconnection and debugging in different fields.
Smart Images

Figure CN221595644U
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a USB serial port multi-channel level conversion device. Background Art
[0002] At present, USB to serial tools play an important role in the field of computers and electronic devices. With the development of computer technology, many new devices adopt USB interfaces, while some old devices or specific applications still require serial port connections. USB to serial tools came into being as a bridge connecting these two interfaces. These tools are often used to debug, configure and connect various devices, such as embedded systems, network equipment, industrial automation equipment, etc. The industry's demand for USB to serial tools stems from the continuous pursuit of device connectivity and compatibility, allowing old serial devices to continue to be used and promoting the development and use of modern equipment. Therefore, USB to serial tools play a key role in maintaining device compatibility, debugging and development processes, and provide effective solutions for professionals in different fields.
[0003] In the prior art, the more common USB to serial port devices have a single function, generally USB to TTL, USB to RS232, USB to RS485 are separate and independently implemented tools, so debugging requires the preparation of multiple conversion tools, and the conversion operation is complicated. Utility Model Content
[0004] The purpose of the embodiments of the present application is to provide a USB serial port multi-channel level conversion device, which can realize the multi-channel mutual conversion of the USB serial port and improve the technical effect of conversion convenience.
[0005] The embodiment of the present application provides a USB serial port multi-channel level conversion device, including a USB input interface, a conversion component, a level switching switch, a first output interface and a second output interface;
[0006] The conversion component comprises a USB / TTL conversion circuit, a TTL / RS485 conversion circuit and a TTL / RS232 conversion circuit, wherein the input end of the USB / TTL conversion circuit is connected to the USB input interface, the input end of the TTL / RS485 conversion circuit is connected to the output end of the USB / TTL conversion circuit, and the input end of the TTL / RS232 conversion circuit is connected to the TTL / RS485 conversion circuit;
[0007] The level switching switch is connected to the TTL / RS485 conversion circuit and the TTL / RS232 conversion circuit respectively;
[0008] The first output interface is connected to the output end of the TTL / RS485 conversion circuit;
[0009] The second output interface is connected to the output end of the TTL / RS232 conversion circuit.
[0010] In the above implementation process, the USB serial port multi-channel level conversion device is provided with a conversion component, in which the USB / TTL conversion circuit is connected to the USB input interface to realize USB to TTL conversion, the TTL / RS485 conversion circuit realizes TTL to RS485 conversion, and the TTL / RS232 conversion circuit realizes TTL to RS232 conversion. The switching of the serial port conversion is realized by the level switching switch, the first output interface can realize RS485 output, and the second output interface can realize TTL or RS232 output; thus, the USB serial port multi-channel level conversion device can realize multi-channel mutual conversion of USB and serial port TTL, RS232, and RS485 levels, and achieves the technical effect of improving the convenience of conversion.
[0011] Furthermore, the level switching switch includes a first switching switch, and the first switching switch is connected to the TTL / RS485 conversion circuit.
[0012] In the above implementation process, the first switching switch is set for switching the TTL / RS485 conversion circuit 220, such as: when the first switching switch is in the first state, the TTL / RS485 conversion circuit 220 works and switches the RS485 conversion; when the first switching switch is in the second state, the TTL / RS485 conversion circuit 220 does not work, and the signal is transferred to the TTL / RS232 conversion circuit 230 to switch the RS232 or TTL conversion.
[0013] Furthermore, the level switching switch also includes a second switching switch, and the second switching switch is connected to the TTL / RS232 conversion circuit.
[0014] Furthermore, the second output interface is a TTL / RS232 output interface, and the output mode of the TTL / RS232 conversion circuit is switched by the second switching switch. When the second switching switch is in the first state, the TTL / RS232 output interface outputs TTL, and when the second switching switch is in the second state, the TTL / RS232 output interface outputs RS232.
[0015] Furthermore, the USB serial port multi-channel level conversion device also includes an indicator light circuit, and the indicator light circuit is connected to the level switching switch.
[0016] In the above implementation process, an indicator light circuit is provided to indicate the current signal conversion state of the USB serial port multi-channel level conversion device.
[0017] Furthermore, the indicator light circuit includes a first indicator light and a second indicator light, the first indicator light is connected to an input RXD terminal of a level switching switch, and the second indicator light is connected to an input TXD terminal of the level switching switch.
[0018] In the above implementation process, the first indicator light flashes to indicate data reception, and the second indicator light flashes to indicate data transmission.
[0019] Furthermore, the USB serial port multi-channel level conversion device also includes a power input interface, and the power input interface is respectively connected to the USB input interface, the conversion component, and the level switching switch.
[0020] In the above implementation process, the power input interface 600 is used to supply power to the USB input interface 100 , the conversion component 200 , the level switching switch 300 and other modules.
[0021] Furthermore, the power input interface is provided with a DC-DC step-down unit, and the input voltage is stepped down to a preset voltage by the DC-DC step-down unit.
[0022] Furthermore, the input voltage of the DC-DC step-down unit is 5V to 40V, and the preset output voltage of the DC-DC step-down unit is 3.3V.
[0023] Furthermore, the USB serial port multi-channel level conversion device also includes an interface socket assembly, and the interface socket assembly includes a plurality of interface sockets, and the plurality of interface sockets are respectively connected to the USB input interface, the first output interface, and the second output interface.
[0024] In the above implementation process, interface sockets of various specifications can be introduced through the interface socket assembly to facilitate user connection.
[0025] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.
[0026] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of the structure of a USB serial port multi-channel level conversion device provided in an embodiment of the present application;
[0029] Figure 2 A circuit diagram of a USB input interface and a power input interface provided in an embodiment of the present application;
[0030] Figure 3 A circuit diagram of a DC-DC step-down unit provided in an embodiment of the present application;
[0031] Figure 4 A circuit diagram of a USB / TTL conversion circuit provided in an embodiment of the present application;
[0032] Figure 5 A circuit diagram of a TTL / RS232 conversion circuit provided in an embodiment of the present application;
[0033] Figure 6 A circuit diagram of a TTL / RS485 conversion circuit provided in an embodiment of the present application;
[0034] Figure 7 A circuit diagram of an indicator light circuit provided in an embodiment of the present application.
[0035] Reference numerals: USB input interface 100 ; conversion component 200 ; USB / TTL conversion circuit 210 ; TTL / RS485 conversion circuit 220 ; TTL / RS232 conversion circuit 230 ; level switching switch 300 ; first output interface 400 ; second output interface 500 ; power input interface 600 . DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0037] In the present application, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.
[0038] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.
[0039] In addition, the terms "installed", "set", "provided with", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection, or a point connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be an internal connection between two devices, elements, or components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0040] In addition, the terms "first", "second", etc. are mainly used to distinguish different devices, elements or components (the specific types and structures may be the same or different), and are not used to indicate or imply the relative importance and quantity of the indicated devices, elements or components. Unless otherwise specified, "plurality" means two or more.
[0041] The embodiment of the present application provides a USB serial port multi-channel level conversion device, which can be applied to a USB to serial port tool; the USB serial port multi-channel level conversion device is provided with a conversion component, wherein a USB / TTL conversion circuit in the conversion component is connected to a USB input interface to realize USB to TTL conversion, a TTL / RS485 conversion circuit realizes TTL to RS485 conversion, and a TTL / RS232 conversion circuit realizes TTL to RS232 conversion, and serial port conversion is switched by a level switching switch, wherein the first output interface can realize RS485 output, and the second output interface can realize TTL or RS232 output; thus, the USB serial port multi-channel level conversion device can realize multi-channel mutual conversion of USB and serial port TTL, RS232, and RS485 levels, thereby achieving a technical effect of improving conversion convenience.
[0042] See also Figure 1 , Figure 1A schematic diagram of the structure of a USB serial port multi-channel level conversion device provided in an embodiment of the present application, wherein the USB serial port multi-channel level conversion device comprises a USB input interface 100, a conversion component 200, a level switching switch 300, a first output interface 400 and a second output interface 500;
[0043] Exemplarily, the conversion component 200 includes a USB / TTL conversion circuit 210, a TTL / RS485 conversion circuit 220 and a TTL / RS232 conversion circuit 230, the input end of the USB / TTL conversion circuit 210 is connected to the USB input interface 100, the input end of the TTL / RS485 conversion circuit 220 is connected to the output end of the USB / TTL conversion circuit 210, and the input end of the TTL / RS232 conversion circuit 230 is connected to the TTL / RS485 conversion circuit 220;
[0044] Exemplarily, the level switching switch 300 is connected to the TTL / RS485 conversion circuit 220 and the TTL / RS232 conversion circuit 230 respectively;
[0045] Exemplarily, the first output interface 400 is connected to the output end of the TTL / RS485 conversion circuit 220;
[0046] Exemplarily, the second output interface 500 is connected to the output end of the TTL / RS232 conversion circuit 230 .
[0047] In some embodiments, the USB serial port multi-channel level conversion device is provided with a conversion component 200, wherein the USB / TTL conversion circuit 210 in the conversion component 200 is connected to the USB input interface 100 to realize USB to TTL conversion, the TTL / RS485 conversion circuit 220 realizes TTL to RS485 conversion, and the TTL / RS232 conversion circuit 230 realizes TTL to RS232 conversion, and the serial port conversion is switched by the level switching switch 300, the first output interface 400 can realize RS485 output, and the second output interface 500 can realize TTL or RS232 output; thus, the USB serial port multi-channel level conversion device can realize multi-channel mutual conversion of USB and serial port TTL, RS232, and RS485 levels, and achieve the technical effect of improving the convenience of conversion.
[0048] Exemplarily, the level switch 300 includes a first switch connected to the TTL / RS485 conversion circuit 220 .
[0049] Exemplarily, the first switching switch is set for switching the TTL / RS485 conversion circuit 220, such as: when the first switching switch is in the first state, the TTL / RS485 conversion circuit 220 works and switches the RS485 conversion; when the first switching switch is in the second state, the TTL / RS485 conversion circuit 220 does not work, and the signal is transferred to the TTL / RS232 conversion circuit 230 to switch the RS232 or TTL conversion.
[0050] Exemplarily, the level switching switch 300 further includes a second switching switch, and the second switching switch is connected to the TTL / RS232 conversion circuit 230 .
[0051] Exemplarily, the second output interface is a TTL / RS232 output interface. The output mode of the TTL / RS232 conversion circuit is switched by the second switching switch. When the second switching switch is in the first state, the TTL / RS232 output interface outputs TTL, and when the second switching switch is in the second state, the TTL / RS232 output interface outputs RS232.
[0052] Exemplarily, the USB serial port multi-channel level conversion device further includes an indicator light circuit, and the indicator light circuit is connected to the level switching switch 300 .
[0053] Exemplarily, an indicator light circuit is provided to indicate the current signal conversion state of the USB serial port multi-channel level conversion device.
[0054] Exemplarily, the indicator light circuit includes a first indicator light and a second indicator light, the first indicator light is connected to an input RXD terminal of a level switching switch, and the second indicator light is connected to an input TXD terminal of the level switching switch.
[0055] Exemplarily, the first indicator light flashes to indicate data reception, and the second indicator light flashes to indicate data transmission.
[0056] Exemplarily, the USB serial port multi-channel level conversion device further includes a power input interface 600 , which is connected to the USB input interface 100 , the conversion component 200 , and the level switching switch 300 , respectively.
[0057] Exemplarily, the power input interface 600 is used to supply power to the USB input interface 100 , the conversion component 200 , the level switching switch 300 and other modules.
[0058] Exemplarily, the power input interface is provided with a DC-DC step-down unit, and the input voltage is stepped down to a preset voltage by the DC-DC step-down unit.
[0059] Exemplarily, the input voltage of the DC-DC buck unit is 5V to 40V, and the preset output voltage of the DC-DC buck unit is 3.3V.
[0060] Exemplarily, the USB serial port multi-channel level conversion device further includes an interface socket assembly, the interface socket assembly includes a plurality of interface sockets, and the plurality of interface sockets are respectively connected to the USB input interface, the first output interface, and the second output interface.
[0061] Exemplarily, interface sockets of various specifications can be introduced through the interface socket assembly to facilitate user connection.
[0062] In some implementation scenarios, the USB serial port multi-channel level conversion device provided in the embodiments of the present application has a specific implementation circuit example as follows:
[0063] See also Figure 2 , Figure 2 A circuit diagram of a USB input interface and a power input interface provided in an embodiment of the present application; wherein:
[0064] Interface J8 and interface P1 are MiNi USB and USB 2.0 interface sockets respectively, which are convenient for users to access;
[0065] Interface J6 is the power adapter DC input, which can be connected to a 5-40V power adapter;
[0066] Diodes D4 and D5 are ESD tubes to prevent electrostatic breakdown;
[0067] Resistors R10, R11, capacitors C3, C4 are matching resistors and capacitors for the USB data line, improving and stabilizing USB transmission performance;
[0068] Diode D6 is a 40V TVS tube to prevent overvoltage and burnout; diode D7 is reverse connection proof, capacitors C75, C76, and chip FB4 optimize the EMC performance of the power supply;
[0069] Transistor Q2 is a PMOS tube used to switch the USB power input and DC adapter input;
[0070] See also Figure 3 , Figure 3 A circuit diagram of a DC-DC buck unit provided in an embodiment of the present application; the DC buck unit is implemented with a 5-40V input, which is stepped down to 3.3V to power the chip, wherein:
[0071] Adopt SY8303AIC BUCK step-down IC chip to step down the power input 5-40V to 3.3V to power the chip;
[0072] See also Figure 4 , Figure 4 A circuit diagram of a USB / TTL conversion circuit provided in an embodiment of the present application; wherein:
[0073] The USB / TTL conversion circuit 210 uses a CH340G chip to achieve conversion between USB and serial port TTL levels;
[0074] SW2 switch is used for switching between RS485 and RS232 / TTL level conversion;
[0075] See also Figure 5 , Figure 5 A circuit diagram of a TTL / RS232 conversion circuit provided in an embodiment of the present application; wherein:
[0076] The TTL / RS232 conversion circuit 230 uses a 74HC86P 4-way XOR gate chip to achieve the switching between RS232 and TTL logic levels;
[0077] SW3 is a level switching switch. The switch selects whether to pull the SW_232 network high or low. When the SW_232 network is pulled high, the serial port logic level is switched to RS232; when the SW_232 network is pulled low, the serial port logic level is switched to TTL.
[0078] See also Figure 6 , Figure 6 A circuit diagram of a TTL / RS485 conversion circuit provided in an embodiment of the present application; wherein:
[0079] The TTL / RS485 conversion circuit 220 uses the SP3485EN-L / TR chip, RXD_485 is the TTL serial port input terminal, TXD is the TTL serial port output terminal, and TXD is connected to the chip's transceiver enable pin through a PNP transistor and resistor R3 to achieve the RS485 automatic transceiver control function;
[0080] The diodes D1, D2, and D3 at the RS485 output interface are TVS tubes to prevent the RS485 bus voltage from burning out during surges. The fuses F1 and F2 are self-recovery fuses to prevent overcurrent.
[0081] See also Figure 7 , Figure 7 A circuit diagram of an indicator light circuit provided in an embodiment of the present application; the indicator light circuit may be an LED circuit, including a plurality of LED lights:
[0082] LED1 is connected to the input RXD terminal of the serial port and flashes to indicate data reception;
[0083] LED2 is connected to the TXD input of the serial port and flashes to indicate data transmission.
[0084] LED3 is connected to a 3.3V power supply and is used as a power indicator.
[0085] In all the embodiments of the present application, "big" and "small" are relative, "more" and "less" are relative, and "up" and "down" are relative. The expressions of such relative terms are not elaborated in the embodiments of the present application.
[0086] It should be understood that the "in this embodiment", "in the embodiment of the present application" or "as an optional implementation" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in this embodiment", "in the embodiment of the present application" or "as an optional implementation" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0087] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0088] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A USB serial port multi-channel level conversion device, characterized in that: It includes a USB input interface, a conversion component, a level switching switch, a first output interface and a second output interface; The conversion component comprises a USB / TTL conversion circuit, a TTL / RS485 conversion circuit and a TTL / RS232 conversion circuit, wherein the input end of the USB / TTL conversion circuit is connected to the USB input interface, the input end of the TTL / RS485 conversion circuit is connected to the output end of the USB / TTL conversion circuit, and the input end of the TTL / RS232 conversion circuit is connected to the TTL / RS485 conversion circuit; The level switching switch is connected to the TTL / RS485 conversion circuit and the TTL / RS232 conversion circuit respectively; The first output interface is connected to the output end of the TTL / RS485 conversion circuit; The second output interface is connected to the output end of the TTL / RS232 conversion circuit.
2. The USB serial port multi-channel level conversion device according to claim 1, characterized in that: The level switching switch includes a first switching switch, and the first switching switch is connected to the TTL / RS485 conversion circuit.
3. The USB serial port multi-channel level conversion device according to claim 2, characterized in that: The level switching switch further includes a second switching switch, and the second switching switch is connected to the TTL / RS232 conversion circuit.
4. The USB serial port multi-channel level conversion device according to claim 3, characterized in that: The second output interface is a TTL / RS232 output interface. The output mode of the TTL / RS232 conversion circuit is switched by the second switching switch. When the second switching switch is in the first state, the TTL / RS232 output interface outputs TTL. When the second switching switch is in the second state, the TTL / RS232 output interface outputs RS232.
5. The USB serial port multi-channel level conversion device according to claim 1, characterized in that: The USB serial port multi-channel level conversion device also includes an indicator light circuit, and the indicator light circuit is connected to the level switching switch.
6. The USB serial port multi-channel level conversion device according to claim 5, characterized in that: The indicator light circuit comprises a first indicator light and a second indicator light, wherein the first indicator light is connected to an input RXD end of a level switching switch, and the second indicator light is connected to an input TXD end of the level switching switch.
7. The USB serial port multi-channel level conversion device according to claim 1, characterized in that: The USB serial port multi-channel level conversion device also includes a power input interface, and the power input interface is respectively connected to the USB input interface, the conversion component, and the level switching switch.
8. The USB serial port multi-channel level conversion device according to claim 7, characterized in that: The power input interface is provided with a DC-DC step-down unit, through which the input voltage is stepped down to a preset output voltage.
9. The USB serial port multi-channel level conversion device according to claim 8, characterized in that: The input voltage of the DC-DC step-down unit is 5V to 40V, and the preset output voltage of the DC-DC step-down unit is 3.3V.
10. The USB serial port multi-channel level conversion device according to claim 1, characterized in that: The USB serial port multi-channel level conversion device also includes an interface seat assembly, and the interface seat assembly includes a plurality of interface seats, and the plurality of interface seats are respectively connected to the USB input interface, the first output interface, and the second output interface.
Citation Information
Cited By
Multi-channel RS-232 serial port gateway circuit based on Air101
CN122372367A
A multi-channel RS-232 serial port gateway circuit based on air101
CN122372367B
