Serial port debugging circuit for mouse development

By using the SBU1 and SBU2 signal lines of the Type-C interface as debug-PINs during mouse development and combining them with the CH343P and CH334P chips to implement serial port signal conversion, the problem of disassembly debugging is solved, and the convenience and practicality of development are improved.

CN223362619UActive Publication Date: 2025-09-19SHENZHEN BEST OF BEST HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422659076.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-09-19
Estimated Expiration
2034-11-01

AI Technical Summary

Technical Problem

During the mouse development process, it is necessary to disassemble the shell and access the debug line for program burning and information observation, which makes it inconvenient to use, especially when problems occur after installation, the disassembly operation is particularly troublesome.

Method used

A serial port debugging circuit for mouse development is designed. The unused SBU1 and SBU2 signal lines of the Type-C interface are used as debug-PINs. The serial port signal is converted into USB signal through the CH343P chip, and the circuit communicates with the PC through the USB hub chip CH334P, realizing debugging without disassembling the device.

Benefits of technology

It enables debugging through the Type-C interface without affecting the normal use of the mouse, avoiding the trouble of disassembly operation and improving the convenience and practicality of the development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223362619U_ABST
    Figure CN223362619U_ABST
Patent Text Reader

Abstract

The utility model discloses a serial port debugging circuit for mouse development, which is characterized in that an SBU1 signal line and an SBU2 signal line are electrically connected with a Type-C interface, the SBU1 signal line and the SBU2 signal line are electrically connected with a CH343P chip, and the CH343P chip is electrically connected with a USB concentrator chip CH334P. According to the serial port debugging circuit for mouse development provided by the utility model, the trouble of disassembling in a debug process can be avoided, so that the problem that a shell fly wire debug needs to be disassembled in the existing mouse development process is effectively solved, and the serial port debugging circuit for mouse development provided by the utility model can be used for debugging the shell fly wire debug in the mouse development process. And the Type-C-debug small board is directly inserted for debug, so that the normal use of the mouse is not influenced, and the practicability of the device in use is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of mouse development, in particular to a serial port debugging circuit for mouse development. Background Art

[0002] During the mouse development process, it is usually necessary to introduce debug lines to burn the program and observe the log print information to troubleshoot problems. At this time, it is usually necessary to disassemble the mouse shell to access these debug lines. Currently, more and more consumer products are beginning to come standard with Type-C interfaces;

[0003] However, the mouse must be installed during use. Removing the outer casing to connect the debug circuit will affect the mouse's normal operation. Sometimes problems only occur after installation, and removing the outer casing to connect the debug circuit at this time is undoubtedly a very troublesome task. Therefore, it is urgent to design a serial port debugging circuit for mouse development to solve this problem. Utility Model Content

[0004] The purpose of the utility model is to provide a serial port debugging circuit for mouse development to solve the above-mentioned deficiencies in the prior art.

[0005] In order to achieve the above purpose, the present invention provides the following technical solutions:

[0006] A serial port debugging circuit for mouse development includes a Type-C-debug board. The Type-C-debug board includes an SBU1 signal line, an SBU2 signal line, a Type-C interface, a CH343P chip, and a USB hub chip CH334P. The SBU1 signal line and the SBU2 signal line are electrically connected to the Type-C interface, the SBU1 signal line and the SBU2 signal line are electrically connected to the CH343P chip, and the CH343P chip is electrically connected to the USB hub chip CH334P.

[0007] Preferably, the SBU1 signal line and the SBU2 signal line are used as debug-PINs of the Type-C interface.

[0008] Preferably, the SBU1 signal line and the SBU2 signal line are used to transmit serial port information via Type-C to the CH343P chip, and the CH343P chip is responsible for converting the serial port signal into a USB signal and transmitting it to the USB hub chip CH334P.

[0009] Preferably, the Type-C interface consists of a Type-C male connector and a Type-C female connector, the Type-C male connector is connected to the mouse, and the USB hub chip CH334P can communicate with the PC through the TYPE-C female connector.

[0010] Preferably, the Type-C socket is of TYPE-C-16PIN type, the VBUS pin of the Type-C socket is grounded through capacitor C12, the VBUS_5V of the PC is electrically connected to the VBUS pin of the Type-C socket, the GND pin and the SHEIL pin of the Type-C socket are grounded, the CC1 pin of the Type-C socket is grounded through resistor R6, and the CC1 pin of the Type-C socket is grounded through resistor R15.

[0011] Preferably, the Type-C male connector is of Typec_M_24PIN_SPL type, the VBUS pin of the Type-C male connector is electrically connected to the Mouse_5V of the PC, the GND pin of the Type-C female connector is grounded, the CC1 pin of the Type-C male connector is grounded through a resistor R16, and the CC1 pin of the Type-C male connector is grounded through a resistor R17.

[0012] Preferably, the EPAD pin of the CH343P chip is grounded, the VBUS pin of the CH343P chip is electrically connected to Mouse_5V of the PC, the V3 pin of the CH343P chip is grounded through capacitor C1, and the VIO pin of the CH343P chip is electrically connected to VCC_1.8V.

[0013] Preferably, the V5 pin of the USB hub chip CH334P is grounded through a capacitor C15, the VDD33 pin of the USB hub chip CH334P is grounded through a capacitor C13, and the VDD33 pin of the USB hub chip CH334P is also electrically connected to VCC_3.3V.

[0014] In the above technical solution, the utility model provides a serial port debugging circuit for mouse development, which has the following beneficial effects:

[0015] (1) The serial port debugging circuit for mouse development provided by the utility model can avoid the trouble of disassembling the mouse during the debugging process, thereby effectively solving the problem that in the existing mouse development process, it is difficult to avoid introducing a debug circuit and the need to disassemble the shell and run wires for debugging, which is a very troublesome method.

[0016] (2) The serial port debugging circuit for mouse development provided by the utility model can eliminate the need to introduce a debug line to burn the program during the mouse development process, and will not affect the normal use of the mouse, thereby improving the practicality of the device when used. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0018] Figure 1 This is a schematic diagram of the circuit structure of the Type-C female socket of the utility model;

[0019] Figure 2 This is a schematic diagram of the IO power supply selection circuit structure of the serial port conversion chip of the utility model;

[0020] Figure 3 This is a schematic diagram of the VCC power supply structure of the utility model;

[0021] Figure 4 This is a schematic diagram of the structure of the PC supplying power to the mouse in the utility model;

[0022] Figure 5 This is a schematic diagram of the Type-C male connector circuit structure of the utility model;

[0023] Figure 6 This is a schematic diagram of the circuit structure of the CH343P chip of the utility model;

[0024] Figure 7 This is a schematic diagram of the circuit structure of the USB hub chip CH334P of this utility model;

[0025] Figure 8 This is a schematic diagram of the overall circuit structure of the Type-C-debug board of this utility model. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0027] like Figure 1-8As shown, an embodiment of the present invention provides a serial port debugging circuit for mouse development, including a Type-C-debug board. The Type-C-debug board includes an SBU1 signal line, an SBU2 signal line, a Type-C interface, a CH343P chip, and a USB hub chip CH334P. The SBU1 signal line and the SBU2 signal line are electrically connected to the Type-C interface, the SBU1 signal line and the SBU2 signal line are electrically connected to the CH343P chip, and the CH343P chip is electrically connected to the USB hub chip CH334P.

[0028] Specifically, in this embodiment, a serial port debugging circuit for mouse development is provided, including a Type-C-debug board, the Type-C-debug board including an SBU1 signal line, an SBU2 signal line, a Type-C interface, a CH343P chip, and a USB hub chip CH334P. The SBU1 signal line and the SBU2 signal line are electrically connected to the Type-C interface, and the unused SBU1 signal line and SBU2 signal line PINs of the Type-C interface are used as debug-PINs. The SBU1 signal line and the SBU2 signal line are electrically connected to the CH343 The CH343P chip is electrically connected to the USB hub chip CH334P, and the Type-C sends the serial port information to the CH343P chip through the SBU1 signal line and the SBU2 signal line interface. The CH343P chip is electrically connected to the USB hub chip CH334P. The CH343P chip is responsible for converting the serial port signal into a USB signal, and then sending the USB signal to the USB hub chip CH334P, thereby eliminating the trouble of disassembling the machine during the debugging process, and effectively solving the problem that it is difficult to avoid introducing a debug circuit in the existing mouse development process, and the method of disassembling the shell and flying the wires for debugging is very troublesome, without affecting the use of the mouse.

[0029] The SBU1 and SBU2 signal lines serve as the debug pins for the Type-C interface. These lines transmit serial port information via Type-C to the CH343P chip, which converts the serial port signals into USB signals for transmission to the CH334P USB hub chip. The CH334P USB hub chip receives USB signals. The CH334P USB hub chip connects to a PC via a Type-C female connector. The Type-C debug board consists of a Type-C male connector and a Type-C female connector. The Type-C male connector connects to a mouse, and the Type-C female connector connects to a computer.

[0030] like Figure 1, the Type-C female socket (J1) is TYPE-C-16PIN type, the VBUS pin of the Type-C female socket is grounded through capacitor C12 (capacitance value is 10uF, 25V), the VBUS_5V of the PC is electrically connected to the VBUS pin of the Type-C female socket, the GND pin and SHEIL pin of the Type-C female socket are grounded, the CC1 pin of the Type-C female socket is grounded through resistor R6 (resistance value is 5.1 kilohms), and the CC1 pin of the Type-C female socket is grounded through resistor R15 (resistance value is 5.1 kilohms). Figure 2 This is the circuit diagram of the power supply chip U8 (model XC6006P182MR) of the serial port conversion chip IO. The VIN pin of the power supply chip U8 is grounded through the capacitor C6 (1uF, 25V), and the VIN pin is also electrically connected to VCC_3.3V; the VOUT pin and VSS pin of the power supply chip U8 are connected in parallel with capacitors C2 (1uF, 25V) and C3 (100nF, 16V), the VSS pin is grounded, and the VOUT pin is also electrically connected to VCC_1.8V.

[0031] like Figure 5 The Type-C male connector is Typec_M_24PIN_SPL type. The VBUS pin of the Type-C male connector is electrically connected to the Mouse_5V of the PC. The GND pin of the Type-C female connector is grounded. The CC1 pin of the Type-C male connector is grounded through resistor R16 (resistance value is 5.1 kilohms). The CC1 pin of the Type-C male connector is grounded through resistor R17 (resistance value is 5.1 kilohms).

[0032] like Figure 6 , the EPAD pin of the CH343P serial port chip is grounded, the VBUS pin of the CH343P chip is electrically connected to the Mouse_5V of the PC, the V3 pin of the CH343P chip is grounded through the capacitor C1 (capacitance value is 100nF, 16V), and the VIO pin of the CH343P chip is electrically connected to VCC_1.8V

[0033] like Figure 7 , the V5 pin of the USB hub chip CH334P is grounded through capacitor C15 (capacitance value is 100nF, 16V), the VDD33 pin of the USB hub chip CH334P is grounded through capacitor C13 (capacitance value is 10uF, 25V), and the VDD33 pin of the USB hub chip CH334P is connected to the VCC_3.3V power supply.

[0034] Working principle: Use the unused SBU1 signal line and SBU2 signal line PIN of the Type-C interface as debug-PIN, and send the serial port information to the CH343P chip through the SBU1 signal line and SBU2 signal line interface of the Type-C. The CH343P chip is responsible for converting the serial port signal into a USB signal, and the USB signal is then sent to the USB hub chip CH334P. At the same time, the USB signal of the mouse is also sent to the USB hub chip CH334P. The USB hub chip CH334P communicates with the PC. This does not affect the normal use of the mouse, and the debug information of the mouse can be printed through this small board. Based on the unused PIN foot of the Type-C interface as the debug pin, it can facilitate developers to debug without affecting user functions.

[0035] The above description is merely illustrative of certain exemplary embodiments of the present invention. It goes without saying that those skilled in the art will be able to modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and description are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. A serial port debugging circuit for mouse development, including a Type-C-debug board, characterized in that: The Type-C-debug board includes an SBU1 signal line, an SBU2 signal line, a Type-C interface, a CH343P chip and a USB hub chip CH334P. The SBU1 signal line and the SBU2 signal line are electrically connected to the Type-C interface, the SBU1 signal line and the SBU2 signal line are electrically connected to the CH343P chip, and the CH343P chip is electrically connected to the USB hub chip CH334P.

2. The serial port debugging circuit for mouse development according to claim 1, wherein: The SBU1 signal line and the SBU2 signal line are used as debug-PINs of the Type-C interface.

3. The serial port debugging circuit for mouse development according to claim 1, wherein: The SBU1 signal line and the SBU2 signal line are used to transmit the serial port information via Type-C to the CH343P chip, and the CH343P chip is responsible for converting the serial port signal into a USB signal and transmitting it to the USB hub chip CH334P.

4. The serial port debugging circuit for mouse development according to claim 3, wherein: The Type-C interface consists of a Type-C male connector and a Type-C female connector. The Type-C male connector is connected to the mouse, and the USB hub chip CH334P can communicate with the PC through the TYPE-C female connector.

5. The serial port debugging circuit for mouse development according to claim 4, characterized in that: The Type-C socket is of TYPE-C-16PIN type, the VBUS pin of the Type-C socket is grounded through capacitor C12, the VBUS_5V of the PC is electrically connected to the VBUS pin of the Type-C socket, the GND pin and the SHEIL pin of the Type-C socket are grounded, the CC1 pin of the Type-C socket is grounded through resistor R6, and the CC1 pin of the Type-C socket is grounded through resistor R15.

6. The serial port debugging circuit for mouse development according to claim 4, characterized in that: The Type-C male connector is of Typec_M_24PIN_SPL type, the VBUS pin of the Type-C male connector is electrically connected to the Mouse_5V of the PC, the GND pin of the Type-C female connector is grounded, the CC1 pin of the Type-C male connector is grounded through a resistor R16, and the CC1 pin of the Type-C male connector is grounded through a resistor R17.

7. The serial port debugging circuit for mouse development according to claim 3, characterized in that: The EPAD pin of the CH343P chip is grounded, the VBUS pin of the CH343P chip is electrically connected to Mouse_5V of the PC, the V3 pin of the CH343P chip is grounded through the capacitor C1, and the VIO pin of the CH343P chip is electrically connected to VCC_1.8V.

8. The serial port debugging circuit for mouse development according to claim 3, characterized in that: The V5 pin of the USB hub chip CH334P is grounded through a capacitor C15, the VDD33 pin of the USB hub chip CH334P is grounded through a capacitor C13, and the VDD33 pin of the USB hub chip CH334P is connected to VCC_3.3V.