A serial port module capable of automatically displaying serial port information

By introducing wireless transmission modules and display modules into the serial port module, the problem of users' difficulty in distinguishing multiple serial port devices is solved, and the rapid distinction between serial port numbers and devices is achieved and convenient display is achieved.

CN222748968UActive Publication Date: 2025-04-11叶则荣
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421055868.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2025-04-11
Estimated Expiration
2034-05-15

AI Technical Summary

Technical Problem

When the existing serial port module is connected to multiple external devices, it is difficult for users to distinguish the external devices corresponding to each serial port number.

Method used

A serial port module including a USB module, a main wireless transmission module, a slave wireless transmission module, a display module and several serial ports is designed. The serial port data and device information are transmitted simultaneously with the PC through the wireless transmission module, and the serial port information of external devices is displayed on the display module.

Benefits of technology

This enables users to quickly distinguish the external devices corresponding to the serial port number, and improves the convenience of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222748968U_ABST
    Figure CN222748968U_ABST
Patent Text Reader

Abstract

The utility model discloses a serial port module capable of self-displaying serial port information, characterized in that it comprises a USB module, a main wireless transmission module, a slave wireless transmission module, a display module and a plurality of serial ports; the serial port module is connected to a PC via a USB module, the USB module is respectively connected to the main wireless transmission module and the slave wireless transmission module, the main wireless transmission module is connected to the slave wireless transmission module, the display module is connected to the slave wireless transmission module, and a plurality of serial ports are connected to the slave wireless transmission module for connection of external devices. The utility model transmits serial port data and serial port information of external devices synchronously with a PC via the main wireless transmission module and the slave wireless transmission module, and displays the serial port information of the external devices on the display module of the serial port module, so that a user can quickly distinguish the external devices corresponding to the serial port numbers, and is convenient to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of serial port modules, in particular to a serial port module which can automatically display serial port information. Background Art

[0002] The serial port module is a module that connects computers and external devices. It has a wide range of application scenarios, such as data transmission between computers and external devices, data acquisition between embedded systems and sensors, remote device control, and industrial automation. Through the serial port module, communication and data exchange between different devices can be achieved, which provides convenience for various applications and has important technical value.

[0003] After an existing external device is connected to the PC via a serial port module, you need to go to the device manager (Windows environment) or / dev (Linux / Unix environment) to check the serial port number of the current external device. Taking the Windows environment as an example, when a new external device is connected to the PC via a serial port module, the device manager on the PC will display the serial port number of the external device, such as COM12. When multiple external devices are connected at the same time, the device manager will display multiple serial port numbers at the same time, such as COM12, COM13, etc., and the user cannot distinguish the external device corresponding to each serial port number from the device manager. Utility Model Content

[0004] The utility model aims to provide a serial port module which can display serial port information by itself and can distinguish the external devices corresponding to the serial port numbers.

[0005] To achieve the above-mentioned purpose, the solution of the utility model is: a serial port module that can self-display serial port information, including a USB module, a main wireless transmission module, a slave wireless transmission module, a display module and several serial ports; the serial port module is connected to the PC through the USB module, the USB module is respectively connected to the main wireless transmission module and the slave wireless transmission module, the main wireless transmission module is connected to the slave wireless transmission module, the display module is connected to the slave wireless transmission module, and several serial ports are connected to the slave wireless transmission module for external devices to connect.

[0006] The preferred solution further includes a communication module, and the USB module of the serial port module is connected to the PC via the communication module.

[0007] Preferably, the communication protocol of the communication module includes an ACM protocol and a HID protocol, the ACM protocol is used to transmit serial port data, and the HID protocol is used to transmit serial port information.

[0008] In a preferred embodiment, the main wireless transmission module includes a main wireless MCU and a main wireless module, the USB module is connected to the main wireless MCU, and the main wireless module is connected to the main wireless MCU.

[0009] In a preferred embodiment, the slave wireless transmission module includes a slave wireless MCU and a slave wireless module, the USB module is connected to the slave wireless MCU, and the slave wireless module and the display module are respectively connected to the slave wireless MCU.

[0010] In a preferred solution, the PC is provided with a wireless module, and the wireless module of the PC is connected to the slave wireless module of the slave wireless transmission module.

[0011] The preferred solution further comprises an external wireless module, the PC is connected to the external wireless module, and the slave wireless module of the slave wireless transmission module is connected to the external wireless module.

[0012] Preferably, the master wireless module is connected to the slave wireless module.

[0013] Preferably, the connection between the master wireless module and the slave wireless module adopts WiFi wireless transmission mode, Bluetooth wireless transmission mode, ZigBee wireless transmission mode or LoRa wireless transmission mode.

[0014] Preferably, the plurality of serial ports include an RS485 serial port, an RS232 serial port and a TTL serial port.

[0015] After adopting the above scheme, the beneficial effect of the utility model is that the utility model synchronously transmits serial port data and serial port information of external devices with the PC through the main wireless transmission module and the slave wireless transmission module, and displays the serial port information of the external device on the display module of the serial port module, so that the user can quickly distinguish the external device corresponding to the serial port number, which is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is the overall structural diagram of the utility model;

[0017] Figure 2 It is a structural block diagram of the utility model when the PC has a wireless module and transmits in a wireless manner;

[0018] Figure 3 It is a structural block diagram of the utility model when the PC does not have a wireless module and transmits in a wireless manner;

[0019] Figure 4 It is another structural block diagram of the utility model for transmitting in a wireless manner when the PC does not have a wireless module;

[0020] Figure 5 It is a structural block diagram of the utility model transmitted in a wired manner;

[0021] Figure 6 The utility model is a schematic diagram of a master wireless MCU, a slave wireless MCU, a display module and peripheral circuits.

[0022] Description of labels:

[0023] 100, serial port module; 200, PC; 300, communication module; 400, external device; 500, main wireless MCU schematic diagram; 600, slave wireless MCU schematic diagram; 700, display module schematic diagram; 110, USB module; 120, main wireless transmission module; 130, slave wireless transmission module; 140, display module; 150, serial port; 121, main wireless MCU; 122, main wireless module; 131, slave wireless MCU; 132, slave wireless module; 210, wireless module; 220, external wireless module. DETAILED DESCRIPTION

[0024] The utility model is now further described in conjunction with the accompanying drawings and specific implementation methods.

[0025] The utility model provides a serial port module 100 which can display serial port information by itself. Figures 1 to 5 As shown, it includes a USB module 110, a main wireless transmission module 120, a slave wireless transmission module 130, a display module 140 and several serial ports 150; the serial port module 100 is connected to the PC 200 through the USB module 110, the USB module 110 is respectively connected to the main wireless transmission module 120 and the slave wireless transmission module 130, the main wireless transmission module 120 is connected to the slave wireless transmission module 130, the display module 140 is connected to the slave wireless transmission module 130, and several serial ports 150 are connected to the slave wireless transmission module 130 for connection of external devices 400.

[0026] The utility model is provided with a display module 140 on the serial port module 100, and the main wireless transmission module 120 and the slave wireless transmission module 130 synchronously transmit serial port data and serial port information of the external device 400 with the PC 200, and the serial port information of the external device 400 will be displayed on the display module 140, which is convenient for the user to use and view. For example, when an external device 400 is plugged into the serial port module 100, the display module 140 will display the serial port number COM14 of the external device 400 in the Windows environment, and will display / dev / ttyUSB in the Linux or Unix environment, so as to achieve the purpose of quickly distinguishing the serial port number. In the present embodiment, the display module 140 can display the serial port number of the external device 400, the baud rate of the current device, the data bit and the parity check and other information, so as to facilitate the user to view. At the same time, the display module 140 can adopt an OLED display screen or other display devices.

[0027] like Figure 1 , Figure 4 and Figure 5 As shown, the serial port module 100 further includes a communication module 300, and the USB module 110 of the serial port module 100 is connected to the PC 200 via the communication module 300. The serial port module 100 and the PC 200 of this embodiment establish a connection relationship via the communication module 300 to achieve data conversion and transmission between different interfaces, so that the serial port module 100 and the PC 200 can communicate with each other.

[0028] like Figure 1 , Figure 4 and Figure 5 As shown, the communication protocol of the communication module 300 includes the ACM protocol and the HID protocol, the ACM protocol is used to transmit serial port data, and the HID protocol is used to transmit serial port information.

[0029] In this embodiment, when the serial port module 100 is plugged into the PC 200, the PC 200 establishes the ACM protocol and the HID protocol with the serial port module 100. Since the PC 200 communicates with the serial port module 100 via the USB module 110, a driver program usually needs to be installed on the PC 200. This driver program will handle the underlying details of the USB communication and convert the ACM protocol into an interface that can be used at the operating system level. For example, in the Windows environment, this driver program will create a virtual serial port or other types of communication ports, so that the application program can communicate with the external device 400 through the standard serial port communication API function, which is well known to those skilled in the art. Therefore, the ACM protocol of this embodiment is used to transmit the data of the traditional serial port, and the serial port module 100 sends the received data to the external device 400 through the physical serial port such as RS485, RS232 and TTL.

[0030] And the HID protocol of the present embodiment is a kind of communication protocol based on USB, is mainly used for data transmission between computer and input device.HID protocol is a part in USB protocol stack, it is located on the bottom layer protocol of USB, provides standardized communication interface and data format.In the present embodiment, HID protocol is used to transmit the information of serial port module 100 on PC200, when PC200 host computer recognizes that serial port module 100 is inserted, can synchronously detect whether serial port module 100 supports display serial port information, such as serial port name, descriptor, etc., PC200 host computer software sends serial port module 100 back to serial port module 100 by HID protocol after collecting these information, serial port module 100 also can display serial port information on display module 140, this is that those skilled in the art can realize, no longer elaborate.Certainly, in other embodiments, HID protocol can also use other general protocols, such as WinUSB protocol, etc.

[0031] like Figure 1and Figure 4 As shown, the main wireless transmission module 120 includes a main wireless MCU 121 and a main wireless module 122, the USB module 110 is connected to the main wireless MCU 121, and the main wireless module 122 is connected to the main wireless MCU 121. The slave wireless transmission module 130 includes a slave wireless MCU 131 and a slave wireless module 132, the USB module 110 is connected to the slave wireless MCU 131, and the slave wireless module 132 and the display module 140 are respectively connected to the slave wireless MCU 131. In this embodiment, the main wireless MCU 121 and the slave wireless MCU 131 both use the ESP32-S3 chip, and the display module 140 uses an OLED display screen. For details of the main wireless MCU schematic diagram 500, the slave wireless MCU schematic diagram 600, the display module schematic diagram 700, and the peripheral circuit schematic diagram and the connection relationship between the devices, see Figure 6 .

[0032] like Figure 2 The first information transmission mode of this embodiment is shown, the PC 200 is provided with a wireless module 210, and the wireless module 210 of the PC 200 is connected to the slave wireless module 132 of the slave wireless transmission module 130. The external device 400 is connected to the serial port module 100 through the serial port 150, and the serial port module 100 is connected to the PC 200 through the USB module 110. When the wireless module 210 is provided on the PC 200, the wireless module 210 of the PC 200 can be connected to the slave wireless module 132 of the slave wireless transmission module 130, for example, through WiFi, so that the PC 200 transmits the serial port information of the external device 400 and the data of the serial port itself to the slave wireless module 132 through WiFi. The slave wireless module 132 transmits the data of the serial port itself to the external device 400 through the slave wireless MCU 131 and the serial port 150, and the serial port information such as the serial port number is transmitted to the display module 140 through the slave wireless MCU 131 for display. The transmission process from the PC 200 to the wireless module 132 is implemented through drivers of different platforms, without going through the ACM protocol and the HID protocol of the communication module 300 , which can be easily implemented by those skilled in the art.

[0033] like Figure 3As shown, unlike the first information transmission mode, the second information transmission mode of this embodiment also includes an external wireless module 220, the PC 200 is connected to the external wireless module 220, and the slave wireless module 132 of the slave wireless transmission module 130 is connected to the external wireless module 220. When the PC 200 is not provided with a wireless module 210, the PC 200 can be connected to the external wireless module 220 first, and the slave wireless module 132 can be connected to the external wireless module 220. The external wireless module 220 of this embodiment includes a carrier module corresponding to a wireless transmission protocol such as WiFi, Bluetooth or ZigBee. Taking the WiFi wireless transmission mode as an example, when the PC 200 is not provided with a wireless module 210, the PC 200 can be connected to a wireless router first, and the slave wireless module 132 can be connected to the wireless router. The data transmission process is the same as the first information transmission mode, which will not be described in detail.

[0034] like Figure 4 The third information transmission mode of this embodiment is shown, and the master wireless module 122 is connected to the slave wireless module 132. The external device 400 is connected to the serial port module 100 through the serial port 150, and the serial port module 100 is connected to the PC 200 through the USB module 110. When there is no wireless module 210 on the PC 200, the PC 200 transmits the serial port information of the external device 400 and the data of the serial port itself to the master wireless MCU 121 of the main wireless transmission module 120 through the ACM protocol and the HID protocol of the communication module 300, and then sends it to the slave wireless module 132 through the master wireless module 122. The slave wireless module 132 transmits the data of the serial port itself to the external device 400 through the slave wireless MCU 131 and the serial port 150, and the serial port information such as the serial port number is transmitted to the display module 140 through the slave wireless MCU 131 for display.

[0035] In addition, if Figure 5 The fourth information transmission mode of this embodiment is shown, the external device 400 is connected to the serial port module 100 through the serial port 150, and the USB module 110 of the serial port module 100 is connected to the PC 200 through the communication module 300. The PC 200 transmits the serial port information of the external device 400 and the data of the serial port itself to the slave wireless MCU 131 through the ACM protocol and the HID protocol of the communication module 300, and the data of the serial port itself is transmitted to the external device 400 through the slave wireless MCU 131 and the serial port 150, and the serial port information such as the serial port number is transmitted to the display module 140 through the slave wireless MCU 131 for display, and this data transmission process is transmitted in a wired manner.

[0036] Furthermore, the connection method between the master wireless module 122 and the slave wireless module 132 of this embodiment includes but is not limited to WiFi wireless transmission method, Bluetooth wireless transmission method, ZigBee wireless transmission method or LoRa wireless transmission method. The preferred solution adopts WiFi wireless transmission method, and other solutions may also be adopted in other embodiments.

[0037] Furthermore, in this embodiment, the plurality of serial ports 150 include an RS485 serial port, an RS232 serial port and a TTL serial port. In other embodiments, corresponding serial ports may also be set according to actual needs.

[0038] For the serial port module 100 of the present invention, the user can select a suitable information transmission method according to the requirements, as follows:

[0039] In the first information transmission mode, when the wireless module 210 is provided on the PC 200, the wireless module 210 of the PC 200 is connected to the slave wireless module 132 of the slave wireless transmission module 130, and the PC 200 transmits the serial port information of the external device 400 and the data of the serial port itself to the slave wireless module 132. The slave wireless module 132 transmits the data of the serial port itself to the external device 400 through the slave wireless MCU 131 and the serial port 150, and transmits the serial port information such as the serial port number to the display module 140 through the slave wireless MCU 131 for display.

[0040] The second information transmission method is to connect the PC 200 to the external wireless module 220 when the PC 200 is not provided with the wireless module 210, and to connect the slave wireless module 132 to the external wireless module 220, and the data transmission process is the same as the first information transmission method.

[0041] The third information transmission method is that when there is no wireless module 210 on PC200, PC200 transmits the serial port information of the external device 400 and the data of the serial port itself to the main wireless MCU121 of the main wireless transmission module 120 through the ACM protocol and HID protocol of the communication module 300, and then sends it to the slave wireless module 132 through the main wireless module 122. The slave wireless module 132 transmits the data of the serial port itself to the external device 400 through the slave wireless MCU131 and the serial port 150, and the serial port information such as the serial port number is transmitted to the display module 140 for display through the slave wireless MCU131.

[0042] The fourth information transmission method is that PC200 transmits the serial port information of the external device 400 and the data of the serial port itself to the slave wireless MCU131 through the ACM protocol and the HID protocol of the communication module 300, and the data of the serial port itself is transmitted to the external device 400 through the slave wireless MCU131 and the serial port 150, and the serial port information such as the serial port number is transmitted from the wireless MCU131 to the display module 140 for display.

[0043] The above description is only a preferred embodiment of the present utility model and is not a limitation on the design of the present case. Any equivalent changes made based on the key design of the present case shall fall within the protection scope of the present case.

Claims

1. A serial port module capable of automatically displaying serial port information, characterized in that: It includes a USB module, a master wireless transmission module, a slave wireless transmission module, a display module and several serial ports; The serial port module is connected to the PC through the USB module, the USB module is respectively connected to the main wireless transmission module and the slave wireless transmission module, the main wireless transmission module is connected to the slave wireless transmission module, the display module is connected to the slave wireless transmission module, and several serial ports are connected to the slave wireless transmission module for external devices to connect.

2. A serial port module capable of self-displaying serial port information as claimed in claim 1, characterized in that: The device also includes a communication module, and the USB module of the serial port module is connected to the PC via the communication module.

3. A serial port module capable of self-displaying serial port information as claimed in claim 2, characterized in that: The communication protocol of the communication module includes an ACM protocol and a HID protocol, the ACM protocol is used to transmit serial port data, and the HID protocol is used to transmit serial port information.

4. A serial port module capable of self-displaying serial port information as claimed in claim 1, characterized in that: The main wireless transmission module includes a main wireless MCU and a main wireless module. The USB module is connected to the main wireless MCU, and the main wireless module is connected to the main wireless MCU.

5. A serial port module capable of self-displaying serial port information as claimed in claim 4, characterized in that: The slave wireless transmission module comprises a slave wireless MCU and a slave wireless module. The USB module is connected to the slave wireless MCU. The slave wireless module and the display module are respectively connected to the slave wireless MCU.

6. A serial port module capable of self-displaying serial port information as claimed in claim 5, characterized in that: The PC is provided with a wireless module, and the wireless module of the PC is connected to the slave wireless module of the slave wireless transmission module.

7. A serial port module capable of self-displaying serial port information as claimed in claim 5, characterized in that: It also includes an external wireless module, the PC is connected to the external wireless module, and the slave wireless module of the slave wireless transmission module is connected to the external wireless module.

8. A serial port module capable of self-displaying serial port information as claimed in claim 5, characterized in that: The master wireless module is connected to the slave wireless module.

9. A serial port module capable of self-displaying serial port information as claimed in claim 8, characterized in that: The connection mode between the master wireless module and the slave wireless module adopts WiFi wireless transmission mode, Bluetooth wireless transmission mode, ZigBee wireless transmission mode or LoRa wireless transmission mode.

10. A serial port module capable of self-displaying serial port information as claimed in claim 1, characterized in that: The plurality of serial ports include an RS485 serial port, an RS232 serial port and a TTL serial port.