Debugging device and electronic device having the same

By designing a debugging device in the server, using processing units, multiple debugging units and UART ports, the problem of single space and functions of debugging switches in the server development stage is solved, and flexible debugging of server hardware and system status is achieved, and debugging is improved. Diversity of functions.

CN112015602BActive Publication Date: 2024-11-26FULIAN PRESION ELECTRONICS (TIANJIN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910463729.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-30
Publication Date
2024-11-26
Estimated Expiration
2039-05-30

AI Technical Summary

Technical Problem

The debugging switches or jumpers reserved during the server development stage occupy space and have a single function, so they cannot be flexibly applied.

Method used

Design a debugging device, including a processing unit, a plurality of debugging units and UART ports, the processing unit communicates with the terminal device through the UART port, receives debugging signals and generates control signals, and controls multiple debugging units for debugging, including BMC and PCH chips. Logic debugging function is realized through CPLD or FPGA chip.

Benefits of technology

It simplifies design difficulty, improves the diversity of debugging functions, and realizes flexible debugging of server hardware and system status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112015602B_ABST
    Figure CN112015602B_ABST
Patent Text Reader

Abstract

The present invention provides a debugging device and an electronic device having the debugging device, wherein the electronic device comprises a mainboard and the debugging device, wherein the debugging device is installed on the mainboard, wherein the debugging device comprises at least a processing unit, a plurality of debugging units and a UART port, wherein the debugging device is communicatively connected with a terminal device via the UART port, wherein the processing unit is used to receive a debugging signal of the terminal device via the UART port, and to send a debugging control signal to the plurality of debugging units according to the debugging signal, so as to control the plurality of debugging units to debug the electronic device according to the debugging signal. The present invention realizes the logic debugging function of the electronic device by setting a universal asynchronous receiver / transmitter port and connecting a programmable chip, thereby simplifying the design difficulty and improving the diversity of the debugging function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment debugging, and in particular to a debugging device and an electronic device having the debugging device. Background Art

[0002] With the development of science and technology, the application of big data is becoming more and more extensive, and the demand for servers is growing. In the development stage of the server, it is usually necessary to design multiple debugging switches or jumpers for PCH, BMC, CPLD and other chips to debug the server to simulate some abnormal situations and locate and debug the abnormalities. However, in the actual application process, reserving these debugging switches or jumpers in the development stage of the server will occupy the application space of the server, waste design resources, and usually can only be used for debugging fixed functions, and the application is not flexible enough. Summary of the invention

[0003] In view of this, it is necessary to provide a debugging device and an electronic device having the debugging device to solve the above technical problems.

[0004] A debugging device is installed in an electronic device, comprising a processing unit, multiple debugging units and a UART port. The debugging device is communicatively connected to a terminal device via the UART port. The processing unit is used to receive a debugging signal from the terminal device via the UART port, and send a debugging control signal to the multiple debugging units according to the debugging signal, so as to control the multiple debugging units to debug the electronic device according to the debugging signal.

[0005] Among them, the processing unit at least includes a debugging control module, a signal distribution module and a communication module, the debugging control module is used to generate a debugging control signal according to a received debugging signal, the signal distribution module is used to send a debugging control signal to a corresponding debugging unit according to a debugging function, and the communication module is used to be electrically connected to the UART port.

[0006] Preferably, the multiple debugging units include at least a BMC and a PCH.

[0007] The BMC is used to debug the system status of the electronic device according to the debugging signal.

[0008] The PCH is used to debug the hardware function of the electronic device according to the debugging signal.

[0009] Wherein, the UART port includes four pins, namely a power pin, a ground pin, a receive data pin and a send data pin.

[0010] Wherein, the processing unit is a CPLD chip or a FPGA chip.

[0011] The processing unit pre-stores a plurality of debugging control commands, and the plurality of debugging control commands are generated according to preset debugging functions.

[0012] An electronic device comprises a mainboard and the above-mentioned debugging device, wherein the debugging device is installed on the mainboard and is communicatively connected with a terminal device via a UART port.

[0013] The above-mentioned debugging device and the electronic device having the debugging device realize the logic debugging function of the electronic device by setting a universal asynchronous receiver / transmitter port and connecting a programmable chip, thereby simplifying the design difficulty and improving the diversity of the debugging function. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the application structure of the electronic device in a preferred embodiment of the present invention.

[0015] Figure 2 It is a schematic diagram of the application structure of the debugging device in a preferred embodiment of the present invention.

[0016] Main component symbols

[0017]

[0018]

[0019] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0020] Please refer to Figure 1 , is an electronic device 1 provided in a preferred embodiment of the present invention. The electronic device 1 includes, but is not limited to, a debugging device 100 and a mainboard 200. The debugging device 100 is mounted on the mainboard 200. In this embodiment, the electronic device 1 is a server. In other embodiments, the electronic device 1 may also be a personal computer.

[0021] Please refer to Figure 2 The debugging device 100 includes, but is not limited to, a processing unit 10, a plurality of debugging units 20, and a UART (Universal Asynchronous Receiver / Transmitter) port 30. In this embodiment, the debugging device 100 is connected to a terminal device 2 through the UART port 30. In this embodiment, the terminal device 2 is a personal computer. When the electronic device 1 needs to be debugged, the user can send a debugging signal to the electronic device 1 through the terminal device 2.

[0022] The processing unit 10 is used to receive the debugging signal sent by the terminal device 2 through the UART port 30, and send a debugging control signal to the multiple debugging units 20 according to the debugging signal, so as to control the multiple debugging units 20 to debug the electronic device 1 according to the debugging signal.

[0023] In this embodiment, the processing unit 10 at least includes a debugging control module 11, a signal distribution module 12 and a communication module 13. The debugging control module 11 is used to generate a debugging control signal according to a received debugging signal. The signal distribution module 12 is used to send a debugging control signal to a corresponding debugging unit 20 according to a debugging function. The communication module 13 is used to be electrically connected to the UART port 30 so that the debugging device 100 establishes a communication connection with the electronic device 1.

[0024] In this embodiment, the plurality of debugging units 20 at least include a BMC (Baseboard Management Controller) 21 and a PCH (Platform Controller Hub) 22 .

[0025] The BMC 21 is used to debug the system state of the electronic device 1 according to the debugging signal. In this embodiment, the system state includes power supply state, start state, hardware state, etc. The PCH 22 is used to debug the hardware function of the electronic device 1 according to the debugging signal. In this embodiment, the hardware includes a hard disk, a memory, a graphics card, etc.

[0026] In this embodiment, the UART port 30 includes four pins, namely a power pin, a ground pin, a receive data pin, and a send data pin.

[0027] In this embodiment, the processing unit 10 is a CPLD (Complex Programmable Logic Device) chip or an FPGA (Field Programmable Gate Array) chip.

[0028] The processing unit 10 pre-stores a plurality of debugging control commands, and the plurality of debugging control commands are generated according to preset debugging functions. The plurality of debugging control commands can also be adjusted accordingly according to the debugging functions adjusted by the user.

[0029] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technical users in the field should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A debugging device, installed in an electronic device, characterized in that: The debugging device includes a processing unit, multiple debugging units and a UART port. The debugging device is communicatively connected to a terminal device via the UART port. The processing unit is used to receive a debugging signal from the terminal device via the UART port, and send a debugging control signal to the multiple debugging units according to the debugging signal, so as to control the multiple debugging units to debug the electronic device according to the debugging signal. The multiple debugging units include a baseboard management controller BMC, and the BMC debugs the power supply status and the start-up status of the electronic device according to the debugging signal.

2. The debugging device according to claim 1, characterized in that: The processing unit at least includes a debugging control module, a signal distribution module and a communication module. The debugging control module is used to generate a debugging control signal according to a received debugging signal. The signal distribution module is used to send the debugging control signal to the corresponding debugging unit according to the debugging function. The communication module is used to be electrically connected to the UART port.

3. The debugging device according to claim 1, characterized in that: The plurality of debugging units include at least a PCH.

4. The debugging device according to claim 3, characterized in that: The PCH is used to debug the hardware function of the electronic device according to the debugging signal.

5. The debugging device according to claim 1, characterized in that: The UART port includes four pins, namely a power pin, a ground pin, a receive data pin and a send data pin.

6. The debugging device according to claim 1, characterized in that: The processing unit is a CPLD chip or a FPGA chip.

7. The debugging device according to claim 1, characterized in that: The processing unit pre-stores a plurality of debugging control commands, and the plurality of debugging control commands are generated according to preset debugging functions.

8. An electronic device, comprising a mainboard, characterized in that: It also includes a debugging device as described in any one of claims 1-7, wherein the debugging device is installed on the mainboard, and the debugging device is communicatively connected to a terminal device via a UART port.

9. The electronic device as claimed in claim 8, wherein: The electronic device is a server or a personal computer.