Protocol switching device, electronic equipment and protocol switching system

By using the USB interface and switch control circuit in the protocol switching device, the debugging process of BIOS and EC for electronic devices is simplified, solving the problems of cumbersome and unsafe debugging in the existing technology, and realizing safe and efficient communication protocol switching.

CN223679636UActive Publication Date: 2025-12-16SHENZHEN BITLAND INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423097262.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-12-16
Estimated Expiration
2034-12-13

AI Technical Summary

Technical Problem

In the existing technology, the debugging process of B IOS and EC of electronic devices is cumbersome and unsafe, mainly because it requires frequent switching of different communication protocol lines, and there is a risk of the flying wire falling off.

Method used

A protocol switching device is adopted, including a USB interface, a pin header connector, and a switch control circuit. The communication protocol is switched by switching the voltage of the USB interface, avoiding the need for jumper wire connections.

Benefits of technology

It simplifies the debugging process of electronic devices, improves debugging safety, avoids the risk of flying wires coming loose, and ensures the stability of communication protocol switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223679636U_ABST
    Figure CN223679636U_ABST
Patent Text Reader

Abstract

The embodiment of the utility model relates to the technical field of electronic equipment testing, and discloses a protocol switching device which comprises a USB interface, a pin header connector and a switch control circuit. The USB interface is configured to be connected with electronic equipment; the switch control circuit is connected with a first pin of the USB interface, and the switch control circuit is configured to provide different voltages for the first pin so as to switch a communication protocol of the electronic equipment; and the pin header connector is connected with at least one second pin of the USB interface, and the pin header connector is configured to be connected with external test equipment so as to debug the electronic equipment. According to the scheme, the communication protocol of the electronic equipment is switched according to different voltages provided by the first pin of the USB interface. Compared with the prior art that protocol switching is carried out in a fly line mode, the method has the advantages that on one hand, the communication protocol switching process of the electronic equipment can be simplified; and on the other hand, the situations of fly wire falling and the like can be avoided, and the security of communication protocol switching of the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The embodiment of the present application relates to the technical field of electronic equipment testing, in particular to a protocol switching device, an electronic equipment and a protocol switching system. BACKGROUND

[0002] In the current rapid development of science and technology, electronic equipment is an indispensable product in people's daily life. In the research and development stage of electronic equipment, the hardware, BIOS (Basic Input / Output System) and EC (Embedded Controller) of the electronic equipment need to be debugged to confirm that the functions are correct. In the process of debugging the BIOS and EC, the electronic equipment needs to be frequently software flashed, and the communication protocol lines required for BIOS debugging and EC debugging are different.

[0003] The existing technology at present is to connect the required different communication protocol lines on the main circuit board of the electronic equipment by the way of flying wire, so as to complete the BIOS debugging and EC debugging. The above method not only makes the debugging process more cumbersome and inconvenient, but also the flying wire on the main circuit board has the risk of falling, which reduces the safety of the debugging process. SUMMARY

[0004] The embodiment of the present application mainly provides a protocol switching device, an electronic equipment and a protocol switching system, to simplify the debugging process of BIOS debugging and EC debugging of the electronic equipment, and improve the safety of the debugging process.

[0005] To solve the above technical problems, the embodiment of the present application adopts the following technical scheme:

[0006] In a first aspect, the embodiment of the present application provides a protocol switching device, comprising a USB interface, a pin connector and a switch control circuit;

[0007] The USB interface is configured to connect the electronic equipment;

[0008] The switch control circuit is connected to the first pin of the USB interface, and the switch control circuit is configured to provide different voltages to the first pin to switch the communication protocol of the electronic equipment;

[0009] The pin connector is connected to at least one second pin of the USB interface, and the pin connector is configured to connect an external test equipment to debug the electronic equipment.

[0010] In some embodiments, the switch control circuit includes a first pull-up resistor, a second pull-up resistor and a switch controller;

[0011] The first end of the switch controller is connected to the first end of the first pull-up resistor, and the second end of the first pull-up resistor is connected to the first external power supply.

[0012] The second end of the switch controller is connected to the first end of the second pull-up resistor, and the second end of the second pull-up resistor is connected to the second external power supply.

[0013] The third end of the switch controller is connected to the first pin of the USB interface.

[0014] In some embodiments, the switch control circuit further comprises a first pull-down resistor;

[0015] The first end of the first pull-down resistor is connected to the first end of the switch controller, and the second end of the first pull-down resistor is grounded.

[0016] In a second aspect, the embodiments of the present application provide an electronic device, comprising:

[0017] A USB interface;

[0018] A main circuit board, the main circuit board comprising a communication transmission line and a protocol switching circuit;

[0019] The protocol switching circuit is connected between the first end and the second end of the communication transmission line, and the control end of the protocol switching circuit is connected to the first pin of the USB interface.

[0020] The second end of the communication transmission line is connected to at least one second pin of the USB interface.

[0021] The protocol switching circuit is configured to control the conduction state of the communication transmission line according to the potential of the first pin, so as to switch the communication protocol of the communication transmission line.

[0022] In some embodiments, the communication transmission line comprises a USB protocol transmission line.

[0023] The protocol switching circuit comprises a first control circuit and a USB switch circuit, and the USB switch circuit is arranged between the first end and the second end of the USB protocol transmission line.

[0024] The control end of the first control circuit is connected to the first pin of the USB interface, the first end of the first control circuit is connected to the control end of the USB switch circuit and an external power supply, and the second end of the first control circuit is grounded.

[0025] The first control circuit is configured to control the opening or closing of the USB switch circuit according to the potential of the first pin and the external power supply, so as to control the conduction state of the USB protocol transmission line.

[0026] In some embodiments, the first control circuit comprises a first switch tube, a first resistor and a first pull-up resistor.

[0027] The control end of the first switch tube is connected with the first end of the first resistor, and the second end of the first resistor is connected with the first pin of the USB interface.

[0028] The first end of the first switch tube is connected with the control end of the USB switch circuit and the first end of the first pull-up resistor respectively, the second end of the first switch tube is grounded, and the second end of the first pull-up resistor is connected with the external power supply.

[0029] In some embodiments, the communication transmission line further comprises an SMB protocol transmission line and a UART protocol transmission line;

[0030] The protocol switching circuit further comprises an SMB switch circuit, a UART switch circuit and a second control circuit;

[0031] The SMB switch circuit is arranged between the first end and the second end of the SMB protocol transmission line, and the UART switch circuit is arranged between the first end and the second end of the UART protocol transmission line.

[0032] The control end of the second control circuit is connected with the first pin of the USB interface and the first end of the first control circuit, and the second control circuit is configured to control the opening or closing of the SMB switch circuit or the UART switch circuit according to the potential of the first pin and the potential of the first end of the first control circuit, so as to control the conduction state of the SMB protocol transmission line or the UART protocol transmission line.

[0033] In some embodiments, the second control circuit comprises a second switch tube, a third switch tube, a fourth switch tube and a fifth switch tube, wherein the control end of the second switch tube is connected with the first pin, the first end of the second switch tube is connected with the external power supply, and the second end of the second switch tube is grounded.

[0034] The control end of the third switch tube is connected with the first end of the second switch tube, the first end of the third switch tube is connected with the external power supply and the control end of the SMB switch circuit, and the second end of the third switch tube is grounded.

[0035] The control end of the fourth switch tube is connected with the first end of the third switch tube, the first end of the fourth switch tube is connected with the control end of the UART switch circuit and the external power supply, and the second end of the fourth switch tube is grounded.

[0036] The control end of the fifth switch tube is connected with the first end of the first control circuit, the first end of the fifth switch tube is connected with the UART switch circuit and the external power supply, and the second end of the fifth switch tube is grounded.

[0037] In some embodiments, any one of the USB protocol transmission line, the SMB protocol transmission line or the UART protocol transmission line comprises a first signal line and a second signal line.

[0038] Any one of the USB switch circuit, the SMB switch circuit and the UART switch circuit comprises a first switch module and a second switch module, the first switch module is arranged on the first signal line and the second signal line, and the second switch module is arranged on the first signal line and the second signal line.

[0039] In a third aspect, the embodiments of the present application further provide an electronic device protocol switching system, comprising: the protocol switching device according to the first aspect; and the electronic device according to the second aspect.

[0040] The embodiments of the present application have the following beneficial effects: Different from the prior art, the protocol switching device provided by the embodiments of the present application comprises a USB interface, a pin connector and a switch control circuit; the USB interface is configured to be connected to an electronic device; the switch control circuit is connected to a first pin of the USB interface, and the switch control circuit is configured to provide different voltages to the first pin to switch the communication protocol of the electronic device; the pin connector is connected to at least one second pin of the USB interface, and the pin connector is configured to be connected to an external test device to debug the electronic device. According to the different voltages provided by the first pin of the USB interface, the communication protocol of the electronic device is switched. Compared with the protocol switching by the flying wire in the prior art, the above method can simplify the related process of the electronic device protocol switching on the one hand, and can also avoid the flying wire from falling off and the like, thereby improving the safety of the electronic device protocol switching. BRIEF DESCRIPTION OF DRAWINGS

[0041] One or more embodiments are illustrated by way of example in the drawings that are not intended to be limiting of the embodiments so that one of ordinary skill in the art will understand that not all of the drawings are to scale, that the drawings are illustrated using a cartoon style with the intent of providing conceptual descriptions of aspects of the application, and that, where a term is used it is in the sense only of a particular example embodiment, and specifically is not a limitation of the application. In the drawings:

[0042] Figure 1 A structural schematic diagram of the protocol switching device provided by the embodiments of the present application is shown in the figure;

[0043] Figure 2 A circuit principle diagram of the protocol switching device provided by the embodiments of the present application is shown in the figure;

[0044] Figure 3 A structural schematic diagram of the electronic device provided by the embodiments of the present application is shown in the figure;

[0045] Figure 4 A partial circuit principle diagram of the electronic device provided by the embodiments of the present application is shown in the figure;

[0046] Figure 5 A partial circuit principle diagram of the electronic device provided by the embodiments of the present application is shown in the figure;

[0047] Figure 6Part of the circuit principle diagram of the electronic equipment is provided for the embodiment of the utility model.

[0048] Figure 7 Part of the circuit principle diagram of the electronic equipment is provided for the embodiment of the utility model. DETAILED DESCRIPTION

[0049] The present application will be described in detail below with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application. These are within the scope of the present application.

[0050] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0051] It should be noted that the features in the embodiments of the present application can be combined with each other without conflict, and are within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the order in the flowchart. In addition, the terms "first", "second", "third" and the like used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same function and effect.

[0052] Unless otherwise defined, all technical and scientific terms used in the specification have the same meaning as understood by those skilled in the art to which the present application belongs. The terms used in the specification of the present application are only for the purpose of describing the specific embodiments of the present application, and are not used to limit the present application. The term "and / or" used in the specification includes any and all combinations of one or more related listed items.

[0053] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as there is no conflict.

[0054] In the development process of electronic equipment, function test is needed to confirm its function is correct before selling, and EC test and BIOS test are indispensable in the function test. BIOS is the most important basic input and output program, self-checking program and system self-starting program of computer, and its main function is to provide the most bottom and most direct hardware setting and control for computer; EC is a special microcontroller used for executing specific control tasks such as power management, system monitoring, user interface control, etc.

[0055] In which, the EC test is debugged through SMB protocol line, and the BIOS test is debugged through UART protocol line. Since the frequent software flashing is needed in the EC test and BIOS test, in the prior art, the flying wire is used to switch the communication protocol of electronic equipment, so as to provide appropriate communication protocol for the EC test or BIOS test of electronic equipment.

[0056] The flying wire is used to switch the communication protocol of electronic equipment, on the one hand, the test process of EC test or BIOS test is relatively complex; on the other hand, the flying wire may fall off in the process of EC test or BIOS test, which reduces the safety of the test process.

[0057] Therefore, the utility model embodiment provides a protocol switching device 100, please refer to Figure 1 The protocol switching device 100 includes USB interface 110, pin connector 120 and switch control circuit 130. USB interface 110 is connected with electronic equipment 200, switch control circuit 130 is connected with the first pin 111 of USB interface 110, and switch control circuit 130 provides different voltages for the first pin 111 of USB interface 110 to switch the communication protocol of electronic equipment 200. One end of pin connector 120 is connected with at least one second pin 112 of USB interface 110, and the other end of pin connector 120 is connected with external test equipment 300 to perform corresponding function test on electronic equipment 200 and determine whether the corresponding function of electronic equipment 200 is correct.

[0058] The switch control circuit 130 is connected with the first pin 111 of USB interface 110 to provide different voltages for the first pin 111 of USB interface 110, so that the communication protocol switching can be performed without flying wire for electronic equipment 200, and the adverse effects of flying wire falling off on the test can be avoided in the process of testing electronic equipment 200. In addition, the above method can simplify the process of switching the communication protocol of electronic equipment 200, thereby simplifying the test process of electronic equipment 200.

[0059] Please refer toFigure 2 The switch control circuit 130 comprises a first pull-up resistor 131, a second pull-up resistor 132, a switch controller 133 and a first pull-down resistor 134. The first end of the switch controller 133, i.e. the 1 pin of the switch controller 133 in the drawing, is connected to the first end of the first pull-up resistor 131 and the first pull-down resistor 134 respectively. The second end of the first pull-up resistor 131 is connected to an external power supply for providing an external voltage. The second end of the first pull-down resistor 134 is connected to the ground for ensuring that the input pin of the switch controller 133 can be stably kept at a low level state in an inactive state. The second end of the switch controller 133, i.e. the 3 pin of the switch controller 133 in the drawing, is connected to the first end of the second pull-up resistor 132. The second end of the second pull-up resistor 132 is connected to the external power supply for providing an external voltage for the switch controller 133. The third end of the switch controller 133, i.e. the 2 pin of the switch controller 133, is connected to the first pin 111 of the USB interface 110, i.e. the 7 pin of the USB interface 110 in the drawing, for providing a voltage for the USB interface 110 and switching the communication protocol of the electronic device 200. The first pull-up resistor 131 and the second pull-up resistor 132 with different resistance values and the external power supply connected thereto can provide different external voltages for the switch controller 133. The 2 pin of the switch controller 133 can provide different voltages for the USB interface 110 by being connected to the 7 pin of the USB interface 110. According to the different voltage values of the USB interface 110, the electronic device 200 can switch different communication protocols.

[0060] The first pull-up resistor 131 and the second pull-up resistor 132 connected to the switch controller 133 provide different voltages for the first pin 111 of the USB interface 110. The electronic device 200 can switch communication protocols according to different voltages by being connected to the USB interface 110, thereby avoiding negative effects caused by the disconnection of the flying wire and improving the safety of the protocol switching of the electronic device 200.

[0061] The utility model further provides an electronic device 200, like Figure 3 and Figure 4As shown, it comprises a USB interface 210 and a main circuit board 220. The main circuit board 220 comprises a communication transmission line 221 and a protocol switching circuit 222. The control end of the protocol switching circuit 222 is connected to the first pin 211 of the USB interface 210, i.e. the 7-pin of the USB interface 210 in the figure. The protocol switching circuit 222 is connected between the first end and the second end of the communication transmission line 221, so as to control the conduction state of the communication transmission line 221 according to the potential state of the first pin 211 of the USB interface 210, and switch the communication protocol of the electronic device 200. The second end of the communication transmission line 221 is connected to at least one second pin 212 of the USB interface 210, i.e. the 2-pin and the 3-pin of the USB interface 210 in the figure. The communication transmission line 221 can transmit relevant data in the test process to the USB interface 110 of the protocol switching device 100 according to the at least one second pin 212 of the USB interface 210 connected to the second end thereof. The protocol switching device 100 sends the received test-related data to the external test equipment 300 through the pin header connector 120, so as to confirm whether the relevant functions of the electronic device 200 are correct.

[0062] Please refer to Figure 5 The communication transmission line 221 comprises a USB protocol transmission line 2211. The protocol switching circuit 222 comprises a first control circuit 2221 and a USB switch circuit 2222. The USB switch circuit 2222 is arranged between the first end and the second end of the USB protocol transmission line 2211, so as to control the conduction state of the USB protocol transmission line 2211. The control end of the first control circuit 2221 is connected to the first pin 211 of the USB interface 210. The first end of the first control circuit 2221 is connected to the control end of the USB switch circuit 2222 and an external power supply, so as to control the opening or closing of the USB switch circuit 2222 through the potential state of the first pin 211 of the USB interface 210, thereby controlling the conduction state of the USB protocol transmission line 2211, realizing the switching of the communication protocol of the electronic device 200.

[0063] Please refer to Figure 5The first control circuit 2221 includes a first switch tube 2221a, a first resistor 2221b, a second resistor 2221c and a first pull-up resistor 2221d. The control end of the first switch tube 2221a is connected to the first end of the first resistor 2221b, and the second end of the first resistor 2221b is connected to the first pin 211 of the USB interface 210, so as to control the opening or closing of the first switch tube 2221a according to the potential state of the first pin 211; the first end of the second resistor 2221c is connected to the control end of the first switch tube, and the second end is connected to the second end of the first switch tube; the first end of the first switch tube 2221a is respectively connected to the control end of the USB switch circuit 2222 and the first end of the first pull-up resistor 2221d, the second end of the first pull-up resistor 2221d is connected to an external power supply, and the second end of the first switch tube 2221a is grounded. When the first pin 211 of the USB interface 210 is at high level, the first switch tube 2221a is in the conduction state, and since the second end of the first switch tube 2221a is grounded, the first end of the first switch tube 2221a and the control end of the USB switch circuit 2222 and the first end of the first pull-up resistor 2221d connected thereto are all at low level state, the USB switch circuit 2222 is closed, and the USB protocol transmission line 2211 is in the cut-off state. When the first pin 211 of the USB interface 210 is at low level, the first switch tube 2221a is in the cut-off state, and since the first end of the first switch tube 2221a is respectively connected to the control end of the USB switch circuit 2222 and the first end of the first pull-up resistor 2221d, and the second end of the first pull-up resistor 2221d is connected to an external power supply, the first end of the first switch tube 2221a and the control end of the USB switch circuit 2222 and the first end of the first pull-up resistor 2221d connected thereto are all at high level state, the USB switch circuit 2222 is opened, and the USB protocol transmission line 2211 is in the conduction state.

[0064] Please refer to Figure 6 and Figure 7The communication transmission line 221 further comprises an SMB protocol transmission line 2212 and a UART protocol transmission line 2213, and the protocol switching circuit 222 further comprises an SMB switch circuit 2223, a UART switch circuit 2224 and a second control circuit 2225. The SMB switch circuit 2223 is arranged between the first end and the second end of the SMB protocol transmission line 2212, and the UART switch circuit 2224 is arranged between the first end and the second end of the UART protocol transmission line 2213. The control end of the second control circuit 2225 is connected to the first pin 211 of the USB interface 210 and the first end of the first control circuit 2221, so as to control the opening or closing of the SMB switch circuit 2223 or the UART switch circuit 2224 according to the potential state of the first pin 211 and the potential state of the first end of the first control circuit 2221, thereby controlling the conduction state of the SMB protocol transmission line 2212 or the UART protocol transmission line 2213.

[0065] The potential state of the first pin 211 of the USB interface 210 and the potential state of the first end of the first control circuit 2221 are used to control the communication protocol switching of the electronic device 200, which can not only reserve the original USB protocol on the basis of switching the SMB protocol and the UART protocol, so that the electronic device 200 retains the USB function, but also avoid the adverse effects caused by the implementation of protocol switching through a flying wire, thereby improving the safety of the electronic device 200 in the communication protocol switching process.

[0066] Please refer to Figure 6 and Figure 7The second control circuit 2225 includes a second switch tube 2225a, a third switch tube 2225b, a fourth switch tube 2225c, a fifth switch tube 2225d, a second pull-up resistor 2225e, a third pull-up resistor 2225f, and a fourth pull-up resistor 2225g. The control end of the second switch tube 2225a is connected to the first pin 211 of the USB interface 210. The first end of the second switch tube 2225a is connected to the first end of the second pull-up resistor 2225e. The second end of the second pull-up resistor 2225e is connected to an external power supply. The second end of the second switch tube 2225a is grounded. The control end of the third switch tube 2225b is connected to the first end of the second switch tube 2225a. The first end of the third switch tube 2225b is connected to the first end of the third pull-up resistor 2225f and the control end of the SMB switch circuit 2223. The second end of the third pull-up resistor 2225f is connected to an external power supply. The second end of the third switch tube 2225b is grounded. The control end of the fourth switch tube 2225c is connected to the first end of the third switch tube 2225b. The first end of the fourth switch tube 2225c is connected to the first end of the fourth pull-up resistor 2225g and the UART switch circuit 2224. The second end of the fourth pull-up resistor 2225g is connected to an external power supply. The second end of the fourth switch tube 2225c is grounded. The control end of the fifth switch tube 2225d is connected to the first end of the first control circuit. The first end of the fifth switch tube 2225d is connected to the first end of the fourth pull-up resistor 2225g and the UART switch circuit 2224. The second end of the fifth switch tube 2225d is grounded.

[0067] Please refer again to Figure 6 and Figure 7, if the first pin 211 of the USB interface 210 is in a high level state, and the specific voltage value is less than the threshold voltage of the second switch tube 2225a, the second switch tube 2225a is in an off state. Since the first end of the second switch tube 2225a is connected to the first end of the second pull-up resistor 2225e, and the second end of the second pull-up resistor 2225e is connected to an external power supply, the first end of the second switch tube 2225a and the control end of the third switch tube 2225b connected thereto are both in a high level state, so that the third switch tube 2225b is in a conductive state. Since the second end of the third switch tube 2225b is grounded, the first end of the third switch tube 2225b and the control end of the SMB switch circuit 2223 connected thereto are in a low level state, so that the SMB switch circuit 2223 is opened, and the SMB protocol transmission line 2212 is in a non-conductive state. As can be known from the foregoing, when the first pin 211 of the USB interface 210 is in a high level state, the first end of the first switch tube 2221a is in a low level state, the USB protocol transmission line 2211 is in a non-conductive state, the control end of the fifth switch tube 2225d is connected to the first end of the first control circuit 2221, i.e. the first end of the first switch tube 2221a, so that the control end of the fifth switch tube 2225d is in a low level state, and the fifth switch tube 2225d is in an off state; when the first pin 211 is in a high level state, the first end of the third switch tube 2225b is in a low level state, the control end of the fourth switch tube 2225c is connected to the first end of the third switch tube 2225b, so that the control end of the fourth switch tube 2225c is in a low level state, and the fourth switch tube 2225c is in an off state. Since the first end of the fourth switch tube 2225c is connected to the control end of the UART switch circuit 2224 and the first end of the fourth pull-up resistor 2225g, the second end of the fourth pull-up resistor 2225g is connected to an external power supply, and the fourth switch tube 2225c and the fifth switch tube 2225d are both in an off state, so that the control end of the UART switch circuit 2224 is in a high level state, the UART switch circuit 2224 is turned off, and the UART protocol transmission circuit is turned on. In summary, when the first pin 211 is in a high level state and the voltage value is less than the threshold voltage of the second switch tube 2225a, the SMB protocol transmission line 2212 is in a non-conductive state, the UART protocol transmission line 2213 is in a conductive state, and the USB protocol transmission line 2211 is in a non-conductive state, so that the communication protocol of the electronic device 200 is switched to the UART protocol.

[0068] If the first pin 211 of the USB interface 210 is in a high level state, and the specific voltage value is greater than the threshold voltage of the second switch tube 2225a, the second switch tube 2225a is in a conducting state. Since the second end of the second switch tube 2225a is grounded, the first end of the second switch tube 2225a and the control end of the third switch tube 2225b connected thereto are in a low level state, so that the third switch tube 2225b is in a cut-off state. Since the first end of the third switch tube 2225b is connected to the control end of the SMB switch circuit 2223 and the first end of the third pull-up resistor 2225f, and the second end of the third pull-up resistor 2225f is connected to an external power supply, the first end of the third switch tube 2225b and the control end of the SMB switch circuit 2223 connected thereto are in a high level state. At this time, the SMB switch circuit 2223 is off, and the SMB protocol transmission line 2212 is in a conducting state. As known from the foregoing, when the first pin 211 of the USB interface 210 is in a high level state, the USB protocol transmission line 2211 is disconnected, the first end of the first switch tube 2221a is in a low level state, and the control end of the fifth switch tube 2225d is connected to the first end of the first control circuit, i.e. the first end of the first switch tube 2221a. Therefore, the control end of the fifth switch tube 2225d is in a low level state, and the fifth switch tube 2225d is cut off. When the first pin 211 is in a high level state, the first end of the third switch tube 2225b is in a high level state, and the control end of the fourth switch tube 2225c is connected to the first end of the third switch tube 2225b. Therefore, the control end of the fourth switch tube 2225c is in a high level state, and the fourth switch tube 2225c is conducting. Since the second end of the fourth switch tube 2225c is grounded, the control end of the UART switch circuit 2224 is in a low level state, the UART switch circuit 2224 is open, and the UART protocol transmission line 2213 is in a non-conducting state. In summary, when the first pin 211 is in a high level state and the voltage value is higher than the threshold voltage of the second switch tube 2225a, the SMB protocol transmission line 2212 is conducting, the UART protocol transmission line 2213 is disconnected, and the USB protocol transmission line 2211 is disconnected. Therefore, the communication protocol of the electronic device 200 is switched to the SMB protocol.

[0069] The communication protocol of the electronic device 200 is switched by the potential state of the first pin 211 of the USB interface 210, the specific voltage value thereof, and the voltage threshold of the second switch tube 2225a. This can avoid using a flying wire to switch the protocol of the electronic device 200, reduce the risk of the flying wire falling off, and improve the safety of switching the communication protocol of the electronic device 200.

[0070] Please refer to Figures 5-7Any one of the protocol transmission lines 221 including the USB protocol transmission line 2211, the SMB protocol transmission line 2212 and the UART protocol transmission line 2213 comprises a first signal line 2214 and a second signal line 2215, any one of the switch circuits including the USB switch circuit 2222, the SMB switch circuit 2223 and the UART switch circuit 2224 comprises a first switch module 1a and a second switch module 2a, the first switch module 1a is arranged on the first signal line 2214 and the second signal line 2215, and the second switch module 2a is arranged on the first signal line 2214 and the second signal line 2215. Any one of the first switch module 1a or the second switch module 2a comprises a first switch device 1b and a second switch device 2b, wherein the first switch device 1b is arranged on the first signal line 2214, and the second switch device 2b is arranged on the second signal line 2215.

[0071] In summary, the protocol switching device 100 is connected with the external test equipment 300 through the pin connector 120, and is connected with the electronic equipment 200 through the USB interface 110. The USB interface 110 is connected with the switch control circuit 130 and the USB interface 210 of the electronic equipment 200 respectively. The electronic equipment 200 controls the on-off state of the communication transmission line 221 according to the different voltage values provided by the switch control circuit 130 and the voltage threshold of the second switch tube 2225a, so as to switch the communication protocol of the electronic equipment 200. Through the above scheme, the electronic equipment 200 can switch the communication protocol without using the flying wire, avoids the safety problems caused by the falling of the flying wire, and improves the safety of the communication protocol switching of the electronic equipment 200. In addition, the electronic equipment 200 also maintains the original function of the USB interface 210.

[0072] It should be noted that the apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. According to actual needs, part or all of the modules can be selected to achieve the purpose of the embodiment scheme.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiment methods. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM) and the like.

[0074] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; under the idea of the present application, the technical features of the above examples or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of the different aspects of the present application as described above. In order to be brief, they are not provided in detail; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A protocol switching apparatus characterized by comprising: The USB interface, the row pin connector and the switch control circuit are included. The USB interface is configured to connect an electronic device. The switch control circuit connects a first pin of the USB interface, and the switch control circuit is configured to provide different voltages to the first pin to switch a communication protocol of the electronic device. The row pin connector connects at least one second pin of the USB interface, and the row pin connector is configured to connect an external test device to debug the electronic device.

2. The protocol switching device of claim 1, wherein, The switch control circuit includes a first pull-up resistor, a second pull-up resistor and a switch controller. A first end of the switch controller is connected to a first end of the first pull-up resistor, and a second end of the first pull-up resistor is connected to a first external power supply. A second end of the switch controller is connected to a first end of the second pull-up resistor, and a second end of the second pull-up resistor is connected to a second external power supply. A third end of the switch controller is connected to the first pin of the USB interface.

3. The protocol switching device of claim 2, wherein, The switch control circuit further includes a first pull-down resistor. A first end of the first pull-down resistor is connected to a first end of the switch controller, and a second end of the first pull-down resistor is grounded.

4. An electronic device, comprising: The USB interface is included. The main circuit board includes a communication transmission line and a protocol switching circuit. The protocol switching circuit is connected between a first end and a second end of the communication transmission line, and a control end of the protocol switching circuit is connected to a first pin of the USB interface. A second end of the communication transmission line is connected to at least one second pin of the USB interface. The protocol switching circuit is configured to control a conduction state of the communication transmission line according to a potential of the first pin to switch a communication protocol of the communication transmission line. The communication transmission line includes a USB protocol transmission line.

5. The electronic device of claim 4, wherein, The protocol switching circuit includes a first control circuit and a USB switch circuit, and the USB switch circuit is arranged between a first end and a second end of the USB protocol transmission line. A control end of the first control circuit is connected to the first pin of the USB interface, a first end of the first control circuit is connected to a control end of the USB switch circuit and an external power supply, and a second end of the first control circuit is grounded. The first control circuit is configured to control opening or closing of the USB switch circuit according to the potential of the first pin and the external power supply to control a conduction state of the USB protocol transmission line. The first control circuit includes a first switch tube, a first resistor and a first pull-up resistor.

6. The electronic device of claim 5, wherein, A control end of the first switch tube is connected to a first end of the first resistor, and a second end of the first resistor is connected to the first pin of the USB interface. A first end of the first switch tube is connected to the control end of the USB switch circuit and a first end of the first pull-up resistor respectively, a second end of the first switch tube is grounded, and a second end of the first pull-up resistor is connected to an external power supply. The communication transmission line further includes an SMB protocol transmission line and a UART protocol transmission line.

7. The electronic device of claim 5, wherein, The protocol switching circuit further includes an SMB switch circuit, a UART switch circuit and a second control circuit. ​ The SMB switch circuit is arranged between the first end and the second end of the SMB protocol transmission line, and the UART switch circuit is arranged between the first end and the second end of the UART protocol transmission line. The control end of the second control circuit is connected to the first pin of the USB interface and the first end of the first control circuit, and the second control circuit is configured to control the opening or closing of the SMB switch circuit or the UART switch circuit according to the potential of the first pin and the potential of the first end of the first control circuit, so as to control the conduction state of the SMB protocol transmission line or the UART protocol transmission line.

8. The electronic device of claim 7, wherein, The second control circuit includes a second switch tube, a third switch tube, a fourth switch tube and a fifth switch tube, wherein the control end of the second switch tube is connected to the first pin, the first end of the second switch tube is connected to an external power supply, and the second end of the second switch tube is grounded. The control end of the third switch tube is connected to the first end of the second switch tube, the first end of the third switch tube is connected to an external power supply and the control end of the SMB switch circuit, and the second end of the third switch tube is grounded. The control end of the fourth switch tube is connected to the first end of the third switch tube, the first end of the fourth switch tube is connected to the control end of the UART switch circuit and an external power supply, and the second end of the fourth switch tube is grounded. The control end of the fifth switch tube is connected to the first end of the first control circuit, the first end of the fifth switch tube is connected to the UART switch circuit and an external power supply, and the second end of the fifth switch tube is grounded.

9. The electronic device of claim 7 or 8, wherein, Any one of the USB protocol transmission line, the SMB protocol transmission line or the UART protocol transmission line includes a first signal line and a second signal line. Any one of the USB switch circuit, the SMB switch circuit and the UART switch circuit includes a first switch module and a second switch module, the first switch module is arranged on the first signal line and the second signal line, and the second switch module is arranged on the first signal line and the second signal line.

10. An electronic device protocol switching system, characterized by, The protocol switching device according to any one of claims 1-3; The electronic device according to any one of claims 4-9. ​