Type-C interface with UART communication function
By introducing the UART communication function on the Type-C interface and utilizing unused pins to transmit data, the problem of time-consuming and labor-intensive upgrades of tool products in the existing technology is solved, and convenient software upgrades are achieved.
Patent Information
- Application Number
- CN202423173194.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2034-12-23
AI Technical Summary
The Type-C interface of existing tool products has limited IO resources, making online upgrades time-consuming and labor-intensive, and requiring the device to be disassembled for upgrades.
A Type-C interface with UART communication function is designed. The unused SBU1 and SBU2 pins on the Type-C interface are used to transmit UART serial port data. Communication between the PC and the MCU of the tool product is achieved through a signal conversion chip, simplifying the upgrade process.
It makes software upgrades for tool products simple and convenient, without the need for specialized equipment, thus improving upgrade efficiency.
Smart Images

Figure CN223461868U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to Type-C interface technical field, concretely relates to a Type-C interface with UART communication function. BACKGROUND
[0002] USB Type-C is a kind of USB interface appearance standard, has than Type-A and Type-B smaller volume, can be applied to PC (master device) and can be applied to the interface type of external device (slave, such as mobile phone).
[0003] The tool class product of current market adoption all has TYPE-C interface charging function, and these tool class products do not have online upgrade function because of the problem of IO resource shortage, need to be disassembled to use the programmer to update after product assembly, leading to time-consuming and labor-consuming in subsequent upgrade. UTILITY MODEL CONTENT
[0004] In view of the above-mentioned defects of prior art, the utility model aims at providing a Type-C interface with UART communication function, to solve the problem of time-consuming and labor-consuming in upgrading by disassembling tool class product in prior art.
[0005] To realize the above-mentioned purpose and other related purposes, the utility model provides a Type-C interface with UART communication function, including PC, MCU, Type-C interface U1 and signal conversion chip U2, USB interface module is equipped in the PC, and UART serial port module is equipped in MCU;
[0006] Type-C interface U1 at least includes VBUS pin, GND pin, DP1 pin, DP2 pin, DN1 pin, DN2 pin, SUB1 pin and SUB2 pin, and VBUS pin and GND pin are used to power supply outside;
[0007] The USB interface module is equipped with VDD port, GND port, TX1 port and RX1 port at least;The DP2 pin and DN2 pin of Type-C interface U1 are connected with the VDD port and GND port of USB interface respectively;
[0008] The UART serial port module is equipped with TX2 port and RX2 port at least, and TX2 port and RX2 port are connected with the SUB1 pin and SUB2 pin of Type-C interface U1 respectively;
[0009] The signal conversion chip U3 at least includes a TXD pin, an RXD pin, a USBDP pin and a USBDN pin, and the TX1 port and the RX1 port of the USB interface module are connected with the RXD pin and the TXD pin of the signal conversion chip U respectively, and the DP1 pin and the DN1 pin of the Type-C interface U1 are connected with the USBDP pin and the USBDN pin of the signal conversion chip U3 respectively.
[0010] In an embodiment of the utility model, single pole double throw switch S is equipped between USB interface module and signal conversion chip U3, the common terminal of single pole double throw switch S connects the TXD pin of signal conversion chip U3, one connecting terminal connects the TX1 port of USB interface module, the other connecting terminal is connected with pull up resistor R7, and the other end of pull up resistor R7 is grounded.
[0011] In an embodiment of the utility model, inductor L is arranged between the VBUS pin and the GND pin of the Type-C interface U1.
[0012] In an embodiment of the utility model, the Type-C interface U1 is further provided with CC1 pin and CC2 pin, and the CC1 pin and the CC2 pin are matched to be used for plug-in detection, identification of positive and negative insertion, negotiation to establish DFP and UFP identity, configuration of VBUS and USB PD protocol and support of blind insertion and positive and negative insertion.
[0013] In an embodiment of the utility model, the Type-C interface U1 is further provided with CC1 pin and CC2 pin, and the CC1 pin and the CC2 pin are matched to be used for plug-in detection, identification of positive and negative insertion, negotiation to establish DFP and UFP identity, configuration of VBUS and USB PD protocol and support of blind insertion and positive and negative insertion.
[0014] In an embodiment of the utility model, the chip model of the signal conversion chip U3 is FT232RL.
[0015] As described above, the Type-C interface with UART communication function has the following beneficial effects:
[0016] The utility model discloses a bin file is transmitted between PC and tool product through the Type-C interface with UART communication function, and the bin file is sent to the UART serial port module of the MCU of tool product through the SBU1 and SBU2 pins of Type-C interface U1 that do not use normally, and the bin file is received by MCU and the original function program is covered, and the purpose of software upgrade is reached. BRIEF DESCRIPTION OF DRAWINGS
[0017] Fig. 1 The circuit principle diagram of the Type-C interface with UART communication function is shown.
[0018] Fig. 2 The schematic diagram of the Type-C interface with UART communication function is shown. DETAILED DESCRIPTION
[0019] The following is a specific embodiment of the utility model, and those skilled in the art can easily understand other advantages and effects of the utility model from the content disclosed in the specification.
[0020] Please refer to Figs. 1-2 It is understood that the structure, proportion, size and the like shown in the drawings attached to the specification are only used to cooperate with the content disclosed in the specification for understanding and reading by those skilled in the art, and not used to limit the limiting conditions that the utility model can be implemented, so it does not have the substantial meaning in technology, and any modification of structure, change of proportion relationship or adjustment of size, under the condition that it does not affect the effect and the purpose that the utility model can produce and can achieve, should still fall within the range that the technical content disclosed in the utility model can cover.
[0021] Please refer to Figs. 1-2The utility model provides a Type -C interface with UART communication function, including PC, tool class product's MCU, Type -C interface U1 and signal conversion chip U2, be equipped with USB interface module 1 in the PC, be equipped with UART serial ports module 2 on MCU, Type -C interface U1 at least includes VBUS pin, GND pin, DP1 pin, DP2 pin, DN1 pin, DN2 pin, SUB1 pin and SUB2 pin, VBUS pin, GND pin are used to power supply outside, USB interface module 1 at least is equipped with VDD port, GND port, TX1 port and RX1 port, the DP2 pin and DN2 pin of Type -C interface U1 are connected with the VDD port and GND port of USB interface respectively, UART serial ports module 2 at least is equipped with TX2 port and RX2 port, TX2 port and RX2 port are connected with the SUB1 pin and SUB2 pin of Type -C interface U1 respectively, the chip model of signal conversion chip U3 selection is FT232RL, and FT232RL chip is a kind of USB conversion UART chip, the chip has highly integrated function, can realize the conversion between USB interface and UART interface, signal conversion chip U2 at least includes TXD pin, RXD pin, USBDP pin, USBDN pin, the TX1 port and RX1 port of USB interface module 1 are connected with the RXD pin and TXD pin of signal conversion chip U respectively, the DP1 pin and DN1 pin of Type -C interface U1 are connected with the USBDP pin and USBDN pin of signal conversion chip U3 respectively. TX1 port and TX2 port are used for the sending of data, in serial communication, TX is responsible for sending data from device A to device B. Specifically, the TX pin of device A is connected to the RX pin of device B, thereby realizing the data sending function. The data sent by TX can be text, file, image and other forms; RX1 port and RX2 port are used for the reception of data, in serial communication, RX is responsible for receiving data from device B to device A; specifically, the RX pin of device A is connected to the TX pin of device B, thereby realizing the data receiving function; the received data is decoded and processed, and provided to upper application program or stored for subsequent use.
[0022] Single-pole double-throw switch S is arranged between the USB interface module 1 and the signal conversion chip U3, the common terminal of the single-pole double-throw switch S is connected to the TXD pin of the signal conversion chip U3, one of the connection terminals is connected to the TX1 port of the USB interface module 1, and the other connection terminal is connected to the pull-up resistor R7, and the other end of the pull-up resistor R7 is grounded; the arrangement of the single-pole double-throw switch S makes the use of the UART function between the PC and the Type-C interface U1 controllable, prevents the automatic operation of the expanded UART function, and ensures the normal use of the Type-C interface charging and data transmission.
[0023] The utility model discloses a bin file is sent through the USB interface module 1 of PC, and the signal conversion chip U2 is used to convert the serial port data into the communication data that Type-C interface can receive, and the bin file that PC sends is transmitted to the UART serial port module 2 of the MCU of tool product through the SBU1 and SBU2 pin that Type-C interface U1 usually does not use, and the MCU receives the bin file and covers the original function program, to reach the purpose of software upgrade.
[0024] The inductor L is arranged between the VBUS pin and the GND pin of the Type-C interface U1, and can play a filtering role between the VBUS pin and the GND pin of the Type-C interface U1, effectively suppresses high-frequency noise and interference signals, helps to reduce electromagnetic radiation on the power line, ensures the stability and reliability of the circuit, protects the circuit from external electromagnetic interference by filtering out high-frequency noise, thereby improving the anti-interference ability of the system, and the inductor L can also play a protection role, when a USB device is inserted or pulled out, the inductor L can limit the current change rate, prevent transient high current from causing damage to the circuit, and the inductor L can also help to stabilize the voltage, ensure that the voltage of the power line fluctuates within a reasonable range, thereby protecting other elements in the circuit from damage.
[0025] The Type-C interface U1 is further provided with CC1 pin and CC2 pin, and the CC1 pin and the CC2 pin are matched to be used for plug-in detection, identification of forward and reverse plug-in, negotiation of establishment of DFP and UFP identity, configuration of VBUS and USB PD protocol, and support of blind plug-in and forward and reverse plug-in; specifically, the plug-in detection includes that when the DFP (downstream port) is connected with the UFP (upstream port), the CC pin on the DFP detects the pull-down resistor from the UFP, so as to identify that the UFP device has been connected, and to open the MOSFET on the VBUS to supply power for the UFP device; the identification of forward and reverse plug-in includes that by detecting the level change of the CC pin, the insertion direction of the Type-C cable can be determined, when the DFP detects that the CC1 is pulled down, it represents that the UFP is inserted upward; on the contrary, when the CC2 is detected to be pulled down, it represents that the UFP is inserted downward; the negotiation of establishment of DFP and UFP identity includes that the DRP (dual role port) can be switched between the DFP and the UFP; when the DRP port is connected with the DFP device, the DRP is switched to the UFP device; similarly, the DRP can also be switched to the DFP device; when two DRP devices are connected, the identity of the DFP and the UFP is random; the configuration of VBUS and USB PD protocol includes that the CC pin is also used for configuration of the current mode and the voltage of the VBUS, and supports the USB Power Delivery (USB PD) protocol; through the voltage and current information on the CC pin, the DFP can inform the UFP of its power supply capability, for example, when the DFP provides the CC pin with a current of 330uA, the voltage on the CC pin is 1.683V, and the DFP is identified as vRd-3.0 standard; the support of blind plug-in and forward and reverse plug-in includes that the Type-C interface supports blind plug-in and forward and reverse plug-in, and the user does not need to distinguish the plug-in direction, which is mainly due to the role of the CC pin; through the level change of the CC pin, the system can automatically identify the plug-in direction and establish correct connection.
[0026] The Type-C interface U1 is connected with the resistor R1 in series on the CC2 pin, the resistor R4 in series on the CC2 pin, the resistor R2 in series on the DP1 pin, the resistor R3 in series on the DN1 pin, the resistor R5 in series on the SUB1 pin, and the resistor R6 in series on the SUB2 pin; through the resistor R2 on the DP1 pin and the resistor R3 on the DN1 pin, the device can judge the type of the connected charger, so as to perform appropriate charging negotiation and power management according to the capacity of the charger; when the device is connected to the charger, the values of the resistor R1 and the resistor R4 are read through the signal lines of the CC1 pin and the CC2 pin, so as to judge the type and capacity of the charger, and then perform appropriate charging negotiation and power management; when there is no device connected to the Type-C interface, the resistor R1 and the resistor R4 pull up the signal lines of the CC1 pin and the CC2 pin to 5V, so as to avoid short circuit in the plugging process, and ensure the safety of the power supply; the values of the resistors R1 to R5 can help the device to perform power management, judge the power capacity of the connected charger according to different resistor values, so as to perform appropriate power management and power distribution, and improve the use effect of the Type-C interface.
[0027] In summary, the utility model discloses a UART serial port data is transmitted through the SBU1 and SBU2 pins of Type-C interface that are not used, and the tool product can receive the bin file sent by the host computer after being connected to the host computer through the Type-C interface, so that the upgrading can be completed, the operation is simple and convenient without any professional equipment, and the utility model has high practicability.
[0028] The above embodiment only illustrates the principle and effect of the utility model, and is not used for limiting the utility model. Any person skilled in the art can modify or change the above embodiment without departing from the spirit and scope of the utility model. Therefore, all equivalent modifications or changes completed by those skilled in the art without departing from the spirit and technical thought disclosed by the utility model should be covered by the claims of the utility model.
Claims
1. A Type-C interface with UART communication function, characterized in that: Including PC, MCU, Type-C interface U1 and signal conversion chip U2, the PC is equipped with a USB interface module, and the MCU is equipped with a UART serial port module; The Type-C interface U1 at least includes a VBUS pin, a GND pin, a DP1 pin, a DP2 pin, a DN1 pin, a DN2 pin, a SUB1 pin and a SUB2 pin, and the VBUS pin and the GND pin are used for external power supply; The USB interface module is provided with at least a VDD port, a GND port, a TX1 port and a RX1 port; the DP2 pin and the DN2 pin of the Type-C interface U1 are connected with the VDD port and the GND port of the USB interface respectively; The UART serial port module is provided with at least a TX2 port and a RX2 port, and the TX2 port and the RX2 port are connected with the SUB1 pin and the SUB2 pin of the Type-C interface U1 respectively; The signal conversion chip U3 at least includes a TXD pin, a RXD pin, a USBDP pin and a USBDN pin, the TX1 port and the RX1 port of the USB interface module are connected with the RXD pin and the TXD pin of the signal conversion chip U respectively, and the DP1 pin and the DN1 pin of the Type-C interface U1 are connected with the USBDP pin and the USBDN pin of the signal conversion chip U3 respectively.
2. The Type-C interface with UART communication function according to claim 1, characterized in that: A single-pole double-throw switch S is arranged between the USB interface module and the signal conversion chip U3, one connection end of the single-pole double-throw switch S is connected with the TX1 port of the USB interface module, the other connection end is connected with a pull-up resistor R7, and the other end of the pull-up resistor R7 is grounded.
3. The Type-C interface with UART communication function according to claim 1, characterized in that: An inductor L is arranged between the VBUS pin and the GND pin of the Type-C interface U1.
4. The Type-C interface with UART communication function according to claim 1, characterized in that: The Type-C interface U1 is further provided with a CC1 pin and a CC2 pin, and the CC1 pin and the CC2 pin are used in cooperation for plug-in detection, recognition of forward and reverse insertion, negotiation and establishment of DFP and UFP identity, configuration of VBUS and USB PD protocol, and support of blind insertion and forward and reverse insertion.
5. The Type-C interface with UART communication function according to claim 4, characterized in that: The CC2 pin of the Type-C interface U1 is connected in series with a resistor R1, the CC2 pin is connected in series with a resistor R4, the DP1 pin is connected in series with a resistor R2, the DN1 pin is connected in series with a resistor R3, the SUB1 pin is connected in series with a resistor R5, and the SUB2 pin is connected in series with a resistor R6.
6. The Type-C interface with UART communication function according to claim 1, characterized in that: The selected chip model of the signal conversion chip U3 is FT232RL.