CN214586864U - Debugging device and debugging system - Google Patents
Debugging device and debugging system Download PDFInfo
- Publication number
- CN214586864U CN214586864U CN202120604028.1U CN202120604028U CN214586864U CN 214586864 U CN214586864 U CN 214586864U CN 202120604028 U CN202120604028 U CN 202120604028U CN 214586864 U CN214586864 U CN 214586864U
- Authority
- CN
- China
- Prior art keywords
- debugged
- debugging
- equipment
- data
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 claims abstract description 51
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 7
- 238000013075 data extraction Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The utility model discloses a debugging equipment and debug system. Wherein, this debugging equipment includes: the control circuit is provided with an interface used for being connected with the equipment to be debugged and used for acquiring the data to be debugged sent by the equipment to be debugged, wherein the data to be debugged comprises target data; the data cache circuit is connected with the control circuit and used for storing target data; the first communication circuit is connected with the data cache circuit and used for reading target data from the data cache circuit and sending the target data to the external equipment for analyzing the equipment to be debugged. The utility model provides a traditional debugging equipment can't directly acquire the target data from the data of waiting to debug equipment to return, lead to debugging inefficiency technical problem.
Description
Technical Field
The utility model relates to a computer communication field particularly, relates to a debugging equipment and debug system.
Background
Currently, a test engineer may use a serial port debugging device to debug a device to be debugged. For example, in the schematic diagram of the debugging system shown in fig. 1, the serial port debugging tool 12 may be inserted into the device to be debugged 10, and the serial port debugging tool 12 may perform data communication with the device to be debugged 10. Meanwhile, the computer 13 may send a command to the device to be debugged 10 through the serial port debugging tool 12, and the computer 13 may also obtain a debugging log sent by the device to be debugged 10 through the serial port debugging tool 12, so that a test engineer may analyze problems existing in the device to be debugged 10 through the debugging log.
However, the existing serial port debugging tool can only send all the debugging logs sent by the device to be debugged to the computer, and then the computer extracts the target data from the debugging logs sent by the device to be debugged, and the serial port debugging tool cannot directly extract the target data in the debugging logs.
In view of the above problems, no effective solution has been proposed.
SUMMERY OF THE UTILITY MODEL
The embodiment of the utility model provides a debugging equipment and debug system to solve traditional debugging equipment at least and can't directly acquire the target data from the data of waiting to debug equipment to return, lead to the technical problem of debugging inefficiency.
According to an aspect of the embodiments of the present invention, there is provided a debugging device, including: the control circuit is provided with an interface used for being connected with the equipment to be debugged and used for acquiring the data to be debugged sent by the equipment to be debugged, wherein the data to be debugged comprises target data; the data cache circuit is connected with the control circuit and used for storing target data; the first communication circuit is connected with the data cache circuit and used for reading target data from the data cache circuit and sending the target data to the external equipment for analyzing the equipment to be debugged.
Further, the first communication circuit includes at least a universal serial bus.
Further, the commissioning device further comprises: and the second communication circuit is connected with the control circuit and used for receiving debugging data sent by the equipment to be debugged.
Further, the second communication circuit includes a plurality of sub-communication circuits.
Further, the types of the plurality of sub-communication circuits are different, wherein the plurality of sub-communication circuits are connected with the devices to be debugged of the corresponding types through different communication modes.
Further, the plurality of sub-communication circuits includes at least one of: the serial transceiving circuit is used for being connected with the serial transceiving equipment; an integrated circuit bus for connection with an integrated circuit bus device; a service provider interface for interfacing with a service provider device.
According to the utility model discloses on the other hand, still provide a debug system, including foretell debug equipment, this debug system still includes: the external equipment is connected with the debugging equipment and used for generating a debugging command and sending the debugging command to the equipment to be debugged through the debugging equipment; and the to-be-debugged equipment is connected with the debugging equipment and used for generating the to-be-debugged data according to the debugging command so as to enable the external equipment to analyze the target data in the to-be-debugged data and determine whether the to-be-debugged equipment is abnormal.
Further, the number of the devices to be debugged is plural.
Further, the types of the plurality of devices to be debugged are different.
Further, the types of the plurality of devices to be debugged at least include: serial transceiver equipment, integrated circuit bus equipment, service provider equipment.
The embodiment of the utility model provides an in, adopt the mode that sets up data buffer circuit in debugging equipment, acquire the data of waiting to debug that contain the target data through control circuit to make the data buffer circuit storage target data who is connected with control circuit, read the target data from data buffer circuit with the first communication circuit that data buffer circuit is connected, and with the target data send to be arranged in treating the external equipment that debugging equipment carried out the analysis.
In the process, the data cache circuit for storing the target data is arranged in the debugging equipment, so that the external equipment can directly read the target data in the data cache circuit without reading all data, and the debugging efficiency of the equipment to be debugged is improved.
Therefore, the scheme provided by the application achieves the purpose of directly acquiring the target data from the debugging equipment, so that the technical effect of improving the debugging efficiency of the equipment is achieved, and the technical problem that the debugging efficiency is low because the traditional debugging equipment cannot directly acquire the target data from the data returned by the equipment to be debugged is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without undue limitation to the invention. In the drawings:
FIG. 1 is a schematic diagram of a debugging system according to the prior art;
fig. 2 is a schematic structural diagram of a debugging device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an alternative debugging system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative efforts shall belong to the protection scope of the present invention.
According to the embodiment of the present invention, an embodiment of a debugging device is provided, wherein, fig. 2 is according to the utility model discloses a debugging device's structural schematic diagram, as shown in fig. 2, this debugging device includes: a control circuit 21, a data buffer circuit 22, and a first communication circuit 23.
The control circuit 21 is provided with an interface for connecting with a device to be debugged, and is used for acquiring data to be debugged sent by the device to be debugged, wherein the data to be debugged comprises target data; a data buffer circuit 22 connected to the control circuit for storing the target data; and the first communication circuit 23 is connected to the data cache circuit, and is configured to read target data from the data cache circuit and send the target data to the external device for analyzing the device to be debugged.
Optionally, the control circuit has a firmware, which can perform data extraction on the received data to be debugged to obtain the target data. For example, when the device to be debugged is debugged, if an exception occurs, specific data, for example, 0x01, may be added to the generated data (for example, log). After receiving 0x01, the debug device in this application stores a piece of data before and after 0x01 in the data cache circuit, for example, if the data to be debugged is A0x01B, a piece of data before 0x01 is a, and the data after the data is B, the debug device stores a and B in the data cache circuit. The external equipment (for example, a computer) can directly read the target data A and the target data B from the data cache circuit without performing data extraction on the data to be debugged, so that a test engineer can determine whether the equipment to be debugged is abnormal or not by directly analyzing the target data, and the debugging efficiency of the equipment to be debugged is improved.
By the above, in the embodiment of the utility model, the mode that sets up data buffer circuit in debugging equipment is adopted, acquire the data of waiting to debug that contain the target data through control circuit to make the data buffer circuit storage target data of being connected with control circuit, read the target data from data buffer circuit with the first communication circuit of data buffer circuit connection, and with the target data send to be arranged in treating the external equipment that debugging equipment carried out the analysis.
It is easy to note that, in the above process, since the data cache circuit for storing the target data is arranged in the debugging device, the external device can directly read the target data in the data cache circuit without reading all the data, thereby improving the debugging efficiency of the device to be debugged.
Therefore, the scheme provided by the application achieves the purpose of directly acquiring the target data from the debugging equipment, so that the technical effect of improving the debugging efficiency of the equipment is achieved, and the technical problem that the debugging efficiency is low because the traditional debugging equipment cannot directly acquire the target data from the data returned by the equipment to be debugged is solved.
In an alternative embodiment, the first communication circuit comprises at least a universal serial bus. I.e. the debugging device is connected to the external device via a universal serial bus, for example, in the schematic diagram of the debugging system shown in fig. 3, the external device 30 (i.e. the computer) is connected to the debugging device 20 via a universal serial bus.
In an alternative embodiment, as can be seen from fig. 2, the commissioning device further comprises: a second communication circuit 24. The second communication circuit 24 is connected to the control circuit 21, and receives debug data sent by the device to be debugged.
Optionally, the second communication circuit includes a plurality of sub-communication circuits, and types of the plurality of sub-communication circuits are different, where the plurality of sub-communication circuits are connected to the devices to be debugged of corresponding types through different communication modes. For example, in the debugging apparatus shown in fig. 2, the second communication circuit includes three sub-communication circuits, which are respectively of different circuit types.
Wherein the plurality of sub-communication circuits includes at least one of: the serial transceiving circuit is used for being connected with the serial transceiving equipment; an integrated circuit bus for connection with an integrated circuit bus device; a service provider interface for interfacing with a service provider device. For example, in fig. 2, the plurality of sub communication circuits includes: a serial transceiver circuit 241, an integrated circuit bus 242, and a service provider interface 243. The Serial transceiver Circuit 241 may be a USART (Universal Synchronous/Asynchronous Receiver/Transmitter), the Integrated Circuit bus 242 may be an Inter-Integrated Circuit (IIC), and the service provider Interface 243 may be an SPI (Serial Peripheral Interface).
In practical applications, the types of the sub-communication circuits are not limited to the three types described above, and may be GPIO (General-Purpose Input/output). The number of each type of sub-communication circuit is not limited to one, and may be plural, and the number of each type of sub-communication circuit may be the same or different, for example, the second communication circuit may include two integrated circuit buses 242 and one serial transceiver circuit 241.
In addition, it should be further noted that, because the second communication circuit may include sub-communication circuits of different communication types, the debugging device may be connected to devices to be debugged of different types, that is, in this application, the external device may debug devices to be debugged of different types through the debugging device.
In an alternative embodiment, according to another aspect of the embodiments of the present invention, there is also provided a debugging system, such as the schematic diagram of the debugging system shown in fig. 3. As can be seen from fig. 3, the debugging system includes: commissioning device 20, external device 30, and device to be commissioned 40.
The external device 30 is connected to the debugging device 20, and is configured to generate a debugging command and send the debugging command to the device to be debugged through the debugging device; the device to be debugged 40 is connected to the debugging device 20, and is configured to generate data to be debugged according to the debugging command, so that the external device analyzes target data in the data to be debugged, and determines whether the device to be debugged is abnormal.
It should be noted that, since the second communication circuit, to which the debugging device is connected to the device to be debugged, may include different types of sub-communication circuits, the debugging device may be connected to different types of devices to be debugged.
Optionally, the number of the devices to be debugged may be one or multiple. In this case, the type of the multiple devices to be debugged may be the same when the number of the devices to be debugged is multiple, for example, the second communication circuit includes only three sub-communication circuits of one type, and the devices to be debugged may be devices corresponding to the second communication circuit, and the number of the devices to be debugged may be three. In addition, the types of the plurality of devices to be debugged are different. For example, if the second communication circuit includes three different types of sub-communication circuits, the device to be debugged may be three different types of devices.
Optionally, as shown in fig. 3, the types of the multiple devices to be debugged at least include: a serial transceiver device 41, an integrated circuit bus device 42, and a service provider device 43, which are connected to the serial transceiver circuit 241 of the debug device, the integrated circuit bus 242, and the service provider interface 243, respectively.
The above embodiment numbers of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A commissioning device, comprising:
the control circuit is provided with an interface used for being connected with equipment to be debugged and used for acquiring data to be debugged sent by the equipment to be debugged, wherein the data to be debugged comprises target data;
the data cache circuit is connected with the control circuit and used for storing the target data;
the first communication circuit is connected with the data cache circuit and used for reading the target data from the data cache circuit and sending the target data to the external equipment for analyzing the equipment to be debugged.
2. The debugging device of claim 1, wherein the first communication circuit comprises at least a universal serial bus.
3. The commissioning device of claim 1, wherein the commissioning device further comprises:
and the second communication circuit is connected with the control circuit and used for receiving debugging data sent by the equipment to be debugged.
4. The debugging device of claim 3 wherein said second communication circuit comprises a plurality of sub-communication circuits.
5. The debugging device according to claim 4, wherein the types of the plurality of sub-communication circuits are different, and wherein the plurality of sub-communication circuits are connected to the devices to be debugged of the corresponding types in different communication manners.
6. The debugging device of claim 5 wherein said plurality of sub-communication circuits comprises at least one of:
the serial transceiving circuit is used for being connected with the serial transceiving equipment;
an integrated circuit bus for connection with an integrated circuit bus device;
a service provider interface for interfacing with a service provider device.
7. A commissioning system comprising the commissioning device of any one of claims 1 to 6, said commissioning system further comprising:
the external equipment is connected with the debugging equipment and used for generating a debugging command and sending the debugging command to the equipment to be debugged through the debugging equipment;
the device to be debugged is connected with the debugging device and used for generating data to be debugged according to the debugging command so that the external device can analyze target data in the data to be debugged and determine whether the device to be debugged is abnormal or not.
8. The debugging system according to claim 7, wherein the number of the devices to be debugged is plural.
9. The debugging system according to claim 8, wherein a plurality of said devices to be debugged are of different types.
10. The commissioning system of claim 9, wherein the plurality of types of devices to be commissioned comprises at least: serial transceiver equipment, integrated circuit bus equipment, service provider equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120604028.1U CN214586864U (en) | 2021-03-24 | 2021-03-24 | Debugging device and debugging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120604028.1U CN214586864U (en) | 2021-03-24 | 2021-03-24 | Debugging device and debugging system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN214586864U true CN214586864U (en) | 2021-11-02 |
Family
ID=78355451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202120604028.1U Active CN214586864U (en) | 2021-03-24 | 2021-03-24 | Debugging device and debugging system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN214586864U (en) |
-
2021
- 2021-03-24 CN CN202120604028.1U patent/CN214586864U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11041907B2 (en) | Method and system for acquisition of test data | |
CN105897471A (en) | Out-of-band management system and out-of-band management method | |
CN108984354A (en) | A kind of server chips debug circuit, adjustment method and server | |
CN105653461A (en) | System for converting single USB interface into plurality of UART debugging interfaces | |
US20170039153A1 (en) | Mobile device and method for reading uart data | |
CN104270740A (en) | Slot-sharing T card and SIM card detection method | |
CN114356671A (en) | Board card debugging device, system and method | |
CN110209605A (en) | The register reading/writing method and calculating equipment of PCIE Cardbus NIC Cardbus | |
CN214586864U (en) | Debugging device and debugging system | |
CN109407574A (en) | Output-controlling device and its method may be selected in a kind of multibus | |
CN107391321B (en) | Electronic computer single board and server debugging system | |
CN110399255A (en) | A kind of debugging system of FPGA system and FPGA system | |
CN109240972A (en) | A kind of GPU board and the VPX signal processing cabinet using the board | |
CN115729872A (en) | Computing device and detection method for PCIE cable connection | |
CN112615739B (en) | Method and system for adapting OCP3.0 network card in multi-host application environment | |
CN211906270U (en) | 485 device and RS485 interface of self-adaptation serial bus polarity | |
CN107704417A (en) | The method and its communication system to be communicated with equipment under test | |
CN109582620B (en) | UART interface conversion device and method | |
CN203338347U (en) | Interface circuit for computer main board failure detection device | |
CN107643990B (en) | Communication device with configurable architecture | |
CN106452838A (en) | USB equipment simulation device and method | |
CN105868153A (en) | PCI-E extension mode based on ATCA bus | |
CN117834750B (en) | Device, method, system, equipment, medium and server for acquiring protocol data | |
CN211856798U (en) | System board card debugging device | |
CN215006630U (en) | Clock trigger board, device and system for PCIe rate switching |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |