External serial port circuit and device

By designing an external serial port circuit, direct transmission of low-level running code was achieved, solving the problem of the USB interface's difficulty in outputting debugging information, and improving debugging efficiency and device maintainability.

CN224096207UActive Publication Date: 2026-04-07SHENZHEN YOU RUIXING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing USB interfaces cannot directly output low-level operational and debugging information of devices, increasing the difficulty of diagnosis and repair.

Method used

Design an external serial port circuit, including an output circuit and a communication circuit, to realize signal transmission through the connection between the output device and the mobile device.

Benefits of technology

It improved debugging efficiency and accuracy, and enhanced the maintainability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224096207U_ABST
    Figure CN224096207U_ABST
Patent Text Reader

Abstract

The utility model provides an external serial port circuit which is arranged on a circuit board and comprises an output loop with one end connected with output equipment and the other end connected with mobile equipment; the communication loop is connected with the output loop and output equipment so as to output a signal to the output loop; when the output equipment is connected with the mobile equipment, the output equipment outputs a signal and transmits the signal to the mobile equipment through the communication loop, so that the debugging efficiency and accuracy are improved, and the maintainability of the equipment is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of signal control, in particular to an external serial port circuit and device. BACKGROUND

[0002] In the current electronic device development and maintenance process, the output and debugging of signals are the key links to ensure the normal operation of the device. However, although the USB interface has improved in terms of data transmission efficiency and convenience, it has limitations in the output of device bottom layer running code debugging information. The USB interface is usually used to transmit high-speed data or as a charging interface of the device, and its communication protocol and data format are often designed for high-level applications, which are difficult to be directly used for outputting the bottom layer running debugging information of the device. This means that when the device has a bottom layer fault or needs to be deeply debugged, the developer often cannot directly obtain the necessary debugging information through the USB interface, thereby increasing the difficulty of diagnosis and repair.

[0003] Therefore, it is necessary to provide an external serial port circuit and device capable of outputting the bottom layer running code debugging information of the device. CONTENT OF THE INVENTION

[0004] Therefore, it is necessary to provide an external serial port circuit and device capable of outputting the bottom layer running code debugging information of the device.

[0005] Embodiments of the present application provide an external serial port circuit arranged on a circuit board, comprising:

[0006] An output loop, one end of which is connected to an output device and the other end of which is connected to a mobile device;

[0007] A communication loop connected between the output loop and the output device to output signals to the output loop;

[0008] When the output device and the mobile device are connected, the output device outputs signals and transmits the signals to the mobile device through the communication loop.

[0009] In at least one embodiment of the present application, the output loop comprises a first connection end and a second connection end connected to the first connection end, the first connection end is arranged on the circuit board, and the first connection end is connected to the output device, the second connection end is located on the side of the circuit board away from the first connection end, and the second connection end is connected to the mobile device.

[0010] In at least one embodiment of the present application, the communication loop comprises a third connection end connected to the first connection end.

[0011] The third connecting end comprises a first pin and a second pin, the first pin is connected to a signal receiving pin of the first connecting end, and the second pin is connected to a signal sending pin of the first connecting end.

[0012] In at least one embodiment of the present application, the first connecting end comprises a third pin and a fourth pin, the third pin is a positive terminal of the first connecting end, and the fourth pin is a negative terminal of the first connecting end.

[0013] The second connecting end comprises a fifth pin and a sixth pin, the fifth pin is connected to the third pin, and the sixth pin is connected to the fourth pin to connect the first connecting end and the second connecting end.

[0014] In at least one embodiment of the present application, the external serial port circuit further comprises:

[0015] A first identification circuit connected to the first connecting end.

[0016] A second identification circuit connected to the first connecting end.

[0017] The first identification circuit and the second identification circuit are both used to identify the connection state of the mobile device.

[0018] In at least one embodiment of the present application, the first connecting end further comprises:

[0019] A seventh pin connected to the first identification circuit, the seventh pin being a channel configuration signal pin of the first connecting end.

[0020] An eighth pin connected to the second identification circuit, the eighth pin being a channel configuration signal pin of the first connecting end.

[0021] In at least one embodiment of the present application, the first identification circuit comprises:

[0022] A first resistor with one end grounded and the other end connected to the seventh pin.

[0023] In at least one embodiment of the present application, the second identification circuit comprises:

[0024] A second resistor with one end grounded and the other end connected to the eighth pin.

[0025] In at least one embodiment of the present application, the third pin comprises a first signal line and a second signal line, the fourth pin comprises a third signal line and a fourth signal line, the first signal line is connected to the second signal line, and the third signal line is connected to the fourth signal line.

[0026] This application provides an external device, characterized in that it includes any of the external serial port circuits described above.

[0027] The aforementioned external serial port circuit enables the direct transmission of low-level running code debugging information from the output device to the mobile device. By designing a communication circuit between the output circuit and the output device, it ensures that the output device can transmit signals to the output circuit and ultimately reach the mobile device, thereby improving debugging efficiency and accuracy, and enhancing the maintainability of the equipment. Attached Figure Description

[0028] Figure 1 This is a structural block diagram of an external serial port circuit, output device, and mobile device according to an embodiment of this application.

[0029] Figure 2 This is a structural block diagram of the first connection end.

[0030] Figure 3 This is a structural block diagram of the second connection end.

[0031] Figure 4 The structural block diagram of the third connection end.

[0032] Figure 5 This is a block diagram of the first identification circuit and the second identification circuit in the first connection terminal.

[0033] Figure 6 This is a block diagram of the structure of the third and fourth pins in the first connection terminal.

[0034] Figure 7 This is a schematic diagram of an external device.

[0035] Explanation of main component symbols

[0036] 100. An external serial port circuit; 10. On a circuit board; 20. Output circuit; 21. First connection terminal; 211. Signal receiving pin; 212. Signal transmitting pin; 213. Third pin; 2131. First signal line; 2132. Second signal line; 214. Fourth pin; 2141. Third signal line; 2142. Fourth signal line; 215. Seventh pin; 216. Eighth pin; 22. Second connection terminal; 221. Fifth pin; 222. Sixth pin; 30. Communication circuit; 31. Third connection terminal; 311. First pin; 312. Second pin; 40. First identification circuit; 41. First resistor; 50. Second identification circuit; 51. Second resistor; 60. Output device; 70. Mobile device; 200. An external device. Detailed Implementation

[0037] The embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0038] It should be noted that when a component is considered to be "connected" to another component, it can be directly connected to the other component or may also have an intervening component. When a component is considered to be "placed" on another component, it can be directly placed on the other component or may also have an intervening component. The terms "top," "bottom," "upper," "lower," "left," "right," "front," "back," and similar expressions used in this article are for illustrative purposes only.

[0039] An embodiment of this application provides an external serial port circuit, disposed on a circuit board, comprising:

[0040] The output circuit connects to the output device at one end and to the mobile device at the other end.

[0041] A communication circuit connects the output circuit and the output device to output a signal to the output circuit;

[0042] When the output device is connected to the mobile device, the output device outputs a signal and transmits it to the mobile device through the communication loop.

[0043] The aforementioned external serial port circuit enables the direct transmission of low-level running code debugging information from the output device to the mobile device. By designing a communication circuit between the output circuit and the output device, it ensures that the output device can transmit signals to the output circuit and ultimately reach the mobile device, thereby improving debugging efficiency and accuracy, and enhancing the maintainability of the equipment.

[0044] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0045] according to Figures 1-7 This application provides an external serial port circuit 100, disposed on a circuit board 10, including:

[0046] Output circuit 20, one end is connected to output device 60, and the other end is connected to mobile device 70;

[0047] Communication circuit 30 connects the output circuit 20 and the output device 60 to output a signal to the output circuit 20;

[0048] When the output device 60 is connected to the mobile device 70, the output device 60 outputs a signal and transmits it to the mobile device 70 via the communication loop 30.

[0049] Specifically, the mobile terminal can be a computer or a mobile phone, used to receive and display signals or data from the output device 60. The output loop 20 establishes a communication connection between the output device 60 and the mobile device 70, transmitting information from the output device 60 to the mobile device 70 via the output loop 20, thereby directly acquiring the information transmitted from the output device 60. The communication loop 30 transmits the serial communication information from the output device 60 to the output loop 20, and then to the mobile device 70 via the output loop 20.

[0050] Furthermore, during the debugging process of the output device 60, the output device 60 outputs the code running information of the debugging process. The information output by the output device 60 is received by the communication loop 30 and transmitted to the mobile device 70 through the output loop 20, so that the specific information of the operation process of the output device 60 can be observed in real time.

[0051] In one specific embodiment, the output circuit 20 includes: a first connection terminal 21 and a second connection terminal 22 connected to the first connection terminal 21. The first connection terminal 21 is disposed on the circuit board 10 and is connected to the output device 60. The second connection terminal 22 is located on the side of the circuit board away from the first connection terminal 21 and is connected to the mobile device 70.

[0052] Specifically, both the first connection terminal 21 and the second connection terminal 22 are receiver connectors. The first connection terminal 21 is responsible for receiving signals or data from the output device 60 and transmitting them to the second connection terminal 22. The second connection terminal 22 is responsible for receiving signals or data output from the first connection terminal 21 and transmitting them to the mobile device 70 for user viewing and analysis.

[0053] In one specific embodiment, the communication loop 30 includes: a third connection terminal 31, which is connected to the first connection terminal 21; the third connection terminal 31 includes: a first pin 311 and a second pin 312, the first pin 311 being connected to the signal receiving pin 211 of the first connection terminal 21, and the second pin 312 being connected to the signal transmitting pin 212 of the first connection terminal 21.

[0054] Specifically, the third connection terminal 31 is a connector for the first connection terminal 21 and receives serial communication information from the output device 60. The first pin 311 is used to receive debugging information, and the second pin 312 is used to send debugging information. The first pin 311 and the second pin 312 exchange data with the output device 60 via serial communication. The signal receiving pin 211 of the first connection terminal 21 is the receive line of the debugging interface, used to receive debugging information or commands. The signal transmitting pin 212 of the first connection terminal 21 is the transmit line of the debugging interface, used to send debugging information or status updates. Specifically, when the device is running, it can send debugging information via serial communication through the first pin 311. It receives debugging commands or data from the output device 60 through the second pin 312.

[0055] In one specific embodiment, the first connection terminal 21 includes a third pin 213 and a fourth pin 214, wherein the third pin 213 is the positive terminal of the first connection terminal 21 and the fourth pin 214 is the negative terminal of the first connection terminal 21.

[0056] The second connection terminal 22 includes a fifth pin 221 and a sixth pin 222. The fifth pin 221 is connected to the third pin 213, and the sixth pin 222 is connected to the fourth pin 214, so as to connect the first connection terminal 21 and the second connection terminal 22.

[0057] Specifically, both the third pin 213 and the fourth pin 214 are data transmission channels with OTG functionality. The third pin 213 is a positive data channel with OTG functionality, and the fourth pin 214 is a negative data channel with OTG functionality. These channels support high-speed data transmission, enabling the device to exchange information efficiently.

[0058] Pin 221 is the DP pin of the second connection terminal 22, serving as the positive pin for transmitting differential data signals; pin 222 is the DN pin of the second connection terminal 22, serving as the negative pin for transmitting differential data signals. In this embodiment, pin 221 represents both DP1 and DP2 signal pins, and pin 222 represents both DN1 and DN2 signal pins. The positive signals of DP1 and DP2, along with the negative signals of DN1 and DN2, work together to form the data transmission channel of the second connection terminal 22, ensuring accurate data transmission. Furthermore, DP1 and DP2 support high-speed data transmission, meeting the high data transmission speed requirements of modern electronic devices.

[0059] In one specific embodiment, the external serial port circuit further includes: a first identification circuit 40 connected to the first connection terminal 21; and a second identification circuit 50 connected to the first connection terminal 21; wherein the first identification circuit 40 and the second identification circuit 50 are both used to identify the connection status of the mobile device 70.

[0060] Specifically, through the first identification circuit 40 and the second identification circuit 50, the first connection terminal 21 can quickly determine whether a mobile device 70 is connected, and what type or specification of the device is connected.

[0061] Furthermore, when the mobile device 70 is a mobile phone, after the mobile device 70 communicates with the first connection terminal 21, the first identification circuit 40 and the second identification circuit 50 can communicate with the Type-C standard protocol on the mobile phone, thereby enabling the mobile phone to identify the connected output device 60. The first connection terminal 21 identifies the connected mobile device 70 through the first identification circuit 40 and the second identification circuit 50. When the mobile device 70 is a computer, the computer does not need the first and second identification circuits to identify the type of connected device. The computer can directly provide power to the connected device through the VBUS pin on the first connection terminal 21.

[0062] In one specific embodiment, the first connection terminal 21 further includes: a seventh pin 215, which is connected to the first identification circuit 40 and is a channel configuration signal pin of the first connection terminal 21; and an eighth pin 216, which is connected to the second identification circuit 50 and is a channel configuration signal pin of the first connection terminal 21.

[0063] Specifically, pin 215 is the CC1 pin in the first connection terminal 21, and pin 216 is the CC2 pin in the first connection terminal 21.

[0064] In one specific embodiment, the first identification circuit 40 includes: a first resistor 41, one end of which is grounded and the other end is connected to the seventh pin 215.

[0065] Specifically, in the first identification circuit 40, the seventh pin 215 is connected to a first resistor 41 with a pull-down resistor. The first resistor 41 can pull the level of the seventh pin 215 to a low level so that the mobile device 70 can recognize the presence of the output device 60. In this application, the resistance value of the first resistor 41 is 5.1kΩ.

[0066] In one specific embodiment, the second identification circuit 50 includes a second resistor 51, one end of which is grounded and the other end is connected to the eighth pin 216.

[0067] Specifically, in the second identification circuit 50, the eighth pin 216 is connected to a second resistor 51 with a pull-down resistor. The second resistor 51 can pull the level of the eighth pin 216 to a low level so that the mobile device 70 can recognize the presence of the output device 60. In this application, the resistance value of the second resistor 51 is 5.1kΩ.

[0068] In one specific embodiment, the third pin 213 includes a first signal line 2131 and a second signal line 2132, and the fourth pin 214 includes a third signal line 2141 and a fourth signal line 2142. The first signal line 2131 is connected to the second signal line 2132, and the third signal line 2141 is connected to the fourth signal line 2142.

[0069] Specifically, pins 213 and 214 are both data transmission channels with OTG functionality. Pin 213 is a positive data channel with OTG functionality, and pin 214 is a negative data channel with OTG functionality. These channels support high-speed data transmission, enabling devices to exchange information efficiently. The first signal line 2131 is DP1, the second signal line 2132 is DP2, the third signal line 2141 is DM1, and the fourth signal line 2142 is DM2. In the first connection terminal 21, DP (D+) and DM (D-) are differential signal lines used for data transmission. The connection of the first signal line 2131 and the second signal line 2132 forms a positive data channel for OTG functionality, and the connection of the third signal line 2141 and the fourth signal line 2142 forms a negative data channel for OTG functionality.

[0070] Therefore, the external serial port circuit 100 provided above enables the direct transmission of low-level running code debugging information from the output device 60 to the mobile device 70. By designing a communication circuit 30 connecting the output circuit 20 and the output device 60, it is ensured that the output device 60 can transmit signals to the output circuit 20 and ultimately reach the mobile device 70, thereby improving debugging efficiency and accuracy and enhancing the maintainability of the equipment.

[0071] The above description is merely an embodiment of this application. It should be noted that those skilled in the art can make improvements without departing from the inventive concept of this application, but these improvements all fall within the protection scope of this application.

Claims

1. An external serial port circuit, mounted on a circuit board, characterized in that, include: An output circuit, one end connected to an output device and the other end connected to a mobile device, the output circuit includes: a first connection terminal and a second connection terminal connected to the first connection terminal, the first connection terminal is disposed on the circuit board and is connected to the output device, the second connection terminal is located on the side of the circuit board away from the first connection terminal and is connected to the mobile device; A communication circuit connects the output circuit and the output device to output a signal to the output circuit; When the output device is connected to the mobile device, the output device outputs a signal and transmits it to the mobile device through the communication loop.

2. The external serial port circuit according to claim 1, characterized in that, The communication loop includes: a third connection terminal, which connects the first connection terminal and the mobile device to output serial port information of the mobile device; The third connection terminal includes a first pin and a second pin, wherein the first pin is connected to the signal receiving pin of the first connection terminal, and the second pin is connected to the signal transmitting pin of the first connection terminal.

3. The external serial port circuit according to claim 1, characterized in that, The first connection terminal includes a third pin and a fourth pin, wherein the third pin is the positive terminal of the first connection terminal and the fourth pin is the negative terminal of the first connection terminal; The second connection terminal includes a fifth pin and a sixth pin, wherein the fifth pin is connected to the third pin and the sixth pin is connected to the fourth pin, so as to connect the first connection terminal and the second connection terminal.

4. An external serial port circuit according to claim 1, characterized in that, The external serial port circuit also includes: The first identification circuit is connected to the first connection terminal; The second identification circuit is connected to the first connection terminal; Both the first identification circuit and the second identification circuit are used to identify the connection status of the mobile device.

5. An external serial port circuit according to claim 4, characterized in that, The first connection end also includes: The seventh pin is connected to the first identification circuit and is a channel configuration signal pin for the first connection terminal; The eighth pin is connected to the second identification circuit and is the channel configuration signal pin of the first connection end.

6. An external serial port circuit according to claim 5, characterized in that, The first identification loop includes: The first resistor has one end grounded and the other end connected to the seventh pin.

7. An external serial port circuit according to claim 5, characterized in that, The second identification loop includes: The second resistor has one end grounded and the other end connected to the eighth pin.

8. An external serial port circuit according to claim 3, characterized in that, The third pin includes a first signal line and a second signal line, and the fourth pin includes a third signal line and a fourth signal line. The first signal line is connected to the second signal line, and the third signal line is connected to the fourth signal line.

9. An external serial port device, characterized in that, Includes the external serial port circuit as described in any one of claims 1-8.