Communication interface protection circuit, functional module and electronic equipment
By designing a protection circuit on the USB Type-C interface between robot modules, redefining the pin functions and setting up a short-circuit detection and disconnection mechanism, the short-circuit problem caused by vibration is solved and the safety and reliability of the equipment are improved.
Patent Information
- Application Number
- CN202323486037.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2033-12-19
AI Technical Summary
Multi-PIN communication interfaces between robot modules are easily short-circuited, damaged or burned due to vibration. Existing interfaces cannot effectively solve this problem.
Design a communication interface protection circuit by redefining the pin functions of the USB Type-C interface, including a first protection unit and a second protection unit, which are used to detect and disconnect short-circuit circuits respectively to prevent high or low voltage input to the control device to ensure device safety.
It effectively avoids equipment damage or burning due to short circuit, and improves product safety and reliability.
Smart Images

Figure CN221884306U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information transmission technology, and in particular to a communication interface protection circuit, a functional module and an electronic device. Background Art
[0002] In order to facilitate product iteration and update or convenient maintenance, more and more equipment now adopts modular design. For example, for robots, the main control box and various sensors are two separate functional modules, so an interface is needed to connect the two for communication. The functional modules in the design of robots are varied, but different modules are the same in hardware communication, so a unified communication interface can be designed, such as by improving the USB Type-C interface. However, when the above-mentioned multi-PIN communication interface is used, due to the inherent physical connection characteristics between modules such as robots, for example, when the mechanical dog walks, it will vibrate, which will cause a short circuit between adjacent PIN pins at the interface, thereby causing the robot's main control box or peripherals to be damaged, and in severe cases, it may be burned. Utility Model Content
[0003] In view of this, an embodiment of the present application provides a communication interface protection circuit, a functional module and an electronic device.
[0004] In a first aspect, an embodiment of the present application provides a communication interface protection circuit, which is applied to a functional module, wherein the functional module includes a controller and a communication interface, and the protection circuit is connected in series between the controller and the communication interface; the communication interface is obtained by redefining some pins in a universal serial bus USB Type-C interface, including: four VBUS pins in the USB Type-C interface are configured to input a first voltage; two SBUS pins are configured to input a second voltage, and the first voltage is greater than the second voltage; two CC pins are configured as signal detection terminals; two D+ pins and two D- pins are respectively configured as a serial port sending terminal and a serial port receiving terminal;
[0005] Wherein, the protection circuit includes a first protection unit and a second protection unit;
[0006] The first protection unit is connected to the controller and the signal detection end respectively, so as to prevent the first voltage from being input into the controller through the signal detection end when it is detected that the signal detection end is short-circuited with the VBUS pin for accessing the first voltage;
[0007] The second protection unit is respectively connected to the two SBUS pins in the communication interface and the voltage end in the functional module for accessing the second voltage, so as to disconnect the voltage transmission path between the voltage end and the two SBUS pins when a short circuit is detected between the two SBUS pins.
[0008] In some embodiments, when the functional module acts as a master device, the first voltage and the second voltage are provided by the functional module;
[0009] The first protection unit includes: an RC circuit and a diode, wherein the signal end of the RC circuit is connected to the controller and the anode of the diode respectively, and the cathode of the diode is connected to the signal detection end in the communication interface.
[0010] In some embodiments, when the functional module acts as a slave device, the first voltage and the second voltage are provided by an external device to which the functional module is connected;
[0011] The first protection unit includes: a voltage-dropping resistor, a current-limiting resistor, a switch tube and an RC circuit; one end of the voltage-dropping resistor is connected to the signal detection end in the communication interface, and the other end of the voltage-dropping resistor is connected to the first end of the switch tube;
[0012] The control end of the switch tube is connected to one end of the current limiting resistor, the other end of the current limiting resistor and the power input end of the RC circuit are both used to connect to the supply voltage, and the signal end of the RC circuit is respectively connected to the controller and the second end of the switch tube.
[0013] In some embodiments, the voltage-dropping resistor is a resistor in a 0603 package format.
[0014] In some embodiments, the resistance of the voltage-dropping resistor is selected according to the magnitude of the first voltage and the tube voltage drop of the switch tube.
[0015] In some embodiments, the RC circuit includes a first resistor and a first capacitor connected in series, wherein an intermediate series node between the first resistor and the first capacitor serves as the signal end of the RC circuit, the other end of the first resistor serves as the power input end of the RC circuit, and the other end of the first capacitor is grounded.
[0016] In some embodiments, the second protection unit includes a sampling circuit, a comparator, a power management module and a switch module; wherein the switch module is arranged in a voltage transmission path between the second voltage terminal in the functional module and the two SBUS pins;
[0017] The sampling end of the sampling circuit is connected to the two SBUS pins for sampling the real-time voltage on the SBUS pins; the comparator is used to compare the real-time voltage with the reference voltage to output a corresponding control signal; the power management module is used to control the on or off of the switch module according to the control signal.
[0018] In some embodiments, the switch module includes two symmetrically arranged MOS tubes;
[0019] The drains of the two MOS tubes are connected, the sources are respectively connected to the second voltage terminal and the SBUS pin, and the gates respectively control the power management modules.
[0020] In some embodiments, the sampling circuit includes two voltage-dividing resistors connected in series, wherein a series node of the two voltage-dividing resistors serves as a real-time voltage output terminal of the sampling circuit.
[0021] In a second aspect, an embodiment of the present application provides a functional module, including the communication interface protection circuit.
[0022] In a third aspect, an embodiment of the present application provides an electronic device, comprising a main control box and at least one peripheral device, wherein the peripheral device comprises at least one of a sensor, a servo, and a motor, wherein the main control box comprises the communication interface protection circuit; and each of the peripheral devices comprises the communication interface protection circuit.
[0023] The embodiments of the present application have the following beneficial effects:
[0024] The present application proposes a protection circuit for a communication interface, which is applied to a functional module, wherein the functional module includes a controller and a communication interface, wherein the communication interface is obtained by redefining some pins in a universal serial bus USB Type-C interface; wherein the protection circuit is connected in series between the controller and the communication interface, and the protection circuit includes a first protection unit and a second protection unit, wherein the first protection unit is respectively connected to the controller and the signal detection end; and the second protection unit is respectively connected to two SBUS pins in the communication interface and a voltage end in the functional module for accessing a second voltage. The protection circuit can prevent the device controller from being damaged or burned due to a short circuit between the relevant PIN pins involved in the voltage input in the communication interface, thereby improving product safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 The pin definition of the 24-pin USB Type-C interface is shown;
[0027] Figure 2 A schematic diagram showing pin definitions of the communication interface of Example 1 of the present application is shown;
[0028] Figure 3 A schematic diagram of the structure of the functional module of Embodiment 2 of the present application is shown;
[0029] Figure 4 A structural schematic diagram of an interface circuit in a functional module of Embodiment 2 of the present application is shown;
[0030] Figure 5 A schematic diagram of the structure of the communication interface protection circuit of Example 3 of the present application is shown;
[0031] Figure 6 A schematic diagram showing the structure of a first protection unit applied to a communication interface protection circuit of a master device is shown;
[0032] Figure 7 A schematic diagram showing the structure of a first protection unit applied to a communication interface protection circuit of a slave device is shown;
[0033] Figure 8 A schematic diagram showing the structure of a second protection unit of a communication interface protection circuit according to Embodiment 3 of the present application is shown;
[0034] Fig. 9 A structural schematic diagram of an electronic device according to Embodiment 5 of the present application is shown.
[0035] Description of main component symbols:
[0036] 10-functional module; 20-electronic device; 100-communication interface; 110-controller; 120-interface circuit; 130-protection circuit; 131-first protection unit; 132-second protection unit; DET-signal detection end; UART TX-serial port transmitting end; UARTRX-serial port receiving end; VCC1-first voltage; VCC2-second voltage; 101-master control box; 102-peripheral; 111-master controller; 112-slave controller. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0038] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0039] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0040] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0041] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0042] A new communication interface 100 is proposed in the present application, which is obtained by redefining some pins in the universal serial bus USB Type-C interface, thereby realizing the functional expansion of the USB Type-C interface and effectively solving various problems of the existing modular connection interface.
[0043] In order to more conveniently understand the communication interface 100 in the present application, a commonly used universal serial bus USB Type-C interface is briefly introduced here. Figure 1As shown in the figure, it is a typical 24-pin pin definition of the universal serial bus USB Type-C interface. It can be understood from the central symmetrical pin distribution that the USB Type-C interface is an interface that supports insertion from both sides. It also supports the USB PD (Power Delivery) charging protocol interface, and has a higher transmission rate. It can be applied to various devices and has a wide range of applications.
[0044] Based on the above-mentioned USB Type-C interface, the structure of the communication interface 100 is described below in conjunction with some specific embodiments.
[0045] Example 1
[0046] For example, Figure 2 As shown, the present application proposes a new communication interface 100, which redefines the functions of some pins in the above-mentioned USB Type-C interface, specifically including: the four VBUS pins (i.e. A4, B4, A9 and B9) in the USB Type-C interface are all configured to input the first voltage VCC1; the two SBUS pins (i.e. A8, B8) are configured to input the second voltage VCC2, wherein the first voltage VCC1 is greater than the second voltage VCC2. The two CC pins (i.e. A5, B5) are configured as the signal detection terminal DET; the two D+ pins (i.e. A6, B6) and the two D- pins (i.e. A7, B7) are respectively configured as the serial port transmitting terminal UART TX and the serial port receiving terminal UART RX.
[0047] It can be understood that the pin for inputting the first voltage VCC1 will be redefined as a high-voltage power pin, and the pin for inputting the second voltage VCC2 will be redefined as a low-voltage power pin. In other words, the new communication interface 100 will be able to provide two different sizes of power supplies to achieve high and low voltage separation. On the one hand, it is safer. On the other hand, the unified communication interface 100 can greatly improve the compatibility of the functional module 10 as the main device, especially multiple different types of functional modules 10 can be connected, so there is no need to set different communication interfaces 100 for peripherals with different power supply types.
[0048] For example, similar to a motor module, its power supply voltage is usually around 12V or 24V, while similar to a camera, storage module, voice module, etc., its power supply voltage is usually around 5V. In this case, the above-mentioned communication interface 100 can be used for connection.
[0049] Furthermore, the USB Type-C interface itself supports the connection of external devices. In this application, the two CC pins are used as signal detection pins to determine the access status of external devices, thereby achieving further access to the connected peripherals. As an optional solution, the communication interface 100 can also meet the cascading requirements of multiple peripherals.
[0050] In addition, by using two pairs of D+ and D- pins as a set of two-wire serial ports for data transmission, full-duplex synchronous communication can also be achieved, that is, data can be received and sent at the same time to achieve the purpose of timely data processing, which can better meet the needs of efficient data processing.
[0051] The communication interface 100 of this embodiment redefines the functions of some pins of the current mainstream USB Type-C interface, including realizing high and low voltage separation, bidirectional data transmission of a two-wire serial port, and peripheral access detection, etc. In addition, combined with the original functions of the USB Type-C interface, it is used in scenarios such as robots to replace the original engineering interface, which can well solve the problems of the existing engineering interface, such as reliability, limited number of pins, inability to meet cascading requirements, inability to transmit and receive synchronously, and inability to shield the wires.
[0052] Example 2
[0053] Based on the communication interface 100 of the above-mentioned embodiment 1, the present application also proposes a functional module 10. It can be understood that the functional module 10 refers to a functional module provided with the above-mentioned new communication interface 100, which can be used as a master device or a slave device to connect other devices. For example, when the functional module 10 is a motor / servo module, it can be connected to the main control box 101 of the robot through the communication interface 100. Alternatively, when the functional module 10 is the main control box 101 of the robot, it can be used to access various peripherals 102, etc. It can be understood that the form and function of the functional module 10 are not limited here, as long as it supports the above-mentioned communication interface 100.
[0054] For example, Figure 3 As shown, the functional module 10 includes: a controller 110 and an interface circuit 120, wherein the interface circuit 120 includes the communication interface 100 in the above-mentioned embodiment 1. It can be understood that the communication interface 100 is used to realize the connection between the functional module 10 and the external device, and then realize data transmission between the two.
[0055] Specifically, the four VBUS pins of the communication interface 100 in the functional module 10 are connected in parallel and used to access the first voltage VCC1, and the two SBUS pins are connected in parallel and used to access the second voltage VCC2, wherein the voltage of VCC1 is greater than that of VCC2. In addition, the redefined signal detection terminal DET (i.e., A5, B5), the serial port transmitting terminal UART TX (i.e., A6, B6) and the serial port receiving terminal UART RX (i.e., A7, B7) are all connected to the controller 110 in the functional module 10.
[0056] When an external device needs to be connected to the functional module 10, exemplarily, the controller 110 determines the access status of the external device by detecting the level of the signal detection terminal DET (i.e., A5, B5). For example, if it is detected that the level of the signal detection terminal DET is pulled low, it can be determined that the external device has been connected to the functional module 10, otherwise it is determined that it has not been connected. Furthermore, after access, if data transmission is required, as a preferred solution, the controller 110 can realize bidirectional data transmission between the functional module 10 and the external device by controlling the two signal lines of the serial port transmitting terminal UART TX and the serial port receiving terminal UART RX, thereby improving data transmission efficiency. Optionally, after determining access, the signal detection terminal DET can also be reused to realize other functions such as fast charging, that is, to realize some existing protocols of the USB Type-C interface, which are not limited here.
[0057] It is worth noting that the functional module 10 in the present application can be used as a master device, that is, it can control the connected external device, or as a slave device, that is, a controlled device that can receive instructions from the connected master device and respond accordingly. For example, when used as a master device, it can be a main control box 101 in a robot, etc.; when used as a slave device, it can be a peripheral device 102 in a robot, such as a joint servo, motor, sensor, display, etc. Alternatively, when used as a master device, it can be a computer host; when used as a slave device, it can be a USB flash drive or mobile hard disk that needs to be connected to a computer. Alternatively, when used as a master device, it can be a laptop computer; when used as a slave device, it can be a mobile terminal that needs to be connected to a laptop computer, such as a mobile phone, a tablet, etc., through which the communication interface 100 can be used to draw power from the laptop computer for charging, and can also perform two-way data transmission, etc.
[0058] It can be understood that when the functional module 10 acts as a master device, the functional module 10 is used to output the first voltage VCC1 and the second voltage VCC2 to the connected external device through the communication interface 100; that is, the master device can supply power to the external device through the communication interface 100. When the functional module 10 acts as a slave device, the functional module 10 is used to obtain VCC1 and the second voltage VCC2 from the connected external device through the communication interface 100, that is, the slave device itself may not have a power supply, and can obtain power from the connected external device through the communication interface 100.
[0059] As an optional solution, the interface circuit 120 further includes a first filter capacitor C1 and a second filter capacitor C2. Figure 4 As shown, the first filter capacitor C1 is provided between the first voltage VCC1 and the four VBUS pins, and is used to filter the first voltage VCC1 input to the communication interface 100; similarly, the second filter capacitor C2 is provided between the first voltage VCC1 and the two SBUS pins, and is used to filter the second voltage VCC2, thereby stabilizing the voltage input to the communication interface 100. It can be understood that the number of the first filter capacitor C1 and the second filter capacitor C2 here is not limited to one, for example, it can be composed of multiple capacitors in parallel, which can be set according to actual needs.
[0060] Example 3
[0061] Taking into account that in actual use, for example, when the robot is walking or jumping, due to the inherent physical characteristics of the functional module 10 or the electronic device 20, vibration may cause a short circuit between the PIN pins at the interface, especially the communication interface 100 of the present application supports high voltage input / output, to avoid damage or burning of the controller 110 when a short circuit occurs, the present application proposes a protection circuit 130 for the communication interface 100 in the above-mentioned embodiment 1, which can be applied to the functional module 10 in the above-mentioned embodiment 2.
[0062] For example, Figure 5 As shown, the protection circuit 130 is located between the controller 110 and the communication interface 100 in the functional module 10. Specifically, the protection circuit 130 includes a first protection unit 131 and a second protection unit 132, wherein the first protection unit 131 is respectively connected to the controller 110 and the signal detection terminal DET, so as to prevent the first voltage VCC1 in the communication interface 100 from being input into the controller 110 through the signal detection terminal DET when a short circuit is detected between the signal detection terminal DET and the VBUS pin for accessing the first voltage VCC1.
[0063] The second protection unit 132 is respectively connected to the two SBUS pins in the communication interface 100 and the second voltage VCC2 terminal in the functional module 10 for accessing the second voltage VCC2, so as to disconnect the voltage transmission path between the second voltage VCC2 terminal and the two SBUS pins when a short circuit is detected between the two SBUS pins.
[0064] Understandably, combined Figure 2 It can be seen from the interface pin definition shown that since the signal detection terminal DET (i.e. A5, B5) is adjacent to the pin for inputting the first voltage VCC1 (i.e. A4, B4), there may be a short circuit between the signal detection terminal DET and the first voltage VCC1, and the controller 110 in the functional module 10 is connected to the signal detection terminal DET, so the present application will set a protection unit here to prevent the connected high voltage from burning the controller 110. At the same time, since the pin for inputting the first voltage VCC1 (i.e. A9, B9) is also adjacent to the pin for inputting the second voltage VCC2 (i.e. A8, B8), there may be a short circuit between the first voltage VCC1 and the second voltage VCC2, so the present application will also set a protection unit in the second voltage VCC2 connection path between the communication interface 100 and the functional module 10 to prevent the connected high voltage from burning the controller 110.
[0065] It is worth noting that when the functional module 10 serves as a master device and a slave device, since the providers of the first voltage VCC1 and the second voltage VCC2 are different, the first protection unit 131 will also be different.
[0066] In one embodiment, when the functional module 10 is used as a master device, Figure 6 As shown, the first protection unit 131 includes: an RC circuit and a diode D1 , wherein the signal end of the RC circuit is connected to the controller 110 and the anode of the diode D1 respectively, and the cathode of the diode D1 is connected to the signal detection end DET in the communication interface 100 .
[0067] As an implementable manner, the above-mentioned RC circuit includes a first resistor R1 and a first capacitor C1 connected in series, wherein the middle series node between the first resistor R1 and the first capacitor C1 serves as the signal end of the RC circuit, and the other end of the first resistor R1 serves as the power input end VDD of the RC circuit for connecting to the power supply voltage required by the protection circuit 130, and the other end of the first capacitor C1 is grounded.
[0068] It can be understood that when the signal detection terminal DET is short-circuited with the adjacent VBUS pin, its level is pulled up to the first voltage VCC1. Since the diode D1 has the characteristic of unidirectional conduction, the generated short-circuit large current cannot flow into the control terminal, thereby playing a protective role. For example, the diode D1 can be a Schottky diode with a small voltage drop.
[0069] In another embodiment, when the functional module 10 acts as a slave device, Figure 7 As shown, the first protection unit 131 includes: a voltage dropping resistor R0, a current limiting resistor R3, a switch tube Q1 and an RC circuit, wherein one end of the voltage dropping resistor R0 is connected to the signal detection end DET in the communication interface 100, and the other end of the voltage dropping resistor R0 is connected to the first end of the switch tube Q1; the control end of the switch tube Q1 is connected to one end of the current limiting resistor R3, and the other end of the current limiting resistor R3 is connected to the power input end VDD of the RC circuit and is used to connect the power supply voltage, and the signal end of the RC circuit is respectively connected to the controller 110 and the second end of the switch tube Q1.
[0070] It can be understood that under normal working conditions, the switch tube Q1 is in the on state, and since its source (S terminal) is grounded through a capacitor, the MCU_detect pin in the controller 110 used to connect the signal detection terminal DET is always pulled low, and the voltage of the drain (D terminal) is also 0 V. When a short circuit occurs, the high-voltage signal generates a large voltage drop after passing through the voltage-dropping resistor R0, and there is a tube voltage drop on the switch tube Q1. Therefore, the voltage on the MCU_detect pin can still be maintained in a smaller voltage range, usually close to 0 V, so the controller 110 is protected from being broken down by the high voltage.
[0071] The resistance of the voltage-dropping resistor R0 is selected according to the first voltage VCC1 and the voltage drop of the switch tube Q1. For example, assuming that the first voltage VCC1 is 12.6V, the voltage-dropping resistor R0 bears all the voltage-dropping power of 12.6*12.6 / 2K=70mW. As an optional solution, the voltage-dropping resistor R0 can be a resistor in a 0603 package format.
[0072] In some embodiments, for example, Figure 8 As shown, the second protection unit 132 includes a sampling circuit, a comparator U1, a power management module U2 and a switch module U3; wherein the switch module U3 is arranged in the voltage transmission path between the second voltage VCC2 terminal and the two SBUS pins in the functional module 10; the sampling terminal of the sampling circuit is connected to the two SBUS pins. In this embodiment, the sampling circuit is used to sample the real-time voltage on the SBUS pin; the comparator U1 is used to compare the real-time voltage with the reference voltage Vref to output a corresponding control signal; the power management module U2 is used to control the on or off of the switch module U3 according to the control signal.
[0073] As an implementable approach, Figure 8 As shown, the sampling circuit comprises two voltage-dividing resistors R4 and R5 connected in series, wherein the series node of the two voltage-dividing resistors R4 and R5 serves as the real-time voltage output terminal of the sampling circuit.
[0074] As an implementable manner, the switch module U3 includes two symmetrically arranged MOS tubes; specifically, the drains of the two MOS tubes are connected, the sources are respectively connected to the second voltage VCC2 terminal and the SBUS pin, and the gates respectively control the power management module U2.
[0075] Taking the first voltage VCC1 as 12.6V and the second voltage VCC2 as 5V as an example, when a short circuit is detected between the two voltages, that is, the A8 and B8 pins are pulled to a high voltage by the A9 and B9 pins, the voltage is divided by two voltage-dividing resistors R21 and R23, and the sampled voltage value is compared with the reference voltage Vref through the comparator U1. For example, the reference voltage Vref here is set to 1.2V. Therefore, when the voltage value is greater than 1.2V, the comparator U1 outputs a trigger signal to the power management module U2. At this time, the power management module U2 will turn off the internal MOS tube, thereby protecting the 5V power supply connected to the functional module 10 from being burned.
[0076] As an optional solution, the comparator U1, the power management module U2 and the switch module U3 may be implemented by discrete devices or integrated chips, which is not limited here.
[0077] It can be understood that in this embodiment, by providing the above two short-circuit protection units between the communication interface 100 and the controller 110 in the functional module 10 , the communication interface 100 can be made more stable and the safety of the functional module 10 can be improved.
[0078] Example 4
[0079] Based on the functional module 10 in the above embodiment 2, referring to the above Figure 5 The present application also proposes an improved functional module 30. Exemplarily, the improved functional module 30 also includes the communication interface 100 protection circuit 130 of the above-mentioned embodiment 3.
[0080] It can be understood that the options regarding the protection circuit 130 of the communication interface 100 described above are also applicable to this embodiment and will not be described again here.
[0081] Example 5
[0082] Based on the improved functional module 30 of the above-mentioned embodiment 4, the present application also proposes an electronic device 20. For example, the electronic device 20 may include but is not limited to various types of robot systems, such as industrial robots, educational robots, medical robots, accompanying robots, etc. In addition, the electronic device 20 may also be a vehicle that realizes intelligent driving based on a variety of peripherals 102. In other words, the present application does not limit the formal structure of the electronic device 20.
[0083] Exemplarily, the electronic device 20 includes a main control box 101 and a preset number of peripherals 102, wherein the main control box 101 and each peripheral 102 are implemented using the structure of the functional module 10 of the above-mentioned embodiment 3. It can be understood that the preset number here can be determined according to actual needs and can be one or more. The electronic device 20 refers to a system device that includes a master device and one or more slave devices at the same time, such as a robot system.
[0084] In one embodiment, Fig. 9 As shown, the main control box 101 includes a main controller 111 and at least one communication interface 100. When there are multiple communication interfaces 100, they can be used to connect multiple peripherals 102. Each peripheral 102 includes a slave controller 112 and at least one communication interface 100. When there are multiple communication interfaces 100, in addition to being used to connect the main control box 101, they can also be used to cascade with other peripherals 102, such as Figure 6 That is to say, the main control box 101 and the peripheral device 102, as well as different peripheral devices 102, can communicate with each other through the communication interface 100 in this application.
[0085] For example, the above peripherals 102 may include, but are not limited to, at least one of a sensor, a steering gear, a motor, etc. Specifically, one or more combinations of a distance detection sensor, a touch sensor, a torque sensor, a visual sensor, etc. Further, the distance detection sensor may be an infrared sensor, a laser radar, etc.; the touch sensor may be a capacitive touch screen, etc.; the visual sensor may be a camera device, etc.
[0086] In addition, the main control box 101 of this embodiment also includes the communication interface 100 protection circuit 130 in the above embodiment 3; each peripheral device 102 also includes the communication interface 100 protection circuit 130 in the above embodiment 3. It is worth noting that the first protection unit 131 in the main control box 101 will adopt the above design solution as the master device; and the first protection unit 131 in each peripheral device 102 will adopt the above design solution as the slave device. For details, please refer to the content in the above embodiment 3, which will not be repeated here.
[0087] It can be understood that the electronic device 20 of this embodiment is provided with the communication interface 100 and circuit protection in the above embodiment, and can implement short-circuit protection from different sides, thereby minimizing damage to the controller 110 caused by short circuits in different situations.
[0088] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0089] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0090] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A communication interface protection circuit, characterized in that: Applied in a functional module, the functional module includes a controller and a communication interface, wherein the communication interface is obtained by redefining some pins in a universal serial bus USB Type-C interface, including: four VBUS pins in the USB Type-C interface are configured to input a first voltage; two SBUS pins are configured to input a second voltage, the first voltage is greater than the second voltage; two CC pins are configured as signal detection terminals; two D+ pins and two D- pins are respectively configured as a serial port sending terminal and a serial port receiving terminal; Wherein, the protection circuit includes a first protection unit and a second protection unit; The first protection unit is connected to the controller and the signal detection end respectively, so as to prevent the first voltage from being input into the controller through the signal detection end when it is detected that the signal detection end is short-circuited with the VBUS pin for accessing the first voltage; The second protection unit is respectively connected to the two SBUS pins in the communication interface and the voltage end in the functional module for accessing the second voltage, so as to disconnect the voltage transmission path between the voltage end and the two SBUS pins when a short circuit is detected between the two SBUS pins.
2. The communication interface protection circuit according to claim 1, characterized in that: When the functional module serves as a master device, the first voltage and the second voltage are provided by the functional module; The first protection unit includes: an RC circuit and a diode, wherein the signal end of the RC circuit is connected to the controller and the anode of the diode respectively, and the cathode of the diode is connected to the signal detection end in the communication interface.
3. The communication interface protection circuit according to claim 1, characterized in that: When the functional module acts as a slave device, the first voltage and the second voltage are provided by an external device connected to the functional module; The first protection unit includes: a voltage-dropping resistor, a current-limiting resistor, a switch tube and an RC circuit; one end of the voltage-dropping resistor is connected to the signal detection end in the communication interface, and the other end of the voltage-dropping resistor is connected to the first end of the switch tube; The control end of the switch tube is connected to one end of the current limiting resistor, the other end of the current limiting resistor and the power input end of the RC circuit are both used to connect to the supply voltage, and the signal end of the RC circuit is respectively connected to the controller and the second end of the switch tube.
4. The communication interface protection circuit according to claim 3, characterized in that: The voltage-dropping resistor is a resistor in 0603 package format; wherein the resistance value of the voltage-dropping resistor is selected according to the magnitude of the first voltage and the tube voltage drop of the switching tube.
5. The communication interface protection circuit according to claim 3 or 4, characterized in that: The RC circuit includes a first resistor and a first capacitor connected in series, wherein an intermediate series node between the first resistor and the first capacitor serves as the signal end of the RC circuit, the other end of the first resistor serves as the power input end of the RC circuit, and the other end of the first capacitor is grounded.
6. The communication interface protection circuit according to claim 1, characterized in that: The second protection unit includes a sampling circuit, a comparator, a power management module and a switch module; wherein the switch module is arranged in a voltage transmission path between the second voltage terminal in the functional module and the two SBUS pins; The sampling end of the sampling circuit is connected to the two SBUS pins for sampling the real-time voltage on the SBUS pins; the comparator is used to compare the real-time voltage with the reference voltage to output a corresponding control signal; the power management module is used to control the on or off of the switch module according to the control signal.
7. The communication interface protection circuit according to claim 6, characterized in that: The switch module includes two symmetrically arranged MOS tubes; The drains of the two MOS tubes are connected, the sources are respectively connected to the second voltage terminal and the SBUS pin, and the gates respectively control the power management modules.
8. The communication interface protection circuit according to claim 6, characterized in that: The sampling circuit comprises two voltage-dividing resistors connected in series, wherein a series node of the two voltage-dividing resistors serves as a real-time voltage output terminal of the sampling circuit.
9. A functional module, characterized in that: It comprises the communication interface protection circuit as claimed in any one of claims 1 to 8.
10. An electronic device, characterized in that: The electronic device includes a main control box and a preset number of peripherals, wherein the peripherals include at least one of a sensor, a servo, and a motor, wherein the main control box and each of the peripherals include a communication interface protection circuit as described in any one of claims 1 to 8.
