CN102096626A - Mobile terminal and processing method of test log thereof - Google Patents

Mobile terminal and processing method of test log thereof Download PDF

Info

Publication number
CN102096626A
CN102096626A CN2010106217856A CN201010621785A CN102096626A CN 102096626 A CN102096626 A CN 102096626A CN 2010106217856 A CN2010106217856 A CN 2010106217856A CN 201010621785 A CN201010621785 A CN 201010621785A CN 102096626 A CN102096626 A CN 102096626A
Authority
CN
China
Prior art keywords
message
file
memory device
configuration file
message logging
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
CN2010106217856A
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.)
ST Ericsson Semiconductor Beijing Co Ltd
Original Assignee
ST Ericsson Semiconductor Beijing 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 ST Ericsson Semiconductor Beijing Co Ltd filed Critical ST Ericsson Semiconductor Beijing Co Ltd
Priority to CN2010106217856A priority Critical patent/CN102096626A/en
Publication of CN102096626A publication Critical patent/CN102096626A/en
Priority to PCT/CN2011/084648 priority patent/WO2012089079A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • 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/2268Logging of test results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • H04B17/18Monitoring during normal operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal and a processing method of a test log thereof, wherein the method comprises the following steps of: finding a first configuration file in storage equipment by using the mobile terminal, and analyzing the found first configuration file to obtain a message filtering rule, wherein the message filtering rule is used for indicating a message type to be stored; and storing a message in a test process to the storage equipment as the message log by the mobile terminal according to the message filtering rule. The invention can avoid the problem that test can be carried out after the mobile terminal and equipment comprising a computer are connected in a relevant technique so that the test process can be conveniently carried out without special connection equipment or even carrying the computer, and therefore, test cost and workload are reduced, and test friendliness is improved.

Description

The disposal route of mobile terminal test daily record and portable terminal
Technical field
The present invention relates to the communications field, relate in particular to a kind of disposal route and portable terminal of mobile terminal test daily record.
Background technology
In mobile communication system, communication protocol stack is one of whole mobile terminal system core ingredient.The exploitation of communication protocol stack mainly need be by software development and two aspects of actual test.In the performance history of communication protocol stack, need carry out the multiple test such as consistance, interoperability of agreement to it.For the problem that occurs in the test is analyzed and researched, just need to preserve in the test process at the scene the message logging of portable terminal.The message logging that will occur problem then feeds back to the research staff, so just can research and solve the problem that occurs in the test according to message logging, therefore, this mode of carrying out analyzing and processing according to the mobile terminal message daily record has become one of main adjustment method of communication protocol stack exploitation.
In the R﹠D process of mobile communication terminal address protocol stack sofeware, the method that the message flow of communication protocol is analyzed mainly comprises following two kinds usually: (1) online message log store at present; (2) deferred information log store.
Wherein, the online message log store refers to when test and mobile communication terminal need be linked to each other with computing machine, utilizes the message logging management tool on the computing machine to be configured and to preserve the message logging file.Concrete mode is as follows: use general asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter, abbreviate UART as) or USB (universal serial bus) (Universal Serial Bus, abbreviate USB as) or TCP (the Transfer Control Protocol/Internet Protocol of Ethernet (Ethernet), TCP/IP) etc. connection device links to each other mobile communication terminal to be tested with computing machine.Utilize the message logging management tool on the computing machine that configuration information is sent to mobile communication terminal to be tested, mobile communication terminal is according to this configuration information, the message that generates in the test process is filtered, so just can give computing machine by above-mentioned connection device real-time Transmission, the message logging file is preserved on computers the message that obtains after filtering.
In addition, the deferred information log store refers to when test not to be needed mobile communication terminal is linked to each other with computing machine, need when only disposing deferred information log store function to link to each other, utilize the message logging management tool distribution configuration command on the computing machine to give mobile communication terminal with computing machine.After finishing, disconnect terminal to be measured and be connected, and restart mobile communication terminal, could activate the deferred information log store like this with computing machine.After the mobile communication terminal operation, portable terminal just can produce all message to system according to the message screening table and filter, thereby obtains needed message, and then these message is directly stored in the local storage of mobile communication terminal.If current message logging file is filled with, message afterwards will be dropped.
When adopting above-mentioned online message log store or deferred information log storing method, if desired mobile communication terminal to be measured is tested, (for example need carry computing machine, can be portable computer) as the connection device between test configurations instrument and mobile communication terminal and the computing machine, not only can increase the workload of test, being not easy to the tester tests, and can increase the cost of test, reduce the efficient of test, cause test process friendly inadequately, influence user experience.
At terminal test in the correlation technique equipment such as terminal and computing machine need be connected and cause the test job amount big, be not easy to test, problem that testing cost is high, effective solution is not proposed at present as yet.
Summary of the invention
At terminal test in the correlation technique equipment such as terminal and computing machine need be connected and cause the test job amount big, be not easy to test, problem that testing cost is high, the present invention proposes a kind of disposal route and portable terminal of mobile terminal test daily record, in the process that portable terminal is tested, needing can avoid equipment such as terminal and computing machine are connected, reduce test job amount, convenient test carrying out, reduce testing cost, improve the purpose of test friendliness.
Technical scheme of the present invention is achieved in that
A kind of disposal route of mobile terminal test daily record is provided according to an aspect of the present invention.
Disposal route according to the mobile terminal test daily record of the embodiment of the invention comprises: portable terminal is searched first configuration file in memory device, and described first configuration file that finds resolved, obtain the message screening rule, wherein, described message screening rule is used to indicate the type of message of needs storage; In the test process of described portable terminal, described portable terminal is stored in the message in the test process in the described memory device as message logging according to described message screening rule.
Wherein, described portable terminal is searched first configuration file in described memory device before, described method further comprises: described portable terminal is searched second configuration file in described memory device, and described second configuration file that finds resolved, wherein, described second configuration file is used to indicate whether and need preserves message logging on described memory device; After described second configuration file was resolved, if determine that according to described second configuration file needs preserve message logging on described memory device, then described portable terminal was determined to search described first configuration file.
In addition, described portable terminal is that message logging comprises according to described message screening rule with the message stores in the test process: described portable terminal is kept at the message in the test process in the buffer area; Under the situation that the storage space of described buffer area is taken, with the message stores in the described buffer area to described memory device; Empty described buffer area, and continue the new message stores that produces in the test process to described buffer area.
And, preferably, described portable terminal is that message logging comprises according to described message screening rule with the message stores in the test process: create message logging file and message logging index file in described memory device, described message logging file is changed to the message logging file of storing, message in the described buffer area is write in the described message logging file, and in described message logging index file, preserve the title of described message logging file; Reach under the situation of predetermined value in the shared space of described message logging file, create new message logging file, described new message logging file is changed to the message logging file of storing, continuation writes the message of storing in the buffer area described in the test process in the described new message logging file, and the establishment situation to the message journal file is upgraded in described message logging index file, and sort according to the creation-time of message logging file title to message logging file in the described message logging index file, wherein, described predetermined value is less than the storage space of described memory device, and more than or equal to the storage space of described buffer area.
And, preferably, under the situation that the storage space of described memory device is taken, need be if also exist in the described buffer area as the message of message logging storage, then described method further comprises: the message logging file delete that will create the earliest according to the ordering of message logging file in the described message logging index file, create new message logging file, the message logging file that this is new is changed to the message logging file of storing, and with the message stores in the described buffer area to this new message logging file.
In addition, described portable terminal is searched first configuration file and comprised in described memory device: described portable terminal is searched described first configuration file according to the assigned catalogue sign of described first configuration file of storage in the predetermined sign of described first configuration file or the described memory device in described memory device.
According to a further aspect in the invention, provide a kind of portable terminal.This portable terminal comprises to be searched and parsing module, memory device and control module, wherein, described searching with parsing module is used for searching first configuration file at described memory device, and described first configuration file that finds resolved, obtain the message screening rule, wherein, described message screening rule is used to indicate the type of message of needs record; Described control module is used for the test process at described portable terminal, is message logging according to described message screening rule with the message stores in the test process; Described memory device is used for storing message under the control of described control module.
In addition, described searching with parsing module also was used for before searching described first configuration file, in described memory device, search second configuration file, and described second configuration file that finds resolved, wherein, described second configuration file is used to indicate whether and need preserves message logging on described memory device; After described second configuration file was resolved, if determine that according to described second configuration file needs preserve message logging on described memory device, then described searching with parsing module determined to search described first configuration file.
This portable terminal also comprises buffer area, and, described control module also is used for the message of test process is kept in the buffer area, under the situation that the storage space of described buffer area is taken, described control module with the message stores in the described buffer area to the described memory device, empty described buffer area afterwards, and continue the new message stores that produces in the test process to described buffer area.
Preferably, described searching with parsing module is used for searching described first configuration file according to the predetermined sign of described first configuration file or the assigned catalogue sign of described first configuration file of described memory device storage in described memory device.
The present invention proposes directly to obtain and to resolve configuration file on the memory device by portable terminal, thereby store message logging in the test process according to the indication of configuration file, like this, as long as in advance memory device is carried out file configuration by equipment such as computing machines, afterwards memory device is connected with terminal, needing in the correlation technique just can to avoid with portable terminal and the problem that can test after equipment such as computing machine are connected, therefore make that the process of test need not by special connection device, even need not to carry computing machine, the carrying out that can conveniently test, reduce the cost and the workload of test, improve the test friendliness.
Description of drawings
Fig. 1 is the process flow diagram according to the disposal route of the mobile terminal test daily record of the embodiment of the invention;
Fig. 2 is the processing flow chart according to file configuration and log information storage in the disposal route of the mobile terminal test daily record of the embodiment of the invention;
Fig. 3 is the processing flow chart of configuration file being resolved according in the disposal route of the mobile terminal test daily record of the embodiment of the invention;
Fig. 4 is according to the processing flow chart that in the disposal route of the mobile terminal test daily record of the embodiment of the invention message is saved to the message logging file from buffer area;
Fig. 5 is the block diagram according to the portable terminal of the embodiment of the invention.
Embodiment
Terminal need be connected with equipment such as computing machines and cause the test job amount big at terminal test in the correlation technique, be not easy to test, the problem that testing cost is high, the present invention proposes directly to obtain and to resolve configuration file on the memory device by portable terminal, thereby store message logging in the test process according to the indication of configuration file, like this, needing in the correlation technique just can to avoid with portable terminal and the problem that can test after equipment such as computing machine are connected, therefore make that the process of test need not by special connection device, even need not to carry computing machine, the carrying out that can conveniently test, reduce the cost and the workload of test, improve the test friendliness.
To describe embodiments of the invention in detail below.
According to embodiments of the invention, provide a kind of disposal route of mobile terminal test daily record.
As shown in Figure 1, the disposal route according to the mobile terminal test daily record of the embodiment of the invention comprises:
Step S101, portable terminal search first configuration file in memory device, and first configuration file that finds is resolved, and obtain the message screening rule, and wherein, the message screening rule is used to indicate the type of message of needs storage;
Step S103, in the test process of portable terminal, portable terminal is stored in the message in the test process in the memory device as message logging according to the message screening rule.
By means of above-mentioned processing, directly obtain and resolve configuration file on the memory device by portable terminal, thereby store message logging in the test process according to the indication of configuration file, like this, as long as in advance memory device is carried out file configuration by equipment such as computing machines, when test, only need memory device is connected the preservation that can finish message logging with terminal, needing in the correlation technique to avoid with portable terminal and the problem that can test after equipment such as computing machine are connected, therefore make that the process of test need not by special connection device, even need not to carry computing machine, the carrying out that can conveniently test, reduce the cost and the workload of test, improve the test friendliness.
Portable terminal is searched first configuration file in memory device before, portable terminal is searched second configuration file in memory device, and second configuration file that finds resolved, wherein, second configuration file is used to indicate whether to preserve message logging on memory device; After second configuration file was resolved, if determine that according to second configuration file needs preserve message logging on memory device, then portable terminal was determined to search first configuration file.On the other hand, if after second configuration file resolved, the message logging of learning this test need be kept on the equipment such as computing machine, does not then carry out the follow-up processing of the present invention.
When portable terminal was message logging according to the message screening rule with the message stores in the test process, portable terminal can at first be kept at the message in the test process in the buffer area; Under the situation that the storage space of buffer area is taken, with the message stores in the buffer area to memory device; Can empty buffer area then, and continue the new message stores that produces in the test process to buffer area.Like this, can avoid memory device is carried out frequent access, and can improve the efficient of message logging record.
Preferably, is in the process of message logging at portable terminal with the message stores in the test process according to the message screening rule, can at first in memory device, create message logging file and message logging index file, this message logging file (for example is changed to the message logging file stored, can carry out mark by modes such as pointers), when preserving daily record, message in the buffer area can be write in the message logging file, and in the message logging index file, preserve the title of message logging file;
Reach under the situation of predetermined value in the shared space of message logging file, create new message logging file, new message logging file is changed to the message logging file of storing, continuation writes the message of storing in the buffer area in the test process in the new message logging file, and the establishment situation to the message journal file is upgraded in the message logging index file, and sort according to the creation-time of message logging file title to message logging file in the message logging index file, wherein, predetermined value is less than the storage space of memory device, and more than or equal to the storage space of buffer area.
In correlation technique, in case memory device is taken, then memory device is not continued to write message logging, will cause a lot of message loggings can not deposit in the memory device like this, the problem that information drop-out occurs, in order to address this problem, the present invention proposes, under the situation that the storage space of memory device is taken, need be if also exist in the buffer area as the message of message logging storage, the message logging file delete that can will create the earliest according to the ordering of message logging file in the message logging index file then, create new message logging file, the message logging file that this is new is changed to the message logging file of storing, and with the message stores in the buffer area to this new message logging file.
For example, the storage space of supposing to be used for the memory device of recording messages daily record is 10MB (perhaps can be understood as the storage space that memory device is used for the storing message daily record is 10MB), stipulating that each message logging file takes up space can not surpass 1MB at most, the space of buffer area is 0.5MB, at this moment, with the message write storage device time, at first message is kept in the buffer area, when buffer area has been stored the message of 0.5MB, buffer area is taken, and this moment need be with the message stores in the buffer area in memory device.
At this moment, can in memory device, create a message logging file, the name identification of supposing this message logging file is log1, need to create the message logging index file simultaneously, in the message logging index file, write log1, wherein " 1 " in the name identification is used to represent that this document is the file of first establishment, and pointed message logging file log1 is set (for example, can point to the address at file log1 place in memory device), represent currently message to be write among the message logging file log1, after depositing in the message of 0.5MB in the buffer area among the message logging file log1, empty buffer area; If taken by message after the buffer area, the message of 0.5MB in this moment buffer area is write among the file log1, afterwards, empty buffer area.
If the buffer area relaying is continued the message into 0.5MB, this moment, buffer area can be taken for the third time, need to continue with in the file write storage device, but can judge the size of file log1 this moment and reach 1MB, can't continue storing message to file log1, because only stored 1MB message logging file in the memory device this moment, do not reach 10MB, therefore, can in memory device, create new message logging file, new message logging file can called after log2, and wherein " 2 " in the name identification are used to represent that this document is the file of second establishment, and make pointed file log2, after having increased log2, there are message logging file log1 and log2 in the memory device, need upgrade, title log2 is updated in the message logging index file the message logging index file; Preferably, for guarantee between message logging index file and the real messages journal file synchronously, can flush message daily record index file, search current message logging file and comprise log1 and log2, and title log1 and log2 are write in the message logging index file, and in the message logging index file, log1 and log2 are sorted, thereby the creation-time of expression log2 is later than log1, the rest may be inferred, until creating message logging file log10 and log10 being filled with 1MB, at this moment.
Afterwards, if still have the message that need be saved in the memory device in the buffer area, then can query messages daily record index file, the creation-time of determining file log1 the earliest, at this moment, message logging file log1 in the memory device can be deleted, create message logging file log11, updating message daily record index file, and make pointed file log11, continuation writes message in the buffer area to log11, if file log11 is write full, then need deleted file log2, and carry out similarly and handle, mode by this circulation storage can guarantee that new message can access preservation.
Preferably, when in above-mentioned memory device, storing first configuration file, can unify standard to the name of first configuration file, or the directory name at the first configuration file place unified standard, when portable terminal is searched first configuration file in memory device like this, just can in memory device, find first configuration file according to the assigned catalogue sign of storage first configuration file in the name identification of first configuration file or the memory device.Similarly, for second configuration file, can adopt similar mode to store equally, so that portable terminal is searched.
Describe processing procedure of the present invention in detail below in conjunction with Fig. 2 to Fig. 5.
As shown in Figure 2, the process of file configuration and message stores is as follows in the disposal route of above-mentioned mobile terminal test daily record:
Step S21, utilize the message logging management tool, can activate or the local function of storing of deactivation message logging, and generate corresponding configuration file with this, this configuration file has described whether activate the local function of storing of message logging (promptly, dispose the second above-mentioned configuration file,, can be provided with and whether preserve message logging) in portable terminal this locality by disposing second configuration file.In this step, do not need computing machine is connected with mobile communication terminal to be measured, as long as the message logging management tool on the operation computing machine can be finished configuration.Wherein, the message logging management tool is an application that is installed on the computing machine, have to communication protocol message be configured, resolve, show, various functions such as storage.
Step S22, utilize the message logging management tool, the module that select to need its message of output, and generate corresponding configuration file (that is, above-mentioned first configuration file) with this, this configuration file is mainly used in the input message of describing which module to be needed to show, the output message of which module needs to show that the Debugging message of which module needs to show, and the display mode of these message or information, that is to say that this configuration file is used for describing the type of the message that need record message logging.S21 is similar with step, in this step, does not need equally computing machine is connected with mobile communication terminal to be measured, as long as the message logging management tool on the operation computing machine can be finished configuration.
Step S23 is kept at above-mentioned two configuration files in the local storage (can be to insert terminal for example) of mobile communication terminal.The local storage here refers to the separate type storage card, as safe digital card (Secure Digital Card abbreviates SD Card as) and multimedia card (Multimedia Card abbreviates MMC as).In this course, do not need equally computing machine is connected with mobile communication terminal to be measured, only above-mentioned memory device need be extracted from communication terminal, insert in the card reader of computing machine, just these two configuration files can be copied in the storage card, then storage card is put into mobile communication terminal again, just can under the prerequisite of not connecting terminal and computing machine, finish writing of configuration file.
Step S24 during mobile terminal-opening, reads above-mentioned two configuration files in the local storage, and resolves, thus the local storage function of startup or disable message daily record; If determine that according to above-mentioned second configuration file local storage function of terminal is under an embargo, and then skips following all steps; If determine that according to above-mentioned second configuration file local storage function is activated, then continue to carry out processing procedure shown in Figure 3.
Step S25, terminal is kept at the message logging file that generates in the test process in the buffer area, once buffer area taken, then with the message stores in the buffer area in memory device.In order to guarantee in message logging, not lose useful message, adopted a kind of mode of the storage that circulates, detailed process will be described in conjunction with Fig. 4 hereinafter.
As shown in Figure 3, the detailed process that configuration file is resolved is as follows:
Step S31 during system start-up, reads the second above-mentioned configuration file, and resolves, and judges whether to need to activate local storage function.If then allow to start local storage function, execution in step S32; Otherwise forbid, skip following all steps, processing finishes;
Step S32 under the situation that local storage function has started, continues to read the first above-mentioned configuration file, and resolves;
Step S33 is then according to analysis result configuration messages filter table; If judge message screening table configuration successful, execution in step S34 then, otherwise execution in step S35;
Step S34, the local storage function of initiation message daily record;
Step S35 checks whether there is used message screening table (preferably, can search the message screening table that whether has last correct configuration) before, if find this message screening table, then execution in step S36; Otherwise, execution in step 37;
Step S36, the message screening table that uses before enabling, execution in step S34 afterwards;
Step S37 enables the message screening table (this message screening table is to set at general situation) of acquiescence, afterwards execution in step S34.
Fig. 4 shows in above-mentioned steps S25, with the processing procedure of the message stores in the buffer area to the message logging file.As shown in Figure 4, detailed process is as follows:
Step S41, setting is used for the size of the local storage space and the setup message journal file of storing message daily record, and the value in this space is called maximum available space.In addition, maximum available space should be big as far as possible, storing message daily record so as often as possible;
Step S42 creates a new message logging file.Inquire about whole spaces that existing message logging file takies, if this value is just created a new message logging file less than maximum available space, and the message logging file that will be somebody's turn to do new establishment is made as current message logging file; If this value is greater than maximum available space, just remove query messages daily record index file, find the oldest message logging file, the oldest message logging file delete is fallen, and then create a new message logging file, and this newly-built message logging file is made as current message logging file.The message logging file needs numbering in order, and generates the corresponding file name according to this numbering, for example, and can called after message logging 1, message logging 2 or the like.
When creating the message logging file, need to give sequence number of message logging file allocation, be used for name to the message journal file.At this moment in two kinds of situation:
Situation 1, if the message logging index file is not also created, this sequence number just is 1.
Situation 2 if the message logging index file is created, is just removed query messages daily record index file, finds the sequence number of the oldest message logging file, and this sequence number is added 1, and what obtain is exactly the sequence number of new message logging file.
Step S43 creates the message logging index file, and this file is used for according to the message logging reference number of a document with from small to large sequential storage message logging filename.This message logging index file can be kept in the local storage of terminal equally, and after system started shooting again like this, the information of these message loggings can not lost yet.
Step S44 judges whether to exist message transmitted between interior debugging message of module or the module; If have, then message call filter table, and execution in step S45, otherwise continue to wait for the arrival of news;
Step S45 judges in the filter table whether can find above-mentioned message, if, execution in step S46 then; Otherwise do not preserve this message, and continue to judge other message;
Step S46 deposits this message in the buffer area in;
Step S47 judges whether buffer area is full, if buffer area is full, and execution in step S48 then, otherwise return step S44, continue to the buffer area storing message;
Step S48 judges whether the current message logging file of storing has enough residual memory spaces, if the remaining space of current journal file during greater than the storage space of buffer zone, then execution in step S49; Otherwise execution in step S50;
Step S49 is written to the content of buffer zone in the current message logging file;
Step S50 under the situation of remaining space less than the length of buffer zone of current message logging file, writes brimful preceding message logging file, closes current message logging file;
Step S51 creates a new message logging file, and this document is set to the current message logging file of storing;
Step S52 is written to current message logging file with remaining message content in the buffer zone.
Step S53, updating message daily record index file that is to say, as long as there is the message logging file to be created or to delete, all message logging files will be write in the message logging index file by the sequencing of its numbering.
Wherein, creating or deleting under the situation of message logging file, if the message logging index file also (is not for example created, memory device has been preserved the message logging file, but the message logging index file is lost or is deleted), then at first create the message logging index file, then the filename of all message logging files is write in the message logging index file by the sequencing of its numbering.
If the message logging index file exists, earlier the message logging index file is emptied, then the filename of all message logging files is write in the message logging index file by the sequencing of its numbering.
Like this,, can from the local storage (memory device) of terminal, take out message logging according to user's needs by the message logging of above storage, and to decode with the message logging management tool.When extracting the message logging of storage, do not need to connect mobile communication terminal to be measured equally, only memory device need be extracted from communication terminal, insert in the card reader of computing machine, just can be in computing machine with whole message logging document copyings, operating personnel utilize the message logging management tool on the computing machine that the message journal file is decoded, and make its form that becomes a kind of readability, and the problem that gets final product the test process appearance of message logging embodiment is afterwards analyzed.
According to embodiments of the invention, also provide a kind of portable terminal.
As shown in Figure 5, comprise according to the portable terminal of the embodiment of the invention and to search and parsing module 501, memory device 502 and control module 503, wherein,
Search with parsing module 501 and be connected to memory device 502, search with parsing module 501 and be used for searching first configuration file at memory device 502, and first configuration file that finds resolved, obtain the message screening rule, wherein, the message screening rule is used to indicate the type of message of needs record;
Control module 503 is connected to searches and parsing module 501 and memory device 502, is used for the test process at portable terminal, is message logging according to the message screening rule with the message stores in the test process;
Memory device 502 is used for storing message under the control of control module 503.
Search with parsing module 1 and also be used for before searching first configuration file, in memory device 502, search second configuration file, and second configuration file that finds resolved, wherein, second configuration file is used to indicate whether and need preserves message logging on memory device 502; After second configuration file is resolved,, then search with parsing module 501 and determine to search first configuration file if determine that according to second configuration file needs preserve message logging on memory device.
This portable terminal also comprises the buffer area (not shown), be connected with control module 503 and memory device 502, and, control module 503 also is used for the message of test process is kept in the buffer area, under the situation that the storage space of buffer area is taken, control module 503 to memory device 502, empties buffer area with the message stores in the buffer area afterwards, and continues the new message stores that produces in the test process to buffer area.
Search with parsing module 501 and specifically can in memory device 502, search first configuration file according to the assigned catalogue sign of storage first configuration file in the predetermined sign of first configuration file or the memory device 502.
In addition, control module can be controlled the process that buffer area and memory device carry out above-mentioned circulation storage equally, describes before the concrete executive mode, no longer repeats here.
In sum, by means of technique scheme of the present invention, directly obtain and resolve configuration file on the memory device by portable terminal, thereby store message logging in the test process according to the indication of configuration file, like this, as long as in advance memory device is carried out file configuration by equipment such as computing machines, when test, only need memory device is connected the preservation that can finish message logging with terminal, needing in the correlation technique to avoid with portable terminal and the problem that can test after equipment such as computing machine are connected, therefore make that the process of test need not by special connection device, even need not to carry computing machine, the carrying out that can conveniently test, reduce the cost and the workload of test, improve the test friendliness; And, by adopting the mode of circulation storage, can make full use of the limited storage space of mobile communication terminal, guarantee in message logging, not lose useful message, and can avoid memory device is carried out frequent access, improve the efficient that daily record is preserved.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the disposal route of a mobile terminal test daily record is characterized in that, described method comprises:
Portable terminal is searched first configuration file in memory device, and described first configuration file that finds is resolved, and obtains the message screening rule, and wherein, described message screening rule is used to indicate the type of message of needs storage;
In the test process of described portable terminal, described portable terminal is stored in the message in the test process in the described memory device as message logging according to described message screening rule.
2. disposal route according to claim 1 is characterized in that, described portable terminal was searched first configuration file in described memory device before, described method further comprised:
Described portable terminal is searched second configuration file in described memory device, and described second configuration file that finds is resolved, and wherein, described second configuration file is used to indicate whether and need preserves message logging on described memory device;
After described second configuration file was resolved, if determine that according to described second configuration file needs preserve message logging on described memory device, then described portable terminal was determined to search described first configuration file.
3. disposal route according to claim 1 is characterized in that, described portable terminal is that message logging comprises according to described message screening rule with the message stores in the test process:
Described portable terminal is kept at the message in the test process in the buffer area;
Under the situation that the storage space of described buffer area is taken, with the message stores in the described buffer area to described memory device;
Empty described buffer area, and continue the new message stores that produces in the test process to described buffer area.
4. disposal route according to claim 3 is characterized in that, described portable terminal is that message logging comprises according to described message screening rule with the message stores in the test process:
In described memory device, create message logging file and message logging index file, described message logging file is changed to the message logging file of storing, message in the described buffer area is write in the described message logging file, and in described message logging index file, preserve the title of described message logging file;
Reach under the situation of predetermined value in the shared space of described message logging file, create new message logging file, described new message logging file is changed to the message logging file of storing, continuation writes the message of storing in the buffer area described in the test process in the described new message logging file, and the establishment situation to the message journal file is upgraded in described message logging index file, and sort according to the creation-time of message logging file title to message logging file in the described message logging index file, wherein, described predetermined value is less than the storage space of described memory device, and more than or equal to the storage space of described buffer area.
5. disposal route according to claim 4 is characterized in that, under the situation that the storage space of described memory device is taken, need be if also exist in the described buffer area as the message of message logging storage, and then described method further comprises:
The message logging file delete that to create the earliest according to the ordering of message logging file in the described message logging index file, create new message logging file, the message logging file that this is new is changed to the message logging file of storing, and with the message stores in the described buffer area to this new message logging file.
6. disposal route according to claim 1 is characterized in that, described portable terminal is searched first configuration file and comprised in described memory device:
Described portable terminal is searched described first configuration file according to the assigned catalogue sign of described first configuration file of storage in the predetermined sign of described first configuration file or the described memory device in described memory device.
7. a portable terminal is characterized in that, described portable terminal comprises to be searched and parsing module, memory device and control module, wherein,
Described searching with parsing module is used for searching first configuration file at described memory device, and described first configuration file that finds is resolved, and obtains the message screening rule, and wherein, described message screening rule is used to indicate the type of message of needs record;
Described control module is used for the test process at described portable terminal, is message logging according to described message screening rule with the message stores in the test process;
Described memory device is used for storing message under the control of described control module.
8. portable terminal according to claim 7, it is characterized in that, described searching with parsing module also was used for before searching described first configuration file, in described memory device, search second configuration file, and described second configuration file that finds resolved, wherein, described second configuration file is used to indicate whether and need preserves message logging on described memory device; After described second configuration file was resolved, if determine that according to described second configuration file needs preserve message logging on described memory device, then described searching with parsing module determined to search described first configuration file.
9. portable terminal according to claim 7, it is characterized in that, also comprise buffer area, and, described control module also is used for the message of test process is kept in the buffer area, under the situation that the storage space of described buffer area is taken, described control module with the message stores in the described buffer area to described memory device, empty described buffer area afterwards, and continue the new message stores that produces in the test process to described buffer area.
10. portable terminal according to claim 7, it is characterized in that, described searching with parsing module is used for searching described first configuration file according to the predetermined sign of described first configuration file or the assigned catalogue sign of described first configuration file of described memory device storage in described memory device.
CN2010106217856A 2010-12-27 2010-12-27 Mobile terminal and processing method of test log thereof Pending CN102096626A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010106217856A CN102096626A (en) 2010-12-27 2010-12-27 Mobile terminal and processing method of test log thereof
PCT/CN2011/084648 WO2012089079A1 (en) 2010-12-27 2011-12-26 Mobile terminal and method for processing test log thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106217856A CN102096626A (en) 2010-12-27 2010-12-27 Mobile terminal and processing method of test log thereof

Publications (1)

Publication Number Publication Date
CN102096626A true CN102096626A (en) 2011-06-15

Family

ID=44129729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106217856A Pending CN102096626A (en) 2010-12-27 2010-12-27 Mobile terminal and processing method of test log thereof

Country Status (2)

Country Link
CN (1) CN102096626A (en)
WO (1) WO2012089079A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355515A (en) * 2011-10-13 2012-02-15 广东欧珀移动通信有限公司 Automatic test method of cell phone file operation
CN102457401A (en) * 2012-01-06 2012-05-16 北京星网锐捷网络技术有限公司 Method, device and server for log simulation generation
WO2012089079A1 (en) * 2010-12-27 2012-07-05 意法·爱立信半导体(北京)有限公司 Mobile terminal and method for processing test log thereof
CN102968366A (en) * 2012-11-30 2013-03-13 广东欧珀移动通信有限公司 Local storage method and device of logs of blu-ray player
CN103577308A (en) * 2013-11-15 2014-02-12 惠州Tcl移动通信有限公司 Method for obtaining log files of mobile device
CN103995265A (en) * 2014-05-28 2014-08-20 广州南方卫星导航仪器有限公司 Method and device for storing records in GNSS measuring device in automatic circulated mode
CN104199785A (en) * 2014-08-22 2014-12-10 惠州Tcl移动通信有限公司 Method and system for dynamically storing log based on test conditions
CN105577445A (en) * 2015-12-30 2016-05-11 北京京东尚科信息技术有限公司 Method and device for collecting and reporting logs
CN109446172A (en) * 2017-10-12 2019-03-08 贵阳朗玛信息技术股份有限公司 Log storing method, read method and device
CN110515898A (en) * 2019-07-31 2019-11-29 济南浪潮数据技术有限公司 Log processing method and device
CN111427854A (en) * 2020-03-23 2020-07-17 深圳震有科技股份有限公司 Stack structure implementation method, device, equipment and medium supporting storage of batch data
CN111865718A (en) * 2020-07-16 2020-10-30 深圳云里物里科技股份有限公司 Gateway offline data storage method, device, equipment and medium
CN113015203A (en) * 2021-03-22 2021-06-22 Oppo广东移动通信有限公司 Information acquisition method, device, terminal, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361489A (en) * 2000-12-28 2002-07-31 深圳市中兴通讯股份有限公司 Automatic circular daily record information storing method and system
CN1976527A (en) * 2006-12-04 2007-06-06 华为技术有限公司 Method and system for mobile terminal test
CN101645031A (en) * 2009-06-30 2010-02-10 卡斯柯信号有限公司 Method for dynamically outputting log file according to time

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394646B (en) * 2008-11-06 2011-06-01 北京天碁科技有限公司 Software test method and system
CN101478769A (en) * 2009-01-22 2009-07-08 北京天碁科技有限公司 Method for protocol message log off-line storage and mobile communication terminal
CN102096626A (en) * 2010-12-27 2011-06-15 意法·爱立信半导体(北京)有限公司 Mobile terminal and processing method of test log thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361489A (en) * 2000-12-28 2002-07-31 深圳市中兴通讯股份有限公司 Automatic circular daily record information storing method and system
CN1976527A (en) * 2006-12-04 2007-06-06 华为技术有限公司 Method and system for mobile terminal test
CN101645031A (en) * 2009-06-30 2010-02-10 卡斯柯信号有限公司 Method for dynamically outputting log file according to time

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012089079A1 (en) * 2010-12-27 2012-07-05 意法·爱立信半导体(北京)有限公司 Mobile terminal and method for processing test log thereof
CN102355515A (en) * 2011-10-13 2012-02-15 广东欧珀移动通信有限公司 Automatic test method of cell phone file operation
CN102457401A (en) * 2012-01-06 2012-05-16 北京星网锐捷网络技术有限公司 Method, device and server for log simulation generation
CN102457401B (en) * 2012-01-06 2014-07-30 北京星网锐捷网络技术有限公司 Method, device and server for log simulation generation
CN102968366B (en) * 2012-11-30 2015-10-28 广东欧珀移动通信有限公司 The local storage means of a kind of Blu-ray player daily record and device
CN102968366A (en) * 2012-11-30 2013-03-13 广东欧珀移动通信有限公司 Local storage method and device of logs of blu-ray player
CN103577308A (en) * 2013-11-15 2014-02-12 惠州Tcl移动通信有限公司 Method for obtaining log files of mobile device
CN103577308B (en) * 2013-11-15 2017-01-18 惠州Tcl移动通信有限公司 Method for obtaining log files of mobile device
CN103995265A (en) * 2014-05-28 2014-08-20 广州南方卫星导航仪器有限公司 Method and device for storing records in GNSS measuring device in automatic circulated mode
CN104199785A (en) * 2014-08-22 2014-12-10 惠州Tcl移动通信有限公司 Method and system for dynamically storing log based on test conditions
CN105577445A (en) * 2015-12-30 2016-05-11 北京京东尚科信息技术有限公司 Method and device for collecting and reporting logs
CN109446172A (en) * 2017-10-12 2019-03-08 贵阳朗玛信息技术股份有限公司 Log storing method, read method and device
CN110515898A (en) * 2019-07-31 2019-11-29 济南浪潮数据技术有限公司 Log processing method and device
CN110515898B (en) * 2019-07-31 2022-04-22 济南浪潮数据技术有限公司 Log processing method and device
CN111427854A (en) * 2020-03-23 2020-07-17 深圳震有科技股份有限公司 Stack structure implementation method, device, equipment and medium supporting storage of batch data
CN111427854B (en) * 2020-03-23 2024-01-30 深圳震有科技股份有限公司 Stack structure realizing method, device, equipment and medium for supporting storage batch data
CN111865718A (en) * 2020-07-16 2020-10-30 深圳云里物里科技股份有限公司 Gateway offline data storage method, device, equipment and medium
CN113015203A (en) * 2021-03-22 2021-06-22 Oppo广东移动通信有限公司 Information acquisition method, device, terminal, system and storage medium

Also Published As

Publication number Publication date
WO2012089079A1 (en) 2012-07-05

Similar Documents

Publication Publication Date Title
CN102096626A (en) Mobile terminal and processing method of test log thereof
CN102667772B (en) File level hierarchical storage management system, method, and apparatus
RU2500023C2 (en) Document synchronisation on protocol not using status information
CN100596353C (en) Method and system for providing log service
CN102012933B (en) Distributed file system and method for storing data and providing services by utilizing same
US7987153B2 (en) Apparatus and method for automatically migrating user's working data
US8959062B2 (en) Data storage device with duplicate elimination function and control device for creating search index for the data storage device
US20150263909A1 (en) System and method for monitoring a large number of information processing devices in a communication network
US10055475B2 (en) Authentication system, synchronization method, and authentication apparatus
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
CN109542857B (en) Audit log storage method, audit log query method, audit log storage device, audit log query device and related equipment
CN102799613A (en) Showing method and device for recently-used file
CN110399348A (en) File deletes method, apparatus, system and computer readable storage medium again
CN102622407A (en) Log file operating system and log file management method
CN101228509B (en) Device and method for generating binary image
US20090204648A1 (en) Tracking metadata for files to automate selective backup of applications and their associated data
CN110008197A (en) A kind of data processing method, system and electronic equipment and storage medium
CN102693233A (en) Method and device for realizing electronic bookmark
JP2006277691A5 (en)
CN110688201A (en) Log management method and related equipment
JPH09204442A (en) Document data retrieval system
CN102819570A (en) Data access method, device and system
US7010650B2 (en) Multiple data management method, computer and storage device therefor
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN103177026A (en) Data management method and data management system

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: 20110615