Multifunctional interface switching circuit and device
By designing a multi-function interface switching circuit, using the controller and switch to switch the RJ22 interface to a USB or COM interface, the problem of inflexible interface use in the prior art is solved, and the flexibility and convenience of the interface are achieved.
Patent Information
- Application Number
- CN202420262018.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2034-02-02
Smart Images

Figure CN222300044U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communications, in particular to a multifunctional interface switching circuit and device. Background Art
[0002] Currently, industrial control equipment on the market are all designed to be multifunctional. Some devices need to connect multiple USB devices and COM devices. Therefore, industrial control equipment needs to have multiple USB interfaces or COM interfaces. In order to ensure the flexibility of interface use, there is an urgent need for a solution that can switch the default RJ22 interface to a USB interface or COM interface to meet the needs of connecting USB devices or COM devices. Utility Model Content
[0003] In response to the above technical problems, the present invention provides a multifunctional interface switching circuit and device which can switch the default RJ22 interface to a USB interface or a COM interface as needed.
[0004] One embodiment of the present utility model provides a multi-functional interface switching circuit, which includes an RJ22 interface, a controller, a switch, a USB connector and a COM connector. The controller is electrically connected to the switch, and the output end of the switch is electrically connected to the USB connector and the COM connector respectively. The input end of the switch is also electrically connected to the RJ22 interface. When the controller controls the switch to be connected to the COM connector, the RJ22 interface is switched to the COM interface. When the controller controls the switch to be connected to the USB connector, the RJ22 interface is switched to the USB interface.
[0005] Optionally, the controller has a GPIO interface, the GPIO interface is connected to the switch, and the switch controls the switch to switch to connection with a COM connector or a USB connector according to a level state of the GPIO interface.
[0006] Optionally, the controller controls the switch to connect to the COM connector or the USB connector through a jumper cap.
[0007] Optionally, the COM connector is an RS-232 transceiver.
[0008] Optionally, the COM connector uses an SP213EEA-L chip.
[0009] Optionally, the switching switch adopts a low-resistance, broadband, bidirectional analog switch CH442E chip.
[0010] Optionally, a signal light is further included. When the switch is switched to connect to the USB connector, the signal light is illuminated, and when the switch is switched to connect to the COM connector, the signal light is not illuminated.
[0011] Optionally, it further includes a first signal light and a second signal light. When the switch is switched to connect to the USB connector, the first signal light illuminates, and when the switch is switched to connect to the COM connector, the second signal light illuminates.
[0012] Another embodiment of the present invention further provides a multi-function interface switching device, which includes any of the multi-function interface switching circuits described above.
[0013] In the technical solution provided by the embodiment of the present utility model, the multi-function interface switching circuit is electrically connected to the RJ22 interface, the output end of the switching switch is electrically connected to the USB connector and the COM connector respectively, and the input end of the switching switch is also electrically connected to the RJ22 interface. When the controller controls the switching switch to switch to connect to the COM connector, the RJ22 interface is switched to the COM interface. When the controller controls the switching switch to switch to connect to the USB connector, the RJ22 interface is switched to the USB interface. Compared with the prior art, the present application has flexibility in interface use and can switch the RJ22 interface to a USB interface or a COM interface according to user needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 The figure is a circuit diagram of a multifunctional interface switching circuit of the utility model.
[0015] Figure 2 This is a circuit diagram of a COM connector of a multifunctional interface switching circuit of the utility model.
[0016] Figure 3 The present invention is a circuit diagram of an RJ22 interface of a multifunctional interface switching circuit.
[0017] Figure 4 This is a partial circuit diagram of a multifunctional interface switching circuit of the utility model. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0019] It should be noted that, when an element is described as being “connected” or “connected” to another element, it may be directly connected to the other element, or one or more intervening elements may exist therebetween.
[0020] This utility model provides a multifunctional interface switching circuit, please refer to Figure 1 As shown, the multi-function interface switching circuit includes an RJ22 interface 10, a controller 20, a switch 30, a USB connector 40, and a COM connector 50. The controller 20 is electrically connected to the switch 30, and the output end of the switch 30 is electrically connected to the USB connector 40 and the COM connector 50 respectively. The input end of the switch 30 is electrically connected to the RJ22 interface 10. When the controller 20 controls the switch 30 to switch to connect to the COM connector 50, the RJ22 interface 10 switches to the COM interface. When the controller 20 controls the switch 30 to switch to connect to the USB connector 40, the RJ22 interface 10 switches to the USB interface.
[0021] The present invention uses a switch 30 to switch the default RJ22 interface 10 between different functions. When the controller 20 controls the switch 30 to connect to the COM connector 50, the RJ22 interface 10 switches to a COM interface. When the controller 20 controls the switch 30 to connect to the USB connector 40, the RJ22 interface 10 switches to a USB interface. This provides flexibility in interface usage, allowing the RJ22 interface 10 to be switched to either a USB interface or a COM interface according to user needs.
[0022] In one embodiment of the present invention, the controller 20 has a GPIO interface, which is connected to the switch 30. The switch 30 controls the switch 30 to connect to the COM connector 50 or the USB connector 40 according to the level state of the GPIO interface.
[0023] In one embodiment of the present invention, the controller 20 controls the switch 30 to connect to the COM connector 50 or the USB connector 40 through a jumper cap.
[0024] In one embodiment of the present invention, the COM connector 50 is an RS-232 transceiver, and the COM connector 50 uses an SP213EEA-L chip. For the specific connection method of the SP213EEA-L chip, please refer to Figure 2 As shown, please refer to the connection method of RJ22 interface 10 Figure 3 shown.
[0025] The switch 30 uses a low-resistance, broadband, bidirectional analog switch CH442E chip, please refer to Figure 4 As shown, the first pin of the CH442E chip is used to connect to the CH_IN pin, the second pin is used to connect to the COM_RX pin of the SP213EEA-L chip, the third pin is used to connect to the USB2_P pin of the USB connector, the fourth pin is used to connect to the RJ11_RX pin, the fifth pin is grounded, the sixth pin is used to connect to the RJ11_TX pin, the seventh pin is used to connect to the USB2_N pin of the USB connector, the eighth pin is used to connect to the COM_TX pin of the SP213EEA-L chip, the ninth pin is grounded, and the tenth pin is respectively connected to a 3.3V power supply and one end of a capacitor C1, and the other end of the capacitor C1 is grounded.
[0026] In one embodiment of the present invention, the multi-function interface switching circuit further includes a signal light. When the switching switch 30 is switched to connect to the USB connector 40, the signal light illuminates; when the switching switch 30 is switched to connect to the COM connector 50, the signal light does not illuminate.
[0027] Specifically, when the CH_IN pin of the CH442E chip of the present application is at a high level and the ninth pin EN# is at a low level, the fourth pin DB and the sixth pin DC respectively output the input signals USB2_P and USB2_N of the S2B and S2C pins, the signal light illuminates, and the RJ22 interface switches to a USB interface. When the CH_IN pin of the CH442E chip is at a low level and the ninth pin EN# is at a low level, the fourth pin DB and the sixth pin DC respectively output the input signals COM_RX and COM_TX of the S1B and S1C pins, the signal light does not illuminate, and the RJ22 interface switches to a COM interface. When the ninth pin EN# of the CH442E chip is at a high level, the fourth pin DB and the sixth pin DC do not output any signal, and the RJ22 interface has no function.
[0028] As those skilled in the art know, the signal light can also be two signal lights, such as a first signal light and a second signal light. When the switching switch 30 is switched to be connected to the USB connector 40, the first signal light is on, indicating that the current RJ22 interface 10 is a COM interface. When the switching switch 30 is switched to be connected to the COM connector 50, the second signal light is on, indicating that the current RJ22 interface 10 is a USB interface. Different functions of the RJ22 interface 10 are indicated by signal lights of different colors. For example, when the switching switch 30 is switched to be connected to the USB connector 40, the red light is on, indicating that the current RJ22 interface 10 is a USB interface. When the switching switch 30 is switched to be connected to the COM connector 50, the green light is on, indicating that the current RJ22 interface 10 is a COM interface.
[0029] The multifunctional interface switching circuit of the present invention determines the switching between the USB interface and the COM interface function by the on and off state of the signal light or the color change of the signal light, so that the user can flexibly select and switch the function of the RJ22 interface according to his or her needs.
[0030] The utility model also provides a multi-functional interface switching device, which includes an RJ22 interface, and also includes a controller, a switching switch, a USB connector, and a COM connector. The controller is electrically connected to the switching switch, and the output end of the switching switch is electrically connected to the USB connector and the COM connector respectively. The input end of the switching switch is also electrically connected to the RJ22 interface. When the controller controls the switching switch to be connected to the COM connector, the RJ22 interface is switched to the COM interface. When the controller controls the switching switch to be connected to the USB connector, the RJ22 interface is switched to the USB interface.
[0031] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A multifunctional interface switching circuit, characterized in that: It includes an RJ22 interface, a controller, a switching switch, a USB connector and a COM connector, the controller is electrically connected to the switching switch, the output end of the switching switch is electrically connected to the USB connector and the COM connector respectively, the input end of the switching switch is also electrically connected to the RJ22 interface, when the controller controls the switching switch to switch to connect with the COM connector, the RJ22 interface switches to the COM interface, when the controller controls the switching switch to switch to connect with the USB connector, the RJ22 interface switches to the USB interface.
2. The multifunctional interface switching circuit according to claim 1, characterized in that: The controller has a GPIO interface, the GPIO interface is connected to the switch, and the switch controls the switch to switch to connect to the COM connector or the USB connector according to the level state of the GPIO interface.
3. The multifunctional interface switching circuit according to claim 1, characterized in that: The controller controls the switch to be connected to the COM connector or the USB connector through a jumper cap.
4. The multifunctional interface switching circuit according to claim 1, characterized in that: The COM connector is an RS-232 transceiver.
5. The multifunctional interface switching circuit according to claim 4, characterized in that: The COM connector adopts the SP213EEA-L chip.
6. The multifunctional interface switching circuit according to claim 1, characterized in that: The switching switch adopts a low-resistance broadband bidirectional analog switch CH442E chip.
7. The multifunctional interface switching circuit according to claim 1, characterized in that: It also includes a signal light. When the switch is switched to connect with the USB connector, the signal light is illuminated, and when the switch is switched to connect with the COM connector, the signal light is not illuminated.
8. The multifunctional interface switching circuit according to claim 1, characterized in that: It also includes a first signal light and a second signal light. When the switch is switched to connect to the USB connector, the first signal light illuminates, and when the switch is switched to connect to the COM connector, the second signal light illuminates.
9. A multifunctional interface switching device, characterized in that: The device comprises the multi-functional interface switching circuit according to any one of claims 1 to 8.
