USB2.0 and debugging serial port compatible method based on computer design

The compatibility and switching between the USB2.0 interface and the debugging serial port is realized in the computer through the analog switch circuit, which solves the problem that the computer cannot access the debugging serial port, and improves the debugging efficiency and problem location speed.

CN118733360APending Publication Date: 2024-10-01BEIJING INST OF COMP TECH & APPL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410795895.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The computer cannot bring out the debugging serial port after the whole machine is assembled, resulting in the inability to effectively locate the problem during debugging and maintenance.

Method used

Analog switch circuits are used, including CPLD circuit, serial port to USB circuit, ASW5223 chip and USB interface circuit, and the USB2.0 interface and debugging serial port are switched through the power button signal to achieve signal compatibility and switching.

Benefits of technology

Without changing the appearance layout and usage effect, the USB2.0 interface and debugging serial port switching output can be realized by pressing the power button multiple times, which reduces the number of disassembly times and problem locating time, and improves debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733360A_ABST
    Figure CN118733360A_ABST
Patent Text Reader

Abstract

The invention relates to a USB 2.0 and debugging serial port compatible method based on computer design, and belongs to the technical field of computers. On the basis that the overall appearance layout and the use effect are not changed, switching output of the USB2.0 interface and the debugging serial port is completed by pressing the power key for multiple times. According to the method, by means of compatibility of the USB signal and the debugging serial port, application of the debugging serial port is completed on the basis that the overall appearance layout and the use effect are not changed, the number of times of disassembly in the research and development stage is reduced, and meanwhile the problem positioning time under the abnormal condition after a computer is delivered is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computers, and in particular relates to a USB2.0 and debugging serial port compatibility method based on computer design. Background Art

[0002] The computer debugging serial port function is rarely used during user use. As the size of computers becomes smaller and smaller and the integration becomes higher and higher with the continuous iteration of products, the computer often deletes one or more debugging serial ports (processor debugging serial port, BMC debugging serial port, etc.) of the motherboard on the limited external output interface. However, the debugging serial port plays a key role in locating the problem during computer debugging and subsequent maintenance.

[0003] Currently, most solutions are to disassemble the entire machine and use DuPont cables or other forms of interface cables to lead out the serial port signals on the motherboard. In actual work, due to space limitations and changes in the status of the entire machine after disassembly, it is often impossible to effectively reproduce the problem and read the serial port. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] The technical problem to be solved by the present invention is that the debugging serial port of a computer cannot be brought out after the whole machine is assembled.

[0006] (II) Technical solution

[0007] In order to solve the above technical problems, the present invention provides a USB2.0 and debug serial port compatibility method based on computer design, which is implemented by an analog switch circuit, and the analog switch circuit includes a CPLD circuit, a serial port to USB circuit, an ASW5223 chip and a USB interface circuit;

[0008] The CPLD circuit includes a CPLD. The power button, CPU debug serial port, and BMC debug serial port on the computer are all connected to the CPLD. The CPLD controls the external serial port output signal and the IO output pin output signal through a software program.

[0009] The serial port to USB circuit uses the CH341 chip to convert the serial port signal output by the CPLD into a USB2.0 signal and then outputs it to the ASW5223 chip;

[0010] In the ASW7227 chip, the HSD1 pin is connected to the USB2.0 signal of the host, the HSD2 pin is connected to the USB2.0 signal output by the CH341 chip, and the S pin is connected to the IO output pin of the CPLD; the ASW7227 chip detects the high and low levels of the S pin. When the S pin is high, the DATA signal output by the ASW7227 chip is the same as the signal input from the HSD2 pin; when the S pin is low, the DATA signal output by the ASW7227 chip is the same as the signal input from the HSD1 pin.

[0011] USB interface circuit, outputs the DATA signal output by the ASW7227 chip through a standard USB2.0 connector;

[0012] After the computer is installed normally, the computer is plugged into the power supply, and the CPLD starts to detect the power-on button signal;

[0013] When it is detected that the power button is pressed only once within 3 seconds, the CPLD pulls up the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD1 pin, and the computer enters the normal power-on state, and the debugging USB2.0 interface of the computer outputs the USB signal;

[0014] When the power button is pressed twice within 3 seconds, the CPLD pulls down the designated IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received CPU debug serial port to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the CPU debug serial port signal;

[0015] When it is detected that the power button is pressed three times within 3 seconds, the CPLD pulls down the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received BMC debugging serial port to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the BMC debugging serial port signal.

[0016] Preferably, the CPLD is also connected to a power indicator light.

[0017] Preferably, when the power button is pressed once within 3 seconds, the CPLD detects that the power button has been pressed once, and the computer interface outputs a USB2.0 signal, and at the same time sets the power indicator light controlled by the CPLD to stay on when the computer is turned on. At this time, the computer is in normal working condition.

[0018] Preferably, when the power button is pressed twice within 3 seconds, the CPLD detects that the power button is pressed twice, and the computer interface outputs a CPU debugging serial port signal, and the power indicator light controlled by the CPLD is set to light up once every 2 seconds. At this time, the computer is in the CPU serial port debugging state.

[0019] Preferably, when the power button is pressed three times within 3 seconds, the CPLD detects that the power button is pressed three times, and the computer interface outputs a BMC debugging serial port signal, and the power indicator light controlled by the CPLD is set to light up twice every 2 seconds. At this time, the computer is in the BMC serial port debugging state.

[0020] The invention also provides a circuit for implementing the method.

[0021] The invention also provides an application of the method in the field of computer technology.

[0022] (III) Beneficial effects

[0023] The present invention switches the USB2.0 interface and the debug serial port for output by pressing the power button multiple times without changing the overall layout of the appearance and the use effect. The method realizes the application of the debug serial port without changing the overall layout of the appearance and the use effect through the compatibility of USB signals and the debug serial port, reduces the number of disassembly times in the research and development stage, and also reduces the time for locating problems in abnormal situations after the computer is delivered. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of the principle of an analog switch circuit for implementing the method of the present invention;

[0025] Figure 2 It is the judgment logic diagram of the method of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0027] When designing the computer interface, it is not possible to add a debug serial port separately due to limited layout. However, during the subsequent debugging or testing of the whole machine, if there are problems with the motherboard function such as failure to boot, the debug serial port needs to be used for analysis. For example, after the product is assembled, the computer needs to be started at low temperature or vibration tested. During the test, the debug serial port is not connected. If the computer fails to boot or the function is abnormal, the cause cannot be located. If the debug serial port signal is led out after the machine is disassembled, the integrity of the computer will be affected and the computer test requirements will not be met.

[0028] The present invention is designed based on a power button on a computer (such as a laptop power button, a desktop computer power button, and a ruggedized computing power button). For the power button on the computer, it is only necessary to connect the signal of the power button to the CPLD during circuit design.

[0029] Specifically, Figure 1 As shown, the present invention is implemented by an analog switch circuit, which includes a CPLD circuit, a serial port to USB circuit, an ASW5223 chip and a USB interface circuit; the ASW5223 chip is a module switch chip designed and produced by Yourong Microelectronics, and the chip is a high-speed, low-power bipolar double-throw analog switch, which controls the internal double-pole double-throw switch by detecting the high and low levels of the S pin on the chip, thereby achieving the purpose of signal channel switching.

[0030] The CPLD circuit contains the CPLD, the power button on the computer (i.e. Figure 1 The switch in the CPU debug serial port, the BMC debug serial port, and the power indicator light are all connected to the CPLD, and the CPLD controls the external serial port output signal and the IO output pin output signal through the software program;

[0031] The serial port to USB circuit uses the CH341 chip to convert the serial port signal output by the CPLD into a USB2.0 signal and then outputs it to the ASW5223 chip;

[0032] ASW7227 chip, HSD1 pin is connected to the USB2.0 signal of the host, HSD2 pin is connected to the USB2.0 signal output by the CH341 chip, and S pin is connected to the IO output pin of the CPLD; ASW7227 chip detects the high and low levels of the S pin. When the S pin is high, the DATA signal output by the ASW7227 chip is the same as the signal input from the HSD2 pin; when the S pin is low, the DATA signal output by the ASW7227 chip is the same as the signal input from HSD1.

[0033] The USB interface circuit outputs the DATA signal output by the ASW7227 chip through a standard USB2.0 connector.

[0034] The USB2.0 and debugging serial port compatibility method based on computer design of the present invention is based on Figure 1 The circuit shown is implemented in reference Figure 2 The specific content of this method is as follows:

[0035] a) The computer is installed normally, the computer is plugged into the power supply, and the CPLD starts to detect the power button signal (power button signal). When it detects that the power button is pressed only once within 3 seconds, the CPLD pulls up the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD1 pin, and the computer enters the normal power-on state, and the computer's debugging USB2.0 interface outputs the USB signal;

[0036] In this case, when the power button is pressed once within 3 seconds, the CPLD will detect that the power button has been pressed once. At this time, the computer interface outputs a USB2.0 signal and simultaneously sets the power indicator light controlled by the CPLD to stay on when the computer is turned on. At this time, the computer is in normal working condition.

[0037] b) After the computer is plugged into the power supply, the CPLD starts to detect the power button signal. When it detects that the power button is pressed twice within 3 seconds, the CPLD pulls down the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received CPU debug serial port 1 to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the CPU debug serial port (TTL serial port) signal;

[0038] In this case, when the power button is pressed twice within 3 seconds, the CPLD will detect that the power button is pressed twice. At this time, the computer interface outputs the CPU debugging serial port signal and sets the power indicator light controlled by the CPLD to light up once every 2 seconds. At this time, the computer is in the CPU serial port debugging state.

[0039] c) After the computer is plugged into the power supply, the CPLD starts to detect the power button signal. When it detects that the power button is pressed three times within 3 seconds, the CPLD pulls down the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received BMC debug serial port 2 to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the BMC debug serial port (TTL serial port) signal;

[0040] In this case, when the power button is pressed three times within 3 seconds, the CPLD will detect that the power button is pressed three times. At this time, the computer interface outputs the BMC debugging serial port signal, and the power indicator light controlled by the CPLD is set to light up twice every 2 seconds. At this time, the computer is in the BMC serial port debugging state.

[0041] It can be seen that the present invention increases the debugging function by simply reusing the USB2.0 interface without changing the overall structure of the computer; when the product encounters a problem, the multiplexing function of the USB interface signal greatly facilitates the designer to locate the problem, reduces the number of disassembly times, and improves the designer's efficiency in solving problems.

[0042] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A USB2.0 and debug serial port compatibility method based on computer design, characterized in that: The method is implemented by an analog switch circuit, which includes a CPLD circuit, a serial port to USB circuit, an ASW5223 chip and a USB interface circuit; The CPLD circuit includes a CPLD. The power button, CPU debug serial port, and BMC debug serial port on the computer are all connected to the CPLD. The CPLD controls the external serial port output signal and the IO output pin output signal through a software program. The serial port to USB circuit uses the CH341 chip to convert the serial port signal output by the CPLD into a USB2.0 signal and then outputs it to the ASW5223 chip; In the ASW7227 chip, the HSD1 pin is connected to the USB2.0 signal of the host, the HSD2 pin is connected to the USB2.0 signal output by the CH341 chip, and the S pin is connected to the IO output pin of the CPLD; the ASW7227 chip detects the high and low levels of the S pin. When the S pin is high, the DATA signal output by the ASW7227 chip is the same as the signal input from the HSD2 pin; when the S pin is low, the DATA signal output by the ASW7227 chip is the same as the signal input from the HSD1 pin. USB interface circuit, outputs the DATA signal output by the ASW7227 chip through a standard USB2.0 connector; After the computer is installed normally, the computer is plugged into the power supply, and the CPLD starts to detect the power-on button signal; When it is detected that the power button is pressed only once within 3 seconds, the CPLD pulls up the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD1 pin, and the computer enters the normal power-on state, and the debugging USB2.0 interface of the computer outputs the USB signal; When the power button is pressed twice within 3 seconds, the CPLD pulls down the designated IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received CPU debug serial port to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the CPU debug serial port signal; When it is detected that the power button is pressed three times within 3 seconds, the CPLD pulls down the specified IO output pin, which is connected to the S pin of the ASW5223 chip, so that the output signal DATA of the ASW5223 chip is consistent with the signal input by the HSD2 pin. At the same time, the CPLD switches the received BMC debugging serial port to the external serial port output of the CPLD through the internal logic program. At this time, the computer enters the debugging state, and the computer's debugging USB2.0 interface outputs the BMC debugging serial port signal.

2. The method according to claim 1, characterized in that The CPLD is also connected to a power indicator light.

3. The method according to claim 2, characterized in that When the power button is pressed once within 3 seconds, the CPLD detects that the power button has been pressed once. At this time, the computer interface outputs a USB2.0 signal and simultaneously sets the power indicator light controlled by the CPLD to stay on when the computer is turned on. At this time, the computer is in normal working state.

4. The method according to claim 2, characterized in that When the power button is pressed twice within 3 seconds, the CPLD detects that the power button is pressed twice. At this time, the computer interface outputs the CPU debugging serial port signal and sets the power indicator light controlled by the CPLD to light up once every 2 seconds. At this time, the computer is in the CPU serial port debugging state.

5. The method according to claim 2, characterized in that When the power button is pressed three times within 3 seconds, the CPLD detects that the power button is pressed three times. At this time, the computer interface outputs the BMC debugging serial port signal and sets the power indicator light controlled by the CPLD to light up twice every 2 seconds. At this time, the computer is in the BMC serial port debugging state.

6. The method according to claim 1, characterized in that The ASW5223 chip is a double-pole double-throw analog switch, which controls the internal double-pole double-throw switch by detecting the high and low levels of the S pin on the chip to achieve signal channel switching.

7. The method according to claim 1, characterized in that The CPU debugging serial port is a TTL serial port.

8. The method according to claim 1, characterized in that The BMC debugging serial port is a TTL serial port.

9. A circuit for implementing the method as claimed in any one of claims 1 to 8.

10. Application of the method according to any one of claims 1 to 8 in the field of computer technology.