CN101859277A - Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal - Google Patents
Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal Download PDFInfo
- Publication number
- CN101859277A CN101859277A CN201010187316A CN201010187316A CN101859277A CN 101859277 A CN101859277 A CN 101859277A CN 201010187316 A CN201010187316 A CN 201010187316A CN 201010187316 A CN201010187316 A CN 201010187316A CN 101859277 A CN101859277 A CN 101859277A
- Authority
- CN
- China
- Prior art keywords
- character string
- debugging
- command
- host
- uart
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a human-computer interactive debugging method of an EC (Electronic Computer) by inputting a character string command based on a UART (Universal Asynchronous Receiver/Transmitter) terminal, which comprises the following steps of: firstly, adding and analyzing a character string of specified format, received from a serial terminal, to an EC firmware to obtain a related command and parameters, and executing codes of the command; then, realizing interactive debugging with EC by using the character string receiving and sending functions of a serial terminal tool in an operating system of HOST. The method can be used for carrying out human-computer interactive debugging on the development of EC and other embedded systems provided with the UART interface, and can perform reading and writing debugging by using a command to instantly obtain required feedback results; the operating state of each module of the firmware can be visually observed, the problem that the traditional debugging method using a bright LED lamp is not visualized and not convenient is completely solved, the debugging efficiency and accuracy are greatly increased, and meanwhile, the method has low realization cost, great flexibility and high efficiency.
Description
Technical field
The present invention relates to the method for a kind of debugging EC (Embedded Cotroller), particularly a kind of method of carrying out man-machine interaction debugging EC based on UART terminal input character string command.
Background technology
The method of utilizing the UART interface to debug is the adjustment method commonly used of exploitations such as single-chip microcomputer, EC, embedded system.At present general serial port debugging method all is that the equipment that will debug and the serial ports of HOST connect, and opens the serial port terminal instrument of HOST, and the device power that will debug just prints related commissioning information so passively on the serial port terminal window then.Though this method can finely be observed the state of system's operation, the IC that does not have operating system but this has only firmware for single-chip microcomputer, EC etc., just can only observe limited Debugging message, because in firmware, add the program size that a large amount of Debugging message can increase firmware, for the less IC of these storage spaces, be difficult to satisfy the demands.In addition, this method is just printed Debugging message passively, if optionally debug the function of certain module, must revise correlative code, adds Debugging message, compiling, and burning again will increase the complexity of debugging so greatly.Sometimes can't directly remove to carry out certain internal command and go the desired result that obtains intuitively, for example want to read the data of a slice storage area, check content of internal register or the like.Therefore, this adjustment method can not go to carry out the debugging of correlation function with carrying out man-machine interaction easily, greatly influences debugging efficiency.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method of carrying out man-machine interaction debugging EC based on UART terminal input character string command, inferior method can improve the efficient of debugging effectively, solves the problem that can not carry out the man-machine interaction debugging in the general serial port debugging method.
For reaching above-mentioned technical purpose, technical scheme of the present invention is: a kind ofly carry out the method for man-machine interaction debugging EC based on UART terminal input character string command, it may further comprise the steps:
(1) character string of add resolving the specified format that receives from serial port terminal in the EC firmware obtains related command and parameter and carries out the code of this order;
(3) the inner integrated UART interface of EC is connected to the COMx PORT of HOST;
(2) function of utilizing the reception of the serial port terminal instrument in the operating system of HOST and sending character string realizes the interactive debug with EC:
A. send the character string of prescribed form to EC when transmission character string function from the serial port terminal instrument of HOST, after EC receives this character string by the UART interface, call the character string analytical function and resolve character string, obtain related command and parameter, carry out related command then, and execution result converted in character string sends to HOST by the UART interface the serial port terminal tool window print, can carry out related commissioning according to this information;
B. the character string that sends as HOST does not meet form, or invalid order, then can print the relevant error information reporting errors;
C. when debugging new module or function, only need in the command analysis function, to add related command and Debugging message, in the serial port terminal of HOST, send the related command character string then and can carry out related commissioning work.
The present invention compared with prior art, it can have the embedded system development of UART interface to carry out the debugging of man-machine interaction to EC etc., can utility command read and write debugging, immediately obtain the feedback result of needs, observe the running status of each module of firmware very intuitively, solve the directly perceived and not inconvenient problem of the general adjustment method of using bright LED lamp fully, greatly improved debugging efficiency and accuracy.The realization low cost of the inventive method is comparatively flexible simultaneously, the efficient height.
Embodiment
Carry out the method that EC is debugged in man-machine interaction based on UART terminal input character string command, may further comprise the steps:
(1) character string of add resolving the specified format that receives from serial port terminal in the EC firmware obtains related command and parameter and carries out the code of this order;
(3) the inner integrated UART interface of EC is connected to the COMx PORT of HOST;
(2) function of utilizing the reception of the serial port terminal instrument in the operating system of HOST and sending character string realizes the interactive debug with EC:
A. send the character string of prescribed form to EC when transmission character string function from the serial port terminal instrument of HOST, after EC receives this character string by the UART interface, call the character string analytical function and resolve character string, obtain related command and parameter, carry out related command then, and execution result converted in character string sends to HOST by the UART interface the serial port terminal tool window print, can carry out related commissioning according to this information;
B. the character string that sends as HOST does not meet form, or invalid order, then can print the relevant error information reporting errors;
C. when debugging new module or function, only need in the command analysis function, to add related command and Debugging message, in the serial port terminal of HOST, send the related command character string then and can carry out related commissioning work.
Now being that example is described in detail based on WINBOND WPCE775L EC development board and F/W (firmware):
Based on the integrated UART interface of the EC chip internal of WPCE775L development board, the UART interface of EC is connected with the level transferring chip MAX3323E on development board, and MAX3323E is connected to the COMx PORT of HOST by serial port connecting wire.
The serial ports parameter is provided with: frequency 25MHz, and baud rate 9600, data bit 8, position of rest 1, no parity allows UART to interrupt and receives to interrupt.
Compiled EC F/W binary code burning is advanced among the ROM of EC outside, power on then, EC brings into operation.
The function of utilizing the reception of the serial port terminal instrument in the operating system of HOST and sending character string realizes the interactive debug with EC.
Utilize the serial port terminal program to carry out interactive debug on the WPCE775L development board, promptly see to be gained, the order that input needs just can obtain desirable Debugging message, brings convenience to debugging, has increased the interest of debugging.Because of not using special-purpose commissioning device, reduce debugging cost widely, and can adjust debug command at any time in addition, strengthened the dirigibility of debugging.
The foregoing description does not limit the present invention in any way, and every employing is equal to replaces or technical scheme that the mode of equivalent transformation obtains all drops in protection scope of the present invention.
Claims (1)
1. one kind is carried out the method for man-machine interaction debugging EC based on UART terminal input character string command, it is characterized in that may further comprise the steps:
(1) character string of add resolving the specified format that receives from serial port terminal in the EC firmware obtains related command and parameter and carries out the code of this order;
(3) the inner integrated UART interface of EC is connected to the COMx PORT of HOST;
(2) function of utilizing the reception of the serial port terminal instrument in the operating system of HOST and sending character string realizes the interactive debug with EC:
A. send the character string of prescribed form to EC when transmission character string function from the serial port terminal instrument of HOST, after EC receives this character string by the UART interface, call the character string analytical function and resolve character string, obtain related command and parameter, carry out related command then, and execution result converted in character string sends to HOST by the UART interface the serial port terminal tool window print, can carry out related commissioning according to this information;
B. the character string that sends as HOST does not meet form, or invalid order, then can print the relevant error information reporting errors;
C. when debugging new module or function, only need in the command analysis function, to add related command and Debugging message, in the serial port terminal of HOST, send the related command character string then and can carry out related commissioning work.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010187316A CN101859277A (en) | 2010-05-31 | 2010-05-31 | Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010187316A CN101859277A (en) | 2010-05-31 | 2010-05-31 | Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101859277A true CN101859277A (en) | 2010-10-13 |
Family
ID=42945196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010187316A Pending CN101859277A (en) | 2010-05-31 | 2010-05-31 | Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101859277A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345370A (en) * | 2013-06-28 | 2013-10-09 | 青岛海信宽带多媒体技术有限公司 | Method for inputting printing debugging information based on serial ports and device |
CN106126449A (en) * | 2016-06-17 | 2016-11-16 | 山东超越数控电子有限公司 | A kind of serial ports reads the method for EC depositor |
CN108132884A (en) * | 2017-12-26 | 2018-06-08 | 深圳市共进电子股份有限公司 | Perform keyword driving method, device and the user terminal of CMD orders |
CN109426498A (en) * | 2017-08-24 | 2019-03-05 | 北京迪文科技有限公司 | A kind of man-machine interactive system backstage development approach and device |
CN111708662A (en) * | 2020-05-26 | 2020-09-25 | 新华三技术有限公司 | Debugging method and device |
CN112667456A (en) * | 2020-12-29 | 2021-04-16 | 西安富成防务科技有限公司 | Human-computer interaction debugging method based on serial port |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1485740A (en) * | 2002-09-23 | 2004-03-31 | 上海贝尔有限公司 | General purpose testing arrangement for embedded module and subsystem based on host machine platform |
CN1622053A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | Software development method for flush type products |
CN101136804A (en) * | 2007-04-20 | 2008-03-05 | 中兴通讯股份有限公司 | Performance test device and method of embedded application system |
CN101340314A (en) * | 2008-08-11 | 2009-01-07 | 中兴通讯股份有限公司 | Real-time debugging positioning method of embedded system and apparatus thereof |
-
2010
- 2010-05-31 CN CN201010187316A patent/CN101859277A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1485740A (en) * | 2002-09-23 | 2004-03-31 | 上海贝尔有限公司 | General purpose testing arrangement for embedded module and subsystem based on host machine platform |
CN1622053A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | Software development method for flush type products |
CN101136804A (en) * | 2007-04-20 | 2008-03-05 | 中兴通讯股份有限公司 | Performance test device and method of embedded application system |
CN101340314A (en) * | 2008-08-11 | 2009-01-07 | 中兴通讯股份有限公司 | Real-time debugging positioning method of embedded system and apparatus thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345370A (en) * | 2013-06-28 | 2013-10-09 | 青岛海信宽带多媒体技术有限公司 | Method for inputting printing debugging information based on serial ports and device |
CN103345370B (en) * | 2013-06-28 | 2016-04-27 | 青岛海信宽带多媒体技术有限公司 | Method and the device of Debugging message is printed based on serial ports input |
CN106126449A (en) * | 2016-06-17 | 2016-11-16 | 山东超越数控电子有限公司 | A kind of serial ports reads the method for EC depositor |
CN109426498A (en) * | 2017-08-24 | 2019-03-05 | 北京迪文科技有限公司 | A kind of man-machine interactive system backstage development approach and device |
CN109426498B (en) * | 2017-08-24 | 2023-11-17 | 北京迪文科技有限公司 | Background development method and device for man-machine interaction system |
CN108132884A (en) * | 2017-12-26 | 2018-06-08 | 深圳市共进电子股份有限公司 | Perform keyword driving method, device and the user terminal of CMD orders |
CN111708662A (en) * | 2020-05-26 | 2020-09-25 | 新华三技术有限公司 | Debugging method and device |
CN111708662B (en) * | 2020-05-26 | 2023-09-29 | 新华三技术有限公司 | Debugging method and device |
CN112667456A (en) * | 2020-12-29 | 2021-04-16 | 西安富成防务科技有限公司 | Human-computer interaction debugging method based on serial port |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101859277A (en) | Human-computer interactive debugging method of EC (Electronic Computer) by inputting character string command based on UART (Universal Asynchronous Receiver/Transmitter) terminal | |
CN100511179C (en) | Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints | |
CN208141371U (en) | A kind of multi-functional UART debugging board | |
CN101277198B (en) | High speed communication chip capable of resisting irradiation interference in rigor surroundings | |
CN104793759A (en) | Simulating and monitoring equipment based on PS2 interface mouse signal | |
CN201751896U (en) | ARINC429 bus testing device | |
CN101739320A (en) | Error detection device of server and error detection method thereof | |
CN110704073B (en) | Microcontroller programmer and programming method thereof | |
CN103425123A (en) | Automated testing method for CAN (controller area network) bus based on software script | |
US20170315175A1 (en) | Semiconductor device and corresponding debugging method | |
CN102799528B (en) | A kind of script debugging method for circuit board level test, device and system thereof | |
CN1316387C (en) | Serial interface bus communication controller | |
CN107704417A (en) | The method and its communication system to be communicated with equipment under test | |
US9291672B2 (en) | Debug system, apparatus and method thereof for providing graphical pin interface | |
CN106406154A (en) | Debugging system and control method thereof | |
CN104699644B (en) | A method of driving NFC modules under Android platform | |
CN209373404U (en) | A kind of data collection system based on LabView | |
CN203520383U (en) | Fitec mainboard fault display circuit and display card | |
CN207488755U (en) | A kind of portable IIC command control systems | |
CN201698554U (en) | Electric fire hazard microcomputer protection device | |
CN1964300A (en) | Read-write serial interface bus communication controller | |
CN201376127Y (en) | Linear cutting program transmitting device | |
CN209842384U (en) | Reinforced CAN and exchange card | |
CN203164959U (en) | ARINC429 bus test board card | |
CN217279557U (en) | Automatic test system for switching test of USB2.0 interface and USB3.0 interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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 |
Application publication date: 20101013 |