An interface multiplexing circuit and method, an electronic device

By designing an interface multiplexing circuit in a server chassis, a serial port detection module is used to multiplex serial and USB interfaces using a 9-pin target interface, a 4-pin target interface, and a serial port detection module. The automatic detection of the serial port detection module realizes the multiplexing of serial and USB interfaces, solves the problem of limited space in the server chassis, and achieves automatic detection and protection of serial and USB interfaces.

CN115576878BActive Publication Date: 2026-04-17JINAN INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2022-10-14
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively reuse serial and USB interfaces within server chassis, especially in limited spaces, and existing solutions suffer from inconvenience or potential equipment damage.

Method used

Design an interface multiplexing circuit that utilizes a 9-pin target interface. Four pins are connected to a USB circuit module, and the remaining five pins are connected to a serial port detection module. The serial port detection module automatically controls the pin enable to switch between USB and serial port devices, and avoids damage to the serial port current when a USB device is plugged in.

Benefits of technology

It enables the reuse of serial and USB interfaces, saving motherboard space, protecting USB devices, and taking into account the difference between serial port current and USB interface current, providing device protection measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576878B_ABST
    Figure CN115576878B_ABST
Patent Text Reader

Abstract

The application discloses an interface multiplexing circuit and method in the field of computer technology, and an electronic device. The circuit provided by the application comprises a target interface provided with nine pins, a USB circuit module, a serial port detection module and a serial port circuit module. Four pins in the target interface are connected with the USB circuit module, other pins or part of the pins in the other are connected with the serial port detection module, and the serial port detection module is connected with the serial port circuit module. If the target interface is connected with a USB device, the serial port detection module detects a serial port disable signal and controls all pins of the target interface connected with the serial port detection module to be disabled; if the target interface is connected with a serial port device, the serial port detection module detects a serial port enable signal and controls all pins of the target interface connected with the serial port detection module to be enabled. The circuit realizes multiplexing of the serial port and the USB interface. Correspondingly, the interface multiplexing method and the electronic device provided by the application also have the above technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an interface multiplexing circuit and method, and an electronic device. Background Technology

[0002] Currently, due to industry-standard size limitations, server chassis must reduce motherboard size and the number of reserved interfaces to achieve multiple drive bays and high expandability. However, essential functional interfaces such as IPMI (Intelligent Platform Management Interface), USB (Universal Serial Bus), VGA (Video Graphics Array), and serial debugging interfaces cannot be omitted. Furthermore, some server models have limited space, making it difficult to allocate sufficient space on the motherboard for these interfaces.

[0003] Therefore, interface reuse can be considered. Current interface reuse solutions include: (1) enabling the RJ45 (Registered Jack 45) network port to reuse RS232 serial port and 100 Mbps network. However, since the network required by the server is generally gigabit or higher, the RJ45 network port has no spare pins to reuse other types of interfaces. (2) making the server body have external high-density connectors, and then using adapter cables to bring out USB interface, VGA interface and serial port. Although this method can achieve reuse, it requires external adapter cables to bring out various types of interfaces, which is inconvenient to use. It can be seen that the existing solutions cannot easily realize the reuse of serial port and USB interface.

[0004] Therefore, how to provide a convenient solution for multiplexing serial and USB interfaces is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] In view of this, the purpose of this application is to provide an interface multiplexing circuit and method, and an electronic device, to provide a convenient multiplexing scheme for serial port and USB interfaces. The specific scheme is as follows:

[0006] In a first aspect, this application provides an interface multiplexing circuit, comprising: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein, 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins or a portion of the remaining 5 pins are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module;

[0007] The target interface is used to connect a USB device or a serial port device. If the target interface is connected to the USB device, the serial port detection module detects the serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to be de-enabled. If the target interface is connected to the serial port device, the serial port detection module detects the serial port enable signal and controls the pins of the target interface connected to the serial port detection module to be enabled.

[0008] Optionally, the target interface has a built-in power supply for powering the USB device or the serial port device.

[0009] Optionally, the USB device or the serial port device is a wireless communication device.

[0010] Optionally, the wireless communication device may be a Bluetooth communication device, a WIFI communication device, a 3G communication device, a 4G communication device, or a 5G communication device.

[0011] Optionally, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

[0012] Optionally, each pin of the target interface to which the serial port detection module is connected is defined as RS422, RS485, or RS232 standard.

[0013] Optionally, the USB circuit module, the serial port detection module, and the serial port circuit module are built into the computer device, and the target interface is an external interface of the computer device. This computer device may specifically include, but is not limited to, smartphones, servers, routers, switches, tablets, laptops, or desktop computers.

[0014] Optionally, it also includes:

[0015] The interface multiplexing circuit communicates with external devices via the USB device or the serial port device for circuit debugging.

[0016] Secondly, this application provides an interface multiplexing method applied to the interface multiplexing circuit described in any of the above claims. The interface multiplexing circuit includes: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein, 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins or a portion of the remaining 5 pins are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module; the target interface is used to plug in a USB device or a serial port device.

[0017] The method includes: if the target interface is plugged into the USB device, the serial port detection module detects a serial port de-enable signal and controls each pin of the target interface connected to the serial port detection module to be de-enabled; if the target interface is plugged into the serial port device, the serial port detection module detects a serial port enable signal and controls each pin of the target interface connected to the serial port detection module to be enabled.

[0018] Optionally, it also includes:

[0019] The interface multiplexing circuit communicates with external devices via the USB device or the serial port device for circuit debugging.

[0020] Optionally, the target interface has a built-in power supply for powering the USB device or the serial port device.

[0021] Optionally, the USB device or the serial port device is a wireless communication device.

[0022] Optionally, the wireless communication device may be a Bluetooth communication device, a WIFI communication device, a 3G communication device, a 4G communication device, or a 5G communication device.

[0023] Optionally, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

[0024] Optionally, each pin of the target interface to which the serial port detection module is connected is defined as RS422, RS485, or RS232 standard.

[0025] Optionally, the USB circuit module, the serial port detection module, and the serial port circuit module are built into the computer device, and the target interface is an external interface of the computer device. This computer device may specifically include, but is not limited to, smartphones, servers, routers, switches, tablets, laptops, or desktop computers.

[0026] Thirdly, this application provides an electronic device, comprising: at least one interface multiplexing circuit as described in any of the preceding claims. The interface multiplexing circuit includes: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins, or a portion of the remaining 5 pins, are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module; the target interface is used to connect a USB device or a serial port device. Wherein, if the target interface is connected to the USB device, the serial port detection module detects a serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to de-enable; if the target interface is connected to the serial port device, the serial port detection module detects a serial port enable signal and controls the pins of the target interface connected to the serial port detection module to enable.

[0027] Optionally, the target interface has a built-in power supply for powering the USB device or the serial port device.

[0028] Optionally, the USB device or the serial port device is a wireless communication device.

[0029] Optionally, the wireless communication device may be a Bluetooth communication device, a WIFI communication device, a 3G communication device, a 4G communication device, or a 5G communication device.

[0030] Optionally, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

[0031] Optionally, each pin of the target interface to which the serial port detection module is connected is defined as RS422, RS485, or RS232 standard.

[0032] Optionally, the USB circuit module, the serial port detection module, and the serial port circuit module are built into the computer device, and the target interface is an external interface of the computer device. This computer device may specifically include, but is not limited to, smartphones, servers, routers, switches, tablets, laptops, or desktop computers.

[0033] Optionally, it also includes:

[0034] The interface multiplexing circuit communicates with external devices via the USB device or the serial port device for circuit debugging.

[0035] As can be seen from the above scheme, this application provides an interface multiplexing circuit, including: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein, 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins or a portion of the remaining 5 pins are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module; the target interface is used to plug in a USB device or a serial port device; if the target interface is plugged in with a USB device, the serial port detection module detects a serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to de-enable; if the target interface is plugged in with a serial port device, the serial port detection module detects a serial port enable signal and controls the pins of the target interface connected to the serial port detection module to enable.

[0036] As can be seen, the interface multiplexing circuit provided in this application can use a single target interface as either a USB interface or a serial port. The circuit includes a target interface with nine pins, a USB circuit module, a serial port detection module, and a serial port circuit module. Four pins of the target interface are connected to the USB circuit module, and the remaining five pins, or a portion of the remaining five pins, are connected to the serial port detection module, which in turn is connected to the serial port circuit module. The target interface can connect to either a USB device or a serial port device. If a USB device is connected to the target interface, the serial port detection module detects a serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to de-enable. If a serial port device is connected to the target interface, the serial port detection module detects a serial port enable signal and controls the pins of the target interface connected to the serial port detection module to enable. Therefore, the target interface can be either a USB interface or a serial port, and can connect to both types of devices, thus achieving multiplexing of the serial and USB interfaces and automatically determining serial port connectivity based on the connected device. Since serial port current is generally greater than USB interface current, this application enables the serial port to be disabled when a USB device is plugged into the target interface to prevent the serial port current from damaging the USB device. Therefore, this application can achieve multiplexing of serial and USB interfaces, saving motherboard space, and also considers the difference in current between serial and USB interfaces, providing protection for USB devices using a serial port detection module.

[0037] Correspondingly, the interface reuse method and electronic device provided in this application also have the above-mentioned technical effects. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0039] Figure 1 This is a schematic diagram of an interface multiplexing circuit disclosed in this application;

[0040] Figure 2 This is a schematic diagram of an interface reuse method disclosed in this application;

[0041] Figure 3 This is a schematic diagram of another interface multiplexing circuit disclosed in this application;

[0042] Figure 4 This is a schematic diagram of a serial port detection circuit module disclosed in this application. Detailed Implementation

[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0044] Current interface reuse schemes include: (1) enabling the RJ45 (Registered Jack 45) network port to reuse RS232 serial port and 100 Mbps network. However, since the network required by the server is generally gigabit or higher, the RJ45 network port has no spare pins to reuse other types of interfaces. (2) making the server chassis have external high-density connectors, and then using adapter cables to bring out USB interface, VGA interface and serial port. Although this method can achieve reuse, it requires external adapter cables to bring out various types of interfaces, which is inconvenient to use. It can be seen that the existing schemes cannot easily realize the reuse of serial port and USB interface. To this end, this application provides an interface reuse scheme that can realize the reuse of serial port and USB interface, can save motherboard space, and also considers the difference in current between serial port and USB interface, and uses a serial port detection module to provide protection measures for USB devices.

[0045] See Figure 1As shown in the figure, this application discloses an interface multiplexing circuit, including: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein, 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins or some of the remaining 5 pins are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module.

[0046] The target interface is used to connect a USB device or a serial device. If a USB device is connected to the target interface, the serial port detection module detects the serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to de-enable, thereby preventing the serial port current from affecting the USB device. If a serial device is connected to the target interface, the serial port detection module detects the serial port enable signal and controls the pins of the target interface connected to the serial port detection module to enable, thereby enabling the target interface to perform serial port functions.

[0047] In one specific implementation, the target interface has a built-in power supply for powering the USB device or serial device. The USB device or serial device is one that requires an external power source. If the USB device or serial device does not require an external power source, then the power supply in the target interface can power the USB device or serial device when its built-in power supply is unavailable or malfunctions.

[0048] In one specific implementation, the USB device or serial port device is a wireless communication device. This wireless communication device can be a Bluetooth communication device, a Wi-Fi (Wireless Fidelity) communication device, a 3G communication device, a 4G communication device, or a 5G communication device. The interface multiplexing circuit can communicate with external devices via Bluetooth, Wi-Fi, 3G, or other similar devices, thereby enabling functions such as debugging the interface multiplexing circuit and debugging the interface itself.

[0049] In one specific implementation, the USB circuit module, serial port detection module, and serial port circuit module are built into the computer device, and the target interface is the external interface of the computer device. Therefore, the computer device can connect the USB device and the serial port device through a single target interface. The computer device can be a server, personal computer, intelligent robot, or similar device.

[0050] In one specific implementation, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard. USB 2.0 and USB 3.0 are two different USB data transfer standards.

[0051] In one specific implementation, the pins of the target interface to which the serial port detection module is connected are defined as RS422, RS485, or RS232 standards. RS422, RS485, and RS232 are three different bus standards.

[0052] The interface multiplexing circuit provided in this embodiment can use a target interface as a USB interface or a serial port. The circuit includes a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module. Four pins of the target interface are connected to the USB circuit module, and the remaining five pins, or a portion of the remaining five pins, are connected to the serial port detection module, which in turn is connected to the serial port circuit module. The target interface can connect to either a USB device or a serial device. If a USB device is connected to the target interface, the serial port detection module detects a serial port de-enable signal and controls the pins of the target interface to which the serial port detection module is connected to de-enable. If a serial device is connected to the target interface, the serial port detection module detects a serial port enable signal and controls the pins of the target interface to which the serial port detection module is connected to enable.

[0053] As can be seen, the target interface can be either a USB interface or a serial port, allowing connection to both USB and serial devices. This achieves multiplexing of the serial and USB interfaces and automatically determines serial port connectivity based on the connected device. Since serial port current is generally greater than USB interface current, this application disables the serial port when a USB device is connected to the target interface to prevent damage from the serial port current. Therefore, this application achieves multiplexing of serial and USB interfaces, saves motherboard space, and considers the difference in current between the serial and USB interfaces, providing protection for USB devices using a serial port detection module.

[0054] The following describes an interface multiplexing method provided by an embodiment of this application. The interface multiplexing method described below and the interface multiplexing circuit described above can be referred to each other.

[0055] This application provides an interface multiplexing method applied to the interface multiplexing circuit described in the above embodiments. The interface multiplexing circuit includes: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module. Four pins of the target interface are connected to the USB circuit module, and the remaining five pins, or a portion of the remaining five pins, are connected to the serial port detection module. The serial port detection module is connected to the serial port circuit module. The target interface is used to connect a USB device or a serial port device.

[0056] See Figure 2 As shown in the embodiments of this application, an interface reuse method includes:

[0057] S201. If a USB device is plugged into the target interface, the serial port detection module detects the serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to de-enable.

[0058] S203. If a serial port device is plugged into the target interface, the serial port detection module detects the serial port enable signal and controls the pins of the target interface connected to the serial port detection module to be enabled.

[0059] As can be seen, the target interface can be connected to either a USB device or a serial device. If a USB device is connected to the target interface, the serial port detection module detects the serial port de-enable signal and controls the pins of the target interface to be de-enabled, thereby preventing the serial port current from affecting the USB device. If a serial device is connected to the target interface, the serial port detection module detects the serial port enable signal and controls the pins of the target interface to be enabled, thus enabling the target interface to perform serial port functions.

[0060] Please refer to Figure 3 When no serial device is plugged into the USB 3.0 Type A interface, pin 5 outputs an enable signal to the serial port detection circuit module, suspending the RS232 serial port circuit module. At this time, the serial port detection circuit module outputs a high-impedance state, meaning pins 5, 6, 7, and 9 of the USB 3.0 Type A interface have no signal, thus preventing serial port current from affecting the USB device. When a serial device is plugged into the USB 3.0 Type A interface, pin 5 outputs an enable signal to the serial port detection circuit module, enabling the module. The signal input to the serial port detection circuit module from the RS232 serial port circuit module is output to pins 6, 7, and 9 of the USB 3.0 Type A interface, enabling the USB 3.0 Type A interface to function as a serial port. Therefore, serial signals can only be output through the interface after a serial device is plugged in. If a USB device is connected, the serial signal will be intercepted by the detection circuit to protect the USB device.

[0061] In one specific implementation, the interface multiplexing circuit communicates with external devices via a USB device or a serial port device for circuit debugging.

[0062] In one specific implementation, the target interface has a built-in power supply for powering USB or serial devices.

[0063] In one specific embodiment, the USB device or serial port device is a wireless communication device. In another specific embodiment, the wireless communication device is a Bluetooth communication device, a Wi-Fi communication device, a 3G communication device, a 4G communication device, or a 5G communication device. The interface multiplexing circuit can communicate with external devices through devices such as Bluetooth, Wi-Fi, and 3G communication devices, thereby realizing functions such as debugging the interface multiplexing circuit and debugging the interface.

[0064] In one specific implementation, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

[0065] In one specific implementation, the pins of the target interface to which the serial port detection module is connected are defined as RS422, RS485, or RS232 standards.

[0066] In one specific implementation, the USB circuit module, serial port detection module, and serial port circuit module are built into the computer device, and the target interface is the external interface of the computer device. Therefore, the computer device can connect the USB device and the serial port device through a single target interface. The computer device can be a server, personal computer, intelligent robot, or similar device.

[0067] Computer devices may include a processor and memory. The processor may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor may be implemented using at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor may also include a main processor and coprocessors. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which handles computational operations related to machine learning.

[0068] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. The resources stored in the memory include operating systems and data, and the storage method may be temporary or permanent storage. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, application update information. In some embodiments, the computer device may also include a display screen, input / output interfaces, communication interfaces, sensors, a power supply, and a communication bus.

[0069] For more detailed information on the working process of each module in this embodiment, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0070] As can be seen, the target interface can be either a USB interface or a serial port, allowing connection to both USB and serial devices. This achieves the reuse of both serial and USB interfaces, and automatically determines serial port connectivity based on the connected device. Since serial port current is generally greater than USB interface current, this application disables the serial port when a USB device is connected to the target interface to prevent damage from the serial port current. Therefore, this embodiment achieves the reuse of both serial and USB interfaces, saves motherboard space, and considers the difference in current between serial and USB interfaces, providing protection for USB devices using a serial port detection module.

[0071] The following embodiments specify the target interface as a USB 3.0 standard interface or an RS232 serial port. For details on another interface multiplexing circuit provided in this embodiment, please refer to [link to documentation]. Figure 3 , Figure 3 In the diagram, ① represents the target interface, which should be set to USB 3.0 Type A or RS232 serial port. ② represents the RS232 serial port circuit module (i.e., the serial port circuit module), ③ represents the serial cable detection circuit module (i.e., the serial port detection module), and ④ represents the USB circuit module. For example... Figure 3 As shown, the USB circuit module is connected to pins 1, 2, 3, and 4 of the target interface. The serial cable detection circuit module is connected to pins 5, 6, 7, and 9 of the target interface. Pin 8 of the target interface is unused. Therefore, four pins of the target interface are connected to the USB circuit module, and four of the remaining five pins are connected to the serial cable detection circuit module, which in turn connects to the RS232 serial port circuit module.

[0072] Pins 1, 2, 3, and 4 of the target interface are defined as USB 2.0 standard, ensuring backward compatibility with USB 2.0 when used as a USB interface. This allows the USB 3.0 Type-A interface to multiplex USB 2.0 and RS232 serial ports. Specifically, pins 1, 2, 3, and 4 of the target interface are defined as VBUS, DATA-, DATA+, and GND under the USB 2.0 standard, respectively. Pins 6, 7, and 9 of the target interface are Rx, GND, and Tx of the serial port circuit, respectively. Pins 4 and 5 of the target interface are GND and EN (enable) of the serial port circuit, respectively. Tx represents transmit, Rx represents receive, and GND represents the ground wire or 0 line.

[0073] The serial port cable detection circuit module can be referenced from [reference needed]. Figure 4 ,like Figure 4 As shown, the serial port detection circuit module is connected to the RS232 serial port circuit module, and simultaneously controls the serial port circuit connectivity via pin 5 of the USB 3.0 Type A interface. The output side is connected to pins 6, 7, and 9 of the USB 3.0 Type A interface.

[0074] When no serial device is plugged into the USB 3.0 Type A interface, pin 5 outputs an enable signal to the serial port detection circuit module, suspending the RS232 serial port circuit module. At this time, the serial port detection circuit module outputs a high-impedance state, meaning pins 5, 6, 7, and 9 of the USB 3.0 Type A interface have no signal. This prevents serial port current from affecting the USB device. When a serial device is plugged into the USB 3.0 Type A interface, pin 5 outputs an enable signal to the serial port detection circuit module, enabling the module. The signal input to the serial port detection circuit module from the RS232 serial port circuit module is output to pins 6, 7, and 9 of the USB 3.0 Type A interface, thus enabling the USB 3.0 Type A interface to function as a serial port. Therefore, serial signals can only be output through the interface after a serial device is plugged in. If a USB device is connected, the serial signal will be intercepted by the detection circuit to protect the USB device.

[0075] in, Figure 3 The target interface shown can have a built-in 5V power supply, which can power Bluetooth or other wireless devices plugged into the interface, thereby enabling wireless access. Wireless devices include Bluetooth communication devices, Wi-Fi communication devices, 3G communication devices, 4G communication devices, or 5G communication devices.

[0076] For more detailed information on the working process of each module in this embodiment, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0077] As can be seen, this embodiment uses a USB 3.0 Type-A interface to achieve multiplexing of USB 2.0 and RS232 serial ports, while ensuring that RS232 voltage levels do not damage USB devices. Implementing this circuit design in an integrated manner can save motherboard space and improve space utilization. While retaining commonly used interfaces, it allows for the expansion of more motherboard functions. Including a power supply circuit can expand to include wireless serial port functionality, making it easier to create wireless access solutions. This embodiment also overcomes the voltage difference between RS232 serial ports and USB, preventing RS232 serial port voltage levels from damaging USB devices.

[0078] The following describes an electronic device provided by an embodiment of this application. The electronic device described below can be referred to in conjunction with the interface multiplexing method and circuit described above.

[0079] This application provides an electronic device, including at least one interface multiplexing circuit as described in any of the above embodiments. The interface multiplexing circuit includes: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins, or a portion of the remaining 5 pins, are connected to the serial port detection module, which is connected to the serial port circuit module; the target interface is used to connect a USB device or a serial port device. If a USB device is connected to the target interface, the serial port detection module detects a serial port de-enable signal and controls the pins of the target interface to which the serial port detection module is connected to de-enable, thereby preventing serial port current from affecting the USB device; if a serial port device is connected to the target interface, the serial port detection module detects a serial port enable signal and controls the pins of the target interface to which the serial port detection module is connected to enable, thereby enabling the target interface to perform serial port functionality. For more specific details regarding the operation of each module in this embodiment, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

[0080] In one specific implementation, the target interface has a built-in power supply for powering USB or serial devices.

[0081] In one specific embodiment, the USB device or serial port device is a wireless communication device. In another specific embodiment, the wireless communication device is a Bluetooth communication device, a Wi-Fi communication device, a 3G communication device, a 4G communication device, or a 5G communication device. The interface multiplexing circuit can communicate with external devices through devices such as Bluetooth, Wi-Fi, and 3G communication devices, thereby realizing functions such as debugging the interface multiplexing circuit and debugging the interface.

[0082] In one specific implementation, the four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

[0083] In one specific implementation, the pins of the target interface to which the serial port detection module is connected are defined as RS422, RS485, or RS232 standards.

[0084] In one specific implementation, the USB circuit module, serial port detection module, and serial port circuit module are built into the computer device, and the target interface is the external interface of the computer device. Therefore, the computer device can connect the USB device and the serial port device through a single target interface. The computer device can be a server, personal computer, intelligent robot, or similar device.

[0085] In one specific implementation, it further includes:

[0086] The interface multiplexing circuit communicates with external devices via USB or serial devices for circuit debugging.

[0087] Furthermore, this application also provides a server as the aforementioned electronic device. Specifically, the server may include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus.

[0088] In this embodiment, the power supply is used to provide operating voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0089] In addition, as a carrier for resource storage, the memory can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored on it include operating system, computer programs and data, etc., and the storage method can be temporary storage or permanent storage.

[0090] The operating system manages and controls the various hardware devices and computer programs on the server to enable the processor to perform operations and processes on the data in memory. It can be Windows Server, Netware, Unix, Linux, etc. Computer programs include those capable of performing other specific tasks. Data can include not only virtual machine data but also information such as virtual machine developer details.

[0091] Furthermore, this application also provides a terminal as the aforementioned electronic device. This terminal may specifically include, but is not limited to, a smartphone, tablet computer, laptop computer, or desktop computer.

[0092] Typically, the terminal in this embodiment includes a processor and a memory.

[0093] The processor may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor can be implemented using at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor may also include a main processor and coprocessors. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0094] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. The resources stored in the memory include operating systems and data, and the storage method may be temporary or permanent. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, application update information.

[0095] In some embodiments, the terminal may further include a display screen, an input / output interface, a communication interface, a sensor, a power supply, and a communication bus.

[0096] The terms “first,” “second,” “third,” “fourth,” etc., used in this application (if applicable) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, or apparatus that includes a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, or apparatus.

[0097] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.

[0098] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0099] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of readable storage medium known in the art.

[0100] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An interface multiplexing circuit, characterized by, include: It features a 9-pin target interface, a USB circuit module, a serial port detection module, and a serial port circuit module; Wherein, four pins of the target interface are connected to the USB circuit module, and the remaining five pins or a portion of the remaining five pins are connected to the serial port detection module, which is connected to the serial port circuit module; The target interface is used to connect a USB device or a serial port device. If the target interface is connected to the USB device, the serial port detection module detects the serial port de-enable signal and controls the pins of the target interface connected to the serial port detection module to be de-enabled. If the target interface is connected to the serial port device, the serial port detection module detects the serial port enable signal and controls the pins of the target interface connected to the serial port detection module to be enabled. The target interface has a built-in power supply, which is used to power the USB device or serial device. If the USB device or serial device is not a device that requires an external power supply, the built-in power supply of the target interface will power the USB device or serial device when the built-in power supply of the USB device or serial device is out of power or malfunctions. The USB circuit module, the serial port detection module, and the serial port circuit module are built into the computer device, and the target interface is an external interface of the computer device; the computer device connects to the USB device or the serial port device through the target interface. The USB device or the serial port device is a wireless communication device; the interface multiplexing circuit communicates with external devices through the wireless communication device to realize the debugging of the interface multiplexing circuit and the debugging of interface functions.

2. The interface multiplexing circuit of claim 1, wherein, The wireless communication device is a Bluetooth communication device, a WIFI communication device, a 3G communication device, a 4G communication device, or a 5G communication device.

3. The interface multiplexing circuit according to claim 1, characterized in that, The four pins of the target interface to which the USB circuit module is connected are defined as either the USB 2.0 standard or the USB 3.0 standard.

4. The interface multiplexing circuit of claim 1, wherein, The pins of the target interface to which the serial port detection module is connected are defined as RS422, RS485, or RS232 standards.

5. An interface multiplexing method characterized by, An interface multiplexing circuit as described in any one of claims 1 to 4 is provided, comprising: a target interface with 9 pins, a USB circuit module, a serial port detection module, and a serial port circuit module; wherein 4 pins of the target interface are connected to the USB circuit module, and the remaining 5 pins or a portion thereof are connected to the serial port detection module, and the serial port detection module is connected to the serial port circuit module; the target interface is used to plug in a USB device or a serial port device; The method includes: if the target interface is plugged into the USB device, the serial port detection module detects a serial port de-enable signal and controls each pin of the target interface connected to the serial port detection module to be de-enabled; if the target interface is plugged into the serial port device, the serial port detection module detects a serial port enable signal and controls each pin of the target interface connected to the serial port detection module to be enabled. The target interface has a built-in power supply, which is used to power the USB device or serial device. If the USB device or serial device is not a device that requires an external power supply, the built-in power supply of the target interface will power the USB device or serial device when the built-in power supply of the USB device or serial device is out of power or malfunctions. The USB circuit module, the serial port detection module, and the serial port circuit module are built into the computer device, and the target interface is an external interface of the computer device; the computer device connects to the USB device or the serial port device through the target interface. The USB device or the serial port device is a wireless communication device; the interface multiplexing circuit communicates with external devices through the wireless communication device to realize the debugging of the interface multiplexing circuit and the debugging of interface functions.

6. An electronic device, comprising: include: At least one interface multiplexing circuit as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Interface module, interface switching control method and embedded device

    CN114416609A