CN111309542A - Embedded system debugging module and construction method thereof - Google Patents

Embedded system debugging module and construction method thereof Download PDF

Info

Publication number
CN111309542A
CN111309542A CN202010067390.XA CN202010067390A CN111309542A CN 111309542 A CN111309542 A CN 111309542A CN 202010067390 A CN202010067390 A CN 202010067390A CN 111309542 A CN111309542 A CN 111309542A
Authority
CN
China
Prior art keywords
debugging
information
module
output
developers
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
Application number
CN202010067390.XA
Other languages
Chinese (zh)
Inventor
邓业恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou V Solution Telecommunication Technology Co ltd
Original Assignee
Guangzhou V Solution Telecommunication Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou V Solution Telecommunication Technology Co ltd filed Critical Guangzhou V Solution Telecommunication Technology Co ltd
Priority to CN202010067390.XA priority Critical patent/CN111309542A/en
Publication of CN111309542A publication Critical patent/CN111309542A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a construction method of an embedded system debugging module, relating to the technical field of embedded systems and comprising the following steps: step S1: adding a debugging module and establishing a debugging interface; step S2: adding an information classification function; step S3: adding a debugging switch; step S4: adding a conditional filtering function; step S5: adding an information overloading function; step S6: and adding an output mode of debugging information output. The invention also provides an embedded system debugging module, comprising: the debugging device comprises a debugging interface, an information classification module, a debugging switch module, a condition filtering module, an information overloading module and a debugging information output module. Compared with the traditional scheme, the invention increases the functions of debugging information acquisition instantaneity, information filtering and classification and overloading debugging, helps developers and users to search required debugging information and acquire appointed system information more quickly and accurately, and improves the capability of the users and the developers to process errors in special and emergency situations more quickly.

Description

Embedded system debugging module and construction method thereof
Technical Field
The invention relates to the technical field of embedded systems, in particular to an embedded system debugging module and a construction method thereof.
Background
The embedded system has the characteristics of strong real-time performance and weak interactivity, in the embedded system, an embedded operating system and application software are solidified in a Read Only Memory (ROM) of an embedded system computer, and the embedded system does not need excessive intervention of a user once running, which is the weak interactivity of the embedded system. Because the Embedded System has weak interactivity, an Embedded Operation System (EOS) in charge of System management needs to have strong stability.
Due to the above characteristics of the embedded system, the embedded system device does not need excessive user intervention under normal conditions, but under special conditions, such as data stream sequence change caused by bad signals, wrong data input and the like, a user and a developer are required to adjust and set the device, debug and upgrade the operating system and software solidified in the ROM of the computer of the embedded system so as to enable the device to have stronger error handling capability. How to adjust the equipment according to error handling under special conditions needs system information during error handling, and a specific and accurate piece of system information can enable users and developers to handle errors occurring under special and emergency conditions more quickly.
Disclosure of Invention
In view of the above, it is necessary to provide an embedded system debugging module and a construction method thereof, so that users and developers can more conveniently obtain specified system information, and the capability of the users and developers to more quickly handle errors occurring in special and emergency situations is improved.
In order to realize the purpose, the invention is realized according to the following technical scheme:
in one aspect, the present invention provides a method for constructing an embedded system debugging module, comprising the following steps:
step S1: adding a debugging module for the embedded system, and establishing a debugging interface for system calling: the processing module of the embedded system is divided into three submodules, namely a system input submodule, a data processing submodule and a system output submodule, the three submodules all output information processed by the system through the debugging module by calling the debugging interface, and a user and a developer can obtain a piece of specific system information from the debugging module, so that the processing logic information of the embedded system is checked and the system is modified aiming at output errors;
step S2: adding an information classification function in a debugging module: in order to enable users and developers to obtain more accurate debugging information, the debugging module classifies the debugging information;
step S3: adding a debugging switch in a debugging module: according to the requirement of providing debugging information for users and developers under the condition of errors, a debugging information switch is added in a debugging module, the debugging switch is turned on only when the users and the developers want to acquire the information, and the debugging module outputs the information;
step S4: adding a condition filtering function in the debugging module, and filtering and outputting debugging information: adding a rule of condition filtering by a user and a developer, and filtering and outputting debugging information by a debugging module according to the rule defined by the user;
step S5: add the heavy-duty function of information in the debugging module, let the developer can use the heavy-duty "system input" information function of debugging module to carry out the simulation debugging: the 'system input' information is saved as a file through the output of the debugging information, and the debugging module can load the 'system input' information through the file and input the 'system input' information into the embedded system, so that the debugging information processed by the system is obtained again;
step S6: adding an output mode of debugging information output: in order to make it easier for users and developers to obtain debugging information, the debugging module adds three options for debugging information: local output, local output file, remote output.
Further, in step S1, the information processed by the system includes the system input information received by the system input submodule, the data processing information of the three submodules, and the system output information sent by the system output submodule.
Further, in step S3, the debug switch is enabled in real time.
Further, in step S6, the local output specifically is: outputting only the debugging information to a local displayable place; the local output file is specifically as follows: outputting the debugging information into a file form, and adding a local storage option; the remote output is specifically: and sending the debugging information to a remote server through a network.
In another aspect, the present invention further provides an embedded system debugging module, including:
the debugging interface is used for calling each module of the embedded system, unifying the debugging interface and facilitating the transmission of debugging information;
the information classification module is used for classifying the debugging information into information grades and categories designed by developers, so that the output of the debugging information is convenient to control;
the debugging switch module is used for controlling the output of debugging information in real time, so that the debugging information is solidified in the ROM, when a user and a developer need to debug the information, software does not need to be solidified again for adding the debugging information, the system resources occupied by the output of the debugging information are reduced when the debugging switch module is closed, and the debugging information can be output when the debugging switch module is opened;
the condition filtering module is used for outputting specific debugging information and pointedly acquiring the debugging information according to rules of adding condition filtering by users and developers;
the information reloading module is used for re-debugging the system, and the problem can be reproduced by reloading the saved debugging information file under the condition of non-on-site debugging;
and the debugging information output module is used for outputting the debugging information in a user-defined output mode, so that developers and users can conveniently obtain the debugging information.
Compared with the prior art, the invention has the advantages and positive effects that at least:
1. real-time feedback: in both a construction site and a far end, developers and users can acquire processing information of the embedded system in real time and react to problems more timely;
2. the information can be selected as follows: through the classification and filtration of the processing information of the embedded system, developers and users can select the required processing information, and redundant information is reduced;
3. heavy-load debugging can be performed: through the heavy-load information function of the invention, developers and users can process the same input information again after modifying the embedded system and check whether the problem is solved;
the debugging module is constructed at the initial stage of designing the embedded system, so that the debugging and maintenance of the system at the later stage are facilitated; the debugging module constructed by the application of the invention enables users and developers to more conveniently acquire appointed system information, and improves the capability of the users and developers to more quickly process errors occurring under special and emergency situations; compared with the traditional system log, the method and the system have the advantages that the real-time debugging information acquisition, information filtering and classifying and overloading debugging functions are added, and developers and users are helped to search needed debugging information more quickly and accurately.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an embedded system;
FIG. 2 is an overall block diagram of the present invention with the addition of a debug module;
FIG. 3 is a complete diagram of the present invention with a debug module added;
FIG. 4 is a diagram illustrating a debug information output method according to the present invention.
Description of reference numerals:
A. a system input submodule; b, a data processing submodule; C. and a system output submodule.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by those skilled in the art without any inventive work based on the embodiments of the present invention belong to the protection scope of the present invention.
Example 1
The embedded system is a special computer system which takes application as a center and can flexibly cut software and hardware modules according to the requirements (functions, reliability, cost, volume, power consumption, environment and the like) of a user on the basis of modern computer technology, has the characteristics of strong real-time property and weak interactivity, and in the embedded system, an embedded operating system and application software are solidified in a read-only memory of a computer of the embedded system, so that excessive user intervention is not required once the embedded system starts to run, and the weak interactivity of the embedded system is realized. However, in special cases, such as data stream sequence change caused by bad signals, wrong data input, etc., users and developers are required to adjust settings of the device, debug the device, and upgrade the operating system and software solidified in the ROM of the embedded system computer to make the device have a stronger capability of handling errors.
As shown in fig. 1, generally, the input to output relationship in a system is: the system input, the embedded system and the system output can always see errors in the system output under the condition of errors, and due to the weak interactivity of the embedded system, sometimes the system output error caused by the system input cannot be judged according to the logic of the system, and sometimes the system logic loophole generating the wrong system output cannot be judged quickly due to high complexity of the system.
As shown in fig. 2 and fig. 3, the present invention provides a method for constructing an embedded system debugging module, which includes the following steps:
step S1: adding a debugging module for the embedded system, and establishing a debugging interface for system calling: dividing a processing module of the embedded system into a system input sub-module A, a data processing sub-module B and a system output sub-module C, wherein the three sub-modules are used for outputting system processing information by a debugging module through calling a debugging interface, and a user and a developer can obtain a piece of specific system information from the debugging module, so that the processing logic information of the embedded system is checked and the system is modified aiming at output errors;
step S2: adding an information classification function in a debugging module: in order to enable users and developers to obtain more accurate debugging information, the debugging module classifies the debugging information; for example, the debugging interface classifies information into different sub-modules from a system input sub-module a, a data processing sub-module B, a system output sub-module C and the like, and information in each sub-module can also be designed and classified according to information of an input system, such as matching information of the system input sub-module a, execution information of the data processing sub-module B, result information of the system output sub-module C and the like;
step S3: adding a debugging switch in a debugging module: according to the requirement of providing debugging information for users and developers under the condition of errors, a debugging information switch is added in a debugging module, the debugging switch is turned on only when the users and the developers want to acquire the information, and the debugging module outputs the information; if the debugging module always outputs the system debugging information, the debugging module will occupy the resources of the system, and a debugging switch is added in the debugging module, so that a large amount of system resources can be saved;
step S4: adding a condition filtering function in the debugging module, and filtering and outputting debugging information: adding a rule of condition filtering by a user and a developer, and filtering and outputting debugging information by a debugging module according to the rule defined by the user; for example, a rule for adding execution information from the data processing sub-module B is added, and after the debug information switch is turned on, information output by the debug module is only the execution information from the data processing sub-module B;
step S5: add the heavy-duty function of information in the debugging module, let the developer can use the heavy-duty "system input" information function of debugging module to carry out the simulation debugging: the 'system input' information is saved as a file through the output of the debugging information, and the debugging module can load the 'system input' information through the file and input the 'system input' information into the embedded system, so that the debugging information processed by the system is obtained again; for example: the system input information obtained from the debugging module, such as a hexadecimal data stream file, is input to the input end of the embedded software system through the debugging module, so that the data stream file is processed by the system once again, and the debugging information is obtained once again, thereby facilitating the adjustment of the system logic by a developer;
step S6: adding an output mode of debugging information output: in order to make it easier for users and developers to obtain debugging information, the debugging module adds three options for debugging information: local output, local output file, remote output.
Specifically, in step S1, the system processing information includes the system input information received by the system input submodule, the data processing information of the three submodules, and the system output information sent by the system output submodule.
Specifically, in step S3, the debug switch is enabled in real time.
As shown in fig. 4, specifically, in the three output manners described in step S6, the local output specifically includes: outputting only the debugging information to a local displayable place; the local output file specifically comprises: outputting the debugging information into a file form, and adding a local storage option; the remote output is specifically as follows: and sending the debugging information to a remote server through a network.
Example 2
As shown in fig. 3, the present invention further provides an embedded system debugging module, including:
the debugging interface is used for calling each module of the embedded system, unifying the debugging interface and facilitating the transmission of debugging information;
the information classification module is used for classifying the debugging information into information grades and categories designed by developers, so that the output of the debugging information is convenient to control;
the debugging switch module is used for controlling the output of debugging information in real time, so that the debugging information is solidified in the ROM, when a user and a developer need to debug the information, software does not need to be solidified again for adding the debugging information, the system resources occupied by the output of the debugging information are reduced when the debugging switch module is closed, and the debugging information can be output when the debugging switch module is opened;
the condition filtering module is used for outputting specific debugging information and pointedly acquiring the debugging information according to rules of adding condition filtering by users and developers;
the information reloading module is used for re-debugging the system, and the problem can be reproduced by reloading the saved debugging information file under the condition of non-on-site debugging;
and the debugging information output module is used for outputting the debugging information in a user-defined output mode, so that developers and users can conveniently obtain the debugging information.
Compared with the traditional system log, the embedded system debugging module and the construction method thereof provided by the invention have the advantages that the functions of obtaining real-time debugging information, filtering and classifying information and overloading debugging are added, and developers and users are helped to search needed debugging information more quickly and accurately; the user and the developer can more conveniently acquire the designated system information, and the capability of the user and the developer to more quickly process errors in special and emergency situations is improved; in addition, the debugging module is constructed in the initial stage of designing the embedded system, and the debugging and maintenance of the system in the later stage are facilitated.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (5)

1. A construction method of an embedded system debugging module is characterized by comprising the following steps:
step S1: adding a debugging module for the embedded system, and establishing a debugging interface for system calling: the processing module of the embedded system is divided into a system input sub-module, a data processing sub-module and a system output sub-module, the three sub-modules are used for outputting information processed by the system through a debugging module by calling a debugging interface, and a user and a developer can obtain a part of specific system information from the debugging module;
step S2: adding an information classification function in a debugging module: in order to enable users and developers to obtain more accurate debugging information, the debugging module classifies the debugging information;
step S3: adding a debugging switch in a debugging module: according to the requirement of providing debugging information for users and developers under the condition of errors, a debugging information switch is added in a debugging module, the debugging switch is turned on only when the users and the developers want to acquire the information, and the debugging module outputs the information;
step S4: adding a condition filtering function in the debugging module, and filtering and outputting debugging information: adding a rule of condition filtering by a user and a developer, and filtering and outputting debugging information by a debugging module according to the rule defined by the user;
step S5: add the heavy-duty function of information in the debugging module, let the developer can use the heavy-duty "system input" information function of debugging module to carry out the simulation debugging: the 'system input' information is saved as a file through the output of the debugging information, and the debugging module can load the 'system input' information through the file and input the 'system input' information into the embedded system, so that the debugging information processed by the system is obtained again;
step S6: adding an output mode of debugging information output: in order to make it easier for users and developers to obtain debugging information, the debugging module adds three options for debugging information: local output, local output file, remote output.
2. The embedded system debugging module of claim 1, wherein in step S1, the system processing information includes system input information received by the system input submodule, data processing information of the three submodules, and system output information sent by the system output submodule.
3. The embedded system debugging module of claim 1, wherein in step S3, the debugging switch is enabled in real time.
4. The embedded system debugging module construction method according to claim 1, wherein in step S6, the local output is specifically: outputting only the debugging information to a local displayable place; the local output file is specifically as follows: outputting the debugging information into a file form, and adding a local storage option; the remote output is specifically: and sending the debugging information to a remote server through a network.
5. An embedded system debugging module, comprising:
the debugging interface is used for calling each module of the embedded system, unifying the debugging interface and facilitating the transmission of debugging information;
the information classification module is used for classifying the debugging information into information grades and categories designed by developers, so that the output of the debugging information is convenient to control;
the debugging switch module is used for controlling the output of debugging information in real time, so that the debugging information is solidified in the ROM, when a user and a developer need to debug the information, software does not need to be solidified again for adding the debugging information, the system resources occupied by the output of the debugging information are reduced when the debugging switch module is closed, and the debugging information can be output when the debugging switch module is opened;
the condition filtering module is used for outputting specific debugging information and pointedly acquiring the debugging information according to rules of adding condition filtering by users and developers;
the information reloading module is used for re-debugging the system, and the problem can be reproduced by reloading the saved debugging information file under the condition of non-on-site debugging;
and the debugging information output module is used for outputting the debugging information in a user-defined output mode, so that developers and users can conveniently obtain the debugging information.
CN202010067390.XA 2020-01-20 2020-01-20 Embedded system debugging module and construction method thereof Pending CN111309542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010067390.XA CN111309542A (en) 2020-01-20 2020-01-20 Embedded system debugging module and construction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010067390.XA CN111309542A (en) 2020-01-20 2020-01-20 Embedded system debugging module and construction method thereof

Publications (1)

Publication Number Publication Date
CN111309542A true CN111309542A (en) 2020-06-19

Family

ID=71144909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010067390.XA Pending CN111309542A (en) 2020-01-20 2020-01-20 Embedded system debugging module and construction method thereof

Country Status (1)

Country Link
CN (1) CN111309542A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060066912A (en) * 2004-12-14 2006-06-19 주식회사 팬택앤큐리텔 Method for outputting debug messages when debugging in a moboile communication terminal
US20090138763A1 (en) * 2006-01-06 2009-05-28 Baron Arnold System and method for collecting debug data from a wireless device
CN102270131A (en) * 2011-06-29 2011-12-07 深圳市博康智能信息技术有限公司 System for unified management of debugging information
CN102521087A (en) * 2011-11-02 2012-06-27 烽火通信科技股份有限公司 System and method for remotely obtaining real-time graded debugging information of kernel module
CN103279403A (en) * 2012-12-28 2013-09-04 四川九洲电器集团有限责任公司 Embedded equipment debugging information integrating method
CN104064134A (en) * 2014-05-30 2014-09-24 深圳市显创光电有限公司 Effect debugging method for display screen
CN105260315A (en) * 2015-11-13 2016-01-20 上海斐讯数据通信技术有限公司 Method for debugging log in embedded system process
CN106528153A (en) * 2016-11-10 2017-03-22 成都中嵌自动化工程有限公司 Embedded software modular construction method and device
CN106980576A (en) * 2017-05-09 2017-07-25 华东师范大学 A kind of built-in system software debugging system based on run time verification technology
CN107015896A (en) * 2017-03-31 2017-08-04 许继集团有限公司 A kind of embedded device CPU and its peripheral state method of real-time, system
CN110134561A (en) * 2019-05-20 2019-08-16 北京嘉楠捷思信息技术有限公司 Method and device for outputting debugging information in software and hardware collaborative verification

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060066912A (en) * 2004-12-14 2006-06-19 주식회사 팬택앤큐리텔 Method for outputting debug messages when debugging in a moboile communication terminal
US20090138763A1 (en) * 2006-01-06 2009-05-28 Baron Arnold System and method for collecting debug data from a wireless device
CN102270131A (en) * 2011-06-29 2011-12-07 深圳市博康智能信息技术有限公司 System for unified management of debugging information
CN102521087A (en) * 2011-11-02 2012-06-27 烽火通信科技股份有限公司 System and method for remotely obtaining real-time graded debugging information of kernel module
CN103279403A (en) * 2012-12-28 2013-09-04 四川九洲电器集团有限责任公司 Embedded equipment debugging information integrating method
CN104064134A (en) * 2014-05-30 2014-09-24 深圳市显创光电有限公司 Effect debugging method for display screen
CN105260315A (en) * 2015-11-13 2016-01-20 上海斐讯数据通信技术有限公司 Method for debugging log in embedded system process
CN106528153A (en) * 2016-11-10 2017-03-22 成都中嵌自动化工程有限公司 Embedded software modular construction method and device
CN107015896A (en) * 2017-03-31 2017-08-04 许继集团有限公司 A kind of embedded device CPU and its peripheral state method of real-time, system
CN106980576A (en) * 2017-05-09 2017-07-25 华东师范大学 A kind of built-in system software debugging system based on run time verification technology
CN110134561A (en) * 2019-05-20 2019-08-16 北京嘉楠捷思信息技术有限公司 Method and device for outputting debugging information in software and hardware collaborative verification

Similar Documents

Publication Publication Date Title
CN109032825B (en) Fault injection method, device and equipment
US8365196B2 (en) Method and device for log events processing
CN101009004B (en) Warming device and warming method
CN110188135B (en) File generation method and equipment
CN111949520A (en) Automatic interface test method and equipment
CN111881022A (en) Method, device and equipment for generating test case based on test scene
CN110046091B (en) Automatic test method and device
CN107783880A (en) A kind of log analysis method of server system, device and server system
CN111859047A (en) Fault solving method and device
CN110727581A (en) Collapse positioning method and electronic equipment
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN115242894B (en) Data processing method, device, storage medium and computer equipment
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN111506641A (en) Data management method, data acquisition platform, data management system and storage medium
CN117749615B (en) Method, system and device for constructing mining management and control communication link based on object combination
CN111124591B (en) Mirror image transmission method and device, electronic equipment and storage medium
CN111309542A (en) Embedded system debugging module and construction method thereof
CN111399824B (en) Component port implementation method and terminal based on hybrid transmission mechanism
CN116521533A (en) Generation method, device, equipment and storage medium
CN110943971A (en) Event service processing method and system
CN114036769B (en) Avionics system physical architecture-oriented function deployment scheme generation method and device
CN116010499A (en) Method and device for determining analysis rule and electronic equipment
CN111813621B (en) Data processing method, device, equipment and medium based on Flume data center
CN114913006A (en) Bank loan approval data processing method and system and electronic equipment
CN114328112A (en) Monitoring method, device, equipment and medium for heterogeneous chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619