Terminal switching circuit and test equipment
By designing a terminal switching circuit and utilizing a combination of detection circuits and switching components, accurate switching and identification of the communication interface of terminal devices were achieved, solving the problem of inaccurate switching in existing technologies and improving the accuracy and intelligence of testing.
Patent Information
- Application Number
- CN202520016360.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2035-01-03
AI Technical Summary
In existing technologies, the switching of communication interfaces of terminal devices cannot accurately identify whether the switching was successful. Troubleshooting can only be carried out when the test fails, resulting in inaccurate testing and low intelligence.
Design a terminal switching circuit, including a detection circuit and a switching component. The detection circuit detects the voltage value of the connection port, and the controller controls the switching component to switch the connection mode according to the voltage value, so as to achieve accurate connection to different communication interfaces.
It enables rapid and accurate identification and switching of connection ports, improving the accuracy and intelligence of testing, ensuring correct communication interface connections, and enhancing testing efficiency.
Smart Images

Figure CN223652334U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of electronic circuit technology, and more specifically, to a terminal switching circuit and testing equipment. Background Technology
[0002] Terminal devices may include multiple communication interfaces, such as controller area network (CAN) communication interfaces and RS485 communication interfaces. In the process of testing the communication interfaces of terminal devices, the test equipment is usually connected to the terminal device through multiplexing terminals. The connection between the multiplexing terminals and different communication interfaces of the terminal device is switched through the terminal switching circuit to achieve testing of different communication interfaces.
[0003] In related technologies, the connection between multiplexed terminals and different communication interfaces is usually controlled by a host computer or by using a control chip to delay switching. However, this switching method cannot accurately identify whether the switching was successful and can only be checked when the test fails. Utility Model Content
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0005] Therefore, the first aspect of this utility model provides a terminal switching circuit.
[0006] The second aspect of this utility model provides a testing device.
[0007] The first aspect of this utility model provides a terminal switching circuit for switching the connection mode of a connection port. The terminal switching circuit includes: a detection circuit connected to the connection port for detecting the voltage value of the connection port; a switching component connected to the connection port for switching the connection mode of the connection port; and a controller connected to the detection circuit and the switching component, the controller being used to control the switching component to switch the connection mode of the connection port according to the voltage value of the connection port.
[0008] The terminal switching circuit provided by this utility model can be used to switch the connection mode of a connection port, that is, to switch the connection method between the connection port and different communication interfaces of the terminal device. Specifically, the terminal device may include multiple communication interfaces, such as a controller area network (CAN) communication interface and an RS485 communication interface. By connecting the connection port to different communication interfaces respectively, the performance of different communication interfaces of the terminal device can be tested. The terminal switching circuit can switch the connection between the connection port and different communication interfaces.
[0009] Furthermore, the terminal switching circuit includes a detection circuit connected to the connection port, which can detect the voltage value of the connection port.
[0010] It is understandable that the voltages of different communication interfaces of terminal devices are not the same. For example, the idle voltage of the RS485 communication interface is 5V, and the idle voltage of the controller area network communication interface is 2.5V. Therefore, by detecting the voltage value of the connection port through the detection circuit, the communication interface that the current connection port needs to connect to can be determined.
[0011] Furthermore, the terminal switching circuit also includes a switching component and a controller. The switching component is connected to the connection port, thereby enabling the switching of the connection mode of the connection port, that is, switching the connection between the connection port and different communication interfaces. The controller is connected to the detection circuit and the switching component, so that the controller can receive the voltage value of the connection port detected by the detection circuit, and then control the operation of the switching component based on the received voltage value, thereby connecting the connection port to the communication interface corresponding to the voltage value received by the controller, and thus completing the switching of the connection mode of the connection port.
[0012] The terminal switching circuit provided by this utility model, by setting a detection circuit, can detect the voltage value of the connection port. Furthermore, the terminal switching circuit also includes a switching component and a controller. The controller can acquire the voltage value of the connection port detected by the detection circuit and control the operation of the switching component to connect the connection port of the switching component to the communication interface corresponding to the voltage value received by the controller, thereby completing the switching of the connection port's connection mode. By controlling the switching component to switch the connection mode of the connection port according to the voltage value of the connection port, the controller can quickly and accurately identify the type of connection port and switch the correct communication interface to the connection port for communication interface testing, thereby improving the accuracy and intelligence of the testing.
[0013] In addition, the terminal switching circuit in the above-described technical solution provided by this utility model may also have the following additional technical features:
[0014] In some technical solutions, optionally, the connection port is used to connect to a terminal device, the terminal device including a first communication interface and a second communication interface, and the switching component includes: a first switching unit connected to the connection port and a controller; and a second switching unit connected to the connection port and the controller; wherein, the controller is used to control the first switching unit to connect the connection port to the first communication interface when the voltage value of the connection port is a first voltage value, and to control the second switching unit to connect the connection port to the second communication interface when the voltage value of the connection port is a second voltage value.
[0015] In some technical solutions, optionally, the first switching unit includes: a first adjustment circuit disposed at the connection port and connected to the controller; and a first conversion circuit disposed at the connection port and connected to the first adjustment circuit; wherein, the controller is used to control the first adjustment circuit to connect the connection port to the first communication interface when the voltage value of the connection port is a first voltage value, and the first conversion circuit is used to convert the communication mode of the connection port to a communication mode corresponding to the first communication interface when the connection port is connected to the first communication interface.
[0016] In some technical solutions, optionally, the first regulating circuit includes: a first switch, a first end of which is connected to a first power supply, a second end of which is grounded, and a control terminal of which is connected to a controller; and a first relay, disposed at the connection port, which is connected to the first end of the first switch; wherein the first switch is used to change its conduction state according to the control signal of the controller, and the first relay is used to switch according to the level state of the first end of the first switch, so as to connect the connection port to the first communication interface.
[0017] In some technical solutions, the first conversion circuit includes: a first codec chip connected to a first power supply and a first relay, the first codec chip being used to convert the communication mode of the connection port to a communication mode corresponding to the first communication interface when the connection port is connected to the first communication interface; a pull-up resistor disposed between the first power supply and the first codec chip; a pull-down resistor disposed between the first codec chip and ground; and a first filter capacitor, the first end of the first filter capacitor being connected to the first power supply and the second end of the first filter capacitor being grounded.
[0018] In some technical solutions, the first conversion circuit may optionally include a protection circuit, which is disposed between the first codec chip and the first relay.
[0019] In some technical solutions, optionally, the second switching unit includes: a second adjustment circuit disposed at the connection port and connected to the controller; and a second conversion circuit disposed at the connection port and connected to the second adjustment circuit; wherein, the controller is used to control the second adjustment circuit to connect the connection port to the second communication interface when the voltage value of the connection port is a second voltage value, and the second conversion circuit is used to convert the communication mode of the connection port to a communication mode corresponding to the second communication interface when the connection port is connected to the second communication interface.
[0020] In some technical solutions, optionally, the second adjustment circuit includes: a second switch, the first end of which is connected to a first power supply, the second end of which is grounded, and the control end of which is connected to a controller; and a second relay, disposed at the connection port, which is connected to the first end of the second switch; wherein the second switch is used to change its conduction state according to the control signal of the controller, and the second relay is used to switch according to the level state of the first end of the second switch, so as to connect the connection port to the second communication interface.
[0021] In some technical solutions, optionally, the second conversion circuit includes: a second codec chip, the second codec chip being connected to a first power supply and a second relay, the second codec chip being used to convert the communication mode of the connection port to a communication mode corresponding to the second communication interface when the connection port is connected to the second communication interface.
[0022] In some technical solutions, optionally, the detection circuit includes: a first operational amplifier, the first input terminal of the first operational amplifier being connected to a connection port, and the second input terminal of the first operational amplifier being connected to the output terminal of the first operational amplifier; a second operational amplifier, the first input terminal of the second operational amplifier being connected to the output terminal of the first operational amplifier, the second input terminal of the second operational amplifier being connected to the output terminal of the second operational amplifier, and the output terminal of the second operational amplifier being connected to a controller.
[0023] According to a second aspect of the present invention, a testing device is provided for testing the communication interface of a terminal device. The testing device includes: a connection port; and a terminal switching circuit as described in any of the above technical solutions, wherein the terminal switching circuit is connected to the connection port.
[0024] The testing device proposed in this utility model includes the terminal switching circuit of any of the above technical solutions, and therefore has all the beneficial effects of the above terminal switching circuit, which will not be repeated here.
[0025] Additional aspects and advantages of this invention will become apparent in the description that follows, or may be learned by practice of this invention. Attached Figure Description
[0026] The above and / or additional aspects and advantages of this utility model will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0027] Figure 1 A circuit diagram of the test device according to an embodiment of the present invention is shown;
[0028] Figure 2 A circuit diagram of the first adjustment circuit in the terminal switching circuit of this utility model embodiment is shown;
[0029] Figure 3 A circuit diagram of the first conversion circuit in the terminal switching circuit of this utility model embodiment is shown;
[0030] Figure 4 A circuit diagram of the second adjustment circuit in the terminal switching circuit of this utility model embodiment is shown;
[0031] Figure 5 A circuit diagram of the second conversion circuit in the terminal switching circuit of this utility model embodiment is shown;
[0032] Figure 6 A schematic diagram of the controller in the terminal switching circuit of this utility model embodiment is shown;
[0033] Figure 7 A circuit diagram of the detection circuit in the terminal switching circuit of this utility model embodiment is shown.
[0034] in, Figures 1 to 7 The correspondence between the reference numerals and component names in the attached drawings is as follows:
[0035] 100 Terminal switching circuit, 102 Detection circuit, 104 Switching component, 106 Controller, 108 First switching unit, 110 Second switching unit, 112 First adjustment circuit, 114 First conversion circuit, 116 First switch, 118 First relay, 120 First codec chip, 122 Pull-up resistor, 124 Pull-down resistor, 126 First filter capacitor, 128 Protection circuit, 130 Second adjustment circuit, 132 Second conversion circuit, 134 Second switch, 136 Second relay, 138 Second codec chip, 140 First operational amplifier, 144 Second operational amplifier, 146 First power supply, 148 First current limiting resistor, 150 Seventh resistor, 152 Seventh filter capacitor 154 First resistor, 156 Second resistor, 158 Third resistor, 160 Fourth resistor, 162 First bidirectional diode, 164 Second bidirectional diode, 166 Second current-limiting resistor, 168 Eighth resistor, 170 Eighth filter capacitor, 172 Fifth resistor, 174 Second filter capacitor, 176 Third filter capacitor, 178 Fourth filter capacitor, 180 Third bidirectional diode, 182 Fourth bidirectional diode, 184 First voltage divider resistor, 186 Second voltage divider resistor, 188 Second power supply, 190 Fifth filter capacitor, 192 Sixth resistor, 194 Sixth filter capacitor, 200 Test equipment, 202 Connection port, 300 Terminal equipment, 302 First communication interface, 304 Second communication interface. Detailed Implementation
[0036] To better understand the above-mentioned objectives, features, and advantages of this utility model, the present utility model will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0037] Many specific details are set forth in the following description in order to provide a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present invention is not limited to the specific embodiments disclosed below.
[0038] The following reference Figure 1 and Figure 7 This invention describes a terminal switching circuit and testing equipment provided according to some embodiments of the present invention.
[0039] This utility model provides a terminal switching circuit 100 for switching the connection mode of connection port 202, such as... Figure 1 As shown, the terminal switching circuit 100 includes: a detection circuit 102 connected to the connection port 202 for detecting the voltage value of the connection port 202; a switching component 104 connected to the connection port 202 for switching the connection mode of the connection port 202; and a controller 106 connected to the detection circuit 102 and the switching component 104, wherein the controller 106 controls the switching component 104 to switch the connection mode of the connection port 202 according to the voltage value of the connection port 202.
[0040] The terminal switching circuit 100 provided by this utility model can be used to switch the connection mode of the connection port 202, that is, to switch the connection method between the connection port 202 and different communication interfaces of the terminal device 300. Specifically, the terminal device 300 may include multiple communication interfaces, such as a controller area network (CAN) communication interface and an RS485 communication interface. By connecting the connection port 202 to different communication interfaces respectively, the performance of different communication interfaces of the terminal device 300 can be tested. The terminal switching circuit 100 can switch the connection between the connection port 202 and different communication interfaces.
[0041] Furthermore, the terminal switching circuit 100 includes a detection circuit 102, which is connected to the connection port 202. The detection circuit 102 can detect the voltage value of the connection port 202.
[0042] It is understandable that the voltages of different communication interfaces of the terminal device 300 are not the same. For example, the idle voltage of the RS485 communication interface is 5V, and the idle voltage of the controller LAN communication interface is 2.5V. Therefore, by detecting the voltage value of the connection port 202 through the detection circuit 102, the communication interface that the current connection port 202 needs to connect to can be determined.
[0043] Furthermore, the terminal switching circuit 100 also includes a switching component 104 and a controller 106. The switching component 104 is connected to the connection port 202, thereby enabling the switching of the connection mode of the connection port 202, that is, switching the connection between the connection port 202 and different communication interfaces. The controller 106 is connected to the detection circuit 102 and the switching component 104, so that the controller 106 can receive the voltage value of the connection port 202 detected by the detection circuit 102, and then control the switching component 104 to operate according to the received voltage value, thereby connecting the connection port 202 to the communication interface corresponding to the voltage value received by the controller 106, and thus completing the switching of the connection mode of the connection port 202.
[0044] The terminal switching circuit 100 provided by this utility model, by setting a detection circuit 102, can detect the voltage value of the connection port 202. Further, the terminal switching circuit 100 also includes a switching component 104 and a controller 106. The controller 106 can acquire the voltage value of the connection port 202 detected by the detection circuit 102 and control the operation of the switching component 104 to connect the connection port 202 to the communication interface corresponding to the voltage value received by the controller 106, thereby completing the switching of the connection mode of the connection port 202. By controlling the switching component 104 to switch the connection mode of the connection port 202 according to the voltage value of the connection port 202, the controller 106 can quickly and accurately identify the type of the connection port 202 and switch the correct communication interface to the connection port 202 for communication interface testing, thereby improving the accuracy and intelligence of the testing.
[0045] In some embodiments, optionally, such as Figure 1As shown, the connection port 202 is used to connect to the terminal device 300. The terminal device 300 includes a first communication interface 302 and a second communication interface 304. The switching component 104 includes: a first switching unit 108 connected to the connection port 202 and the controller 106; and a second switching unit 110 connected to the connection port 202 and the controller 106. The controller 106 is used to control the first switching unit 108 to connect the connection port 202 to the first communication interface 302 when the voltage value of the connection port 202 is a first voltage value, and to control the second switching unit 110 to connect the connection port 202 to the second communication interface 304 when the voltage value of the connection port 202 is a second voltage value.
[0046] In this embodiment, the connection port 202 can be used to connect to the terminal device 300. The terminal device 300 may include multiple communication interfaces, and the terminal switching circuit 100 can switch the connection between the connection port 202 and different communication interfaces of the terminal device 300.
[0047] Specifically, the terminal device 300 may include a first communication interface 302 and a second communication interface 304, and the terminal switching circuit 100 is used to switch the connection between the connection port 202 and the first communication interface 302 and the second communication interface 304. Correspondingly, the switching component 104 includes a first switching unit 108 and a second switching unit 110, and both the first switching unit 108 and the second switching unit 110 are connected to the connection port 202 and the controller 106. The controller 106 is used to control the operation of the first switching unit 108 or the second switching unit 110 to realize the switching of the connection between the connection port 202 and the first communication interface 302 and the second communication interface 304.
[0048] Specifically, the controller 106 receives the voltage value of the connection port 202 detected by the detection circuit 102. When the voltage value of the connection port 202 is a first voltage value, the controller 106 can control the first switching unit 108 to connect the connection port 202 to the first communication interface 302, thereby testing the performance of the first communication interface 302. Correspondingly, when the voltage value of the connection port 202 is a second voltage value, the controller 106 can control the second switching unit 110 to connect the connection port 202 to the second communication interface 304, thereby testing the performance of the second communication interface 304.
[0049] It should be noted that after the first communication interface 302 test is completed, the terminal device 300 can send a test completion signal to the controller 106. Upon receiving the test completion signal, the controller 106 can control the corresponding first switching unit 108 to reset, so that the connection port 202 is no longer connected to the first communication interface 302. Conversely, after the second communication interface 304 test is completed, the terminal device 300 can send a test completion signal to the controller 106. Upon receiving the test completion signal, the controller 106 can control the corresponding second switching unit 110 to reset, so that the connection port 202 is no longer connected to the second communication interface 304.
[0050] In some embodiments, optionally, such as Figure 2 and Figure 3 As shown, the first switching unit 108 includes: a first adjustment circuit 112 disposed at the connection port 202 and connected to the controller 106; and a first conversion circuit 114 disposed at the connection port 202 and connected to the first adjustment circuit 112. The controller 106 controls the first adjustment circuit 112 to connect the connection port 202 to the first communication interface 302 when the voltage value of the connection port 202 is a first voltage value. The first conversion circuit 114 converts the communication mode of the connection port 202 to a communication mode corresponding to the first communication interface 302 when the connection port 202 is connected to the first communication interface 302.
[0051] In this embodiment, the first switching unit 108 includes a first adjustment circuit 112, which is disposed on the connection port 202 to adjust the connection mode of the connection port 202, that is, to connect the connection port 202 to the first communication interface 302 of the terminal device 300.
[0052] Furthermore, the first switching unit 108 also includes a first conversion circuit 114. The first conversion circuit 114 is disposed on the connection port 202 and is connected to the first adjustment circuit 112. After the first adjustment circuit 112 connects the connection port 202 to the first communication interface 302 of the terminal device 300, the first conversion circuit 114 can convert the communication mode of the connection port 202 to the communication mode corresponding to the first communication interface 302, thereby ensuring that data can be transmitted normally through the connection port 202 during the testing of the first communication interface 302.
[0053] Specifically, the first adjustment circuit 112 is connected to the controller 106. The controller 106 receives the voltage value of the connection port 202 detected by the detection circuit 102. When the voltage value of the connection port 202 is a first voltage value, the controller 106 can control the first adjustment circuit 112 to connect the connection port 202 to the first communication interface 302. Then, after the connection port 202 is connected to the first communication interface 302, the first conversion circuit 114 can convert the communication mode of the connection port 202 to the communication mode corresponding to the first communication interface 302 to ensure that the connection port 202 can transmit data normally.
[0054] In some embodiments, optionally, such as Figure 2 As shown, the first adjustment circuit 112 includes: a first switch 116, the first end of which is connected to the first power supply 146, the second end of which is grounded, and the control terminal of which is connected to the controller 106; and a first relay 118, which is disposed at the connection port 202 and connected to the first end of the first switch 116. The first switch 116 is used to change its conduction state according to the control signal of the controller 106, and the first relay 118 is used to switch according to the level state of the first end of the first switch 116 to connect the connection port 202 to the first communication interface 302.
[0055] In this embodiment, the first adjustment circuit 112 may include a first switch 116 and a first relay 118, wherein the control terminal of the first switch 116 is connected to the controller 106, thereby enabling the controller 106 to send different level signals to the control terminal of the first switch 116 to control the on / off state between the first terminal and the second terminal of the first switch 116.
[0056] Furthermore, a first relay 118 is disposed at the connection port 202 and is connected to the first end of the first switch 116. That is, the first relay 118 can switch according to the level state of the first end of the first switch 116, thereby connecting the connection port 202 to the first communication interface 302 or disconnecting the connection port 202 from the first communication interface 302.
[0057] Specifically, the first terminal of the first switch 116 is connected to the first power supply 146, which can provide a low-voltage power supply to the first switch 116, for example, the voltage of the first power supply 146 can be 5V. Further, the second terminal of the first switch 116 is grounded. That is, when the first terminal and the second terminal of the first switch 116 are connected, the first terminal of the first switch 116 is in a low-level state; when the first terminal and the second terminal of the first switch 116 are disconnected, the first terminal of the first switch 116 is in a high-level state. The first relay 118 can then switch the connection state between the connection port 202 and the first communication interface 302 according to the different level states of the first terminal of the first switch 116.
[0058] Furthermore, such as Figure 2 As shown, the first adjustment circuit 112 further includes a first current-limiting resistor 148, which is disposed between the control terminal of the first switch 116 and the controller 106, for limiting current between the controller 106 and the first switch 116. The first adjustment circuit 112 also includes a seventh resistor 150 and a seventh filter capacitor 152. The two ends of the seventh resistor 150 are respectively connected between the control terminal and the second terminal of the first switch 116, for pulling down the voltage transmitted from the controller 106 to the first switch 116, ensuring that the first switch 116 receives an accurate voltage level signal. The two ends of the seventh filter capacitor 152 are respectively connected between the control terminal and the second terminal of the first switch 116, for filtering high-frequency interference from the signal transmitted from the controller 106 to the first switch 116, ensuring the accuracy of the voltage level signal.
[0059] In some embodiments, optionally, such as Figure 3 As shown, the first conversion circuit 114 includes a first codec chip 120, which is connected to a first power supply 146 and a first relay 118. The first codec chip 120 is used to convert the communication mode of the connection port 202 to a communication mode corresponding to the first communication interface 302 when the connection port 202 is connected to the first communication interface 302.
[0060] In this embodiment, the first conversion circuit 114 may include a first codec chip 120, which can control the communication mode of the connection port 202.
[0061] Specifically, the first codec chip 120 is connected to the first power supply 146, thereby providing low-voltage power to the first codec chip 120 through the first power supply 146. Further, the first codec chip 120 is connected to the first relay 118. When the first relay 118 switches, the connection port 202 is connected to the first communication interface 302 of the terminal device 300. At this time, the first codec chip 120 encodes and decodes the transmitted data, ensuring that the communication mode of the connection port 202 is the same as the communication mode of the first communication interface 302 of the terminal device 300, thus guaranteeing that the connection port 202 can transmit data normally.
[0062] For example, such as Figure 2 , Figure 3 and Figure 6 As shown, the first switching element 116 can be a transistor, and the controller 106 includes pins 1 to 20. Pin 16 of the controller 106 is connected to the control terminal of the first switching element 116, thereby sending a control signal to the control terminal of the first switching element 116. Pins 3, 4, and 6 of the controller 106 can be connected to the first codec chip 120. Pin 17 of the controller 106 is grounded, and pin 19 of the controller 106 can be connected to the first power supply 146, thereby providing low-voltage power to the controller 106 through the first power supply 146. Figure 2 As shown, the first relay 118 includes pins 1 to 8. Pin 8 is connected to the first terminal of the first switch 116, pin 1 is connected to the first power supply 146, pins 3 and 6 are connected to the connection port 202, and pins 5 and 4 are connected to pins 6 and 7 of the first codec chip 120. When the voltage received by the controller 106 from the connection port 202 is a first voltage value, the controller 106 controls the first switch 116 to switch its conduction state, and the first relay 118 switches, connecting pins 5 and 6, and pins 3 and 4, so that the connection port 202 is connected to the first communication interface 302. The first codec chip 120 of the first conversion circuit 114 converts the communication mode of the connection port 202 to a communication mode corresponding to the first communication interface 302.
[0063] Furthermore, such as Figure 3 As shown, the first conversion circuit 114 further includes: a pull-up resistor 122, which is disposed between the first power supply 146 and the first codec chip 120; a pull-down resistor 124, which is disposed between the first codec chip 120 and the ground; and a first filter capacitor 126, the first end of which is connected to the first power supply 146 and the second end of which is grounded.
[0064] In this embodiment, the first conversion circuit 114 further includes a pull-up resistor 122, which is disposed between the first power supply 146 and the first codec chip 120. Through the pull-up resistor 122, the voltage provided by the first power supply 146 can be pulled up to ensure that the first power supply 146 provides the correct level signal to the first codec chip 120.
[0065] Specifically, the pull-up resistor 122 may include a first resistor 154 and a second resistor 156. Both the first resistor 154 and the second resistor 156 are connected to the first power supply 146. The first resistor 154 is connected to pin 1 of the first codec chip 120, and the second resistor 156 is connected to pin 4 of the first codec chip 120.
[0066] Furthermore, the first conversion circuit 114 also includes a pull-down resistor 124, which is connected between the first codec chip 120 and ground. The pull-down resistor 124 pulls down the voltage level of the first codec chip 120 to ensure the accuracy of the low-level signal of the first codec chip 120.
[0067] Specifically, one end of the pull-down resistor 124 is connected to pins 2 and 3 of the first codec chip 120, and the other end of the pull-down resistor 124 is grounded.
[0068] Furthermore, the first conversion circuit 114 includes a first filter capacitor 126. The first filter capacitor 126 can filter out high-frequency interference signals in the first power supply 146 to avoid interference from the high-frequency interference signals in the first power supply 146 to the operation of the first codec chip 120.
[0069] Specifically, pin 8 of the first codec chip 120 is connected to the first power supply 146, one end of the first filter capacitor 126 is connected to pin 8 of the first codec chip 120, and the other end of the first filter capacitor 126 is grounded.
[0070] In some embodiments, optionally, such as Figure 3 As shown, the first conversion circuit 114 further includes a protection circuit 128, which is disposed between the first codec chip 120 and the first relay 118.
[0071] In this embodiment, the first conversion circuit 114 may further include a protection circuit 128. The protection circuit 128 may be disposed between the first codec chip 120 and the first relay 118. Through the protection circuit 128, the anti-interference capability of the first codec chip 120 during operation can be improved, and the stable operation of the first codec chip 120 can be guaranteed.
[0072] Specifically, such as Figure 2 and Figure 3 As shown, pins 6 and 7 of the first codec chip 120 are connected to pins 5 and 4 of the first relay 118, respectively. The protection circuit 128 may include a third resistor 158 and a fourth resistor 160, wherein the third resistor 158 is disposed between pin 7 of the first codec chip 120 and pin 4 of the first relay 118, and the fourth resistor 160 is disposed between pin 6 of the first codec chip 120 and pin 5 of the first relay 118. Further, the protection circuit 128 may also include a first bidirectional diode 162 and a second bidirectional diode 164, wherein one end of the first bidirectional diode 162 is connected to pin 7 of the first codec chip 120, and the other end of the first bidirectional diode 162 is grounded. One end of the second bidirectional diode 164 is connected to pin 6 of the first codec chip, and the other end of the second bidirectional diode 164 is grounded.
[0073] In some embodiments, optionally, such as Figure 4 and Figure 5 As shown, the second switching unit 110 includes: a second adjustment circuit 130 disposed at the connection port 202 and connected to the controller 106; and a second conversion circuit 132 disposed at the connection port 202 and connected to the second adjustment circuit 130. The controller 106 controls the second adjustment circuit 130 to connect the connection port 202 to the second communication interface 304 when the voltage value of the connection port 202 is a second voltage value. The second conversion circuit 132 converts the communication mode of the connection port 202 to a communication mode corresponding to the second communication interface 304 when the connection port 202 is connected to the second communication interface 304.
[0074] In this embodiment, the second switching unit 110 includes a second adjustment circuit 130, which is disposed on the connection port 202 to adjust the connection mode of the connection port 202, that is, to connect the connection port 202 to the second communication interface 304 of the terminal device 300.
[0075] Furthermore, the second switching unit 110 also includes a second conversion circuit 132. The second conversion circuit 132 is disposed on the connection port 202 and is connected to the second adjustment circuit 130. After the second adjustment circuit 130 connects the connection port 202 to the second communication interface 304 of the terminal device 300, the second conversion circuit 132 can convert the communication mode of the connection port 202 to the communication mode corresponding to the second communication interface 304, thereby ensuring that data can be transmitted normally through the connection port 202 during the testing of the second communication interface 304.
[0076] Specifically, the second adjustment circuit 130 is connected to the controller 106. The controller 106 receives the voltage value of the connection port 202 detected by the detection circuit 102. When the voltage value of the connection port 202 is a second voltage value, the controller 106 can control the second adjustment circuit 130 to connect the connection port 202 to the second communication interface 304. Then, after the connection port 202 is connected to the second communication interface 304, the second conversion circuit 132 can convert the communication mode of the connection port 202 to the communication mode corresponding to the second communication interface 304 to ensure that the connection port 202 can transmit data normally.
[0077] In some embodiments, optionally, such as Figure 4 As shown, the second adjustment circuit 130 includes: a second switch 134, the first end of which is connected to the first power supply 146, the second end of which is grounded, and the control terminal of which is connected to the controller 106; and a second relay 136, which is disposed at the connection port 202 and connected to the first end of the second switch 134. The second switch 134 is used to change its conduction state according to the control signal of the controller 106, and the second relay 136 is used to switch according to the level state of the first end of the second switch 134 to connect the connection port 202 to the second communication interface 304.
[0078] In this embodiment, the second adjustment circuit 130 may include a second switch 134 and a second relay 136, wherein the control terminal of the second switch 134 is connected to the controller 106, thereby enabling the controller 106 to send different level signals to the control terminal of the second switch 134 to control the on / off state between the first terminal and the second terminal of the second switch 134.
[0079] Furthermore, a second relay 136 is disposed at the connection port 202 and is connected to the second terminal of the second switch 134. That is, the second relay 136 can switch according to the level state of the second terminal of the second switch 134, thereby connecting the connection port 202 to the second communication interface 304 or disconnecting the connection port 202 from the second communication interface 304.
[0080] Specifically, the second terminal of the second switch 134 is connected to the first power supply 146, which can provide a low-voltage power supply to the second switch 134, for example, the voltage of the first power supply 146 can be 5V. Further, the second terminal of the second switch 134 is grounded, that is, when the first and second terminals of the second switch 134 are connected, the second terminal of the second switch 134 is in a low-level state; when the first and second terminals of the second switch 134 are disconnected, the second terminal of the second switch 134 is in a high-level state. The second relay 136 can then switch the connection state between the connection port 202 and the second communication interface 304 according to the different level states of the second terminal of the second switch 134.
[0081] Furthermore, such as Figure 4 As shown, the second adjustment circuit 130 further includes a second current-limiting resistor 166, which is disposed between the control terminal of the second switch 134 and the controller 106, for limiting current between the controller 106 and the second switch 134. The second adjustment circuit 130 also includes an eighth resistor 168 and an eighth filter capacitor 170. The two ends of the eighth resistor 168 are respectively connected between the control terminal and the second terminal of the second switch 134, for pulling down the voltage transmitted from the controller 106 to the second switch 134, ensuring that the second switch 134 receives an accurate voltage level signal. The two ends of the eighth filter capacitor 170 are respectively connected between the control terminal and the second terminal of the second switch 134, for filtering high-frequency interference from the signal transmitted from the controller 106 to the second switch 134, ensuring the accuracy of the voltage level signal.
[0082] In some embodiments, optionally, such as Figure 5 As shown, the second conversion circuit 132 includes a second codec chip 138, which is connected to a first power supply 146 and a second relay 136. The second codec chip 138 is used to convert the communication mode of the connection port 202 to the communication mode corresponding to the second communication interface 304 when the connection port 202 is connected to the second communication interface 304.
[0083] In this embodiment, the second conversion circuit 132 may include a second codec chip 138, which can control the communication mode of the connection port 202.
[0084] Specifically, the second codec chip 138 is connected to the first power supply 146, thereby providing low-voltage power to the second codec chip 138 through the first power supply 146. Further, the second codec chip 138 is connected to the second relay 136. When the second relay 136 switches, the connection port 202 is connected to the second communication interface 304 of the terminal device 300. At this time, the second codec chip 138 encodes and decodes the transmitted data, ensuring that the communication mode of the connection port 202 is the same as the communication mode of the second communication interface 304 of the terminal device 300, thus guaranteeing that the connection port 202 can transmit data normally.
[0085] For example, such as Figure 4 , Figure 5 and Figure 6 As shown, the second switch 134 can be a transistor. Pin 15 of the controller 106 is connected to the control terminal of the first switch 116, thereby sending a control signal to the control terminal of the first switch 116. Pins 1 and 2 of the controller 106 can be connected to the second codec chip 138. Pin 17 of the controller 106 is grounded, and pin 19 of the controller 106 can be connected to the first power supply 146, thereby providing low-voltage power to the controller 106 through the first power supply 146. Figure 4 As shown, the second relay 136 includes pins 1 to 8. Pin 8 is connected to the first terminal of the second switch 134, pin 1 is connected to the first power supply 146, pins 3 and 6 are connected to the connection port 202, and pins 5 and 4 are connected to pins 6 and 7 of the second codec chip 138. When the voltage received by the controller 106 from the connection port 202 is a second voltage value, the controller 106 controls the second switch 134 to switch its conduction state. The second relay 136 then switches, connecting pins 5 and 6, and pins 3 and 4, so that the connection port 202 is connected to the second communication interface 304. The second codec chip 138 of the second conversion circuit 132 converts the communication mode of the connection port 202 to a communication mode corresponding to the second communication interface 304.
[0086] Furthermore, such as Figure 5As shown, a fifth resistor 172 is connected between pins 6 and 7 of the second codec chip 138. The fifth resistor 172 provides resistance matching for the second communication interface 304 to meet its communication requirements. Furthermore, the second conversion circuit 132 may also include a second filter capacitor 174, with one end connected to pin 7 of the second codec chip 138 and the other end grounded. The second conversion circuit 132 may also include a third filter capacitor 176, with one end connected to pin 6 of the second codec chip 138 and the other end grounded. By using the second and third filter capacitors 174 and 176, interference signals can be filtered out, ensuring the normal operation of the second codec chip 138.
[0087] Furthermore, pin 3 of the second codec chip 138 is connected to the first power supply 146. The second conversion circuit 132 may also include a fourth filter capacitor 178, one end of which is connected to pin 3 of the second codec chip 138, and the other end of which is grounded. Through the fourth filter capacitor 178, high-frequency interference signals in the first power supply 146 can be filtered out to prevent them from interfering with the operation of the second codec chip 138.
[0088] Furthermore, the second conversion circuit 132 may also include a third bidirectional diode 180 and a fourth bidirectional diode 182. One end of the third bidirectional diode 180 is connected to pin 7 of the second codec chip 138, and the other end of the third bidirectional diode 180 is grounded. One end of the fourth bidirectional diode 182 is connected to pin 6 of the first codec, and the other end of the fourth bidirectional diode 182 is grounded. By configuring the third bidirectional diode 180 and the fourth bidirectional diode 182, the anti-interference capability of the second codec chip 138 during operation can be improved, ensuring the stable operation of the second codec chip 138.
[0089] In some embodiments, optionally, such as Figure 7 As shown, the detection circuit 102 includes: a first operational amplifier 140, the first input terminal of the first operational amplifier 140 is connected to the connection port 202, the second input terminal of the first operational amplifier 140 is connected to the output terminal of the first operational amplifier 140; and a second operational amplifier 144, the first input terminal of the second operational amplifier 144 is connected to the output terminal of the first operational amplifier 140, the second input terminal of the second operational amplifier 144 is connected to the output terminal of the second operational amplifier 144, and the output terminal of the second operational amplifier 144 is connected to the controller 106.
[0090] In this embodiment, the detection circuit 102 may include a first operational amplifier 140 and a second operational amplifier 144. The first input terminal of the first operational amplifier 140 is connected to the connection port 202, and the second input terminal of the first operational amplifier 140 is connected to its output terminal. The first operational amplifier 140 can be used to form a voltage follower, which is then used to acquire the voltage at the connection port 202. It should be noted that if the voltage at the connection port 202 is acquired by voltage division, i.e., by directly dividing the voltage at the connection port 202, the voltage divider resistor will affect the impedance of the connection port 202, impacting communication quality. A voltage follower can provide a high input impedance, reducing the impact of the detection circuit 102 on the voltage at the connection port 202.
[0091] Furthermore, the detection circuit 102 may also include a first voltage divider resistor 184 and a second voltage divider resistor 186. One end of the first voltage divider resistor 184 is connected to the output terminal of the first operational amplifier 140, and one end of the second voltage divider resistor 186 is connected to the other end of the first voltage divider resistor 184. The other end of the second voltage divider resistor 186 is grounded. By setting the first voltage divider resistor 184 and the second voltage divider resistor 186, the voltage of the acquired connection port 202 can be divided, so that the controller 106 can acquire a suitable voltage. For example, if the voltage of the connection port 202 is 5V and the acquisition range of the controller 106 is 3.3V, the voltage of the connection port 202 is divided by the first voltage divider resistor 184 and the second voltage divider resistor 186 to prevent the voltage acquired by the controller 106 from exceeding the acquisition range.
[0092] Furthermore, the first input terminal of the second operational amplifier 144 is connected to the output terminal of the first operational amplifier 140, the second input terminal of the second operational amplifier 144 is connected to its output terminal, and the output terminal of the second operational amplifier 144 is connected to the controller 106. The second operational amplifier 144 can be used to form a voltage follower, thereby providing impedance isolation between the first operational amplifier 140 and the controller 106, and reducing the impact of the controller 106 pins on the large voltages acquired by the first operational amplifier 140.
[0093] Furthermore, the first operational amplifier 140 is also connected to a second power supply 188, which provides power to the first operational amplifier 140. Correspondingly, the detection circuit 102 also includes a fifth filter capacitor 190. One end of the fifth filter capacitor 190 is connected between the first operational amplifier 140 and the second power supply 188, and the other end is grounded. Through the fifth filter capacitor 190, high-frequency interference filtering can be achieved on the voltage provided by the second power supply 188, thereby preventing high-frequency interference signals in the second power supply 188 from interfering with the operation of the first operational amplifier 140.
[0094] Furthermore, the detection circuit 102 also includes a sixth resistor 192 and a sixth filter capacitor 194. The sixth resistor 192 is positioned between the second operational amplifier 144 and the controller 106. One end of the sixth filter capacitor 194 is connected between the sixth resistor 192 and the controller 106, and the other end of the sixth filter capacitor 194 is grounded. By using the sixth resistor 192 and the sixth filter capacitor 194, high-frequency interference filtering can be achieved on the detection signal output to the controller 106, improving the accuracy of the detection signal received by the controller 106.
[0095] In some embodiments of this utility model, such as Figure 1 As shown, a test device 200 is also proposed, including a connection port 202; a terminal switching circuit 100 as described in any of the above embodiments, the terminal switching circuit 100 being connected to the connection port 202.
[0096] The testing device 200 provided by this utility model can test the communication interface of the terminal device 300. The connection port 202 is used to connect to the communication interface of the terminal device 300. The terminal device 300 may include multiple communication interfaces. The connection between the connection port 202 and different communication interfaces can be switched through the terminal switching circuit 100.
[0097] The test device 200 provided by this utility model includes the terminal switching circuit 100 of any of the above embodiments. Therefore, the test device 200 has all the beneficial effects of the terminal switching circuit 100, which will not be described in detail here.
[0098] In the description of this utility model, the term "multiple" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this utility model. The terms "connection," "installation," "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this utility model can be understood according to the specific circumstances.
[0099] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0100] The above are merely preferred embodiments of this utility model and are not intended to limit the scope of this utility model. Various modifications and variations can be made to this utility model by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this utility model should be included within the protection scope of this utility model.
Claims
1. A terminal switching circuit for switching the connection mode of a connection port, characterized in that, The terminal switching circuit includes: A detection circuit, connected to the connection port, is used to detect the voltage value of the connection port; A switching component is connected to the connection port to switch the connection mode of the connection port; A controller, connected to the detection circuit and the switching component, is used to control the switching component to switch the connection mode of the connection port according to the voltage value of the connection port.
2. The terminal switching circuit according to claim 1, characterized in that, The connection port is used to connect to a terminal device, the terminal device including a first communication interface and a second communication interface, and the switching component includes: A first switching unit is connected to the connection port and the controller; The second switching unit is connected to the connection port and the controller; The controller is configured to control the first switching unit to connect the connection port to the first communication interface when the voltage value of the connection port is a first voltage value, and to control the second switching unit to connect the connection port to the second communication interface when the voltage value of the connection port is a second voltage value.
3. The terminal switching circuit according to claim 2, characterized in that, The first switching unit includes: A first adjustment circuit is disposed at the connection port and is connected to the controller; A first conversion circuit is disposed at the connection port and connected to the first adjustment circuit; Wherein, the controller is used to control the first adjustment circuit to connect the connection port to the first communication interface when the voltage value of the connection port is the first voltage value, and the first conversion circuit is used to convert the communication mode of the connection port to a communication mode corresponding to the first communication interface when the connection port is connected to the first communication interface.
4. The terminal switching circuit according to claim 3, characterized in that, The first adjustment circuit includes: A first switching device, wherein a first end of the first switching device is connected to a first power supply, a second end of the first switching device is grounded, and a control terminal of the first switching device is connected to the controller. A first relay is disposed at the connection port and is connected to a first end of the first switch. The first switch is used to change its conduction state according to the control signal of the controller, and the first relay is used to switch according to the level state of the first terminal of the first switch to connect the connection port to the first communication interface.
5. The terminal switching circuit according to claim 4, characterized in that, The first conversion circuit includes: A first codec chip is connected to the first power supply and the first relay. The first codec chip is used to convert the communication mode of the connection port to a communication mode corresponding to the first communication interface when the connection port is connected to the first communication interface. A pull-up resistor is provided between the first power supply and the first codec chip; A pull-down resistor is provided between the first codec chip and the ground line; The first filter capacitor has its first terminal connected to the first power supply and its second terminal grounded.
6. The terminal switching circuit according to claim 2, characterized in that, The second switching unit includes: A second adjustment circuit is provided at the connection port and is connected to the controller; The second conversion circuit is located at the connection port and connected to the second adjustment circuit; The controller is configured to control the second adjustment circuit to connect the connection port to the second communication interface when the voltage value of the connection port is the second voltage value. The second conversion circuit is configured to convert the communication mode of the connection port to a communication mode corresponding to the second communication interface when the connection port is connected to the second communication interface.
7. The terminal switching circuit according to claim 6, characterized in that, The second adjustment circuit includes: A second switch has a first terminal connected to a first power supply, a second terminal grounded, and a control terminal connected to the controller. A second relay is disposed at the connection port, and the second relay is connected to the first end of the second switch. The second switch is used to change its conduction state according to the control signal of the controller, and the second relay is used to switch according to the level state of the first end of the second switch to connect the connection port to the second communication interface.
8. The terminal switching circuit according to claim 7, characterized in that, The second conversion circuit includes: A second codec chip is connected to the first power supply and the second relay. The second codec chip is used to convert the communication mode of the connection port to a communication mode corresponding to the second communication interface when the connection port is connected to the second communication interface.
9. The terminal switching circuit according to any one of claims 1 to 8, characterized in that, The detection circuit includes: A first operational amplifier, wherein a first input terminal of the first operational amplifier is connected to the connection port, and a second input terminal of the first operational amplifier is connected to the output terminal of the first operational amplifier; A second operational amplifier has a first input terminal connected to the output terminal of the first operational amplifier, a second input terminal connected to the output terminal of the second operational amplifier, and an output terminal connected to the controller.
10. A testing device for testing the communication interface of a terminal device, characterized in that, include: Connection port; The terminal switching circuit as described in any one of claims 1 to 9, wherein the terminal switching circuit is connected to the connection port.