Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for program debugging based on linux platform

A program debugging and program technology, applied in the embedded field

Active Publication Date: 2011-12-14
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The embodiment of the present invention provides a method and device for program debugging based on the Linux platform, to solve the problem existing in the prior art if all the serial interfaces are occupied or When the serial interface is not connected, it is difficult to realize the problem of program debugging

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for program debugging based on linux platform
  • A method and device for program debugging based on linux platform
  • A method and device for program debugging based on linux platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] According to the USB serial interface program, the Linux kernel of the embodiment of the present invention initializes the USB device; the console is connected with the initialized USB device, and the program debugging is carried out through the interface of the USB device, because the LOG of the program operation can be read from the USB device When the serial interface is fully occupied or the serial interface is not connected, the program can be debugged, thereby improving the efficiency of program debugging.

[0029] like figure 1 As shown, the device for program debugging based on the Linux platform in the embodiment of the present invention includes: a call module 10 , an initialization module 20 , a sending module 30 , a connection module 40 and a debugging module 50 .

[0030] The calling module 10 is used to call the pre-stored USB serial interface program.

[0031] Specifically, the calling module 10 first determines the pre-stored USB serial interface progr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to the field of embedded technology, in particular to a method and device for program debugging based on a Linux platform, to solve the problems existing in the prior art if all serial interfaces are used to communicate with other functional interfaces or the serial interfaces are not available. When connected, it is difficult to implement program debugging problems. The method in the embodiment of the present invention includes: calling the pre-stored USB serial interface program by the Linux kernel, executing the USB serial interface program, and sending a USB serial interface signal to the console; After performing the interface signal, establish a connection with the USB device, and perform program debugging through the interface of the USB device. When the method of the embodiment of the present invention is used to communicate with other functional interfaces or the serial interface is not connected, the program can be debugged through the interface of the USB device, thereby providing another method for program debugging, Improved debugging efficiency.

Description

technical field [0001] The invention relates to the field of embedded technology, in particular to a method and device for debugging programs based on a Linux platform. Background technique [0002] As the functions of the mobile terminal become more and more powerful, the mobile terminal needs to have more interfaces to support these functions. Such as headphone jack, serial port, charger port and so on. However, while users pursue powerful functions of mobile terminals, they also expect the mobile phones to have a smaller and more attractive appearance. Obviously, if many interfaces are independent of each other, the volume of the mobile terminal will increase, and the entire body is a hardware interface, which also increases the difficulty in structural design. [0003] Therefore, many mobile terminals now combine interfaces with different functions into one interface, that is, an earphone interface, a charger interface, a serial interface, etc., which are all realized ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 孔志强
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD