WO2018000745A1 - 一种终端数据的处理方法、装置及终端 - Google Patents

一种终端数据的处理方法、装置及终端 Download PDF

Info

Publication number
WO2018000745A1
WO2018000745A1 PCT/CN2016/109591 CN2016109591W WO2018000745A1 WO 2018000745 A1 WO2018000745 A1 WO 2018000745A1 CN 2016109591 W CN2016109591 W CN 2016109591W WO 2018000745 A1 WO2018000745 A1 WO 2018000745A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
acceleration
data
gravitational acceleration
gravity acceleration
Prior art date
Application number
PCT/CN2016/109591
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 WO2018000745A1 publication Critical patent/WO2018000745A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V7/00Measuring gravitational fields or waves; Gravimetric prospecting or detecting

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for processing terminal data.
  • the screen of the terminal is usually large, and the thickness of the screen is also getting thinner.
  • a terminal with a large screen may cause a terminal drop due to improper operation due to improper operation during use, which may cause terminal failure.
  • the embodiment of the present invention provides a method, a device, and a terminal for processing terminal data, which are used to solve the problem that the fault of the terminal is not caused by the drop of the terminal from the appearance of the prior art, and therefore, is easy to cause Inaccurate problem in the determination of the cause of the failure.
  • an embodiment of the present invention provides a method for processing terminal data, where the method includes:
  • the terminal detects its own gravity acceleration
  • the terminal compares the gravity acceleration with an acceleration threshold, if the gravity acceleration is large At or equal to the acceleration threshold, the terminal obtains and stores gravity acceleration data, and the gravity acceleration data is used to indicate that the terminal has been dropped.
  • gravity acceleration data includes:
  • the terminal detects its own gravitational acceleration, including at least one of the following data:
  • a sensor within the terminal detects a gravitational acceleration of the terminal.
  • the foregoing aspect and any possible implementation manner further provide an implementation manner, where the terminal stores gravitational acceleration data, including:
  • the terminal stores the obtained gravitational acceleration data in a read only memory.
  • the data processing method of the terminal detects the gravity acceleration of the terminal by the terminal, and compares the detected gravity acceleration with the acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, the terminal will obtain and store the terminal.
  • the problem realizes that the terminal has been dropped by the data stored in the terminal, and the accuracy of the failure cause determination is improved.
  • an embodiment of the present invention provides a device for processing terminal data, including:
  • a detection module for detecting its own gravity acceleration
  • a processing module configured to compare the gravity acceleration with an acceleration threshold, and if the gravity acceleration is greater than or equal to the acceleration threshold, obtain and store gravity acceleration data, where the gravity acceleration data is used to indicate that a drop has occurred.
  • the gravitational acceleration data comprising at least one of the following data:
  • the value of the gravitational acceleration, the time information when the gravitational acceleration occurs, and the geographical location information when the gravitational acceleration occurs is the value of the gravitational acceleration, the time information when the gravitational acceleration occurs, and the geographical location information when the gravitational acceleration occurs.
  • detecting module is specifically configured to:
  • An acceleration sensor is used to detect the gravitational acceleration of the terminal.
  • processing module is specifically configured to:
  • the obtained gravitational acceleration data is stored in a read only memory.
  • the data processing device of the terminal detects the gravity acceleration of the terminal by the detecting module, and compares the detected gravity acceleration with the acceleration threshold by the processing module. If the gravity acceleration is greater than or equal to the acceleration threshold, the data is obtained. And storing data related to gravity acceleration, and using the data to indicate that a drop has occurred. Therefore, the terminal detects the gravity acceleration of the terminal and stores the obtained data, which overcomes the appearance of the terminal from the prior art and cannot determine whether the fault sent by the terminal is caused by a drop, which is easy to cause the inaccuracy of the fault cause determination. The problem, in turn, realizes that the terminal has been dropped by the data stored in the terminal, and the accuracy of the failure cause determination is improved.
  • the present invention further provides a terminal, which includes the data processing apparatus of any terminal provided in the embodiment of the present invention.
  • the present invention provides an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory is stored for execution by the one processor An instruction executed by the at least one processor to enable the at least one processor to perform the method of any of the above.
  • the present invention provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any of the above Methods.
  • the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are When executed, the computer is caused to perform the method of any of the above.
  • FIG. 1 is a schematic flowchart of a method for processing terminal data according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a device for processing terminal data according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing the hardware structure of an electronic device for processing a terminal data according to an embodiment of the present invention.
  • the word “if” as used herein may be interpreted as “when” or “when” or “in response to determining” or “in response to detecting.”
  • the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
  • FIG. 1 is a schematic flowchart of a method for processing terminal data according to an embodiment of the present invention. As shown in FIG. 1 , the method for processing terminal data in this embodiment may include the following steps:
  • the terminal detects its own gravity acceleration.
  • the components in the terminal will have a certain loss, and damage will occur under certain conditions. For example, when the battery is repeatedly charged and discharged for a certain number of times, the capacity of the battery will decrease. .
  • the memory of the terminal repeatedly adds or deletes files. When accumulated for a certain number of times, the read-only memory may be fragmented, resulting in loss of memory capacity.
  • the terminal is dropped and the terminal is faulty, and the terminal There is no damage to the appearance, and it will not be judged by the appearance of the terminal that the terminal has been dropped. For example, the terminal does not have a damaged appearance after falling, but a short circuit occurs inside the battery in the terminal, so that the terminal cannot be turned on. There will be a certain economic loss to the terminal provider because it is impossible to make an accurate judgment of the cause of the failure.
  • an embodiment of the present invention provides a method for solving the above problem.
  • the hand when the user uses the terminal, the hand is naturally held for most of the time.
  • the terminal When the user drops the terminal, the terminal will generate gravity acceleration due to its own gravity, and the terminal in the normal use process does not. Gravity acceleration occurs, and gravity acceleration is generated only in a specific scene. Therefore, after the terminal generates gravity acceleration, the terminal can detect its own gravity acceleration.
  • the gravity acceleration of the terminal can be detected by a sensor in the terminal.
  • other sensors may be used to detect the data used to calculate the gravitational acceleration, and then the data is used to calculate the gravitational acceleration.
  • the terminal compares the gravity acceleration with the acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, the terminal obtains and stores the current terminal state data, where the terminal state data is used to indicate that the terminal has dropped.
  • an acceleration threshold is preset in the terminal.
  • the acceleration threshold can be summarized according to a large amount of experimental data, and used to compare the gravity acceleration detected by the terminal, and then, after the terminal fails, it can determine whether the terminal has fallen according to the gravity acceleration data.
  • the process of determining whether the terminal has a fault includes: comparing the gravity acceleration detected by the terminal with the acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, the terminal determines that the user has dropped, and then the terminal obtains the gravity acceleration data. The current terminal status data is stored. In this way, the terminal status data stored in the terminal can be read later to determine that the terminal has been dropped, and it is further determined that the drop causes the terminal to be faulty. Therefore, it can be determined that the terminal occurs
  • the barrier is caused by human factors and can accurately identify the cause of the terminal failure.
  • the gravity acceleration data may include at least one of the following data: a value of the gravity acceleration, time information when the gravity acceleration is generated, and geographic location information when the terminal generates the gravity acceleration.
  • the terminal stores the obtained gravity acceleration data in the memory.
  • the read-only memory is not easily damaged, and the data in the read-only memory can be read. Knowing the gravity acceleration data improves the safety and reliability of gravity acceleration data storage.
  • terminals involved in the embodiments of the present invention may include, but are not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a tablet computer.
  • PC personal computer
  • PDA personal digital assistant
  • Mobile phones MP3 players, MP4 players, etc.
  • step 101 and step 102 may be a processing device of terminal data, and the device may be located in an application of a local terminal, or may be a plug-in or a software development kit (Application Development) located in an application of the local terminal.
  • Functional units such as Kit, SDK, and the like are not specifically limited in the embodiment of the present invention.
  • the application may be an application (nativeApp) installed on the terminal, or may be a web application (webApp) of the browser on the terminal, which is not limited by the embodiment of the present invention.
  • the data processing method of the terminal detects the gravity acceleration of the terminal by the terminal, and compares the detected gravity acceleration with the acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, the terminal will obtain and store the terminal.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • 2 is a schematic structural diagram of a device for processing terminal data according to an embodiment of the present invention. As shown in FIG. 2, the device for processing terminal data in this embodiment may specifically include: a detecting module 11 and a processing module 12.
  • the detecting module 11 is configured to detect a gravity acceleration of the terminal
  • the processing module 12 is configured to compare the gravity acceleration detected by the detecting module 11 with the acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, the current terminal state data is obtained and stored, and the terminal state data is used to indicate that a drop has occurred.
  • the terminal status data includes at least one of the following data: a value of the gravity acceleration, time information when the gravity acceleration is generated, and geographic location information when the gravity acceleration is generated.
  • the detecting module 11 is specifically configured to:
  • a sensor is used to detect the gravitational acceleration of the terminal.
  • the processing module 12 is specifically configured to:
  • the obtained gravitational acceleration data is stored in a read only memory.
  • the data processing apparatus of the terminal detects the gravity acceleration of the terminal by the detecting module 11, and compares the detected gravity acceleration with the acceleration threshold by the processing module 12, and if the gravity acceleration is greater than or equal to the acceleration threshold, The current terminal status data associated with the gravitational acceleration is obtained and stored, and the data is used to indicate that a drop has occurred. Therefore, the terminal detects the gravity acceleration of the terminal and stores the obtained data, thereby overcoming the appearance of the terminal from the prior art and determining whether the fault sent by the terminal is caused by a drop, which is easy to cause the cause of the fault. The inaccurate problem, in turn, realizes that the terminal has been dropped by the data stored in the terminal, and the accuracy of the failure cause determination is improved.
  • FIG. 3 a schematic structural diagram of a terminal, including a memory 30, and one or more processors 31, and a sensor 32 are provided.
  • the sensor 32 is configured to detect a gravity acceleration of the terminal
  • the terminal further includes: one or more units, the one or more units being stored in the memory and configured to be executed by the one or more processors 31 to include the one or more units
  • the memory 30 is configured to store current terminal status data, where the terminal status data is used to indicate that the terminal has been dropped.
  • the terminal status data includes at least one of the following data: a value of the gravity acceleration, time information when the gravity acceleration is generated, and geographic location information when the terminal generates the gravity acceleration.
  • the embodiment of the present application further provides a computer program product for use in conjunction with a terminal, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer program mechanism comprising instructions for performing the following steps :
  • the gravity acceleration is compared with an acceleration threshold. If the gravity acceleration is greater than or equal to the acceleration threshold, current terminal state data is obtained and stored, and the terminal state data is used to indicate that a drop has occurred.
  • the terminal status data includes at least one of the following data: the gravity acceleration The value of the time, the time information when the gravity acceleration is generated, and the geographical location information when the terminal generates the gravity acceleration.
  • FIG. 4 is a schematic diagram showing the hardware structure of an electronic device according to a method for processing terminal data according to an embodiment of the present invention.
  • the electronic device includes one or more processors 910 and a memory 920. Take a processor 910 as an example.
  • the electronic device can also include an input device 930 and an output device 940.
  • the processor 910, the memory 920, the input device 930, and the output device 940 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 920 is a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules.
  • the processor 910 executes various functional applications and data processing of the electronic device by running non-transitory software programs, instructions, and modules stored in the memory 920, that is, the processing method of the above method embodiments.
  • the memory 920 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data or the like.
  • memory 920 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • memory 920 can optionally include memory remotely located relative to processor 910, which can be connected to the processing device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 930 can receive input digital or character information and generate a signal input.
  • Output device 940 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 920, and when executed by the one or more processors 910, perform the method of any of the above embodiments.
  • the above product can perform the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the above product can perform the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • Embodiments of the present invention provide a non-transitory computer storage medium, where the computer storage medium is stored There are stored computer executable instructions that can perform the methods of any of the above embodiments.
  • Embodiments of the present invention provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is enabled to perform the method of any of the above embodiments.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the aforementioned storage The medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Telephone Function (AREA)

Abstract

一种终端数据的处理方法及装置,涉及通信技术领域。终端数据的处理方法,包括:终端检测自身的重力加速度(101);终端将重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,终端获得并存储当前的终端状态数据,终端状态数据用于表示终端发生过跌落(102)。克服了现有技术中从终端的外观上并不能确定终端发送的故障是否是由于跌落造成的,容易造成故障原因判定失误的问题,进而实现了通过终端内存储的数据就可以表示终端发生过跌落,提高了故障原因判定准确率。

Description

一种终端数据的处理方法、装置及终端
本申请基于申请号为CN 2016104910946、申请日为2016年6月28日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
【技术领域】
本发明涉及通信技术领域,尤其涉及一种终端数据的处理方法、装置及终端。
【背景技术】
随着社会的不断发展和进步,终端的使用越来越普及,例如,手机、平板电脑等,在生活中占有的地位也越来越重要。随着终端的使用越来越广泛,而终端的售后问题也受到更多关注。
近年来,为增强用户的视觉效果,终端的屏幕通常较大,且屏幕的厚度也越来越薄。具有较大屏幕的终端,在使用过程中因为操作不当,会由于握持不牢等原因发生终端的跌落现象,可能造成终端故障。
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:
现有技术中,若终端因曾经发生过跌落而出现故障,但是从终端的外观上并不能确定终端发生的故障是否由于跌落造成的,因此,容易造成故障原因判定的不准确。
【发明内容】
有鉴于此,本发明实施例提供了一种终端数据的处理方法、装置及终端,用以解决现有技术从终端的外观上并不能确定终端发生的故障是否由于跌落造成的,因此,容易造成故障原因判定的不准确问题。
一方面,本发明实施例提供了一种终端数据的处理方法,所述方法包括:
终端检测自身的重力加速度;
所述终端将所述重力加速度与加速度阈值进行比较,若所述重力加速度大 于或者等于所述加速度阈值,所述终端获得并存储重力加速度数据,所述重力加速度数据用于表示所述终端发生过跌落。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述重力加速度数据包括:
所述重力加速度的数值、发生所述重力加速度时的时间信息以及发生所述重力加速度时所述终端的地理位置信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述终端检测自身的重力加速度,包括一下数据中的至少一个:
所述终端内的传感器检测所述终端的重力加速度。如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述终端存储重力加速度数据,包括:
所述终端在只读存储器中存储获得的所述重力加速度数据。
本发明实施例所提供的终端的数据处理方法,通过终端检测自身的重力加速度,并将检测到的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,则终端将会获得并存储与重力加速度相关的当前的终端状态数据,并利用该数据表示终端发生过跌落。因此,通过终端检测自身的重力加速度并将获得的数据进行存储,克服了现有技术中从终端的外观上并不能确定终端发送的故障是否是由于跌落造成的,容易造成故障原因判定的不准确的问题,进而实现了通过终端内存储的数据就可以表示终端发生过跌落,提高了故障原因判定准确率。
另一方面,本发明实施例提供了一种终端数据的处理装置,包括:
检测模块,用于检测自身的重力加速度;
处理模块,用于将所述重力加速度与加速度阈值进行比较,若所述重力加速度大于或者等于所述加速度阈值,获得并存储重力加速度数据,所述重力加速度数据用于表示发生过跌落。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述重力加速度数据包括以下数据中的至少一个:
所述重力加速度的数值、发生所述重力加速度时的时间信息以及发生所述重力加速度时的地理位置信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述检测模块,具体用于:
使用加速度传感器检测所述终端的重力加速度。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述处理模块,具体用于:
在只读存储器中存储获得的所述重力加速度数据。
本发明实施例所提供的终端的数据处理装置,通过检测模块检测自身的重力加速度,并由处理模块将检测到的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,则会获得并存储与重力加速度相关的数据,并利用该数据表示发生过跌落。因此,通过终端检测自身的重力加速度并将获得的数据进行存储,克服了现有技术中从终端的外观上并不能确定终端发送的故障是否是由于跌落造成的,容易造成故障原因判定的不准确的问题,进而实现了通过终端内存储的数据就可以表示终端发生过跌落,提高了故障原因判定准确率。
再一方面,本发明还提供一种终端,该终端包含本发明实施例中所提供的任何一种终端的数据处理装置。
再一方面,本发明还提供一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述任一项所述的方法。
再一方面,本发明还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一项所述的方法。
再一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项所述的方法。
【附图说明】
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1为本发明实施例所提供的终端数据的处理方法的流程示意图;
图2为本发明实施例所提供的终端数据的处理装置的结构示意图;
图3为本发明实施例所提供的终端的结构图示意图;
图4是本发明实施例提供的执行终端数据的处理方法的电子设备的硬件结构示意图。
【具体实施方式】
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨 在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
实施例一
图1为本发明实施例所提供的终端数据的处理方法的流程示意图,如图1所示,本实施例的终端数据的处理方法,具体可以包括如下步骤:
101、终端检测自身的重力加速度。
具体的,终端在使用一段时间后,由于终端内的零部件均会有一定的损耗,在一定的条件下会产生损坏,例如,电池在反复充放电达到一定的次数时,电池的容量会降低。又例如,终端的内存反复增添或删除文件,在积累到一定的次数时,只读存储器会出现一定的碎片,造成内存容量的损失。
由于不同的用户使用习惯不同,随着使用终端时间的增长,除了自然损坏外,还具有一定的认为因素,例如,使用充电器为电池过度充电,导致电池的电芯发生短路而出现故障。又例如,在温度过高的地方使用终端,如在浴室中使用,导致终端受热过多而出现故障。在这些情况下,当用户将出现故障的终端进行维修时,售后服务部门将可以通过检测终端内的数据对故障的原因进行判断,进而可以确定终端的故障是由于自然损坏还是人为损坏。
但是,若终端在使用过程中,将终端跌落而使得终端出现故障,而终端的 外观并没有任何损坏,将无法通过终端的外观进行判断终端发生过跌落。例如终端在跌落后外观没有损坏,但是终端中的电池内部出现短路,使得终端无法开机。将会因为无法对故障原因进行准确的判断而给终端提供者造成一定能的经济的损失。
因此,本发明实施例提供一种方法用以解决上述问题。在本发明实施例中,用户在使用终端的时候,多数时间为手部自然持握,当用户将终端跌落时,终端将会因为自身的重力而产生重力加速度,在正常使用过程中的终端不会出现重力加速度,只有在特定的场景下才会产生重力加速度,所以终端产生重力加速度后,终端就可以检测到自身的重力加速度。
在本发明实施例中,可以通过终端内的传感器检测终端的重力加速度。或者,也可以采用其他的传感器进行检测用于计算重力加速度的数据,然后利用这些数据计算获得重力加速度。
102、终端将重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,终端获得并存储当前的终端状态数据,终端状态数据用于表示终端发生过跌落。
具体的,为了防止根据重力加速度进行故障判断而出现判断失误,在终端中预设一个加速度阈值。
在一个具体的实现过程中,加速度阈值可以根据大量实验数据总结得出,用于对终端检测的重力加速度进行比较,进而在终端出现故障后,可以根据重力加速度数据确定终端是否发生过跌落。
例如,确定终端是否发生故障的过程包括:将终端检测到的自身的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,则终端判断出自身发生跌落,然后终端获得重力加速度数据,并将当前的终端状态数据进行存储。这样,以后可以通过读取终端内存储的终端状态数据,确定终端发生过跌落,并进一步确定该跌落造成了终端故障。从而可以确定终端发生故 障是人为因素造成的,能够准确的识别出终端发生故障的原因。
在本发明实施例中,重力加速度数据可以包括以下数据中的至少一个:重力加速度的数值、产生重力加速度时的时间信息以及终端产生重力加速度时的地理位置信息。通过这几个数据,就可以准确的知道用户是在何时、何地使得终端发生了跌落,进一步地增强了故障判断的准确性。
为了便于对终端内的数据进行读取,终端在存储器中存储获得的重力加速度数据,因终端发生故障而无法开机时,只读存储器不容易出现损坏,通过读取只读存储器中的数据就可以知晓重力加速度数据,提高了重力加速度数据存储的安全性和可靠性。
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、手机、MP3播放器、MP4播放器等。
需要说明的是,步骤101和步骤102的执行主体可以为终端数据的处理装置,该装置可以位于本地终端的应用,或者还可以为位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本发明实施例对此不进行特别限定。
可以理解的是,应用可以是安装在终端上的应用程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本发明实施例对此不进行限定。
本发明实施例所提供的终端的数据处理方法,通过终端检测自身的重力加速度,并将检测到的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,则终端将会获得并存储与重力加速度相关的当前的终端状态数据,并利用该数据表示终端发生过跌落。因此,通过终端检测自身的重力加速度并将获得的数据进行存储,克服了现有技术中从终端的外观上并不能确定终端发送的故障是否是由于跌落造成的,容易造成故障原因判定的不准确的 问题,进而实现了通过终端内存储的数据就可以表示终端发生过跌落,提高了故障原因判定准确率。
实施例二
本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实施例。图2为本发明实施例所提供的终端数据的处理装置的结构示意图,如图2所示,本实施例的终端数据的处理装置,具体可以包括:检测模块11和处理模块12。
检测模块11,用于检测终端的重力加速度;
处理模块12,用于将检测模块11检测到的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,获得并存储当前的终端状态数据,终端状态数据用于表示发生过跌落。
其中,终端状态数据包括以下数据中的至少一个:重力加速度的数值、产生重力加速度时的时间信息以及产生重力加速度时的地理位置信息。
优选地,检测模块11,具体用于:
使用传感器检测终端的重力加速度。
优选地,处理模块12,具体用于:
在只读存储器中存储获得的重力加速度数据。
由于本实施例中的各单元能够执行图1所示的方法,本实施例未详细描述的部分,可参考对图1的相关说明。
本发明实施例所提供的终端的数据处理装置,通过检测模块11检测自身的重力加速度,并由处理模块12将检测到的重力加速度与加速度阈值进行比较,若重力加速度大于或者等于加速度阈值,则会获得并存储与重力加速度相关的当前的终端状态数据,并利用该数据表示发生过跌落。因此,通过终端检测自身的重力加速度并将获得的数据进行存储,克服了现有技术中从终端的外观上并不能确定终端发送的故障是否是由于跌落造成的,容易造成故障原因判定的 不准确的问题,进而实现了通过终端内存储的数据就可以表示终端发生过跌落,提高了故障原因判定准确率。
实施例三
如图3所示,为本发明实施例提供一种终端的结构图示意图,包括存储器30,以及一个或者多个处理器31,以及传感器32。
所述传感器32用于检测终端的重力加速度;
终端还包括:一个或多个单元,所述一个或多个单元被存储在所述存储器中并被配置成由所述一个或多个处理器31执行所述一个或多个单元包括用于执行以下步骤的指令:将所述重力加速度与加速度阈值进行比较,若所述重力加速度大于或者等于所述加速度阈值,所述终端获得当前的终端状态数据。
所述存储器30,用于存储当前的终端状态数据,所述终端状态数据用于表示所述终端发生过跌落。
进一步的,所述终端状态数据包括以下数据中至少一个:所述重力加速度的数值、产生所述重力加速度时的时间信息以及所述终端产生所述重力加速度时的地理位置信息。
实施例四
本申请实施例还提供一种与终端结合使用的计算机程序产品,所述计算机程序产品包括计算机可读的存储介质和内嵌于其中的计算机程序机制,所述计算机程序机制包括执行以下步骤的指令:
检测终端的重力加速度;
将所述重力加速度与加速度阈值进行比较,若所述重力加速度大于或者等于所述加速度阈值,获得并存储当前的终端状态数据,所述终端状态数据用于表示发生过跌落。
进一步的,所述终端状态数据包括以下数据中至少一个:所述重力加速度 的数值、产生所述重力加速度时的时间信息以及所述终端产生所述重力加速度时的地理位置信息。
图4是本发明实施例提供的终端数据的处理方法的电子设备的硬件结构示意图,如图所示,该电子设备包括一个或多个处理器910以及存储器920。以一个处理器910为例。该电子设备还可以包括:输入装置930和输出装置940。
处理器910、存储器920、输入装置930和输出装置940可以通过总线或者其他方式连接,图4中以通过总线连接为例。
存储器920作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块。处理器910通过运行存储在存储器920中的非暂态软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例的处理方法。
存储器920可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器920可选包括相对于处理器910远程设置的存储器,这些远程存储器可以通过网络连接至处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置930可接收输入的数字或字符信息,以及产生信号输入。输出装置940可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器920中,当被所述一个或者多个处理器910执行时,执行执行上述任一实施例的方法。
上述产品可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例提供的方法。
本发明实施例提供了一种非暂态计算机存储介质,所述计算机存储介质存 储有计算机可执行指令,该计算机可执行指令可执行上述任一实施例的方法。
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机可执行上述任一实施例的方法。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储 介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。

Claims (12)

  1. 一种终端数据的处理方法,其特征在于,所述方法包括:
    终端检测自身的重力加速度;
    所述终端将所述重力加速度与加速度阈值进行比较,若所述重力加速度大于或者等于所述加速度阈值,所述终端获得并存储当前的终端状态数据,所述终端状态数据用于表示所述终端发生过跌落。
  2. 根据权利要求1所述的方法,其特征在于,所述终端状态数据包括以下数据中的至少一个:
    所述重力加速度的数值、产生所述重力加速度时的时间信息以及所述终端产生所述重力加速度时的地理位置信息。
  3. 根据权利要求1所述的方法,其特征在于,所述终端检测自身的重力加速度,包括:
    所述终端内的传感器检测所述终端的重力加速度。
  4. 根据权利要求2所述的方法,其特征在于,所述终端存储重力加速度数据,包括:
    所述终端在存储器中存储获得的所述重力加速度数据。
  5. 一种终端数据的处理装置,其特征在于,所述装置包括:
    检测模块,用于检测终端的重力加速度;
    处理模块,用于将所述重力加速度与加速度阈值进行比较,若所述重力加速度大于或者等于所述加速度阈值,获得并存储当前的终端状态数据,所述终端状态数据用于表示发生过跌落。
  6. 根据权利要求5所述的装置,其特征在于,所述终端状态数据包括以下数据中的至少一个:所述重力加速度的数值、产生所述重力加速度时的时间信息以及产生所述重力加速度时的地理位置信息。
  7. 根据权利要求5所述的装置,其特征在于,所述检测模块,具体用于:
    使用传感器检测所述终端的重力加速度。
  8. 根据权利要求5所述的装置,其特征在于,所述处理模块,具体用于:
    在存储器中存储获得的所述重力加速度数据。
  9. 一种终端,其特征在于,所述终端包括上述权利要求5-8中任一项所述的装置。
  10. 一种电子设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-4任一项所述的方法。
  11. 一种非暂态计算机可读存储介质,其特征在于:所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-4任一项所述的方法。
  12. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-4任一项所述的方法。
PCT/CN2016/109591 2016-06-28 2016-12-13 一种终端数据的处理方法、装置及终端 WO2018000745A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610491094.6A CN106201843A (zh) 2016-06-28 2016-06-28 一种终端数据的处理方法、装置及终端
CN201610491094.6 2016-06-28

Publications (1)

Publication Number Publication Date
WO2018000745A1 true WO2018000745A1 (zh) 2018-01-04

Family

ID=57460926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109591 WO2018000745A1 (zh) 2016-06-28 2016-12-13 一种终端数据的处理方法、装置及终端

Country Status (2)

Country Link
CN (1) CN106201843A (zh)
WO (1) WO2018000745A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836226A (zh) * 2020-07-09 2020-10-27 Oppo广东移动通信有限公司 数据传输控制方法、装置及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201843A (zh) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 一种终端数据的处理方法、装置及终端
CN108259670B (zh) * 2018-01-22 2021-03-05 Oppo广东移动通信有限公司 电子装置、跌落处理方法及相关产品
CN108307057B (zh) * 2018-01-22 2020-07-17 Oppo广东移动通信有限公司 跌落数据的分析方法及相关产品
CN109669843A (zh) * 2018-12-29 2019-04-23 出门问问信息科技有限公司 撞击数据的获取方法及装置
CN112380181A (zh) * 2020-11-10 2021-02-19 北京小米移动软件有限公司 终端跌落检测方法、装置、系统、电子终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279285A (zh) * 2011-03-11 2011-12-14 华为终端有限公司 终端及其跌落信息的检测方法、装置
CN104076904A (zh) * 2014-06-25 2014-10-01 可牛网络技术(北京)有限公司 控制移动终端硬件状态的方法及装置
CN104834583A (zh) * 2015-05-22 2015-08-12 广东欧珀移动通信有限公司 一种移动终端跌落处理方法及系统
CN105207851A (zh) * 2015-09-30 2015-12-30 小米科技有限责任公司 故障的检测方法、装置、系统、终端及智能设备
CN106201843A (zh) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 一种终端数据的处理方法、装置及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279285A (zh) * 2011-03-11 2011-12-14 华为终端有限公司 终端及其跌落信息的检测方法、装置
CN104076904A (zh) * 2014-06-25 2014-10-01 可牛网络技术(北京)有限公司 控制移动终端硬件状态的方法及装置
CN104834583A (zh) * 2015-05-22 2015-08-12 广东欧珀移动通信有限公司 一种移动终端跌落处理方法及系统
CN105207851A (zh) * 2015-09-30 2015-12-30 小米科技有限责任公司 故障的检测方法、装置、系统、终端及智能设备
CN106201843A (zh) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 一种终端数据的处理方法、装置及终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836226A (zh) * 2020-07-09 2020-10-27 Oppo广东移动通信有限公司 数据传输控制方法、装置及存储介质
CN111836226B (zh) * 2020-07-09 2023-04-04 Oppo广东移动通信有限公司 数据传输控制方法、装置及存储介质

Also Published As

Publication number Publication date
CN106201843A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2018000745A1 (zh) 一种终端数据的处理方法、装置及终端
US9726730B2 (en) System and method for determining a state of health of a power source of a portable device
EP2996351B1 (en) Moisture detection response
US20160018345A1 (en) Method and apparatus for detecting abnormal state of battery
CN113131565A (zh) 一种充电的方法及终端
CN111352038A (zh) 用于电池膨胀检测的方法、信息处理设备及可读存储介质
CN103546643A (zh) 一种及时提示移动智能设备跌落损坏的方法和装置
CN107145410A (zh) 一种系统异常掉电后自动上电开机的方法、系统及设备
US9832259B2 (en) Method and apparatus for cell configuration
TW201428761A (zh) 用於非揮發性儲存器件之電源關閉預測
US20170170672A1 (en) Shorting battery to ground responsive to battery impedance reaching threshold
CN102984369A (zh) 一种移动终端查看相册的方法及系统
CN103428901A (zh) 一种移动终端及其数据保护方法
US11892516B2 (en) System and method for determining a state of health of a power source of a portable device
CN109839245A (zh) 电子装置及其防水质保条件判断方法
US9634517B2 (en) Battery charging mode selection
WO2018099093A1 (zh) 一种电池短路的检测方法和装置
CN103837835A (zh) 一种移动设备电池容量下降程度检测方法及其装置
US20120311310A1 (en) Computer system and method for resetting the same
CN104009267B (zh) 一种信息处理方法及电子设备
CN108366168B (zh) 跌落数据应用方法及相关产品
US10963359B2 (en) Battery management unit based runtime monitoring of power consumption
CN108307054B (zh) 跌落信息的检测方法及相关产品
WO2018103334A1 (zh) 故障检测方法和装置
CN105100440B (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: 16907134

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

Country of ref document: EP

Kind code of ref document: A1