CN104899145A - Embedded system debugging method - Google Patents

Embedded system debugging method Download PDF

Info

Publication number
CN104899145A
CN104899145A CN201510344402.8A CN201510344402A CN104899145A CN 104899145 A CN104899145 A CN 104899145A CN 201510344402 A CN201510344402 A CN 201510344402A CN 104899145 A CN104899145 A CN 104899145A
Authority
CN
China
Prior art keywords
data
interface
debugging
processor
proxy
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
CN201510344402.8A
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.)
Chengdu Binhong Technology Co Ltd
Original Assignee
Chengdu Binhong 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 Chengdu Binhong Technology Co Ltd filed Critical Chengdu Binhong Technology Co Ltd
Priority to CN201510344402.8A priority Critical patent/CN104899145A/en
Publication of CN104899145A publication Critical patent/CN104899145A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the field of embedded systems, and provides a debugging method with what it is only needed that data interfaces are maintained on a processor, dependence on the development of processors and debugging tools is reduced, and development efficiency is improved.

Description

A kind of embedded systems debugging method
Technical field
The present invention relates to embedded system field, particularly relate to a kind of adjustment method of only service data interface on a processor.
Background technology
The debugging of usual embedded system, based on request à response modes, is namely completed by the debugging acid be positioned in debug host and the processor be positioned on board or equipment as follows:
It is the request command of A that debugging acid sends appointment data interface format to processor;
Processor is after receiving request command, and sending appointment data interface format to debugging acid is the data of B;
Debugging acid, receiving after data-interface form is the data of B, is undertaken resolving and presenting by form B.
In the debugging model of the appointment data interface shown in Fig. 2, if processor Update Table interface, then need commissioning tool to modify corresponding data-interface, then this time revised by processor and commissioning tool mutual authentication again.Its flow process is as follows:
Step S21: Update Table interface on a processor;
Step S22: Update Table interface on debugging acid;
Step S23: the data-interface revised by debugging acid and processor mutual authentication;
Step S24: be verified rear issue amendment.
There are the following problems for above-mentioned adjustment method:
Need processor and debugging acid jointly to safeguard corresponding data-interface, add development constraints, and when the quantity of data-interface is larger, also can increase the conforming maintenance workload of data-interface;
After processor is modified to data-interface, also must carry out corresponding modify by debugging acid, and need two sides jointly to verify, add the workload of exploitation, also reduce development efficiency.
For the problems referred to above, the present invention proposes one embedded systems debugging method more flexibly, only need service data interface on a processor, decrease the dependence that processor and debugging acid are developed, improve development efficiency.
Summary of the invention
For solving the above-mentioned problems in the prior art, embodiments provide a kind of embedded systems debugging method, method comprises:
Software module on processor, by calling data interface registration function, to debugging proxy log-on data interface, and carries out record by debugging proxy;
Debugging acid, before obtaining the data-interface on processor, needs to establish a communications link with processor;
Debugging acid to processor transmitting order to lower levels, request processor uploading data interface list;
Current chartered data-interface is sent to debugging acid by debugging proxy on processor continuously, is presented in the form of a list on software by debugging acid;
After the user of debugging acid selects certain data-interface on software interface, debugging acid transmitting order to lower levels, to the data-interface content that processor request is concrete;
The content of data-interface and additional information thereof are uploaded to testing tool by set form by processor;
Debugging acid carries out Data Analysis by the data-interface received and presents;
Debugging proxy have recorded all registered data-interfaces, for each data-interface generates an only ID;
Debugging proxy have recorded following information, comprising:
Module title belonging to data-interface;
The generating function entrance of data-interface;
The attribute of data-interface;
The parameter of data-interface: the type of descriptor, information, parameter and storage width.
In the generating function of data-interface, use form, tree structure, or the combination of form and tree structure, generate complicated data-interface.
It is empty data structure that data-interface creates a data content in internal memory, and records the descriptor of this structure, comprises the container level of structure, the quantity of row, the title of row, descriptor, storage width, data pointer.
The commissioning tool debugging proxy stored on data-interface title and processor is the only ID that it distributes, commissioning tool mainly specifies this ID in the order of request msg interface, thus in the debugging proxy of processor, call corresponding data-interface generating function.
The data content of data-interface generating function more in new construction, and whole data structure is uploaded to commissioning tool, presented by commissioning tool.
The embodiment of the present invention, adopts a kind of the method needing service data interface on a processor, provides one embedded systems debugging method more flexibly, decreases the dependence that processor and debugging acid are developed, improves development efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of the usual debugging interface of embedded system;
Fig. 2 is the schematic diagram of the usual debugging interface amendment of embedded system;
Fig. 3 is the schematic diagram of the usual debugging interface amendment of embedded system of the present invention;
Fig. 4 is the first embodiment schematic diagram of embedded systems debugging method of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 4, be the schematic flow sheet of the first embodiment of a kind of embedded systems debugging method of the present invention, the method comprises:
Step S11: the software module on processor is to debugging proxy log-on data interface.
In this step, the debugging proxy that the software on processor runs on processor registers its data-interface, by the following information of debugging proxy record:
Module title belonging to data-interface;
The generating function entrance of data-interface;
The attribute of data-interface;
The parameter of data-interface: as type and the storage width of descriptor, information, parameter;
Debugging proxy have recorded all registered data-interfaces, for each data-interface generates an only ID.
Step S12: debugging acid and processor connect.
In this step, the debugging proxy on debugging acid and processor sets up the connection of data communication, and the communication mode of connection can be diversified, as Ethernet.
Step S13: debugging acid is to processor request msg interface list.
In this step, debugging acid is to the debugging proxy data query interface list on processor.
Step S14: processor uploading data interface list.
In this step, after the debugging proxy on processor receives the inquiry request from debugging acid, by debugging interface information-reply chartered on processor to debugging acid;
The information that described debugging proxy is replied comprises the descriptor of data-interface, information, the type of parameter and storage width.
Step S15: the data-interface content that debugging acid request is specified.
In this step, the commissioning tool debugging proxy stored on data-interface title and processor is the only ID that it distributes;
Commissioning tool mainly specifies this ID in the order of request msg interface, thus in the debugging proxy of processor, call corresponding data-interface generating function.
Step S16: the content of institute's request msg interface replied by processor.
In this step, the data content of data-interface generating function more in new construction, and whole data structure is uploaded to commissioning tool.
The message that described debugging proxy is replied comprises:
Module title belonging to data-interface;
The generating function entrance of data-interface;
The attribute of data-interface;
The parameter of data-interface, as type and the storage width of descriptor, information, parameter;
Step S17: debugging acid carries out visual presenting.
In this step, the data received are carried out visual presenting by debugging acid, thus facilitate the developer's running status of analysis processor or problem intuitively.
The foregoing is only preferred embodiment of the present invention, be not intended to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. an embedded systems debugging method, is characterized in that, described method comprises:
Software module on processor, by calling data interface registration function, to debugging proxy log-on data interface, and carries out record by debugging proxy;
Debugging acid, before obtaining the data-interface on processor, sets up the communication connection with processor;
Debugging acid to processor transmitting order to lower levels, request processor uploading data interface list;
Current chartered data-interface is sent to debugging acid by the debugging proxy on processor;
The data-interface received is presented on instrument by debugging acid in the form of a list;
After the user of debugging acid selects certain data-interface on software interface, debugging acid transmitting order to lower levels, to the data-interface content that the debugging proxy request on processor is concrete;
The content of data-interface and additional information thereof are uploaded to testing tool by processor;
Debugging acid carries out Data Analysis by the data-interface received and presents.
2. the method for claim 1, is characterized in that, described debugging proxy have recorded all registered data-interfaces, and generates an only ID for each data-interface;
When described commissioning tool is to debugging proxy request, information is uploaded to commissioning tool by debugging proxy.
3. the method for claim 1, is characterized in that, the information of described debugging proxy record comprises:
Module title belonging to data-interface;
The generating function entrance of data-interface;
The attribute of data-interface;
The parameter of data-interface, as type and the storage width of descriptor, information, parameter.
4. the method for claim 1, is characterized in that, in the generating function of described data-interface, uses form, tree structure, or the combination of form and tree structure, generates data-interface.
5. the method for claim 1, it is characterized in that, it is empty data structure that described data-interface creates a data content in internal memory, and record the descriptor of this structure, comprise the container level of structure, the quantity of row, the title of row, descriptor, storage width, data pointer.
6. the method for claim 1, it is characterized in that, the described commissioning tool debugging proxy stored on data-interface title and processor is the only ID that it distributes, commissioning tool specifies this ID in the order of request msg interface, thus in the debugging proxy of processor, call corresponding data-interface generating function.
7. the method for claim 1, is characterized in that, the data content of described data-interface generating function more in new construction, and whole data structure is uploaded to commissioning tool, is presented by commissioning tool.
CN201510344402.8A 2015-06-20 2015-06-20 Embedded system debugging method Pending CN104899145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510344402.8A CN104899145A (en) 2015-06-20 2015-06-20 Embedded system debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510344402.8A CN104899145A (en) 2015-06-20 2015-06-20 Embedded system debugging method

Publications (1)

Publication Number Publication Date
CN104899145A true CN104899145A (en) 2015-09-09

Family

ID=54031820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510344402.8A Pending CN104899145A (en) 2015-06-20 2015-06-20 Embedded system debugging method

Country Status (1)

Country Link
CN (1) CN104899145A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018959A (en) * 2019-03-26 2019-07-16 福建升腾资讯有限公司 A kind of method and system of Embedded Application debugging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286431A (en) * 1999-11-30 2001-03-07 深圳市中兴通讯股份有限公司 Embedded software aided debugging method
CN1753404A (en) * 2004-09-23 2006-03-29 华为技术有限公司 Method of using communication apparatus to select communication protocol
US20060143539A1 (en) * 2004-12-17 2006-06-29 Electronics And Telecommunications Research Institute Device and method for debugging embedded system
CN1855034A (en) * 2005-04-28 2006-11-01 上海贝尔阿尔卡特股份有限公司 DOHM software interface irrelevant with apparatus object
US7707459B2 (en) * 2007-03-08 2010-04-27 Whirlpool Corporation Embedded systems debugging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286431A (en) * 1999-11-30 2001-03-07 深圳市中兴通讯股份有限公司 Embedded software aided debugging method
CN1753404A (en) * 2004-09-23 2006-03-29 华为技术有限公司 Method of using communication apparatus to select communication protocol
US20060143539A1 (en) * 2004-12-17 2006-06-29 Electronics And Telecommunications Research Institute Device and method for debugging embedded system
CN1855034A (en) * 2005-04-28 2006-11-01 上海贝尔阿尔卡特股份有限公司 DOHM software interface irrelevant with apparatus object
US7707459B2 (en) * 2007-03-08 2010-04-27 Whirlpool Corporation Embedded systems debugging

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018959A (en) * 2019-03-26 2019-07-16 福建升腾资讯有限公司 A kind of method and system of Embedded Application debugging

Similar Documents

Publication Publication Date Title
CN102982141B (en) A kind of method and device realizing distributed data base agency
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN101925045B (en) Method and system for providing user service data
CN112788074B (en) Data transmitting method, processing method, receiving method, apparatus thereof, and storage medium
CN103986786A (en) Remote cloud desktop operation system
CN111083058B (en) Content distribution network service flow limiting method and electronic equipment
CN102855152A (en) Method and system for upgrading resource files in application programs
CN102769709B (en) A kind of for providing the method and apparatus of service contact information to user
WO2020052133A1 (en) Gateway communication method, gateway, and energy system
CN107479984B (en) Distributed spatial data processing system based on message
CN105635051A (en) Data interaction method, device, and system
CN104281106A (en) Remote control method and system for air conditioner
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN111582824B (en) Cloud resource synchronization method, device, equipment and storage medium
CN104731062A (en) Intelligent network management system and method used for monitoring state and dispatching for instruments
CN104090768A (en) Automatic intelligent smart phone form generating system and method
CN105511273A (en) Client operation management method and client
CN105787300A (en) Method and system for controlling usage of software
CN104899145A (en) Embedded system debugging method
CN110019536B (en) Database system based on medical block chain technology
CN104090937A (en) Database access method and database access system based on cloud calculation
KR102124954B1 (en) IoT PLATFORM SYSTEM FOR SUPPORTING HETEROGENEOUS DATABASE MANAGEMENT SYSTEM SIMULTANEOUSLY AND OPERATING METHOD THEREOF
CN101426220A (en) Method, apparatus and system for base station cutover
CN115982133A (en) Data processing method and device
CN107710793A (en) A kind of localization method and corresponding intrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150909