CN1432918A - Method of debugging a system connected by a universal serial bus - Google Patents
Method of debugging a system connected by a universal serial bus Download PDFInfo
- Publication number
- CN1432918A CN1432918A CN 02102422 CN02102422A CN1432918A CN 1432918 A CN1432918 A CN 1432918A CN 02102422 CN02102422 CN 02102422 CN 02102422 A CN02102422 A CN 02102422A CN 1432918 A CN1432918 A CN 1432918A
- Authority
- CN
- China
- Prior art keywords
- debug
- usb
- carrying
- serial bus
- universal serial
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000005540 biological transmission Effects 0.000 claims description 14
- 238000004886 process control Methods 0.000 claims 1
- 238000012544 monitoring process Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a method for debugging through a universal serial bus connection system, which comprises the steps of firstly setting a function of outputting a debugging signal in a Basic Input Output System (BIOS) of a Target system (Target PC), setting monitoring software in a remote system (Host PC), connecting the Target system (Target PC) and the remote system (Host PC) by using a universal serial bus interface (USB interface), and further monitoring the debugging state of the Basic Input Output System (BIOS) of the Target system (Target PC) by using the remote system (Host PC) so as to achieve the purpose of debugging through the Universal Serial Bus (USB) connection system.
Description
Technical field
The present invention relates to a kind of system debug method, particularly a kind of method that is applied to computer system and passes through USB (universal serial bus) (USB) debug.
Background technology
In the flourishing information of science and technology today like flying, the function of information handling system is more and more, then when system's generation problem, the problem of its debug (debug) is corresponding just serious more, though this be system program development phase or system break down can't normal operation in, concerning program development designer or general user, all be very thorny, a headachy problem.
Chance for fear of any may make the mistake (bug), information handling system can normally be moved, for the abnormal occurrence that is produced, must be monitored and then be revised, just be unlikely the serious consequence of the information handling system work that makes a difference, but program development designer in the past or general user, when wrong situation appears in the information handling system running, the reason of the location of mistakes of trying that all must be without any idea, this often must expend a large amount of time and efforts in every particularly.
For addressing the above problem, developed various debugging tools (Debugger), these debugging tools are the implementing procedures that help debug, but this all must purchase expensive device, as hardware emulator (In-Circuit Emulator; ICE), will make that so cost increases substantially; In addition can also be from input/output port (Input/Output port; I/O port) purpose that the decoding circuit reaches debug is set,, connection line must be set in addition, very inconvenience in the use though so cost is lower.
By above-mentioned prior art as can be known, apply to help the implementing procedure of debug at present, not being that to cost an arm and a leg be exactly to use inconvenience, so how a kind of easy debugging tool program that is easy to use and can take into account cost consideration is provided, is one to be badly in need of the technical task that solves in fact.
Summary of the invention
In view of above the deficiencies in the prior art, the invention provides a kind of method of carrying out debug by USB connection system, its purpose is to utilize between remote system (Host PC) and goal systems (Target PC) and is connected USB (universal serial bus) (USB), monitors the work of debug (debug).
Method of carrying out debug by USB connection system of the present invention, with remote system (Host PC) goal systems (Target PC) is carried out debug, debug port (debug port) and program code at first are set in goal systems (Target PC), and monitoring software is set in remote system (Host PC), and then utilize the debug state of the Basic Input or Output System (BIOS) of remote system (Host PC) monitored object system (Target PC), and utilize USB (universal serial bus) (USB interface) linking objective system (Target PC) and remote system (Host PC), to reach the purpose of carrying out debug by USB (universal serial bus) (USB) connected system.
Description of drawings
Fig. 1 carries out the system construction drawing of the method for debug by USB connection system for the present invention;
Fig. 2 carries out the process flow diagram of first embodiment of the method for debug by USB connection system for the present invention; And
Fig. 3 carries out the process flow diagram of second embodiment of the method for debug by USB connection system for the present invention.
Embodiment
In order to make the present invention more cheer and bright, existing embodiment in conjunction with the accompanying drawings is described in detail as follows.
As shown in Figure 1, this figure is the present invention carries out the method for debug by USB connection system a system construction drawing.
The computer system that connects by USB (universal serial bus) of the present invention comprises goal systems 10 (Target PC) and remote system 20 (Host PC), wherein goal systems 10 is for carrying out the computer system of debug (debug), remote system 20 is then for monitoring the computer system of this debug (debug) information, goal systems 10 comprises: the linkage unit 12 of Basic Input or Output System (BIOS) 11 (BIOS) and goal systems, remote system 20 then comprises: the linkage unit 22 of monitoring debug program 21 and remote system.
Output debug semiotic function at first is set in the Basic Input or Output System (BIOS) 11 (BIOS) of goal systems 10, promptly when the firmware of the Basic Input or Output System (BIOS) 11 of system is made, the program code that to export the debug semiotic function in advance adds in Basic Input or Output System (BIOS) 11 program codes, remote system 20 then is provided with monitoring debug program 21, transmission unit 30 is set between two systems simultaneously connects this goal systems 10 and remote system 20.
Wherein the linkage unit 12 of above-mentioned goal systems is USB (universal serial bus) port (USB port), and the linkage unit 22 of remote system also is a USB (universal serial bus) port, 30 of transmission units are universal serial bus cable (USB cable), and Basic Input or Output System (BIOS) 11 is except being provided with output debug semiotic function, also be provided with flow process controlled flag (flag) and control output debug semiotic function, and this flow process controlled flag value can be set up on their own by the user be 0 or 1, whether continue to carry out monitoring debug program with control.
Do one with regard to debug method of the present invention below and describe in detail, as shown in Figure 2, this figure is the first embodiment process flow diagram of the present invention's method of carrying out debug by USB connection system.
At first drive and be connected running (step 110) with the bus of remote system, read the flow process controlled flag (step 120) of Basic Input or Output System (BIOS), and judge whether to carry out monitoring debug program (step 130), do not carry out monitoring debug program if the flow process controlled flag is shown as, then do not add the program code of output debug semiotic function in the program compiler of the Basic Input or Output System (BIOS) of goal systems (Compiler); If the flow process controlled flag is shown as the monitoring debug program of carrying out, then the debug signal is compiled to data of input/output system content (step 140) by goal systems, and data content is sent to remote system (step 150) by bus, again data content is shown (step 160) in remote system at last, for the debug state of user in the Basic Input or Output System (BIOS) of remote system monitored object system.
The present invention also proposes another embodiment in addition to the implementation, does one with regard to the second embodiment of the present invention below and describes in detail, and as shown in Figure 3, this figure is the process flow diagram of second embodiment of the present invention's method of carrying out debug by USB connection system.
At first compile the debug signal and drive bus and connect running (step 170), confirm flow process controlled flag (step 180) by goal systems then, to judge whether to carry out monitoring debug program (step 130), the flow process controlled flag and be shown as and do not carry out monitoring debug program, then goal systems is not exported the debug signal to remote system; If the flow process controlled flag is shown as the monitoring debug program of carrying out, then the debug signal is spread out of by goal systems, and read the data of input/output system content (step 190) that to export by goal systems, comprised the debug signal in this data content, and data content is sent to remote system (step 150) by bus interface, this bus interface is a USB (universal serial bus) (USBinterface), again data content is shown (step 160) in remote system at last, for the debug state of user in the Basic Input or Output System (BIOS) of remote system monitored object system.
The Basic Input or Output System (BIOS) of above-mentioned two embodiment (BIOS) also has the USB controller of this goal systems (USB controller) initialization (initialize), and by the function of USB (universal serial bus) port (USB port) output data content to remote system.
Use technology disclosed in this invention, can make goal systems only can carry out debug work by a universal serial bus cable (USB cable), make computer system not need as existing system for helping the implementing procedure of debug purchasing price costliness, and make the work of system's debug more have effectively.
The above only is the detailed description of the preferred embodiment of the present invention, still, is not in order to limit practical range of the present invention.Protection scope of the present invention should be as the criterion with the scope that accompanying claims define, and all embodiments that meets the spirit variation similar with it of claims of the present invention all should be included in the category of the present invention.
Claims (20)
1. a method of carrying out debug by USB connection system is with a remote system one goal systems to be carried out debug, it is characterized in that comprising the following steps:
Drive this goal systems and be connected running with this USB (universal serial bus) (USBinterface) between this remote system;
Read the flow process controlled flag (flag) of a Basic Input or Output System (BIOS) (BIOS), and detect this flow process controlled flag;
The program code of one output debug (debug) semiotic function is compiled (Compiler) to the interior data content of this Basic Input or Output System (BIOS) (BIOS) of this goal systems;
This data content is exported by a transmission unit; And
This data content is presented at this remote system screen.
2. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that it is 0 or 1 that this flow process controlled flag value can be set up on their own by the user, whether continues to monitor debug with control.
3. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this data content also comprises the program code of this output debug semiotic function.
4. method of carrying out debug by USB connection system as claimed in claim 1, when it is characterized in that detecting this flow process controlled flag, do not carry out debug if this flow process controlled flag shows, this Basic Input or Output System (BIOS) does not then add the program code of this output debug semiotic function in program compiler.
5. method of carrying out debug as claimed in claim 1 by USB connection system, when it is characterized in that this Basic Input or Output System (BIOS) work, further comprising the steps of:
USB controller (USB controller) initialization (initialize) with this goal systems; And
Export this data content to this remote system by a linkage unit.
6. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this transmission unit is a USB (universal serial bus) transmission cable (USB cable), and this transmission unit is in order to connect this remote system and this goal systems.
7. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this remote system comprises that also a USB (universal serial bus) port (USB port) is connected with this USB (universal serial bus) transmission cable.
8. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this goal systems comprises that also a USB (universal serial bus) port combines with this USB (universal serial bus) transmission cable.
9. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this goal systems is the computer system of carrying out debug.
10. method of carrying out debug by USB connection system as claimed in claim 1 is characterized in that this remote system is the computer system of the program code of this output debug semiotic function of supervision.
11. a method of carrying out debug by USB connection system is with a remote system one goal systems to be carried out debug, it is characterized in that comprising the following steps:
Compile a debug signal, and drive this goal systems and be connected running with this USB (universal serial bus) between this remote system;
Read first-class process control sign, and detect this flow process controlled flag;
This debug signal is exported to the data content in this Basic Input or Output System (BIOS) of this goal systems;
This data content is exported by a transmission unit; And
This data content is presented at this remote system screen.
12. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that it is 0 or 1 that this flow process controlled flag value can be set up on their own by the user, whether continues to monitor debug with control.
13. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this data content also comprises this debug signal.
14. method of carrying out debug by USB connection system as claimed in claim 11 when it is characterized in that detecting this flow process controlled flag, is not carried out debug if this flow process controlled flag shows, this goal systems is not then exported this debug signal.
15. method of carrying out debug by USB connection system as claimed in claim 11 is when it is characterized in that this Basic Input or Output System (BIOS) work, further comprising the steps of:
USB controller initialization with this goal systems; And
Export this data content to this remote system by a linkage unit.
16. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this transmission unit is a USB (universal serial bus) transmission cable, this transmission unit is in order to connect this remote system and this goal systems.
17. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this remote system comprises that also a USB (universal serial bus) port is connected with this USB (universal serial bus) transmission cable.
18. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this goal systems comprises that also a USB (universal serial bus) port combines with this USB (universal serial bus) transmission cable.
19. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this goal systems is the computer system of carrying out debug.
20. method of carrying out debug by USB connection system as claimed in claim 11 is characterized in that this remote system is the computer system of this debugging information of supervision.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02102422 CN1432918A (en) | 2002-01-18 | 2002-01-18 | Method of debugging a system connected by a universal serial bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02102422 CN1432918A (en) | 2002-01-18 | 2002-01-18 | Method of debugging a system connected by a universal serial bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1432918A true CN1432918A (en) | 2003-07-30 |
Family
ID=27627561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02102422 Pending CN1432918A (en) | 2002-01-18 | 2002-01-18 | Method of debugging a system connected by a universal serial bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1432918A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100361087C (en) * | 2004-06-15 | 2008-01-09 | 国际商业机器公司 | Method and system for ascertaining state of operating system |
CN100405316C (en) * | 2004-03-20 | 2008-07-23 | 鸿富锦精密工业(深圳)有限公司 | Remote computer BIOS boot information monitoring system and method |
CN100412804C (en) * | 2005-06-03 | 2008-08-20 | 鸿富锦精密工业(深圳)有限公司 | Method and system for identifying error codes of motherboard fault diagnosis card |
CN101425030B (en) * | 2007-10-29 | 2011-04-13 | 环旭电子股份有限公司 | Debugging method for basic I/O system |
CN102135930A (en) * | 2010-12-17 | 2011-07-27 | 威盛电子股份有限公司 | Error detecting device and method for computer system |
CN105653387A (en) * | 2016-01-05 | 2016-06-08 | 英业达科技有限公司 | Method for dynamically updating debug options |
CN106033378A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Debug information storage method |
CN106326043A (en) * | 2015-06-23 | 2017-01-11 | 联想(北京)有限公司 | USB based diagnosis device and method |
CN107203460A (en) * | 2016-03-16 | 2017-09-26 | 佛山市顺德区顺达电脑厂有限公司 | For basic input output system except wrong message output intent |
-
2002
- 2002-01-18 CN CN 02102422 patent/CN1432918A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100405316C (en) * | 2004-03-20 | 2008-07-23 | 鸿富锦精密工业(深圳)有限公司 | Remote computer BIOS boot information monitoring system and method |
CN100361087C (en) * | 2004-06-15 | 2008-01-09 | 国际商业机器公司 | Method and system for ascertaining state of operating system |
CN100412804C (en) * | 2005-06-03 | 2008-08-20 | 鸿富锦精密工业(深圳)有限公司 | Method and system for identifying error codes of motherboard fault diagnosis card |
CN101425030B (en) * | 2007-10-29 | 2011-04-13 | 环旭电子股份有限公司 | Debugging method for basic I/O system |
CN102135930A (en) * | 2010-12-17 | 2011-07-27 | 威盛电子股份有限公司 | Error detecting device and method for computer system |
US8707103B2 (en) | 2010-12-17 | 2014-04-22 | Via Technologies, Inc. | Debugging apparatus for computer system and method thereof |
CN106033378A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Debug information storage method |
CN106326043A (en) * | 2015-06-23 | 2017-01-11 | 联想(北京)有限公司 | USB based diagnosis device and method |
CN105653387A (en) * | 2016-01-05 | 2016-06-08 | 英业达科技有限公司 | Method for dynamically updating debug options |
CN107203460A (en) * | 2016-03-16 | 2017-09-26 | 佛山市顺德区顺达电脑厂有限公司 | For basic input output system except wrong message output intent |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7546584B2 (en) | Method and system for remote software testing | |
US7908407B1 (en) | Method, computer-readable storage media, and integrated circuit for providing enclosure management services utilizing multiple interfaces and protocols | |
US8966048B2 (en) | Providing a common management console for managing the operation of a server computer | |
CN1402850A (en) | Method and apparatus for detecting type of interface to which peripheral device is connected | |
CN108319549B (en) | Test system and test method | |
US9053229B2 (en) | Integrating compiler warnings into a debug session | |
US20070174037A1 (en) | Multiple-microcontroller emulation system, multiple-microcontroller integrated development environment, and method for the same | |
CN1432918A (en) | Method of debugging a system connected by a universal serial bus | |
CN101093446A (en) | Device and method for booting operation system, and computer system of using the device and method | |
CN101853203A (en) | An Embedded Software On-line Testing System | |
CN1185579C (en) | The method of using the serial port to troubleshoot when the system is shut down and in standby state | |
US6941491B2 (en) | Method of debugging using a USB connecting system | |
CN102609258B (en) | Improvement method for identifying rotary encoder | |
CN102929817A (en) | Heterogeneous model information automatic configuring method based on GPIO (general purpose input/output) | |
CN109144849B (en) | Embedded software debugging method | |
KR20140084660A (en) | Real Time Verification Device for the Flight Control Computer and Controlling Method therefor | |
CN2689346Y (en) | Universal series bus interface testers | |
US10216525B1 (en) | Virtual disk carousel | |
CN100517251C (en) | Test system and method | |
CN1311477A (en) | Method and device for displaying BIOS error checking code | |
CN112052132A (en) | Method, device, equipment and medium for debugging plug-in chip through SDIO interface | |
CN111025166A (en) | Debugger for battery detection system | |
US11966309B2 (en) | Saturation of multiple PCIe slots in a server by multiple ports in a single test card | |
CN113917897B (en) | Device for operating and monitoring a power plant and method for implementing the same | |
TWI802792B (en) | Debug device and operation method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |