Visual portable serial port monitor based on single-chip microcomputer

By designing a visual portable serial port monitor based on a microcontroller, the problem of poor flexibility in the existing technology of using computers to obtain data and single-channel monitoring ports is solved, and data visualization and two-channel signal monitoring are realized, which improves the flexibility of use.

CN223245008UActive Publication Date: 2025-08-19BEIJING PIXEL GEEK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422568794.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-08-19
Estimated Expiration
2034-10-23

AI Technical Summary

Technical Problem

The existing USB to UART module requires a computer to obtain data, and only has a monitoring port, which leads to poor flexibility in scenarios where there is no computer or is not suitable for using a computer.

Method used

A visual portable serial monitor based on a microcontroller is designed, including a main control module, a display module, a serial monitoring module, a USB to serial port module and a USB interface module to realize the monitoring of two signals and the visual display of data. The USB interface module communicates with the upper computer through the USB interface module, and the main control module connects the display module to display the monitoring data.

Benefits of technology

It realizes visual display of serial device data and monitoring of two-way signals without the help of a computer, which improves the flexibility of use and is suitable for a variety of scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223245008U_ABST
    Figure CN223245008U_ABST
Patent Text Reader

Abstract

The utility model discloses a visual portable serial port monitor based on a single-chip microcomputer. The visual portable serial port monitor comprises a main control module, a display module and a serial port monitoring module. The serial port monitoring module comprises two paths of serial port monitoring signal interfaces, the two paths of serial port monitoring signal interfaces are electrically connected with serial port equipment respectively, the output end of the serial port monitoring module is electrically connected with the main control module, and the main control module is electrically connected with the display module; the visual portable serial port monitor further comprises a USB (Universal Serial Bus) to serial port module and a USB interface module; wherein the main control module is in communication connection with an upper computer through the USB interface module, and the main control module is also in communication connection with the serial port equipment through the USB to serial port module; by means of the design, on the basis that due functions of a traditional USB-to-UART product are reserved, a data visualization function and a two-path signal monitoring function are additionally achieved; in this way, the use flexibility can be greatly improved, and therefore the method is very suitable for large-scale application and popularization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of serial communication, and in particular relates to a visual portable serial port monitor based on a single chip computer. Background Art

[0002] At present, tens of billions of MCU and SOC chips are used in many industries every year. During the development process of these IC chips, engineers will use the serial communication function, that is, to send the developed program to the IC chip through the computer COM port, read the data sent by the IC chip through the computer COM port, or monitor the operating status of the IC chip through the computer. It is no exaggeration to say that every electronic engineer has a serial communication tool on hand. Therefore, driven by a large number of usage demands, widely used serial port chips such as CH340G chip, PL2303 chip, FT232 chip have emerged; and integrating the USB port, the aforementioned serial port conversion chip, and the lower computer wiring port on the PCB board constitutes a USB to UART module; among them, see Figure 1 As shown in the figure, the USB port is used to connect to the computer, and the Rx, Tx, VCC, GND and other ports at the back are used to connect to the lower device. Then, install the USB driver on the computer to let the computer recognize the USB to UART module. At this time, based on the USB to UART module, the computer and the device can be connected together, so that the serial port host software can be used on the computer to complete the communication between the two.

[0003] However, the current USB to UART module only has a communication function and still requires a computer as the only means to obtain data, that is, data can only be displayed after being transferred to the computer. As a result, in many outdoor and production line scenarios where there is no computer or it is not suitable to use a computer, engineers cannot obtain data, which greatly reduces the flexibility of use. At the same time, most existing USB to UART modules are only equipped with one monitoring port and cannot simultaneously monitor the sending and receiving of two signals, thus further reducing the flexibility of use. Therefore, based on the above-mentioned deficiencies, how to provide a portable serial port monitor with data visualization function and strong flexibility has become an urgent problem to be solved. Utility Model Content

[0004] The purpose of the utility model is to provide a visual portable serial port monitor based on a single chip microcomputer, so as to solve the problems in the prior art of needing to transmit data to a computer before obtaining data and having only one monitoring port resulting in poor flexibility of use.

[0005] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0006] In a first aspect, a visual portable serial port monitor based on a single chip microcomputer is provided, comprising:

[0007] Main control module, display module and serial port monitoring module;

[0008] The serial port monitoring module includes two serial port monitoring signal interfaces, wherein the two serial port monitoring signal interfaces are electrically connected to serial port devices respectively, the output end of the serial port monitoring module is electrically connected to the main control module, and the main control module is electrically connected to the display module;

[0009] The visual portable serial port monitor further comprises: a USB to serial port module and a USB interface module;

[0010] The main control module is connected to the host computer via the USB interface module, and the main control module is also connected to the serial port device via the USB to serial port module.

[0011] Based on the above-disclosed content, the visual portable serial port monitor provided by the utility model is provided with a serial port monitoring module, a USB-to-serial port module and a USB interface module, wherein the serial port monitoring module includes two serial port monitoring signal interfaces. In this way, the aforementioned two serial port monitoring signal interfaces can be used to simultaneously realize the monitoring of sending and receiving two-way signals, and the USB-to-serial port module and the USB interface module can also be used to realize communication between the host computer and the serial port device; at the same time, the serial port monitor is also provided with a display module, and the output end of the serial port monitoring module is electrically connected to the display module through the main control module; based on this, the acquired data can be visualized on the display module, so that engineers can obtain data on the serial port device without the aid of a computer; thus, through the above-mentioned design, the utility model retains the functions that traditional USB-to-UART products should have, and also realizes the data visualization function and the two-way signal monitoring function, based on which the flexibility of use is greatly improved, and therefore, it is very suitable for large-scale application and promotion.

[0012] In one possible design, the serial port monitoring module further includes: a first diode, a second diode, a first resistor, a second resistor, and an electrostatic discharge protection unit, and the two serial port monitoring signal interfaces include a first interface and a second interface;

[0013] The cathode of the first diode is electrically connected to the first interface, the anode of the first diode serves as the output end of the serial port monitoring module and is electrically connected to the main control module, and the anode of the first diode is also electrically connected to the first DC power supply through the first resistor;

[0014] The cathode of the second diode is electrically connected to the second interface, and the anode of the second diode also serves as the output end of the serial port monitoring module and is electrically connected to the main control module, wherein the anode of the second diode is also electrically connected to the first DC power supply through the second resistor, and the first interface and the second interface are grounded through the electrostatic discharge protection unit.

[0015] In one possible design, the USB interface module includes a Type-c interface, wherein the main control module is electrically connected to the USB interface on the host computer through the Type-c interface.

[0016] In one possible design, the Type-C interface includes two VBUS pins, wherein both VBUS pins are electrically connected to the second DC power supply, and one of the VBUS pins is also electrically connected to the first DC power supply through a third diode;

[0017] The DN2 pin and the DN1 pin of the Type-C interface are both electrically connected to one end of a third resistor and one end of a fourth resistor, wherein the other end of the third resistor is electrically connected to the main control module, and the other end of the fourth resistor is grounded;

[0018] The DP1 pin and DP2 pin of the Type-C interface are both electrically connected to one end of the fifth resistor and one end of the sixth resistor, wherein the other end of the fifth resistor is electrically connected to the main control module, and the other end of the sixth resistor is grounded.

[0019] In a possible design, it also includes: a display screen operation module, wherein the display screen operation module is electrically connected to the main control module.

[0020] In one possible design, the display screen operation module includes: a dip switch.

[0021] In a possible design, it further includes: a housing, wherein a mounting hole is provided at the bottom of the housing.

[0022] In a possible design, the back of the housing is further provided with an adsorption fixing device for fixing the visual portable serial monitor.

[0023] In a possible design, the adsorption and fixing device includes a plurality of magnets, wherein a plurality of magnet slots are provided on the back side of the housing, and each magnet is installed in the magnet slot in a one-to-one correspondence.

[0024] In one possible design, the main control module uses a PG01S main control chip and its peripheral circuits, and the display module includes an LCD display screen.

[0025] Beneficial effects:

[0026] (1) While retaining the functions of traditional USB-to-UART products, the present invention also realizes the data visualization function and the two-way signal monitoring function; thus, the flexibility of use can be greatly improved, and therefore, it is very suitable for large-scale application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the use of a traditional USB to UART module provided in an embodiment of the present utility model;

[0028] Figure 2 A specific circuit diagram of the main control module provided by an embodiment of the utility model;

[0029] Figure 3 A specific circuit diagram of the memory provided by an embodiment of the utility model;

[0030] Figure 4 A specific circuit diagram of the display module provided by an embodiment of the utility model;

[0031] Figure 5 A specific circuit diagram of the serial port monitoring module provided in an embodiment of the utility model;

[0032] Figure 6 A specific circuit diagram of the USB interface module provided by an embodiment of the utility model;

[0033] Figure 7 A specific circuit diagram of the USB-to-serial port module provided in an embodiment of the utility model;

[0034] Figure 8 A connection circuit diagram of a DIP switch provided in an embodiment of the present utility model;

[0035] Figure 9 A specific circuit diagram of a voltage stabilizer provided by an embodiment of the utility model;

[0036] Figure 10 A diagram showing the housing structure of a visual portable serial port monitor provided by an embodiment of the present utility model;

[0037] Figure 11 A schematic structural diagram of an adsorption and fixing device provided in an embodiment of the present utility model;

[0038] Figure 12 A schematic diagram of a first application of a visual portable serial port monitor provided by an embodiment of the present utility model;

[0039] Figure 13 A schematic diagram of a second application of the visual portable serial port monitor provided by an embodiment of the present utility model;

[0040] Figure 14 A schematic diagram of a third application of the visual portable serial port monitor provided by an embodiment of the present utility model;

[0041] Figure 15 This is a structural block diagram of a visual portable serial port monitor based on a single-chip microcomputer provided in an embodiment of the utility model.

[0042] Reference numerals:

[0043] 10-housing; 20-mounting hole; 30-magnet slot. DETAILED DESCRIPTION

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly introduced below in conjunction with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0045] It should be understood that although the terms "first," "second," etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element without departing from the scope of the exemplary embodiments of the present invention.

[0046] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may indicate three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this document describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B may indicate two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this document generally indicates that the previous and subsequent associated objects are in an "or" relationship.

[0047] Example:

[0048] See also Figures 2 to 14 as well as Figure 15As shown, the visual portable serial port monitor based on the single-chip microcomputer provided in this embodiment may include, but is not limited to: a main control module, a display module, a serial port monitoring module, a USB-to-serial port module, and a USB interface module; wherein the serial port monitoring module is used to collect data from serial port devices, and the display module displays the data collected by the serial port monitoring module under the control of the main control module.

[0049] Specifically, the serial port monitoring module provided in this embodiment includes two serial port monitoring signal interfaces, wherein the two serial port monitoring signal interfaces are electrically connected to the serial port devices respectively, the output end of the serial port monitoring module is electrically connected to the main control module, and the main control module is electrically connected to the display module; in this way, the two serial port monitoring signal interfaces can simultaneously monitor the two signals sent and received by the serial port device. Of course, one channel can be detected separately, such as the data sent by the serial port device; then, the collected data can be transmitted to the main control module, and the main control module can visually display the data received from the serial port device on the display module; in this way, engineers can view the data very conveniently and compare the data without the need for a computer; thereby, the flexibility of use can be greatly improved.

[0050] At the same time, the main control module can be connected to the host computer through the USB interface module, and the main control module can also be connected to the serial port device through the USB to serial port module; in this way, based on the USB interface module and the USB to serial port module, communication between the serial port device and the host computer can be realized, thereby completing the serial port communication function.

[0051] Therefore, through the above design, the visual portable serial port monitor provided by this embodiment retains the functions that traditional USB to UART products should have, and also additionally realizes the data visualization function and the monitoring function of two signals; this can greatly improve the flexibility of use, and is therefore very suitable for large-scale application and promotion.

[0052] Optionally, the detailed circuit structure of each of the aforementioned modules is disclosed below.

[0053] First, one circuit structure of the main control module is disclosed.

[0054] For example, the main control module can be, but is not limited to, a PG01S main control chip and its peripheral circuits, wherein the peripheral circuits can be, but are not limited to, memory, crystal oscillator circuit, etc., and the specific circuit diagram of the PG01S main control chip and the specific circuit diagram of the memory can be found in Figure 2 and Figure 3 As shown; of course, other main control chips can also be used, such as STM32 series microcontrollers, etc., which are not specifically limited here.

[0055] Secondly, one circuit structure of a display module is disclosed; wherein, for example, the display module can be, but is not limited to, an LCD display screen (the size can be set to 2.4 inches, 3.5 inches, or 4.3 inches, which can be specifically set according to actual use), and its specific circuit diagram can be, but is not limited to, see Figure 4 As shown; at the same time, for example, the LCD display can be but not limited to displaying data such as COM number, communication status, baud rate (communication speed), and can also display serial port data in character strings or hexadecimal format; of course, the specific display content and format can be set according to actual use, and are not limited to the above examples.

[0056] Optionally, for example, the aforementioned display screen can also be replaced with a resistive and capacitive touch color screen to improve ease of use.

[0057] Furthermore, the following discloses one circuit structure of the serial port monitoring module.

[0058] In a specific application, for example, the two-way serial port monitoring signal interface includes a first interface and a second interface, wherein the serial port monitoring module further includes: a first diode D3, a second diode D4, a first resistor R8, a second resistor R7 and an electrostatic discharge protection unit, and for example the first interface and the second interface can be integrated in the interface seat (i.e. Figure 5 J2 in the .

[0059] Optionally, the specific connection structure of the aforementioned electronic components is:

[0060] See also Figure 5 As shown, the cathode of the first diode D3 is electrically connected to the first interface (ie Figure 5 The anode of the first diode D3 serves as the output end of the serial port monitoring module and is electrically connected to the main control module (i.e., electrically connected to the 31st pin of the PG01S main control chip), and the anode of the first diode D3 is also electrically connected to the first DC power supply (a 3.3V DC power supply in this embodiment) through the first resistor R8.

[0061] Similarly, the cathode of the second diode D4 is electrically connected to the second interface (ie Figure 5 The anode of the second diode D4 also serves as the output end of the serial port monitoring module and is electrically connected to the main control module (i.e., electrically connected to pin 13 of the PG01S main control chip). The anode of the second diode D4 is also electrically connected to the first DC power supply via the second resistor R7. In this way, data transmission and reception of the serial port device can be monitored simultaneously through the aforementioned two serial port monitoring signal interfaces.

[0062] In addition, in this embodiment, the first diode D3 and the second diode D4 may be, but are not limited to, Schottky diodes, and the resistance values of the first resistor R8 and the second resistor R7 may be, but are not limited to, 5.1 KΩ.

[0063] In this embodiment, an electrostatic discharge protection unit is further provided, that is, the first interface and the second interface are grounded through the electrostatic discharge protection unit; see Figure 5 As shown, the example electrostatic discharge protection unit is a TPET05US3 type electrostatic discharge protector D5, which is composed of two diodes; wherein the first interface and the second interface are respectively connected to the cathode of a diode in the TPET05US3 type electrostatic discharge protector, and the anodes of the two diodes in the TPET05US3 type electrostatic discharge protector are respectively grounded; through the above design, the device can be effectively protected from electrostatic interference and prevent electrostatic discharge from damaging the circuit, thereby improving the reliability and stability of the circuit.

[0064] Therefore, through the above detailed circuit description of the serial port monitoring module, two-way monitoring function can be realized, thereby improving the flexibility of use.

[0065] In one possible design, one circuit structure of the USB interface module is disclosed below.

[0066] In this embodiment, the USB interface module includes a Type-c interface, wherein the main control module is electrically connected to the USB interface on the host computer through the Type-c interface; in this way, the connection between the visual portable serial monitor and the host computer can be realized. At the same time, the visual portable serial monitor is also connected to the serial device through the USB to serial port module, based on which, communication between the host computer and the serial port device can be realized; optionally, the specific circuit diagram of the USB to serial port module can be seen in Figure 7.

[0067] Furthermore, the Type-C interface includes DN2 pin, DN1 pin, DP1 pin, DP2 pin and two VBUS pins; of course, it also includes other pins such as GND. The pin diagram can be seen in Figure 6 shown.

[0068] The connection structure of the aforementioned pins is as follows:

[0069] See also Figure 6As shown, both VBUS pins are electrically connected to the second DC power supply (i.e., VCC_USB power supply), and one of the VBUS pins is also electrically connected to the first DC power supply through the third diode D1; at the same time, the DN2 pin and DN1 pin of the Type-C interface are electrically connected to one end of the third resistor R1 and one end of the fourth resistor R3, wherein the other end of the third resistor R1 is electrically connected to the main control module (i.e., electrically connected to the 32nd pin of the PG01S main control chip), and the other end of the fourth resistor R3 is grounded.

[0070] Similarly, the DP1 pin and DP2 pin of the Type-c interface are electrically connected to one end of the fifth resistor R2 and one end of the sixth resistor R4, wherein the other end of the fifth resistor R2 is electrically connected to the main control module (i.e., electrically connected to the 33rd pin of the PG01S main control chip), and the other end of the sixth resistor R4 is grounded.

[0071] In addition, for example, the resistance values of the third resistor R1 , the fourth resistor R3 , the fifth resistor R2 and the sixth resistor R4 can be, but are not limited to, set to 20Ω, 1MΩ, 20Ω and 1MΩ respectively, and the third diode D1 is also a Schottky diode.

[0072] Thus, through the above circuit description, the communication connection between the visual portable serial monitor and the host computer can be realized.

[0073] Furthermore, in a specific embodiment, for example, this embodiment is also provided with a display screen operation module, wherein the display screen operation module is electrically connected to the main control module, so that engineers can perform human-computer interaction with the display module based on the display screen operation module.

[0074] In this embodiment, the display screen operation module may include, but is not limited to: a dip switch, wherein, in this embodiment, the dip switch is used to replace three independent buttons, and the operation of the LCD display screen is completed by up, down, short press, and long press operations, thereby improving the convenience of operation; optionally, the functions that can be realized by the dip switch may include, but are not limited to, data page turning and current page screenshot, and the connection circuit diagram of the dip switch and the main control module can be seen in Figure 8 shown.

[0075] In addition, for example, this embodiment is also provided with a power supply module, which is used to provide working power for the aforementioned modules, such as a 3.3V DC power supply. At the same time, before the 3.3V DC power supply is input into each 3.3V power supply terminal, for example, a voltage regulator can be used for voltage stabilization, but is not limited to, to ensure the stability of the power supply, such as using an ME6118A33B3G type voltage regulator, and its circuit diagram can be, but is not limited to, see Figure 9 As shown; of course, other types of voltage stabilizers can also be used, and are not limited to the aforementioned examples.

[0076] After completing the circuit structure description of each circuit module in the aforementioned visual portable serial port monitor, this embodiment provides a product structure description of the monitor.

[0077] In a specific implementation, the visual portable serial monitor includes a housing 10, wherein the aforementioned circuit modules are integrated on a PCB circuit board, and the PCB circuit board is fixed in the housing 10; at the same time, various interfaces and dip switches are provided on the side of the housing 10, see Figure 10 As shown, a USB / UART interface (i.e., the interface corresponding to the USB to serial port module) and a monitoring port (i.e., the aforementioned serial port monitoring signal interface) are provided on the left side, a dip switch is provided on the right side, a Type-c interface is provided on the upper side, and a mounting hole 20 is provided on the bottom (i.e., the lower side).

[0078] In this embodiment, for example, three mounting holes 20 are provided, which are compatible with Lego bricks. This makes it easy to complete product installation and fixation in conjunction with technology bricks.

[0079] Furthermore, in order to improve the convenience of use, for example, the back of the housing 10 can also be provided with an adsorption fixing device for fixing the visual portable serial monitor; wherein, see Figure 11 As shown, the example adsorption and fixing device includes a plurality of magnets, and a plurality of magnet slots 30 are provided on the back of the housing 10, and each magnet is installed in the magnet slot 30 in a one-to-one correspondence; based on this, the monitor can be adsorbed onto the industrial control housing, so that the engineer can free his hands to view the monitoring results.

[0080] Through the above description, the visual portable serial port monitor provided by this embodiment can be used in a variety of scenarios and can have a variety of uses; for example, the visual portable serial port monitor can read the data of the serial port device and display it visually. Its application diagram can be seen in Figure 12 As shown; For example, this portable visual serial monitor can monitor the serial communication data between different devices. Its application diagram can be seen in Figure 13 As shown; For example, it can also replace the current USB-UART serial port module to realize the computer's control of the lower device, but adds data visualization function. Its application diagram can be seen in Figure 14 shown.

[0081] Therefore, through the above detailed description of the visual portable serial port monitor, the utility model has the following advantages:

[0082] (1) While retaining the functions of traditional USB-to-UART products, the present invention also realizes the data visualization function and the two-way signal monitoring function; thus, the flexibility of use can be greatly improved, and therefore, it is very suitable for large-scale application and promotion.

[0083] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.

Claims

1. A visual portable serial port monitor based on a single chip microcomputer, characterized in that: include: Main control module, display module and serial port monitoring module; The serial port monitoring module includes two serial port monitoring signal interfaces, wherein the two serial port monitoring signal interfaces are electrically connected to serial port devices respectively, the output end of the serial port monitoring module is electrically connected to the main control module, and the main control module is electrically connected to the display module; The visual portable serial port monitor further comprises: a USB to serial port module and a USB interface module; The main control module is connected to the host computer via the USB interface module, and the main control module is also connected to the serial port device via the USB to serial port module.

2. A visual portable serial port monitor based on a single chip microcomputer according to claim 1, characterized in that: The serial port monitoring module further includes: a first diode (D3), a second diode (D4), a first resistor (R8), a second resistor (R7) and an electrostatic discharge protection unit, and the two serial port monitoring signal interfaces include a first interface and a second interface; The cathode of the first diode (D3) is electrically connected to the first interface, the anode of the first diode (D3) serves as the output end of the serial port monitoring module and is electrically connected to the main control module, and the anode of the first diode (D3) is also electrically connected to the first DC power supply via the first resistor (R8); The cathode of the second diode (D4) is electrically connected to the second interface, and the anode of the second diode (D4) also serves as the output end of the serial port monitoring module and is electrically connected to the main control module, wherein the anode of the second diode (D4) is also electrically connected to the first DC power supply via the second resistor (R7), and the first interface and the second interface are grounded via the electrostatic discharge protection unit.

3. A visual portable serial port monitor based on a single chip microcomputer according to claim 1, characterized in that: The USB interface module includes a Type-c interface, wherein the main control module is electrically connected to the USB interface on the host computer through the Type-c interface.

4. A visual portable serial port monitor based on a single chip microcomputer according to claim 3, characterized in that: The Type-C interface includes two VBUS pins, wherein both VBUS pins are electrically connected to the second DC power supply, and one of the VBUS pins is also electrically connected to the first DC power supply via a third diode (D1); The DN2 pin and the DN1 pin of the Type-C interface are both electrically connected to one end of a third resistor (R1) and one end of a fourth resistor (R3), wherein the other end of the third resistor (R1) is electrically connected to the main control module, and the other end of the fourth resistor (R3) is grounded; The DP1 pin and the DP2 pin of the Type-C interface are both electrically connected to one end of a fifth resistor (R2) and one end of a sixth resistor (R4), wherein the other end of the fifth resistor (R2) is electrically connected to the main control module, and the other end of the sixth resistor (R4) is grounded.

5. The visual portable serial port monitor based on a single chip microcomputer according to claim 1, characterized in that: Also includes: A display screen operating module, wherein the display screen operating module is electrically connected to the main control module.

6. A visual portable serial port monitor based on a single chip microcomputer according to claim 5, characterized in that: The display screen operation module includes: a dial switch.

7. The visual portable serial port monitor based on a single chip microcomputer according to claim 1, characterized in that: Also includes: A housing (10), wherein a mounting hole (20) is provided at the bottom of the housing (10).

8. The visual portable serial port monitor based on a single chip microcomputer according to claim 7, characterized in that: The back of the housing (10) is also provided with an adsorption fixing device for fixing the visual portable serial port monitor.

9. The visual portable serial port monitor based on a single chip microcomputer according to claim 8, characterized in that: The adsorption and fixing device comprises a plurality of magnets, wherein a plurality of magnet slots (30) are provided on the back of the housing (10), and each magnet is mounted in the magnet slot (30) in a one-to-one correspondence.

10. The visual portable serial port monitor based on a single chip microcomputer according to claim 1, characterized in that: The main control module adopts a PG01S main control chip and its peripheral circuits, and the display module includes an LCD display screen.