CN101577763A - Cellphone message tracking mechanism and application thereof in cellphone code test method - Google Patents

Cellphone message tracking mechanism and application thereof in cellphone code test method Download PDF

Info

Publication number
CN101577763A
CN101577763A CNA2009101477623A CN200910147762A CN101577763A CN 101577763 A CN101577763 A CN 101577763A CN A2009101477623 A CNA2009101477623 A CN A2009101477623A CN 200910147762 A CN200910147762 A CN 200910147762A CN 101577763 A CN101577763 A CN 101577763A
Authority
CN
China
Prior art keywords
cellphone
trace command
tracks
information
interface
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.)
Granted
Application number
CNA2009101477623A
Other languages
Chinese (zh)
Other versions
CN101577763B (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

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)

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 the 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 the deletion 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, just can send next tracking message after a tracking message disposes, and efficient is not high.
Summary of the invention
The technical problem to be solved in the present invention 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;
Described trace command input module is used to receive the trace command of user's input, and sends it to described trace command Executive Module, also is used to the cellphone information that shows that described trace command Executive Module sends;
Described 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;
Described trace command Executive Module is used to call corresponding described 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 described trace command that described trace command input module is sent, and the cellphone information of collecting is sent to described trace command input module.
In apparatus of the present invention, described trace command input module with described trace command send to scheme that described trace command Executive Module adopts can for:
Described trace command input module carries out package respectively with each trace command of user's input, and the packet with each trace command correspondence sends to described trace command Executive Module simultaneously then.
Further, described trace command input module compresses packet header length when described trace command is carried out package.
Further, described trace command input module also is used for, when described trace command input module when described trace command Executive Module sends the failure of certain trace command, retransmit this trace command.
Further, described 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, described 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 described trace command that described trace command Executive Module is received which kind of cellphone information is not followed the tracks of, then described trace command Executive Module calls whole described 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 of the present 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 need to test are loaded in the described analogue mobile phone environment;
The 3rd goes on foot, enables this cellphone information tracking means, and cellphone information relevant in the described simulated environment is followed the tracks of collection;
The 4th the step, according to the 3rd the step the described cellphone information of collecting judge that described 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 following the tracks of according to the specified needs of the trace command of user input then, calling corresponding mobile phone information tracking interface follows 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 cellphone informations 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, by calling cellphone information tracking means of the present 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 schematic diagram 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 the drawings and specific embodiments the present invention is described in further detail.
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 described trace command Executive Module, also is used to the cellphone information that shows that described 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,, import trace command and check tracking results for the user for tracking provides man-machine interface.The user imports trace command on PC, trace command at different cellphone informations is distinguished package, send to the trace command Executive Module then simultaneously, 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 collected package and send to the PC side respectively.
Fig. 1 is a cellphone information tracking means operation principle schematic diagram 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, and the content of asking is sent to concrete tracking implementing module 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 is handled needs transmission 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 is mainly used to obtain free space size, the size of usage space size and total cospace; The performance information tracking module is mainly used to obtain 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 is mainly used to 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 and cancellation interface offer the tracing task module and use, for 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, provide call back function to communication module, this call back function is used for sending the tracking request message to the tracing task module.
Communication module reads the data that PC side instrument is written to physical serial interface by 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 will follow the tracks of request message and sends to the tracing task module, the tracing task module is according to following the tracks of request message, call different cellphone informations and follow the tracks of interface, obtain 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, the cellphone information buffering area of employing round-robin queue mode can be recycling, 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, expands or delete the user need follow the tracks of the cellphone information of checking, the user only need add, expand on the interface of tool side or delete the operation that will follow the tracks of cellphone information (being that corresponding interpolation, expansion or deletion tracking implementing module and corresponding mobile phone information are followed the tracks of interface), click then and determine, the tracking implementing module that then will add, expand or delete can be registered in tracing task, expands or be nullified, and the user has just finished dynamic-configuration like this.For example the user wishes 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 (promptly corresponding cellphone information is followed the tracks of 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, resolve by the communication module in the trace command Executive Module, 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, each trace command can be put into the message queue the inside, principle according to first in first out sends to the trace command Executive Module with trace command, in the time of appointment, do not send successfully, 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 need to test is that handset program is loaded in this analogue mobile phone environment;
3, enable 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, purpose of the present invention, technical scheme and beneficial effect are further described, institute it should be noted, the above only is specific embodiments of the 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, if of the present invention these are revised and modification belongs within the scope of the technical scheme of claim record of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1, a kind of cellphone information tracking means is characterized in that:
This device comprises trace command input module, cellphone information tracking interface and trace command Executive Module;
Described trace command input module is used to receive the trace command of user's input, and sends it to described trace command Executive Module, also is used to the cellphone information that shows that described trace command Executive Module sends;
Described 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;
Described trace command Executive Module is used to call corresponding described 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 described trace command that described trace command input module is sent, and the cellphone information of collecting is sent to described trace command input module.
2, cellphone information tracking means according to claim 1 is characterized in that, described trace command input module with the scheme that described trace command sends to described trace command Executive Module employing is:
Described trace command input module carries out package respectively with each trace command of user's input, and the packet with each trace command correspondence sends to described trace command Executive Module simultaneously then.
3, the cellphone information tracking means of stating according to claim 2 is characterized in that:
Described trace command input module compresses packet header length when described trace command is carried out package.
4, cellphone information tracking means according to claim 1 is characterized in that:
Described trace command input module also is used for, when described trace command input module when described trace command Executive Module sends the failure of certain trace command, retransmit this trace command.
5, cellphone information tracking means according to claim 1 is characterized in that:
Described 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.
6, according to each described cellphone information tracking means in the claim 1 to 5, it is characterized in that:
Described cellphone information is followed the tracks of interface and is preestablished for the user, and can dynamically add, expands or delete.
7, according to each described cellphone information tracking means in the claim 1 to 5, it is characterized in that:
If clearly specify in the described trace command that described trace command Executive Module is received which kind of cellphone information is not followed the tracks of, then described trace command Executive Module calls whole described cellphone informations and follows the tracks of interface, simultaneously each cellphone information is followed the tracks of collection.
8, adopt the described cellphone information tracking means of claim 1 to carry out the method for mobile phone code tester, it is characterized in that comprising the steps:
The first step, set up an analogue mobile phone environment;
Second step, the mobile phone code that will need to test are loaded in the described analogue mobile phone environment;
The 3rd the step, enable this cellphone information tracking means, according to mobile phone code tester needs corresponding mobile phone information in the described simulated environment is followed the tracks of collection;
The 4th step, judge that according to the 3rd analogue mobile phone information collected of described tracking of step described mobile phone code is to the mobile phone Effect on Performance.
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 true CN101577763A (en) 2009-11-11
CN101577763B 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)

Cited By (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

Family Cites Families (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

Cited By (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

Also Published As

Publication number Publication date
CN101577763B (en) 2012-07-18

Similar Documents

Publication Publication Date Title
CN108415739B (en) Hook method and device for dynamic link library function and storage medium
CN103729288B (en) The adjustment method of application program under a kind of embedded multi-core environment
EP3937016A1 (en) Memory management method and apparatus
CN101770424B (en) Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal
CN104731569B (en) A kind of data processing method and relevant device
CN104484273A (en) Test method for application program, device and system
CN101344865B (en) CPU occupancy rate measuring method and apparatus
CN103176899A (en) Mobile phone emulator and method for emulating mobile phone functions on host machine
CN114363144B (en) Fault information association reporting method and related equipment for distributed system
CN109977013B (en) Debugging information acquisition method, system and device
CN102566986A (en) TD fixed wireless phone software version management system and application method of such system
CN104899140A (en) Test method for mobile terminal assembly
CN102981827A (en) Display interface data treatment method and platform based on middle piece
CN106896956B (en) The implementation method of multi-point touch under one kind " road " system
CN101577763B (en) Cellphone message tracking mechanism and cellphone code test method
CN113326288A (en) Data processing method and device and electronic equipment
CN103415085A (en) Automatic generation method of general MAC protocol processor
CN103856466A (en) Acquisition terminal device capable of configuring protocols automatically
CN101335651A (en) Simulated testing system and method for expanding system by the same system
CN113687942B (en) Detection method and device and electronic equipment
CN101739338B (en) Device and method for tracking processor address data
CN110955486A (en) File caching efficiency tracking method and device, storage medium and terminal
CN104787634A (en) Monitoring method of elevator all-in-one machine, elevator all-in-one machine and monitoring system thereof
CN100492299C (en) Embedded software developing method and system
CN108280133A (en) A kind of control method and equipment for page browsing

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