WO2012174942A1 - 定位移动终端死机问题的方法及系统 - Google Patents

定位移动终端死机问题的方法及系统 Download PDF

Info

Publication number
WO2012174942A1
WO2012174942A1 PCT/CN2012/074619 CN2012074619W WO2012174942A1 WO 2012174942 A1 WO2012174942 A1 WO 2012174942A1 CN 2012074619 W CN2012074619 W CN 2012074619W WO 2012174942 A1 WO2012174942 A1 WO 2012174942A1
Authority
WO
WIPO (PCT)
Prior art keywords
signaling data
mobile terminal
storage space
crash
signaling
Prior art date
Application number
PCT/CN2012/074619
Other languages
English (en)
French (fr)
Inventor
杨菊培
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012174942A1 publication Critical patent/WO2012174942A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0742Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for locating a mobile terminal crash problem. Background technique
  • Mobile terminals such as mobile phones are playing an increasingly important role in people's daily lives, and have become an indispensable tool in our daily lives.
  • Locating and resolving problems in mobile terminals is a phenomenon that coexists with mobile terminals.
  • the normal problem-solving process is to know the existence of the problem in advance, and then reproduce the problem, and then find the cause of the problem and solve it in the process of recurring.
  • Such problem location is generally present in the R&D testing phase.
  • Problems that arise after a product goes to market are often problems that are not discovered during the R&D testing phase and that are difficult to reproduce, such as an abnormal crash. If a product that goes to the market has a hard-to-reproduce crash, how to locate it is a problem that has not been solved yet. Summary of the invention
  • the main object of the present invention is to provide a method and system for locating a mobile terminal crash problem, which solves the problem that the product crash problem is difficult to reproduce.
  • the present invention provides a method for locating a mobile terminal crash problem, the method comprising: storing signaling data to a preset storage space;
  • the preset positioning device reads the signaling data in the storage space
  • the positioning device analyzes the signaling data to locate a crash problem.
  • the method before performing the storing signaling data to a preset storage space, the method also includes:
  • the storing the signaling data to the preset storage space comprises: extracting signaling data of a preset type in the mobile terminal; and writing the signaling data into the storage space.
  • the preset type of signaling data includes: data pointed to by pointer signaling in the mobile terminal.
  • the locating device analyzing the signaling data to locate a crash problem comprises: parsing the signaling data.
  • the present invention also provides a system for locating a crash of a mobile terminal, including a mobile terminal and a positioning device, wherein
  • the mobile terminal is configured to store signaling data to a preset storage space
  • the positioning device is configured to: after the mobile terminal is dead or shut down, read signaling data in the storage space; and analyze the signaling data to locate a crash problem.
  • the mobile terminal includes: a deleting module, configured to delete previously stored signaling data when the storage space is insufficient.
  • the mobile terminal further includes: an extracting module, configured to extract signaling data of a preset type in the mobile terminal; and a writing module, configured to write the signaling data into the storage space.
  • an extracting module configured to extract signaling data of a preset type in the mobile terminal
  • a writing module configured to write the signaling data into the storage space.
  • the preset type of signaling data includes: data pointed to by pointer signaling in the mobile terminal.
  • the positioning device is configured to: parse the signaling data.
  • the method and system for locating a crash problem of a mobile terminal save the signaling data to a preset storage space before the mobile terminal is listed, and when the mobile terminal crashes, the signaling of the storage space can be read.
  • the data recurring the crash problem, solves the problem that the positioning crash problem cannot be located.
  • FIG. 1 is a schematic flowchart of a method for locating a mobile terminal crash according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a storage step in a method for locating a mobile terminal crash according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of still another embodiment of a method for locating a mobile terminal crash according to the present invention.
  • FIG. 4 is a schematic structural diagram of a system for locating a mobile terminal crash in the present invention
  • FIG. 5 is a schematic structural diagram of a mobile terminal in an embodiment of a system for locating a mobile terminal crash according to the present invention
  • FIG. 6 is another schematic structural diagram of a mobile terminal in an embodiment of a system for locating a mobile terminal crash.
  • a method for locating a crash of a mobile terminal includes: Step 10: storing signaling data to a preset storage space;
  • a storage space such as a flash space, capable of storing signaling data for analysis and analysis, may be opened in a mobile terminal such as a mobile phone, or a storage space may be externally stored for storing signaling data, and the storage space must be It is a storage space that can still be read by the positioning device after the mobile terminal crashes.
  • the mobile terminal When the mobile terminal is in the power-on state, the mobile terminal establishes a connection with other terminals or devices, and has signaling data interaction. When the mobile terminal receives the signaling data, the signaling data is stored in the set storage. space.
  • the specific implementation of writing storage space using 2M Flash as an example is as follows: The finite 2M Flash space is equally divided into two blocks, each of which is 1M in size. Set the global variable MsgTraceFlashAreaFlag to which block to write. MsgTraceFlashAreaFlag is equal to 0 in the initial state, MsgTraceFlashAreaFlag is equal to 1 when block 1 is written, and MsgTraceFlashAreaFlag is equal to 2 when block 2 is written. Set the global variable Remain indicating the size of the remaining flash space. If the signaling data to be stored is greater than 1M, it will discard the processing, read the value of MsgTraceFlashAreaFlag, and judge which space to write according to the value read.
  • MsgTraceFlashAreaFlag If the value of MsgTraceFlashAreaFlag is 0, it indicates that the mobile terminal is in the initial state of booting, and the signaling data is written to block 1. If the MsgTraceFlashAreaFlag value is 1, it indicates that the signaling data is written to block 1. If the MsgTraceFlashAreaFlag value is 2, it means that the signaling data is written to block 2. The value of the Remain is read, and the value of the read data is compared with the length of the signaling data to determine whether the remaining Flash space is sufficient to store the current signaling data. If the signaling data length is less than the value of the Remain, the signaling data is directly received. Write the current block.
  • the signaling data length is equal to the value of Remain, write the signaling data directly to the current block, then set MsgTraceFlashAreaFlag to the flag of another memory block, and set the address pointer to the starting address of another memory block. . If the signaling data length is greater than the value of Remain, the signaling data is written to another memory block, and then MsgTraceFlashAreaFlag is set to the flag of another memory block. At this point, the signaling data is successfully saved to the Flash space.
  • Step 11 After the mobile terminal crashes or shuts down, the preset positioning device reads the signaling data in the storage space;
  • the positioning device such as the PC fetches the signaling data by storing the signaling data in the storage space.
  • Step 12 The positioning device analyzes the signaling data to locate a crash problem.
  • the positioning device analyzes the extracted signaling data to locate the mobile phone crash problem.
  • the information obtained by the PC parsing the signaling data is as follows, so that the signaling scene before the mobile terminal crashes can be recovered.
  • the method for locating the crash problem of the mobile terminal in this embodiment is applicable not only to the mobile terminal, but also to the method of the present embodiment as long as the location of the crash problem of the device having the function of reading and writing the storage space.
  • step 10 may further include:
  • Step 101 Extract signaling data of a preset type in the mobile terminal.
  • Step 102 Write the signaling data into the storage space.
  • the foregoing preset type of signaling data includes data pointed to by pointer signaling in the mobile terminal.
  • the mobile terminal When transmitting and receiving signaling data, the mobile terminal first determines which types of signaling data are stored. Since the capacity of the storage space is limited, it is generally not recommended to store all signaling data, but preset one or more pairs of recurring letters.
  • the useful signaling data of the site is stored. In particular, for the pointer content in the signaling data, the data pointed to by the pointer content needs to be stored together in the storage space.
  • step 12 further includes: parsing the signaling data. Since the signaling data stored in the storage space may include data storage pointed to by the pointer content, when the signaling data of the storage space is read, the data of the storage space is converted from binary to signaling data of the mobile terminal. It is also necessary to restore the data pointed to by the original pointer content.
  • the method further includes:
  • Step 9 When the storage space capacity is insufficient, the previously stored signaling data is deleted. Due to the limited capacity of the storage space, the storage space should be reused, that is, the signaling data fills the storage space and then starts from the beginning, overwrites the original signaling data, and stores new signaling data, thereby saving storage space.
  • a system for locating a crash of the mobile terminal 10 includes a mobile terminal 10 and a positioning device 20, where
  • the mobile terminal 10 is configured to store signaling data to a preset storage space
  • the positioning device 20 is configured to read signaling data in the storage space after the mobile terminal 10 freezes or shuts down; and analyze the signaling data to locate a crash problem.
  • a storage space such as a flash space, for storing signaling data for analysis and analysis can be opened in the mobile terminal 10 such as a mobile phone, or a storage space can be externally stored for storing signaling data. It must be a storage space that can still be read by the positioning device 20 (such as a PC with analysis software installed) after the mobile terminal 10 crashes.
  • the positioning device 20 such as a PC with analysis software installed
  • the mobile terminal 10 When the mobile terminal 10 is in the power-on state, the mobile terminal 10 establishes a connection with other terminals or devices, and has signaling data interaction.
  • the storage module 10 transmits the signaling data. Stored in the storage space that has been set.
  • the finite 2M Flash space is equally divided into two blocks, each of which is 1M in size.
  • MsgTraceFlashAreaFlag to which block to write.
  • MsgTraceFlashAreaFlag is equal to 0 in the initial state
  • MsgTraceFlashAreaFlag is equal to 1 when block 1 is written
  • MsgTraceFlashAreaFlag is equal to 2 when block 2 is written.
  • Remain indicating the size of the remaining flash space. If the signaling data to be stored is greater than 1M, it will discard the processing, read the value of MsgTraceFlashAreaFlag, and judge the space to be written according to the value read.
  • the MsgTraceFlashAreaFlag value is 0, it indicates that the mobile terminal 10 is in the initial state of booting, and the signaling data is written to the block 1. If the MsgTraceFlashAreaFlag value is 1, it indicates that the signaling data is written to block 1. If the MsgTraceFlashAreaFlag value is 2, it means that the signaling data is written to block 2. Reading the value of the Remain, and comparing the read value with the length of the signaling data to determine whether the remaining Flash space is sufficient to store the current signaling data. If the signaling data length is less than the Remain value, the signaling data is directly Write the current block.
  • the signaling data length is equal to the value of Remain, write the signaling data directly to the current block, then set MsgTraceFlashAreaFlag to the flag of another memory block, and set the address pointer to the starting address of another memory block. . If the signaling data length is greater than the value of Remain, write the signaling data to another memory block and then set MsgTraceFlashAreaFlag to the flag of the other memory block. At this point, the signaling data is successfully saved to the Flash space.
  • the positioning device 20 such as the PC extracts the signaling data in the storage space where the signaling data is stored, and analyzes the extracted signaling data to locate the mobile phone crash problem.
  • the information obtained by the PC parsing the signaling data is as follows, so that the signaling scene before the mobile terminal 10 crashes can be recovered.
  • the mobile terminal 10 of this embodiment may be any other read and write storage.
  • the mobile terminal 10 includes:
  • the extraction module 11 is configured to extract signaling data of a preset type in the mobile terminal 10; and the writing module 12 is configured to write the signaling data into the storage space.
  • the above-mentioned preset type of signaling data includes data pointed to by the pointer signaling in the mobile terminal 10.
  • the mobile terminal 10 When transmitting and receiving signaling data, the mobile terminal 10 first determines which types of signaling data are stored. Since the capacity of the storage space is limited, it is generally not recommended to store all signaling data, but the extraction module 11 extracts one or more types.
  • the signaling data useful for reproducing the signaling scene is written to the write module 12 to the storage space. In particular, for the pointer content in the signaling data, the data pointed to by the pointer content needs to be stored together in the storage space.
  • the positioning device 20 is configured to parse the signaling data.
  • the positioning device 20 converts the data of the storage space from binary to signaling of the mobile terminal 10 when reading the signaling data of the storage space. At the same time as the data, it is also necessary to restore the data pointed to by the original pointer content.
  • the apparatus for locating the mobile terminal 10 may be included in the mobile terminal 10, including the horn 4 and the write module 12 in the foregoing embodiment.
  • the module 13 is configured to delete the previously stored signaling data when the storage space capacity is insufficient.
  • the storage space should be reused, that is, after the signaling data is filled with the storage space and then from the beginning, the deleting module 13 overwrites the original signaling data, so that the writing module 12 stores the new signaling data. , save storage space.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种定位移动终端死机问题的方法,包括:存储信令数据到预设的存储空间;移动终端死机或关机后,预设的定位装置读取所述存储空间内的信令数据;所述定位装置分析所述信令数据以定位死机问题。本发明还提出了对应的系统。相应的,本发明还公开了一种定位移动终端死机问题的系统,在移动终端死机前将信令数据保存至预设的存储空间,当移动终端出现死机时,可读取该存储空间的信令数据,复现死机问题,解决了死机问题无法定位的问题。

Description

定位移动终端死机问题的方法及系统 技术领域 本发明涉及到通信领域, 特别涉及到一种定位移动终端死机问题的方 法及系统。 背景技术
当前手机等移动终端在人们的日常生活中发挥着越来越重要的作用, 已经日渐成为我们日常生活中不可或缺的工具。 定位并解决移动终端中存 在的问题是一个与移动终端共存的现象。 正常的解决问题过程是事先知道 问题的存在, 然后复现该问题, 再在复现的过程中找寻问题的原因并解决。 这样的问题定位一般都存在于研发测试阶段。 当产品走向市场之后出现的 问题往往是研发测试阶段没有发现, 并且很难复现的问题, 比如异常死机。 走向市场的产品如果出现了很难复现的死机问题应该如何定位是目前暂时 还没有解决的问题。 发明内容
本发明的主要目的为提供一种定位移动终端死机问题的方法及系统, 解决了产品死机问题很难复现的问题。
本发明提出一种定位移动终端死机问题的方法, 所述方法包括: 存储信令数据到预设的存储空间;
移动终端死机或关机后, 预设的定位装置读取所述存储空间内的信令 数据;
所述定位装置分析所述信令数据以定位死机问题。
优选地, 在执行所述存储信令数据到预设的存储空间之前, 所述方法 还包括:
当所述存储空间容量不足时, 删除之前存储的信令数据。
优选地, 所述存储信令数据到预设的存储空间包括: 提取移动终端内 预设类型的信令数据; 将所述信令数据写入所述存储空间。
优选地, 所述预设类型的信令数据包括: 移动终端内指针信令所指向 的数据。
优选地, 所述定位装置分析所述信令数据以定位死机问题包括: 对所 述信令数据进行解析。
本发明还提出一种定位移动终端死机问题的系统, 包括移动终端和定 位装置, 其中,
所述移动终端, 用于存储信令数据到预设的存储空间;
所述定位装置, 用于移动终端死机或关机后, 读取所述存储空间内的 信令数据; 以及分析所述信令数据以定位死机问题。
优选地, 所述移动终端包括: 删除模块, 用于当所述存储空间容量不 足时, 删除之前存储的信令数据。
优选地, 所述移动终端还包括: 提取模块, 用于提取移动终端内预设 类型的信令数据; 写入模块, 用于将所述信令数据写入所述存储空间。
优选地, 所述预设类型的信令数据包括: 移动终端内指针信令所指向 的数据。
优选地, 所述定位装置用于: 对所述信令数据进行解析。
本发明提出的一种定位移动终端死机问题的方法及系统, 在移动终端 列机前将信令数据保存到预设的存储空间, 当移动终端出现死机时, 可读 取该存储空间的信令数据, 复现死机问题, 解决了定位死机问题无法定位 的问题。 附图说明
图 1 为本发明定位移动终端死机问题的方法一实施例的流程示意图; 图 2为本发明定位移动终端死机问题的方法一实施例中存储步驟的流 程示意图;
图 3 为本发明定位移动终端死机问题的方法又一实施例的流程示意 图;
图 4 为本发明定位移动终端死机问题的系统一实施例的结构示意图; 图 5 为本发明定位移动终端死机问题的系统一实施例中移动终端的结 构示意图;
图 6为本发明定位移动终端死机问题的系统一实施例中移动终端的另 一结构示意图。
本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一 步说明。 具体实施方式
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。
参照图 1 , 本发明实施例定位移动终端死机问题的方法, 包括: 步驟 10、 存储信令数据到预设的存储空间;
本实施例中, 可在手机等移动终端中开辟一段能保存可供分析使用的 信令数据的存储空间如 flash空间, 也可以外置一存储空间, 用于保存信令 数据, 该存储空间必须是在移动终端出现死机后仍然可以被定位装置读取 的存储空间。 当移动终端处于开机状态时, 移动终端与其它终端或设备之 间会建立连接, 并有信令数据的交互, 当移动终端接收到信令数据时, 将 该信令数据存放于已设置的存储空间。
以 2M的 Flash为例写存储空间的具体实施方式如下: 将有限的 2M Flash空间等分为两块, 每块大小为 1M。 设定往哪个块 写的全局变量 MsgTraceFlashAreaFlag , 初始状态下 MsgTraceFlashAreaFlag 等于 0 , 写块 1 时 MsgTraceFlashAreaFlag 等于 1 , 写块 2 时 MsgTraceFlashAreaFlag 等于 2。 设定表示剩余 flash 空间大小的全局变量 Remain , 如果所要存储的信令数据大于 1M , 将做丟弃处理, 读取 MsgTraceFlashAreaFlag 的值, 根据所读到的值来判断往哪一块空间写。 如 果 MsgTraceFlashAreaFlag值为 0, 表示是移动终端开机的初始状态, 将信 令数据往块 1上写。 如果 MsgTraceFlashAreaFlag值为 1 , 表示是将信令数 据往块 1上写。 如果 MsgTraceFlashAreaFlag值为 2, 表示是将信令数据往 块 2上写。 读取 Remain的值, 根据所读到的值与信令数据的长度对比以判 断剩余的 Flash空间是否足够存下当前的信令数据,如果信令数据长度小于 Remain的值, 直接将信令数据写入当前块, 如果信令数据长度等于 Remain 的值, 直接将信令数据写入当前块, 然后将 MsgTraceFlashAreaFlag置为另 一存储块的标志, 将地址指针置为另一存储块的起始地址。 如果信令数据 长度大于 Remain 的值, 将信令数据写入另一存储块, 然后将 MsgTraceFlashAreaFlag置为另一存储块的标志。 至此, 信令数据就成功存 到 Flash空间。
步驟 11、 移动终端死机或关机后, 预设的定位装置读取所述存储空间 内的信令数据;
如移动终端出现死机或正常关机后, PC等定位装置通过在存放信令数 据的存储空间中取出信令数据。
步驟 12、 所述定位装置分析所述信令数据以定位死机问题。
定位装置对取出的信令数据进行分析以定位手机死机问题。 PC对信令 数据进行解析得到的信息如下所示, 如此就可以恢复移动终端死机前的信 令现场。
Figure imgf000007_0001
本实施例的定位移动终端死机问题的方法不仅适用于移动终端, 实际 上, 只要是具有读写存储空间功能的设备的死机问题定位都适用于本实施 例的方法。
参照图 2, 在一实施例中, 步驟 10可进一步包括:
步驟 101、 提取移动终端内预设类型的信令数据;
步驟 102、 将所述信令数据写入所述存储空间。
上述预设类型的信令数据包括移动终端内指针信令所指向的数据。 移动终端在收发信令数据时, 首先决定存储哪些类型的信令数据, 由 于存储空间的容量有限, 通常不建议存放所有的信令数据, 而是预设某一 种或多种对复现信令现场有用的信令数据进行存储。 特别是对于信令数据 中的指针内容, 需要将所述指针内容所指向的数据存放也一起保存于存储 空间中。
在上述实施例中, 步驟 12进一步包括: 对所述信令数据进行解析。 由于存储空间中保存的信令数据可能包括指针内容所指向的数据存 放, 因此在读取存储空间的信令数据时, 在将存储空间的数据从二进制转 化为移动终端的信令数据的同时, 还需要将原指针内容所指向的数据也进 行还原。 参照图 3 , 提出本发明定位移动终端死机问题的方法又一实施例, 在 上述实施例中, 在步驟 10之前, 还包括:
步驟 9、 当所述存储空间容量不足时, 删除之前存储的信令数据。 由于存储空间的容量有限, 应对所述存储空间进行重复利用, 即信令 数据存满存储空间后再从头开始, 覆盖原有信令数据, 存放新的信令数据, 以便节约存储空间。
参照图 4, 本发明实施例定位移动终端 10死机问题的系统, 包括移动 终端 10和定位装置 20, 其中,
所述移动终端 10, 用于存储信令数据到预设的存储空间;
所述定位装置 20, 用于移动终端 10死机或关机后, 读取所述存储空 间内的信令数据; 以及分析所述信令数据以定位死机问题。
本实施例中,可在手机等移动终端 10中开辟一段能保存可供分析使用 的信令数据的存储空间如 flash空间, 也可以外置一存储空间, 用于保存信 令数据, 该存储空间必须是在移动终端 10出现死机后仍然可以被定位装置 20 (如安装有分析软件的 PC )读取的存储空间。 当移动终端 10处于开机 状态时, 移动终端 10与其它终端或设备之间会建立连接, 并有信令数据的 交互, 当移动终端 10接收到信令数据时, 存储模块 10将该信令数据存放 于已设置的存储空间。
以 2M的 Flash为例写存储空间的具体实施方式如下:
将有限的 2M Flash空间等分为两块, 每块大小为 1M。 设定往哪个块 写的全局变量 MsgTraceFlashAreaFlag , 初始 ^夫态下 MsgTraceFlashAreaFlag 等于 0 , 写块 1 时 MsgTraceFlashAreaFlag 等于 1 , 写块 2 时 MsgTraceFlashAreaFlag 等于 2。 设定表示剩余 flash 空间大小的全局变量 Remain , 如果所要存储的信令数据大于 1M , 将做丟弃处理, 读取 MsgTraceFlashAreaFlag 的值, 根据所读到的值来判断往那一块空间写。 如 果 MsgTraceFlashAreaFlag值为 0, 表示是移动终端 10开机的初始状态, 将 信令数据往块 1上写。 如果 MsgTraceFlashAreaFlag值为 1 , 表示是将信令 数据往块 1上写。 如果 MsgTraceFlashAreaFlag值为 2, 表示是将信令数据 往块 2上写。 读取 Remain的值, 根据所读到的值与信令数据的长度对比以 判断剩余的 Flash空间是否足够存下当前的信令数据,如果信令数据长度小 于 Remain 的值, 直接将信令数据写入当前块, 如果信令数据长度等于 Remain的值, 直接将信令数据写入当前块, 然后将 MsgTraceFlashAreaFlag 置为另一存储块的标志, 将地址指针置为另一存储块的起始地址。 如果信 令数据长度大于 Remain 的值, 将信令数据写入另一存储块, 然后将 MsgTraceFlashAreaFlag 置为另一存储块的标志。 至此, 信令数据就成功存 到 Flash空间。
如移动终端 10出现死机或正常关机后, PC等定位装置 20通过在存放 信令数据的存储空间中取出信令数据, 并对取出的信令数据进行分析以定 位手机死机问题。 PC对信令数据进行解析得到的信息如下所示, 如此就可 以恢复移动终端 10死机前的信令现场。
需要注意的是,本实施例的移动终端 10可以是其它任何具有读写存储 参照图 5 , 在一实施例中, 移动终端 10包括:
提取模块 11 , 用于提取移动终端 10内预设类型的信令数据; 写入模块 12, 用于将所述信令数据写入所述存储空间。
上述预设类型的信令数据包括移动终端 10内指针信令所指向的数据。 移动终端 10在收发信令数据时, 首先决定存储哪些类型的信令数据, 由于存储空间的容量有限, 通常不建议存放所有的信令数据, 而是由提取 模块 11 提取某一种或多种对复现信令现场有用的信令数据给写入模块 12 写入存储空间。 特别是对于信令数据中的指针内容, 需要将所述指针内容 所指向的数据也一起存放于存储空间中。
在上述实施例中, 定位装置 20用于对所述信令数据进行解析。
由于存储空间中保存的信令数据可能包括指针内容所指向的数据存 放, 因此定位装置 20在读取存储空间的信令数据时, 在将存储空间的数据 从二进制转化为移动终端 10的信令数据的同时, 还需要将原指针内容所指 向的数据也进行还原。
参照图 6,本发明另一个实施例中的定位移动终端 10死机问题的装置, 其移动终端 10除包含上述实施例中的提耳 4莫块 11和写入模块 12外, 还可 以包括: 删除模块 13 , 用于当所述存储空间容量不足时, 删除之前存储的 信令数据。
由于存储空间的容量有限, 应对所述存储空间进行重复利用, 即信令 数据存满存储空间后再从头开始, 删除模块 13覆盖原有信令数据, 以便写 入模块 12存放新的信令数据, 节约存储空间。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围 , 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。

Claims

权利要求书
1、 一种定位移动终端死机问题的方法, 其特征在于, 所述方法包括: 存储信令数据到预设的存储空间;
移动终端死机或关机后, 预设的定位装置读取所述存储空间内的信令 数据;
所述定位装置分析所述信令数据以定位死机问题。
2、 如权利要求 1所述的方法, 其特征在于, 在执行所述存储信令数据 到预设的存储空间之前, 所述方法还包括: 当所述存储空间容量不足时, 删除之前存储的信令数据。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述存储信令数据到 预设的存储空间, 包括: 提取移动终端内预设类型的信令数据; 将所述信 令数据写入所述存储空间。
4、 如权利要求 3所述的方法, 其特征在于, 所述预设类型的信令数据 包括: 移动终端内指针信令所指向的数据。
5、 如权利要求 1或 2所述的方法, 其特征在于, 所述定位装置分析所 述信令数据以定位死机问题包括: 对所述信令数据进行解析。
6、 一种定位移动终端死机问题的系统, 其特征在于, 所述系统包括移 动终端和定位装置, 其中,
所述移动终端, 用于存储信令数据到预设的存储空间;
所述定位装置, 用于移动终端死机或关机后, 读取所述存储空间内的 信令数据; 以及分析所述信令数据以定位死机问题。
7、 如权利要求 6所述的系统, 其特征在于, 所述移动终端包括: 删除 模块, 用于当所述存储空间容量不足时, 删除之前存储的信令数据。
8、如权利要求 6或 7所述的系统, 其特征在于, 所述移动终端还包括: 提取模块, 用于提取移动终端内预设类型的信令数据; 写入模块, 用于将所述信令数据写入所述存储空间。
9、 如权利要求 8所述的系统, 其特征在于, 所述预设类型的信令数据 包括: 移动终端内指针信令所指向的数据。
10、 如权利要求 6或 7所述的系统, 其特征在于, 所述定位装置用于
PCT/CN2012/074619 2011-06-21 2012-04-24 定位移动终端死机问题的方法及系统 WO2012174942A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110167927.0 2011-06-21
CN2011101679270A CN102223445A (zh) 2011-06-21 2011-06-21 定位移动终端死机问题的方法及系统

Publications (1)

Publication Number Publication Date
WO2012174942A1 true WO2012174942A1 (zh) 2012-12-27

Family

ID=44779866

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/074619 WO2012174942A1 (zh) 2011-06-21 2012-04-24 定位移动终端死机问题的方法及系统

Country Status (2)

Country Link
CN (1) CN102223445A (zh)
WO (1) WO2012174942A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244338A (zh) * 2018-03-08 2019-09-17 上海博泰悦臻网络技术服务有限公司 一种定位数据的传递方法及系统、存储介质及车载终端

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223445A (zh) * 2011-06-21 2011-10-19 中兴通讯股份有限公司 定位移动终端死机问题的方法及系统
CN102413247B (zh) * 2011-11-30 2016-09-14 南京中兴软件有限责任公司 终端死机现场的恢复方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321305A (zh) * 2008-07-16 2008-12-10 中兴通讯股份有限公司 一种使用实时时钟定位手机开/关机故障的方法
CN101645033A (zh) * 2009-05-15 2010-02-10 上海闻泰电子科技有限公司 一种手机软件异常时的调试方法
CN102043704A (zh) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 生成日志信息的方法及系统
CN102056202A (zh) * 2009-10-29 2011-05-11 中兴通讯股份有限公司 移动终端错误处理方法及系统
CN102223445A (zh) * 2011-06-21 2011-10-19 中兴通讯股份有限公司 定位移动终端死机问题的方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094050A (zh) * 2007-07-24 2007-12-26 中兴通讯股份有限公司 捕获导致系统复位或死机的任务信息的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321305A (zh) * 2008-07-16 2008-12-10 中兴通讯股份有限公司 一种使用实时时钟定位手机开/关机故障的方法
CN101645033A (zh) * 2009-05-15 2010-02-10 上海闻泰电子科技有限公司 一种手机软件异常时的调试方法
CN102043704A (zh) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 生成日志信息的方法及系统
CN102056202A (zh) * 2009-10-29 2011-05-11 中兴通讯股份有限公司 移动终端错误处理方法及系统
CN102223445A (zh) * 2011-06-21 2011-10-19 中兴通讯股份有限公司 定位移动终端死机问题的方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244338A (zh) * 2018-03-08 2019-09-17 上海博泰悦臻网络技术服务有限公司 一种定位数据的传递方法及系统、存储介质及车载终端

Also Published As

Publication number Publication date
CN102223445A (zh) 2011-10-19

Similar Documents

Publication Publication Date Title
US10210064B2 (en) Systems and methods for device compatibility testing and reporting
CN105487966B (zh) 程序测试方法、装置及系统
US10713437B2 (en) Method and apparatus for identifying questionable line break characters in an application
CN109359091B (zh) 文件管理方法、装置、终端及计算机可读存储介质
WO2014117556A1 (zh) 冗余文件删除方法及装置和存储介质
EP2613259A1 (en) Method and computation node for processing application data
WO2016202000A1 (zh) 差分回退升级方法及装置
WO2017166760A1 (zh) 回看图像文件的方法、装置、移动终端和电子设备
WO2017071579A1 (zh) Android系统漏洞挖掘的方法及装置
CN111325901A (zh) 识别手机方法及装置
CN103942126A (zh) 电子设备及其数据备份方法
WO2012174942A1 (zh) 定位移动终端死机问题的方法及系统
CN111294459A (zh) 检测安卓手机隐私的方法及设备
RU2011141521A (ru) Применение текстового сообщения пользователем первого мобильного телефона для активации процесса, который предоставляет информацию пользователю второго мобильного телефона
WO2015117356A1 (zh) 一种开机方法及通信终端
CN112416775A (zh) 基于人工智能的软件自动化测试方法、装置及电子设备
CN102298546B (zh) 从磁盘上恢复被删除的jpg文件的方法及系统
KR20150019813A (ko) 컨텐츠 무결성 제어 방법 및 그 전자 장치
CN111277659A (zh) 手机横屏竖屏显示状态检测方法及装置
CN111314445A (zh) 手机控制回收机开门方法及装置
Yusoff et al. Mobile forensic data acquisition in Firefox OS
US20140072223A1 (en) Embedding Media Content Within Image Files And Presenting Embedded Media In Conjunction With An Associated Image
EP3073360B1 (en) Multi-media data backup method, user terminal and synchronizer
CN107783904B (zh) 单元测试桩去重方法、装置、计算机可读存储介质及设备
WO2016058188A1 (zh) 一种应用于终端的软件升级方法、装置及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12803400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12803400

Country of ref document: EP

Kind code of ref document: A1