CN108377294B - Electronic device, fall data storage method and related product - Google Patents

Electronic device, fall data storage method and related product Download PDF

Info

Publication number
CN108377294B
CN108377294B CN201810094020.8A CN201810094020A CN108377294B CN 108377294 B CN108377294 B CN 108377294B CN 201810094020 A CN201810094020 A CN 201810094020A CN 108377294 B CN108377294 B CN 108377294B
Authority
CN
China
Prior art keywords
falling
electronic device
memory
data
fall
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810094020.8A
Other languages
Chinese (zh)
Other versions
CN108377294A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810094020.8A priority Critical patent/CN108377294B/en
Publication of CN108377294A publication Critical patent/CN108377294A/en
Application granted granted Critical
Publication of CN108377294B publication Critical patent/CN108377294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses an electronic device, a fall data storage method and a related product, wherein the electronic device comprises a sensor, a processor and a fall-proof memory, and the sensor is used for detecting whether the electronic device is in a fall state; the sensor is also used for acquiring falling data of the electronic device in a falling state when the electronic device is detected to be in the falling state; the processor is used for storing the falling data in the falling-prevention memory. By implementing the embodiment of the application, the reliability of the stored fall data can be improved.

Description

Electronic device, fall data storage method and related product
Technical Field
The application relates to the technical field of communication, in particular to an electronic device, a drop data storage method and a related product.
Background
With the increasing popularity of electronic devices such as mobile phones, the disadvantage that mobile phones are easily broken is also more and more prominent. If important data are stored in the mobile phone, the risk that the important data cannot be recovered exists after the hand is broken.
Disclosure of Invention
The embodiment of the application provides an electronic device, a fall data storage method and a related product, and the reliability of stored fall data can be improved.
In a first aspect of the embodiments of the present application, there is provided an electronic device, the electronic device includes a sensor, a processor and an anti-fall memory, the processor connects the sensor and the anti-fall memory through a communication bus, wherein:
the sensor is used for detecting whether the electronic device is in a falling state or not;
the processor is used for acquiring falling data of the electronic device in a falling state when the sensor detects that the electronic device is in the falling state; and for storing the fall data in the fall arrest memory.
In a second aspect of the embodiments of the present application, a drop data storage method is provided, which is applied to an electronic device, and includes:
detecting whether the electronic device is in a falling state;
if so, collecting falling data of the electronic device in a falling state;
storing the fall data in a fall prevention memory of the electronic device.
In a third aspect of the embodiments of the present application, there is provided a drop data storage device applied to an electronic device, including:
the detection unit is used for detecting whether the electronic device is in a falling state or not;
the acquisition unit is used for acquiring falling data of the electronic device in a falling state when the detection unit detects that the electronic device is in the falling state;
and the storage unit is used for storing the falling data in a falling-prevention memory of the electronic device.
In a fourth aspect of the embodiments of the present application, there is provided an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in any of the methods in the second aspect of the embodiments of the present application.
In a fifth aspect of the embodiments of the present application, a computer-readable storage medium is provided, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in any one of the methods in the second aspect of the embodiments of the present application.
In a sixth aspect of embodiments of the present application, a computer program product is provided, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the second aspect of embodiments of the present application. The computer program product may be a software installation package.
In the embodiment of the application, the electronic device comprises a sensor, a processor and a falling-prevention memory, wherein the sensor is used for detecting whether the electronic device is in a falling state; the processor is used for acquiring falling data of the electronic device in a falling state when the sensor detects that the electronic device is in the falling state; the processor is also configured to store the fall data in a fall arrest memory of the electronic device. Because the falling data is stored in the falling-preventing memory, the falling-preventing memory can be prevented from being broken in the falling process, and the reliability of the stored falling data can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of another electronic device disclosed in the embodiments of the present application;
fig. 3 is a schematic flowchart of a fall data storage method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of another fall data storage method disclosed in the embodiments of the present application;
fig. 5 is a schematic flow chart of another fall data storage method disclosed in the embodiments of the present application;
FIG. 6 is a schematic structural diagram of a fall data storage device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, system, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 1, the electronic device 100 comprises a sensor 11, a processor 12 and an anti-fall memory 13, wherein:
and a sensor 11 for detecting whether the electronic device 100 is in a falling state.
And the processor 12 is configured to acquire fall data of the electronic device 100 in a fall state when the sensor 11 detects that the electronic device 100 is in the fall state.
And a processor 12 for storing the fall data in a fall protection memory 13 of the electronic device 100.
In the embodiment of the present application, the processor 12 connects the sensor 11 and the anti-falling memory 13 through a communication bus.
The sensor 11 at least comprises an acceleration sensor, and the sensor 11 may further comprise one or more of an infrared sensor, a gravity sensor, a gyroscope sensor, a magnetic sensor, a direction sensor, a light sensing sensor, a pressure sensor, a temperature sensor, and a proximity sensor. Wherein, the acceleration sensor can detect whether the electronic device 100 is in a falling state. Specifically, the detection of whether the electronic device 100 is in the falling state by the acceleration sensor is specifically as follows: the acceleration sensor detects the acceleration of the electronic device 100, and when the acceleration of the electronic device 100 is detected as the gravity acceleration (e.g., g is 9.8 m/s)2) And when the duration of the acceleration of the electronic device 100 being the gravitational acceleration reaches or exceeds a preset duration, determining that the electronic device 100 is in the falling state. For example, the preset time period may be set to 0.1 second or 0.2 second. It should be noted that the preset time period may be determined according to the initial dropping speed of the electronic device 100. Generally, the greater the initial falling speed of the electronic device 100, the smaller the preset time period.
The fall data may include a fall speed, a fall acceleration, a fall height, a fall direction, a scene before the fall of the electronic device 100, whether the electronic device 100 is in a bright screen state when the fall occurs, whether a virtual key in the electronic device 100 is touched when the fall occurs, whether an entity key in the electronic device 100 is pressed when the fall occurs, and the like.
For example, the processor 12 may acquire the fall velocity and the fall acceleration of the electronic device 100 through an acceleration sensor. The processor 12 can calculate the fall duration of the electronic device 100 from the fall speed and the fall acceleration collected by the acceleration sensor. The processor 12 may acquire the falling direction of the electronic device 100 through the direction sensor. The processor 12 may acquire the drop height of the electronic device 100 through an infrared sensor.
The scene before the drop may include whether the electronic device 100 is in a moving state before the drop, and the ambient light level in which the electronic device 100 is located before the drop. Wherein, the processor 12 may detect whether the electronic device 100 is in a moving state before falling through the gyro sensor. The processor 12 may detect the ambient light level of the electronic device before the electronic device is dropped via the light sensitive sensor.
The processor 12 can detect whether the electronic device 100 is in a bright screen state when falling, whether a virtual key in the electronic device 100 is touched when falling, and whether a physical key in the electronic device 100 is pressed when falling.
The anti-falling memory 13 is a memory arranged inside the electronic device, and the anti-falling memory 13 may specifically adopt an anti-falling processing mode: the surface of the crash-proof memory 13 is provided with an elastic protective material to reduce the impact force to which the crash-proof memory 13 is subjected after a fall. The anti-falling memory 13 may specifically adopt an anti-falling processing mode as follows: the material of the surface of the anti-falling storage 13 is wear-resistant, anti-falling, high-temperature resistant and impact resistant.
In the embodiment of the application, because the falling data is stored in the falling-prevention memory 13, the falling-prevention memory 13 can be prevented from being broken in the falling process, and the reliability of the stored falling data can be improved.
Optionally, the crash-proof memory 13 may be a waterproof memory. The crash-proof memory 13 is not damaged after the electronic device 100 is dropped into water.
Optionally, the crash-proof memory 13 is an encrypted memory, and the encrypted memory prohibits modification of data stored in the encrypted memory after distribution.
In the embodiment of the present application, the anti-drop memory 13 allows data to be written into the anti-drop memory 13 after the distribution. Specifically, when the sensor 11 detects that the electronic device 100 is in a falling state, the processor 12 stores the collected falling data of the electronic device 100 in the falling state in the fall prevention memory 13. When the sensor 11 detects that the electronic device 100 is not in the falling state, the processor 12 cannot write data into the falling-prevention memory 13.
In the embodiment of the present application, after the distribution, the anti-drop memory 13 prohibits the modification of the data stored in the anti-drop memory 13. For example, when the processor 12 receives a data writing command or a data modification command input by a user, the processor 12 rejects execution. The fall arrest memory 13 allows the processor 12 to store fall data collected while the electronic device 100 is in a fall state in the fall arrest memory 13 only when the sensor 11 detects that the electronic device 100 is in a fall state.
The fall-resistant memory 13 is a memory provided in the production process of the electronic device 100 and used for storing fall data of the electronic device 100. The password of the anti-falling memory 13 is preset by the manufacturer of the electronic device 100, the user of the electronic device 100 cannot obtain the password of the anti-falling memory 13, and the password of the anti-falling memory 13 is only obtained by the manufacturer and an after-sales service site cooperating with the manufacturer. The manufacturer and the after-sales service site cooperating with the manufacturer may obtain a correspondence table of the identification number of the electronic device 100 and the password of the corresponding drop-resistant memory 13. For example, if the electronic device 100 is a mobile phone, the identification number of the electronic device 100 is: international Mobile Equipment Identity (IMEI).
In the embodiment of the present application, data of each falling process of the electronic device 100 can be stored in the falling-prevention memory 13.
In the embodiment of the present application, since the fall data is stored in the fall-resistant memory 13, the fall-resistant memory 13 prohibits modification of the data stored in the fall-resistant memory 13 after the sale, and the user of the electronic device 100 cannot modify the data in the fall-resistant memory 13. The security of the fall data stored in the fall prevention memory 13 can be improved.
Optionally, the processor 12 is further configured to determine a predicted fall coefficient of the electronic device 100 according to the fall data;
and the processor 12 is also used for storing the falling data in the falling-prevention memory 13 when the predicted falling coefficient is greater than or equal to the preset threshold value.
In the embodiment of the present application, the expected failure coefficient can be determined according to the fall data of the electronic device 100. For example, the expected drop coefficient can be determined based on the initial drop velocity and the drop height of the electronic device 100. Generally, the faster the initial drop velocity, the higher the drop height, and the greater the expected failure coefficient. Specifically, the expected damage factor of the electronic device 100 is proportional to the landing speed of the electronic device 100. The preset threshold may be preset, for example, the preset threshold may be set as a predicted breaking coefficient corresponding to a landing speed of the electronic device 100 being 10 m/s. When the predicted fall coefficient is greater than or equal to the preset threshold, the electronic device 100 stores the fall data in the fall prevention memory 13.
Optionally, as shown in fig. 2, the electronic device 100 further includes a general memory 14;
and the processor 12 is also used for storing the falling data in the common memory 14 when the predicted falling coefficient is smaller than the preset threshold value.
In the embodiment of the present application, the normal memory 14 is a memory that does not adopt the anti-falling design. The normal memory 14 is weaker in the crash-proof capability than the crash-proof memory 13. But since the storage space of the crash-proof memory 13 is limited, part of the data can be stored in the general memory 14. In general, when the predicted fall prevention coefficient is smaller than the preset threshold, the general memory 14 will not be broken, and when the predicted fall prevention coefficient is larger than the preset threshold, the general memory 14 has a greater risk of being broken. When the expected fall prevention coefficient is smaller than the preset threshold value, the processor 12 stores the fall data in the ordinary memory 14, and when the ordinary memory 14 does not have the risk of falling, the fall data can be stored in the ordinary memory 14, so that the storage space of the fall prevention memory 14 can be saved.
Optionally, the normal memory 14 is an encrypted memory, and the encrypted memory prohibits modification of data stored in the encrypted memory after distribution.
In the embodiment of the present application, after the ordinary memory 14 is sold, data is allowed to be written into the ordinary memory 14. Specifically, when the sensor 11 detects that the electronic device 100 is in a falling state, the processor 12 stores the collected falling data of the electronic device 100 in the common memory 14. When the sensor 11 detects that the electronic device 100 is not in the falling state, the processor 12 cannot write data into the normal memory 14.
Optionally, the processor 12 is further configured to synchronize the fall data to the server.
In this embodiment of the application, the electronic device 100 may synchronize the collected fall data to the server after each fall. The server is used for backing up the dropping data of the electronic device 100 in order to prevent the loss of the data in the electronic device 100. The server and the electronic device 100 may establish a network connection, such as a wireless network (e.g., a mobile data network, a WiFi network, etc.) connection. The user of the electronic device 100 cannot modify the data in the server.
Optionally, the processor 12 is further configured to backup, in order from high to low, data in the electronic device 100 that is not backed up to the anti-falling memory 13 according to the priority when the expected breakage coefficient is greater than or equal to the preset threshold.
In the embodiment of the present application, when the expected breakage coefficient is greater than or equal to the preset threshold, there is a risk that other memories in the electronic device 100 except the fall-prevention memory 13 are broken, and in order to avoid that data that is not backed up to the fall-prevention memory 13 is lost due to the other memories being broken, when the expected breakage coefficient is greater than or equal to the preset threshold, the processor 12 sequentially backs up the data that is not backed up to the fall-prevention memory 13 in the electronic device 100 to the fall-prevention memory 13 according to the priority. The priority of the data may be set in advance by the electronic device 100. Specifically, the electronic device 100 may determine the priority of the data according to the type of the data and the number of times of reading the data. Optionally, the priority of the data may be preset by a user. Generally, the data with higher priority is private data of the user (e.g., data in an encrypted folder).
In the embodiment of the present application, when the expected breakage coefficient is greater than or equal to the preset threshold, the processor 12 sequentially backs up the data, which is not backed up to the anti-falling memory 13 in the electronic device 100, to the anti-falling memory 13 according to the priority from high to low, so that the data with higher priority in the electronic device 100 can be backed up to the anti-falling memory 13 preferentially as much as possible, and the security of the data with higher priority is ensured.
Optionally, the processor 12 is further configured to receive a drop data reading instruction, where the drop data reading instruction is configured to read drop data from the drop-resistant memory 13.
Specifically, the computer of the after-sales service site may establish a communication connection with the electronic device 100, send a drop data reading instruction to the electronic device 100, where the drop data reading instruction carries an access password, and the processor 12 may verify whether the access password is matched with a preset password, and if so, allow the computer of the after-sales service site to read the drop data from the drop-resistant memory 13. The fall arrest memory 13 may store all fall data for the electronic device 100. The computer of the after-sales service site estimates the transfer value of the electronic device 100 according to the drop data stored in the drop-resistant memory 13, so as to obtain the transfer value of the electronic device 100. Since the fall data in the fall-resistant memory 13 cannot be modified, the authenticity of the fall data in the fall-resistant memory 13 is guaranteed, and the after-sales service station can accurately estimate the transfer value of the electronic device 100. The accuracy of the assignment value estimation of the electronic device can be improved.
Optionally, the after-sale service site may further analyze a drop reason and a drop scene of the electronic device 100 according to the drop data of the electronic device 100, and recommend a suggestion of a drop prevention policy for the user. For example, if the virtual key is in a touched state before the electronic device 100 falls off each time, which indicates that the electronic device 100 is easy to fall off during the use of the virtual key, it may be recommended that the user move the display position of the virtual key to an area where the user's finger is convenient to contact.
Optionally, when the after-sales service site evaluates the value of the electronic device 100, the dropping data of the electronic device 100 stored in the server may be referred to, and whether the dropping data in the drop-resistant memory 13 of the electronic device 100 is the same as the dropping data of the electronic device 100 in the server may be compared. If the two are the same, the value of the electronic device 100 is evaluated. If not, the electronic device 100 cannot be evaluated for value. By adopting the embodiment of the application, the user of the electronic device 100 can be further prevented from modifying the fall data in the fall-prevention memory 13.
Referring to fig. 3, fig. 3 is a flowchart illustrating a fall data storage method according to an embodiment of the present disclosure, where the fall data storage method is applied to the electronic device 100 in fig. 1 to 2, and as shown in fig. 3, the fall data storage method includes the following steps.
301, the electronic device detects whether the electronic device is in a falling state.
In embodiments of the present application, the electronic device may include a sensor, such as an acceleration sensor. The manner of detecting whether the electronic device is in the falling state by the electronic device may specifically be: the method for detecting whether the electronic device is in a falling state through the acceleration sensor specifically comprises the following steps: the acceleration sensor detects the acceleration of the electronic device, and when the acceleration of the electronic device is detected as the gravity acceleration (for example, g is 9.8 m/s)2) And when the duration of the acceleration of the electronic device, which is the gravity acceleration, reaches or exceeds the preset duration, determining that the electronic device is in a falling state. For example, the preset time period may be set to 0.1 second or 0.2 second. It should be noted that the preset duration can be determined according to the initial falling speed of the electronic device. Generally, the larger the initial falling speed of the electronic device, the smaller the preset time period.
The sensors in the electronic device may further include one or more of an infrared sensor, a gravity sensor, a gyroscope sensor, a magnetic sensor, a direction sensor, a light sensing sensor, a pressure sensor, a temperature sensor, and a proximity sensor.
302, when the electronic device is detected to be in a falling state, the electronic device collects falling data when the electronic device is in the falling state.
The falling data can include falling speed, falling acceleration, falling height, falling direction, falling scene of the electronic device, whether the electronic device is in a bright screen state when falling, whether a virtual key in the electronic device is touched when falling, and whether an entity key in the electronic device is pressed when falling.
For example, the electronic device may acquire the fall speed and the fall acceleration of the electronic device through the acceleration sensor. The electronic device can calculate the falling duration of the electronic device according to the falling speed and the falling acceleration acquired by the acceleration sensor. The electronic device can acquire the falling direction of the electronic device through the direction sensor. The electronic device can acquire the falling height of the electronic device through the infrared sensor.
The scene before the electronic device falls can include whether the electronic device is in a moving state before the electronic device falls and the ambient light brightness of the electronic device before the electronic device falls. The electronic device can detect whether the electronic device is in a moving state before falling through the gyroscope sensor. The electronic device can detect the brightness of the environment where the electronic device is located before falling through the light induction sensor.
Optionally, the fall data includes: at least one of a drop velocity, a drop acceleration, and a drop height.
303, the electronic device stores the fall data in a fall prevention memory of the electronic device.
Wherein, prevent falling the memory and be the memory of setting in the electron device inside, prevent falling the memory and adopt and prevent falling the mode of handling and specifically can be: the surface of the anti-falling storage is provided with an elastic protection material so as to reduce the impact force to which the anti-falling storage is subjected after falling. The anti-falling memory can adopt an anti-falling processing mode which can be as follows: the surface material of the anti-falling memory adopts wear-resistant, anti-falling, high-temperature resistant and impact resistant materials.
Optionally, after step 303 is executed, the following steps may also be executed:
the electronic device receives a fall data read instruction, which is used to read fall data from the fall-resistant memory.
Specifically, the computer of the after-sales service site can establish communication connection with the electronic device, the computer of the after-sales service site sends a drop data reading instruction to the electronic device, the drop data reading instruction carries an access password, the electronic device can verify whether the access password is matched with a preset password, and if the access password is matched with the preset password, the computer of the after-sales service site is allowed to read drop data from the drop-resistant memory. The fall arrest memory may store all fall data for the electronic device. And estimating the transfer value of the electronic device by the computer of the after-sales service site according to the falling data stored in the falling-prevention memory to obtain the transfer value of the electronic device. Because the falling data in the falling-resistant memory cannot be modified, the authenticity of the falling data in the falling-resistant memory is guaranteed, and the transfer value of the electronic device can be accurately estimated by the after-sale service station. The accuracy of the assignment value estimation of the electronic device can be improved.
Optionally, the after-sale service site may further analyze a drop reason and a drop scene of the electronic device according to the drop data of the electronic device, and recommend a suggestion of a drop prevention policy for the user. For example, if the virtual key is in a touched state before the electronic device falls off each time, which indicates that the electronic device is easy to fall off in the process of using the virtual key, it may be recommended that the user move the display position of the virtual key to an area where the user's finger is convenient to contact.
Optionally, when the after-sales service site evaluates the value of the electronic device, the dropping data of the electronic device stored in the server may be referred to, and whether the dropping data in the drop-prevention memory of the electronic device is the same as the dropping data of the electronic device in the server may be compared. If the data is the same, the value of the electronic device is evaluated. If not, the value evaluation cannot be carried out on the electronic device. By adopting the embodiment of the application, the user of the electronic device can be further prevented from modifying the falling data in the falling-resistant memory.
By implementing the method shown in fig. 3, since the falling data is stored in the falling-prevention memory, the falling-prevention memory can be prevented from being broken in the falling process, and the reliability of the stored falling data can be improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of another fall data storage method disclosed in the embodiment of the present application, and fig. 4 is obtained by further optimizing on the basis of fig. 3. The fall data storage method is applied to the electronic device 100 in fig. 1 to 2, and as shown in fig. 4, the fall data storage method includes the following steps.
401, the electronic device detects whether the electronic device is in a falling state.
402, when the electronic device is detected to be in a falling state, the electronic device collects falling data when the electronic device is in the falling state.
Step 401 to step 402 in this embodiment of the application may refer to step 301 to step 302 shown in fig. 3, which is not described herein again.
The electronic device determines a projected fall coefficient for the electronic device based on the fall data 403.
In the embodiment of the application, the predicted falling coefficient can be determined according to the falling data of the electronic device. For example, the predicted fall coefficient can be determined based on the initial fall speed and the fall height of the electronic device. Generally, the faster the initial drop velocity, the higher the drop height, and the greater the expected failure coefficient. Specifically, the expected breaking coefficient of the electronic device is proportional to the landing speed of the electronic device. The preset threshold may be preset, for example, the preset threshold may be set as a predicted breaking coefficient corresponding to a landing speed of the electronic device being 10 m/s.
And 404, when the predicted fall coefficient is greater than or equal to the preset threshold value, the electronic device stores the fall data in a fall-prevention memory of the electronic device.
And 405, when the predicted fall coefficient is smaller than the preset threshold value, the electronic device stores the fall data in a common memory of the electronic device.
In the embodiment of the application, the common memory is a memory which does not adopt an anti-falling design. The normal memory is weaker in the crash-proof capability than the crash-proof memory. But since the storage space of the crash-proof memory is limited, part of the data can be stored in the normal memory. Generally speaking, when the predicted anti-falling coefficient is smaller than the preset threshold value, the ordinary memory cannot be broken, and when the predicted anti-falling coefficient is larger than the preset threshold value, the ordinary memory has a greater risk of being broken. When the predicted drop coefficient is greater than or equal to the preset threshold, the electronic device stores the drop data in a drop-resistant memory of the electronic device in order to prevent the drop data from being lost. When the predicted fall-preventing coefficient is smaller than the preset threshold value, the fall data are stored in the common memory, and when the common memory does not have the risk of falling, the fall data are stored in the common memory, so that the storage space of the fall-preventing memory can be saved.
Optionally, the crash-proof memory and the normal memory are both encrypted memories, and the encrypted memories prohibit modification of data stored in the encrypted memories after distribution.
In the embodiment of the application, the encrypted memory is allowed to write data into the encrypted memory after being distributed. Specifically, when the electronic device is detected to be in a falling state, the collected falling data of the electronic device in the falling state is stored in the encryption memory. When the electronic device is detected not to be in a falling state, data cannot be written into the encryption memory.
Implementing the method shown in fig. 4, when the expected drop coefficient is greater than or equal to the preset threshold, in order to prevent the drop data from being lost, the electronic device stores the drop data in a drop-resistant memory of the electronic device; when the predicted fall-preventing coefficient is smaller than the preset threshold value, the fall data are stored in the common memory, and when the common memory does not have the risk of falling, the fall data are stored in the common memory, so that the storage space of the fall-preventing memory can be saved.
Referring to fig. 5, fig. 5 is a schematic flow chart of another fall data storage method disclosed in the embodiment of the present application, and fig. 5 is obtained by further optimizing on the basis of fig. 4. The fall data storage method is applied to the electronic device 100 in fig. 1 to 2, and as shown in fig. 5, the fall data storage method includes the following steps.
501, the electronic device detects whether the electronic device is in a falling state.
502, when it is detected that the electronic device is in a falling state, the electronic device collects falling data when the electronic device is in the falling state.
The electronic device determines a projected fall coefficient for the electronic device based on the fall data 503.
And 504, when the predicted fall coefficient is greater than or equal to the preset threshold value, the electronic device stores the fall data in the fall-prevention memory of the electronic device.
And 505, when the predicted falling coefficient is smaller than the preset threshold value, the electronic device stores the falling data in a common memory of the electronic device.
Step 501 to step 505 in the present embodiment may refer to step 401 to step 405 shown in fig. 4, which is not described herein again.
And 506, when the predicted breaking coefficient is greater than or equal to the preset threshold value, the electronic device sequentially backs up the data which is not backed up to the anti-falling memory in the electronic device to the anti-falling memory from high to low according to the priority.
In the embodiment of the application, when the expected breakage coefficient is greater than or equal to the preset threshold, other memories except the anti-falling memory in the electronic device have the risk of being broken, and in order to avoid the loss of data which is not backed up to the anti-falling memory due to the broken other memories, when the expected breakage coefficient is greater than or equal to the preset threshold, the data which is not backed up to the anti-falling memory in the electronic device is sequentially backed up to the anti-falling memory from high to low according to the priority. The priority of the data can be preset by the electronic device. Specifically, the electronic device may determine the priority of the data according to the type of the data and the number of times of reading the data. Optionally, the priority of the data may be preset by a user. Generally, the data with higher priority is private data of the user (e.g., data in an encrypted folder).
By implementing the method shown in fig. 5, when the expected breakage coefficient is greater than or equal to the preset threshold, the data that is not backed up to the anti-falling memory in the electronic device is sequentially backed up to the anti-falling memory according to the priority from high to low, so that the data with higher priority in the electronic device can be backed up to the anti-falling memory preferentially as much as possible, and the security of the data with higher priority is ensured.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a fall data storage device disclosed in an embodiment of the present application, and as shown in fig. 6, the fall data storage device 600 includes a detection unit 601, a collection unit 602, and a storage unit 603, and the fall data storage device 600 is applied to the electronic device shown in fig. 1 to 2, where:
the detecting unit 601 is configured to detect whether the electronic device is in a falling state.
The collecting unit 602 is configured to collect drop data of the electronic device in a drop state when the detecting unit detects that the electronic device is in the drop state.
A storage unit 603 for storing the fall data in a fall-resistant memory of the electronic device.
By implementing the falling data storage device shown in fig. 6, since the falling data is stored in the falling-prevention memory, the falling-prevention memory can be prevented from being broken in the falling process, and the reliability of the stored falling data can be improved.
For a specific embodiment of the fall data storage device shown in fig. 6, reference may be made to the method embodiments shown in fig. 3 to fig. 5, and repeated descriptions are omitted.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application, as shown in fig. 7, the electronic device 700 includes a processor 701, a memory 702, a communication interface 703 and one or more programs, and the processor 701, the memory 702 and the communication interface 703 may be connected by a communication bus 704. Wherein the one or more programs are stored in the memory 702 and configured to be executed by the processor 701, the programs including instructions for performing the following steps;
detecting whether the electronic device is in a falling state;
when the electronic device is detected to be in a falling state, collecting falling data of the electronic device in the falling state;
the fall data is stored in a fall-resistant memory of the electronic device.
Optionally, after collecting the fall data of the electronic device in the fall state, the program further includes instructions for:
determining a predicted breaking coefficient of the electronic device according to the falling data;
and when the predicted fall coefficient is greater than or equal to the preset threshold value, performing a step of storing the fall data in a fall-prevention memory of the electronic device.
Optionally, the program further comprises instructions for:
and when the predicted falling coefficient is smaller than the preset threshold value, storing the falling data in a common memory of the electronic device.
Optionally, the program further comprises instructions for:
and when the predicted breakage coefficient is larger than or equal to the preset threshold value, backing up the data which is not backed up to the anti-falling memory in the electronic device to the anti-falling memory in sequence from high to low according to the priority.
Optionally, the crash-proof memory and the normal memory are both encrypted memories, and the encrypted memories prohibit modification of data stored in the encrypted memories after distribution.
In the embodiment of the application, because the falling data is stored in the falling-preventing storage, the falling-preventing storage can be prevented from being broken in the falling process, and the reliability of the stored falling data can be improved.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An electronic device is characterized by comprising a sensor, a common memory, a processor and an anti-falling memory, wherein the processor is connected with the sensor, the common memory and the anti-falling memory through a communication bus, the common memory is a memory which does not adopt an anti-falling design, and the storage space of the common memory is larger than that of the anti-falling memory; when the electronic device is not in a falling state, the processor cannot write data into the falling-prevention memory; wherein:
the sensor is used for detecting whether the electronic device is in a falling state or not;
the processor is used for acquiring falling data of the electronic device in a falling state when the sensor detects that the electronic device is in the falling state; the fall data includes: at least one of a falling speed, a falling acceleration, a falling height, a falling direction, a scene before falling, whether the electronic device is in a bright screen state during falling, whether a virtual key in the electronic device is touched during falling, and whether an entity key in the electronic device is pressed during falling; determining a predicted falling coefficient of the electronic device according to the falling data, wherein the higher the initial falling speed contained in the falling data is, the higher the falling height is, the larger the predicted falling coefficient is; and storing the fall data in the fall prevention memory when the predicted fall coefficient is greater than or equal to a preset threshold; the anti-falling memory is arranged inside the electronic device and adopts an anti-falling memory.
2. The electronic device of claim 1, further comprising a general memory;
and the processor is further used for storing the falling data in the common memory when the predicted falling coefficient is smaller than the preset threshold value.
3. The electronic device according to claim 2, wherein the crash-proof memory and the normal memory are both encrypted memories, and the encrypted memories prohibit modification of data stored in the encrypted memories after distribution.
4. The electronic device according to any one of claims 1 to 3,
the processor is further configured to sequentially backup data, which are not backed up to the anti-falling memory in the electronic device, to the anti-falling memory from high to low according to priority when the predicted falling coefficient is greater than or equal to the preset threshold.
5. A falling data storage method is applied to an electronic device and is characterized in that the electronic device comprises a sensor, a common memory, a processor and a falling-proof memory, the processor is connected with the sensor, the common memory and the falling-proof memory through a communication bus, the common memory is a memory which does not adopt a falling-proof design, and the storage space of the common memory is larger than that of the falling-proof memory; when the electronic device is not in a falling state, the processor cannot write data into the falling-prevention memory; the method comprises the following steps:
detecting whether the electronic device is in a falling state;
if so, collecting falling data of the electronic device in a falling state; the fall data includes: at least one of a falling speed, a falling acceleration, a falling height, a falling direction, a scene before falling, whether the electronic device is in a bright screen state during falling, whether a virtual key in the electronic device is touched during falling, and whether an entity key in the electronic device is pressed during falling;
determining a predicted falling coefficient of the electronic device according to the falling data, wherein the higher the initial falling speed contained in the falling data is, the higher the falling height is, the larger the predicted falling coefficient is;
when the predicted falling coefficient is larger than or equal to a preset threshold value, storing the falling data in an anti-falling memory of the electronic device; the anti-falling memory is arranged inside the electronic device and adopts an anti-falling memory.
6. The method of claim 5, further comprising:
and when the predicted falling coefficient is smaller than the preset threshold value, storing the falling data in a common memory of the electronic device.
7. The method of claim 6, wherein the crash-proof memory and the normal memory are both encrypted memories, and wherein the encrypted memories inhibit modification of data stored in the encrypted memories after distribution.
8. The method according to any one of claims 5 to 7, further comprising:
and when the predicted breaking coefficient is greater than or equal to the preset threshold value, backing up the data which are not backed up to the anti-falling memory in the electronic device to the anti-falling memory in sequence from high to low according to the priority.
9. A fall data storage device applied to an electronic device, comprising:
the detection unit is used for detecting whether the electronic device is in a falling state or not; the electronic device comprises a sensor, a common memory, a processor and an anti-falling memory, wherein the processor is connected with the sensor, the common memory and the anti-falling memory through a communication bus, the common memory is a memory which does not adopt an anti-falling design, and the storage space of the common memory is larger than that of the anti-falling memory; when the electronic device is not in a falling state, the processor cannot write data into the falling-prevention memory;
the acquisition unit is used for acquiring falling data of the electronic device in a falling state when the detection unit detects that the electronic device is in the falling state; the fall data includes: at least one of a falling speed, a falling acceleration, a falling height, a falling direction, a scene before falling, whether the electronic device is in a bright screen state during falling, whether a virtual key in the electronic device is touched during falling, and whether an entity key in the electronic device is pressed during falling;
means for determining a projected fall coefficient for the electronic device from the fall data; the higher the initial falling speed and the higher the falling height contained in the falling data are, the larger the predicted falling coefficient is;
the storage unit is used for storing the falling data in an anti-falling memory of the electronic device when the predicted falling coefficient is larger than or equal to a preset threshold value; the anti-falling memory is arranged inside the electronic device and adopts an anti-falling memory.
10. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 5-8.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 5 to 8.
CN201810094020.8A 2018-01-31 2018-01-31 Electronic device, fall data storage method and related product Active CN108377294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810094020.8A CN108377294B (en) 2018-01-31 2018-01-31 Electronic device, fall data storage method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810094020.8A CN108377294B (en) 2018-01-31 2018-01-31 Electronic device, fall data storage method and related product

Publications (2)

Publication Number Publication Date
CN108377294A CN108377294A (en) 2018-08-07
CN108377294B true CN108377294B (en) 2021-02-02

Family

ID=63017069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810094020.8A Active CN108377294B (en) 2018-01-31 2018-01-31 Electronic device, fall data storage method and related product

Country Status (1)

Country Link
CN (1) CN108377294B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639892A (en) * 2018-12-14 2019-04-16 顺丰科技有限公司 A kind of handheld terminal and its fall monitoring method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461405B (en) * 2015-01-07 2017-12-29 联想(北京)有限公司 Data emergency protection method and electronic equipment
CN104834583A (en) * 2015-05-22 2015-08-12 广东欧珀移动通信有限公司 Mobile terminal falling processing method and system
JP6552292B2 (en) * 2015-06-17 2019-07-31 シャープ株式会社 Electronics

Also Published As

Publication number Publication date
CN108377294A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
US10474814B2 (en) System, apparatus and method for platform protection against cold boot attacks
CN104780316B (en) A kind of camera starts detection method and camera starts detection means
CN103970259B (en) The method and terminal device of screen pattern switching
JP5232211B2 (en) Mobile terminal having data protection function, data protection method and program in the mobile terminal
WO2017048449A1 (en) Maintaining user authentications with common trusted devices
CN104660907A (en) Shooting method and device as well as mobile terminal
TWI633464B (en) Processing method and electronic device for displaying video corresponding to physical object
CN108153503B (en) Display control method and related product
CN104346194B (en) A kind of startup file loading method, device and electronic equipment
US20190392572A1 (en) Method and apparatus for acquiring queuing information, and computer -readable storage medium thereof
CN108377294B (en) Electronic device, fall data storage method and related product
TW201339990A (en) Data protecting system and protecting method
CN103019558A (en) Method for unlocking handheld mobile terminal equipment and handheld mobile terminal equipment
CN108234757A (en) A kind of method of safety guarantee, terminal device and computer-readable medium
CN108377295B (en) Electronic device, fall data storage method and related product
CN108259670B (en) Electronic device, drop processing method and related product
CN108304123B (en) Page display control method and related product
CN106066953B (en) Fingerprint unlocking control method and terminal equipment
CN103544026B (en) Can the electronic installation of safety upgrade and upgrade method
CN108182274B (en) Electronic equipment maintenance processing method and related product
CN108307054B (en) Falling information detection method and related product
CN108234703A (en) Electronic device, camera shooting head inspecting method and Related product
CN108600538B (en) Fall detection method and related product
CN107247900B (en) Method and device for acquiring login password of operating system
CN107534700B (en) Information input method for terminal and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: No.18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant