CN101577763B - Cellphone message tracking mechanism and cellphone code test method - Google Patents

Cellphone message tracking mechanism and cellphone code test method Download PDF

Info

Publication number
CN101577763B
CN101577763B CN2009101477623A CN200910147762A CN101577763B CN 101577763 B CN101577763 B CN 101577763B CN 2009101477623 A CN2009101477623 A CN 2009101477623A CN 200910147762 A CN200910147762 A CN 200910147762A CN 101577763 B CN101577763 B CN 101577763B
Authority
CN
China
Prior art keywords
cellphone
trace command
tracks
interface
information
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.)
Active
Application number
CN2009101477623A
Other languages
Chinese (zh)
Other versions
CN101577763A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101477623A priority Critical patent/CN101577763B/en
Publication of CN101577763A publication Critical patent/CN101577763A/en
Application granted granted Critical
Publication of CN101577763B publication Critical patent/CN101577763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a cellphone message tracking mechanism which tracks a plurality of cellphone messages simultaneously and a cellphone code test method using the mechanism; wherein, the mechanism comprises a tracking command input module, a tracking interface and a tracking command execution module; wherein, the tracking command input module is used for receiving the tracking command input by users and displaying tracking result information; at least one cellphone message tracking interface is provided for connecting with the cellphone environment and obtaining corresponding cellphone messages; the tracking command execution module is used for dispatching corresponding cellphone message tracking interfaces to simultaneously track and search cellphone information designated and tracked in tracking command sent by the tracking command input module and send searched cellphone messages to the tracking command input module. In the method of the invention, the cellphone code is mainly loaded to a simulated cellphone environment, then the tracking mechanism of the invention is dispatched to track the cellphone messages and the influence of the cellphone code on the cellphone performance is determined according to the cellphone messages.

Description

A kind of cellphone information tracking means and adopt the mobile phone code test method of this device
Technical field
The invention belongs to the information trace technical field, relate in particular to a kind of cellphone information tracking means and adopt the mobile phone code test method of this device.
Background technology
In the cell phone software development process; The programmer need debug the code that oneself is developed; To guarantee that code is loaded into the normal operation that can guarantee whole cell phone platform behind the whole cell phone platform; In debug process, need check the code developed performance impact to whole cell phone platform, cellphone information is followed the tracks of and is just seemed very important like this.Mobile phone tracking is often referred to be followed the tracks of the needed cellphone information of user, sends to the PC side then, is shown to the user, makes the user can see the relevant information of mobile phone intuitively, so that programmer's program development and debugging.Prior art is normally carried out the tracking of cellphone information below the mobile phone environment of simulation; It adopts the scheme of the cellphone information that static configuration follows the tracks of; The cellphone information of following the tracks of is more fixing, can't dynamic expansion, increase or deletion, if the user needs to expand, increases or delete trace information; Existing technology implements the internal structure that needs the change program, and workload is very big.In addition, prior art is not supported the concurrent of tracking message, after a tracking message disposes, just can send next tracking message, and efficient is not high.
Summary of the invention
The technical problem that the present invention will solve provides a kind of cellphone information tracking means that can follow the tracks of simultaneously more than one cellphone information, and adopts this device to carry out the method for mobile phone code tester.
For solving the problems of the technologies described above, cellphone information tracking means of the present invention comprises trace command input module, cellphone information tracking interface and trace command Executive Module;
Said trace command input module is used to receive the trace command of user's input, and sends it to said trace command Executive Module, also is used to the cellphone information that shows that said trace command Executive Module sends;
Said cellphone information is followed the tracks of interface and is at least one, and it is used to connect mobile phone environment, obtains corresponding mobile phone information;
Said trace command Executive Module is used to call corresponding said cellphone information and follows the tracks of interface; Specify each cellphone information of following the tracks of to follow the tracks of collection simultaneously in the said trace command that said trace command input module is sent, and the cellphone information of collecting is sent to said trace command input module.
In apparatus of the present invention, said trace command input module with said trace command send to scheme that said trace command Executive Module adopts can for:
Said trace command input module carries out package respectively with each trace command of user's input, and then that each trace command is corresponding packet sends to said trace command Executive Module simultaneously.
Further, said trace command input module compresses packet header length when said trace command is carried out package.
Further, said trace command input module also is used for, when said trace command input module when said trace command Executive Module sends certain trace command failure, retransmit this trace command.
Further, said cellphone information tracking interface comprises that thread information trace interface, mission bit stream are followed the tracks of interface, stack information follows the tracks of interface and performance information is followed the tracks of interface.
Further, said cellphone information is followed the tracks of interface and is preestablished for the user, and can dynamically add, expands or delete.
More one go on foot ground; If clearly specify in the said trace command that said trace command Executive Module is received which kind of cellphone information is not followed the tracks of; Then said trace command Executive Module calls whole said cellphone informations and follows the tracks of interface, simultaneously each cellphone information is followed the tracks of collection.
For solving the problems of the technologies described above, the method that adopts cellphone information tracking means according to the invention to carry out the mobile phone code tester comprises the steps:
The first step, set up an analogue mobile phone environment;
Second step, the mobile phone code that will test are loaded in the said analogue mobile phone environment;
The 3rd goes on foot, launches this cellphone information tracking means, and cellphone information relevant in the said simulated environment is followed the tracks of collection;
The 4th the step, according to the 3rd the step the said cellphone information of collecting judge that said mobile phone code is to the mobile phone Effect on Performance.
Beneficial effect of the present invention is:
Adopt cellphone information tracking means of the present invention; Configured in advance thread information trace interface, mission bit stream follow the tracks of interface, stack information and follow the tracks of interface, performance information and follow the tracks of cellphone informations such as interface and follow the tracks of interface; The cellphone information of then following the tracks of according to the specified needs of trace command of user's input; Call corresponding mobile phone information tracking interface and follow the tracks of, can realize more than one cellphone information is followed the tracks of collection simultaneously, make things convenient for the user to obtain different mobile information simultaneously.And the cellphone information that the present invention can the dynamic-configuration user need check is as long as corresponding interpolation, expansion or deletion cellphone information are followed the tracks of interface.In addition, when the present invention carries out the package processing to information, packet header length is compressed, information transfer efficiency is provided.Mobile phone code test method of the present invention; Through calling cellphone information tracking means according to the invention, in the analogue mobile phone environment that has loaded this mobile phone code, cellphone information is followed the tracks of collection, thereby judge of the influence of this mobile phone code mobile phone environment; Be easy to implement, workable.
Apparatus of the present invention can be used for the analogue mobile phone environment, and analogue mobile phone information is collected, and also can be used for the real handset environment, and real handset information is collected.
Description of drawings
Fig. 1 is a cellphone information tracking means operation principle sketch map of the present invention;
Fig. 2 is for adopting the mobile phone code test method flow chart of apparatus of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain.
Cellphone information tracking means of the present invention comprises trace command Executive Module, cellphone information tracking interface and trace command input module.Wherein, the trace command input module is used to receive the trace command of user's input, and sends it to said trace command Executive Module, also is used to the cellphone information that shows that said trace command Executive Module sends.Cellphone information is followed the tracks of interface and is at least one; It is used to connect mobile phone environment; Obtain corresponding mobile phone information, in the present embodiment, cellphone information is followed the tracks of interface and is comprised that specifically thread information trace interface, mission bit stream are followed the tracks of interface, stack information follows the tracks of interface and performance information is followed the tracks of interface.Cellphone information is followed the tracks of interface and is preestablished for the user, and can dynamically add, expands or delete.The trace command Executive Module is used to call corresponding mobile phone information and follows the tracks of interface; Specify each cellphone information of following the tracks of to follow the tracks of collection simultaneously in the trace command that the trace command input module is sent, and the cellphone information of collecting is sent to the trace command input module.
In the present embodiment, adopt PC to realize the function of trace command input module, for tracking provides man-machine interface, the confession user imports trace command and checks tracking results.The user imports trace command on PC; Trace command to different mobile phones information is distinguished package, sends to the trace command Executive Module then simultaneously, and the trace command that the trace command Executive Module is sent the PC side is resolved; And call corresponding mobile phone information according to trace command and follow the tracks of interface; Simultaneously corresponding mobile phone information is followed the tracks of collection,, be shown to the user by the show tools of PC side then with the cellphone information of collecting package and send to the PC side respectively.
Fig. 1 is a cellphone information tracking means operation principle sketch map of the present invention; As shown in the figure; The trace command Executive Module comprises a tracing task module, several tracking implementing modules and a communication module, and wherein the tracking implementing module comprises thread information trace module, mission bit stream tracking module, stack information tracking module, performance information tracking module.
Wherein, the tracing task module receives the tracking request message that sends over from communication module, sends to concrete tracking implementing module to the content of asking with the form of message.
Each tracking implementing module can be called corresponding mobile phone information and follow the tracks of interface, has defined type of message and message body content that corresponding tracking processing need be transmitted simultaneously, and carries out following function according to type of message.Wherein, thread information trace module mainly is the details that are used for obtaining thread, comprises thread title, Thread Id, running status, priority, CPU usage, top-of-stack pointer, storehouse utilization rate; The stack information tracking module mainly is used for obtaining free space size, the size of usage space size and total cospace; The performance information tracking module mainly is used for obtaining the cpu performance data, so that the programmer checks the influence of the code of oneself to cell phone platform, and convenient debugging and exploitation; The mission bit stream tracking module mainly is used for the details of the task of obtaining, and comprises thread title, running status, state machine and the CPU usage at task names, task ID, place.
Communication module has been created two threads, and one is to read thread, and one is to write thread, task registration is provided simultaneously and has nullified interface.Read thread from the physical serial interface reading of data, then the data that read are resolved, resolving becomes cellphone information tracking request message; Be written to the serial ports the inside after writing the cellphone information package that thread obtains tracking.Task registration offers the tracing task module with the cancellation interface and uses, and supplies its registration and unregistration in communication module.
During analogue mobile phone system start-up; The tracing task module is created and is started; When it receives the initial message that the analogue mobile phone system sends, carry out initialization process, and in the registration of communication module the inside; To communication module call back function is provided, this call back function is used for sending tracking request message to the tracing task module.
Communication module reads the data that PC side instrument is written to physical serial interface through reading thread from physical serial interface, carry out the parsing of message then according to sync bit, and obtains the message call back function of tracing task module.
Communication module utilizes call back function that tracking request message is sent to the tracing task module; The tracing task module is called different mobile information trace interface according to tracking request message, obtains the relevant information of mobile phone; Then cellphone information being carried out package handles; At last the message bag that is sealed is sent to writing in the thread of communication module, write the physical serial interface the inside, the show tools that sends to the PC side is shown to the user.
In the embodiment of the invention, the cellphone information of collecting is at first left in the round-robin queue, there are a read pointer and write pointer in this round-robin queue.When needs write data in formation, write pointer moved backward, and read pointer is constant, and when reading of data from formation, read pointer moves backward, and write pointer is constant.Like this, adopt the cellphone information buffering area of round-robin queue's mode can recycle, utilized the space efficiently.
In addition, when message being carried out the package processing, the embodiment of the invention is compressed packet header length, and header packet information length originally is 16 bytes, now 12 bytes of boil down to.Usually header packet information comprises two sync bits (2 bytes of each sync bit needs), object module number (1 byte), target submodule number (1 byte), source module number (1 byte), source submodule number (1 byte), message id (4 bytes), message-length (2 bytes), check digit (1 byte), keeps position (1 byte).The header packet information of the embodiment of the invention comprises a sync bit ((1 byte), object module number (1 byte), target submodule number (1 byte), source module number (1 byte), source submodule number (1 byte); Message id (4 bytes), message-length (2 bytes), check digit (1 byte) be totally 12 bytes; A sync bit and 3 reservation positions have been removed; Greatly save the space, improved transmission of messages efficient.
The present invention can dynamically add, expand or delete the user need follow the tracks of the cellphone information of checking; The user only need add on the interface of tool side, expand or deletion institute will follow the tracks of the operation of cellphone information (be corresponding interpolation, expansion or delete the tracking implementing module and corresponding mobile phone information tracking interface); Click then and confirm; Then to add, expand or the deletion the tracking implementing module can in tracing task, register, expand or nullify, the user has just accomplished dynamic-configuration like this.For example the user hopes to expand the running time of thread information; Then only need on the thread details interface of tool side, add running time; And interpolation corresponding simulating environment information interface running time (being corresponding mobile phone information trace interface) gets final product; After configuration finished, the user just can trace into the temporal information of thread.
In addition; In the present invention PC side cellphone information trace command being carried out package respectively handles; And occur to the trace command Executive Module simultaneously; Communication module by in the trace command Executive Module is resolved, and the user can send a plurality of cellphone information trace commands simultaneously like this, simultaneously these trace commands is handled by the trace command Executive Module then.If clearly specify in the trace command that the trace command Executive Module is received which kind of cellphone information is not followed the tracks of, in the embodiment of the invention, the trace command Executive Module calls whole cellphone informations and follows the tracks of interface, simultaneously each cellphone information is followed the tracks of collection.The embodiment of the invention adopts asynchronous interface; When more than one cellphone information is followed the tracks of simultaneously; Can each trace command be put into message queue the inside, trace command sent to the trace command Executive Module, in the time of appointment, not send successfully according to the principle of first in first out; Can regularly retransmit, up to sending successfully.
Fig. 2 is for adopting the mobile phone code test method flow chart of apparatus of the present invention, and as shown in the figure, mobile phone code test method of the present invention specifically comprises the steps:
1, sets up an analogue mobile phone environment;
2, the mobile phone code that will test is that handset program is loaded in this analogue mobile phone environment;
3, launch cellphone information tracking means of the present invention, the cellphone information in this analogue mobile phone environment is followed the tracks of collection;
4, judge that according to the cellphone information of collecting in the 3rd step this mobile phone code is to the mobile phone Effect on Performance.
Above-described specific embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain; Institute it should be noted; The above is merely specific embodiment of the present invention, and those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of technical scheme and equivalent technologies thereof of claim record of the present invention if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (6)

1. cellphone information tracking means is characterized in that:
This device comprises trace command input module, cellphone information tracking interface and trace command Executive Module;
Said trace command input module is used to receive the trace command of user's input, and sends it to said trace command Executive Module, also is used to the cellphone information that shows that said trace command Executive Module sends;
Said cellphone information is followed the tracks of interface and is at least one, and it is used to connect mobile phone environment, obtains corresponding mobile phone information; Said cellphone information is followed the tracks of interface and is comprised that thread information trace interface, mission bit stream are followed the tracks of interface, stack information follows the tracks of interface and performance information is followed the tracks of interface; Said trace command Executive Module is used to call corresponding said cellphone information and follows the tracks of interface; Specify each cellphone information of following the tracks of to follow the tracks of collection simultaneously in the said trace command that said trace command input module is sent, and the cellphone information of collecting is sent to said trace command input module.
2. cellphone information tracking means according to claim 1 is characterized in that, said trace command input module with the scheme that said trace command sends to said trace command Executive Module employing is:
Said trace command input module carries out package respectively with each trace command of user's input, and then that each trace command is corresponding packet sends to said trace command Executive Module simultaneously.
3. the cellphone information tracking means of stating according to claim 2 is characterized in that:
Said trace command input module compresses packet header length when said trace command is carried out package, with 12 bytes of its boil down to.
4. cellphone information tracking means according to claim 1 is characterized in that:
Said trace command input module also is used for, when said trace command input module when said trace command Executive Module sends certain trace command failure, retransmit this trace command.
5. according to each described cellphone information tracking means in the claim 1 to 4, it is characterized in that:
Said cellphone information is followed the tracks of interface and is preestablished for the user, and can dynamically add, expands or delete.
6. according to each described cellphone information tracking means in the claim 1 to 4, it is characterized in that:
If clearly specify in the said trace command that said trace command Executive Module is received which kind of cellphone information is not followed the tracks of; Then said trace command Executive Module calls whole said cellphone informations and follows the tracks of interface, simultaneously each cellphone information is followed the tracks of collection.
CN2009101477623A 2009-06-19 2009-06-19 Cellphone message tracking mechanism and cellphone code test method Active CN101577763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101477623A CN101577763B (en) 2009-06-19 2009-06-19 Cellphone message tracking mechanism and cellphone code test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101477623A CN101577763B (en) 2009-06-19 2009-06-19 Cellphone message tracking mechanism and cellphone code test method

Publications (2)

Publication Number Publication Date
CN101577763A CN101577763A (en) 2009-11-11
CN101577763B true CN101577763B (en) 2012-07-18

Family

ID=41272544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101477623A Active CN101577763B (en) 2009-06-19 2009-06-19 Cellphone message tracking mechanism and cellphone code test method

Country Status (1)

Country Link
CN (1) CN101577763B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105182331A (en) * 2015-08-25 2015-12-23 电子科技大学 Airborne radar real-time signal processing method based on local area network and graphics processor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
CN101257402A (en) * 2008-01-17 2008-09-03 华为技术有限公司 Method and system for equipment to realize user-defined order

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
CN101257402A (en) * 2008-01-17 2008-09-03 华为技术有限公司 Method and system for equipment to realize user-defined order

Also Published As

Publication number Publication date
CN101577763A (en) 2009-11-11

Similar Documents

Publication Publication Date Title
CN108415739B (en) Hook method and device for dynamic link library function and storage medium
CN101770424B (en) Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal
CN104484273A (en) Test method for application program, device and system
CN104731569B (en) A kind of data processing method and relevant device
CN103729288A (en) Application program debugging method under embedded multi-core environment
CN103176899A (en) Mobile phone emulator and method for emulating mobile phone functions on host machine
CN102629240A (en) Method and device for serial communication
CN103106109A (en) Mobile communication device and application interface switching method
CN102566986A (en) TD fixed wireless phone software version management system and application method of such system
CN104219639A (en) Method and device for displaying text message record
CN101452393A (en) DSP2812 program on-line upgrading method based on PCI bus
CN101577763B (en) Cellphone message tracking mechanism and cellphone code test method
CN110489165A (en) Obtain method, apparatus, medium and the equipment of call stack stack frame command offsets
CN102541727B (en) Program debugging method and system
CN104050111A (en) Accessing different types of memory by respective commands with different timing requirements
CN101335651B (en) Simulated testing system and method for expanding terminal by the same system
CN103415085A (en) Automatic generation method of general MAC protocol processor
CN106896956A (en) The implementation method of multi-point touch under a kind of " road " system
WO2008029974A1 (en) Application framework system for distribution and migration of application
CN113687942B (en) Detection method and device and electronic equipment
CN101739338B (en) Device and method for tracking processor address data
CN115640349A (en) Data processing method, device, equipment and storage medium
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
CN100492299C (en) Embedded software developing method and system
CN101662300B (en) System and method for converting picture of mobile telephone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant