CN108777738B - Fall adjustment method and related product - Google Patents

Fall adjustment method and related product Download PDF

Info

Publication number
CN108777738B
CN108777738B CN201810398459.XA CN201810398459A CN108777738B CN 108777738 B CN108777738 B CN 108777738B CN 201810398459 A CN201810398459 A CN 201810398459A CN 108777738 B CN108777738 B CN 108777738B
Authority
CN
China
Prior art keywords
range
acceleration sensor
fall
electronic device
falling
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
CN201810398459.XA
Other languages
Chinese (zh)
Other versions
CN108777738A (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 CN201810398459.XA priority Critical patent/CN108777738B/en
Publication of CN108777738A publication Critical patent/CN108777738A/en
Application granted granted Critical
Publication of CN108777738B publication Critical patent/CN108777738B/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
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The embodiment of the application discloses a fall adjustment method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises an acceleration sensor, and the method comprises the following steps: the method comprises the steps that when the electronic device firstly detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information comprises falling duration or scene information, the scene information comprises the current horizontal and vertical screen states of the electronic device and application programs running on a foreground, and finally the measuring range of the acceleration sensor is adjusted according to the preset information. The accuracy and the intelligence of the electronic device during falling adjustment can be improved.

Description

Fall adjustment method and related product
Technical Field
The application relates to the technical field of electronic equipment, in particular to a fall adjustment method and a related product.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. In actual use, the intelligent terminal usually falls from the hand of the user and falls from the desktop, and the intelligent terminal collides with a collision object after falling, so that the intelligent terminal is damaged. In the actual falling process of the mobile phone, the accuracy of the acceleration data reported by the acceleration sensor is very important for the falling detection result.
Disclosure of Invention
The embodiment of the application provides a fall adjustment method and a related product, and aims to provide the fall adjustment method, so that the intelligence and the accuracy of fall adjustment are realized.
In a first aspect, an embodiment of the present application provides a fall adjustment method, which is applied to an electronic device, where the electronic device includes an acceleration sensor, and the method includes:
when the mobile terminal is detected to be in a falling state, acquiring preset information of the electronic device, wherein the preset information comprises falling duration or scene information, and the scene information comprises a current horizontal and vertical screen state and a foreground running application program of the electronic device;
and adjusting the measuring range of the acceleration sensor according to the preset information.
In a second aspect, the embodiments of the present application provide a fall adjustment device, including an electronic device including an acceleration sensor, the fall adjustment device including a detection unit and an adjustment unit, wherein,
the detection unit is used for acquiring preset information of the electronic device when the mobile terminal is detected to be in a falling state, wherein the preset information comprises falling duration or scene information, and the scene information comprises the current horizontal and vertical screen states of the electronic device and foreground running application programs;
and the adjusting unit is used for adjusting the measuring range of the acceleration sensor according to the preset information.
In a third aspect, an embodiment of the present application provides 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 steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein 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 as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2 is a schematic flow chart of a fall adjustment method provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of another fall adjustment method provided in the embodiments of the present application;
fig. 4 is a schematic flow chart of another fall adjustment method provided in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a fall adjustment device according to an embodiment of the present disclosure.
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, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, 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, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
As shown in fig. 1A, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, the one or more application programs are third-party application programs installed in the electronic device, a fall detection algorithm runs in the user space, and the operating system space runs an operating system of the electronic device. The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and is not limited herein. As shown in fig. 1B, for example, the Android system runs in the electronic device, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including Libraries and Android Runtime), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Various sensors are arranged on the Android platform, and many novel applications including game applications can be developed by using the sensors. The sensor provides an interactive mode, and a user does not need to make contact or key operation, but can achieve the expected effect by detecting the state of the electronic device and acquiring the corresponding parameter value.
The Android acceleration sensor is used in the Android, so that the posture and the motion state of the electronic device can be recognized, the acceleration sensor can effectively track the motion state of the electronic device, the application range of the electronic device is wide, and almost all Android electronic devices are provided with the acceleration sensor. Currently, acceleration sensor applications have become an important component of electronic devices, for example, the gravity sensing effect of objects, which is common in game applications, is achieved by using an acceleration sensor in a mobile device. The mobile application is developed by utilizing the characteristics of the acceleration sensor, and the development skill and the trend are commonly selected in the Android mobile application development field.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
Referring to fig. 2, fig. 2 is a schematic flow chart of a fall adjustment method provided in an embodiment of the present application, and the fall adjustment method is applied to an electronic device, where the electronic device includes an acceleration sensor, and the fall adjustment method in the embodiment of the present application includes the following steps:
s201, when detecting that the mobile terminal is in a falling state, the electronic device acquires preset information of the electronic device, wherein the preset information comprises falling duration or scene information, and the scene information comprises a current horizontal and vertical screen state of the electronic device and foreground running application programs.
The preset information may include, but is not limited to, fall duration, scene information, fall acceleration, fall height, fall direction, fall angle, and the like, and is not limited herein.
S202, the electronic equipment adjusts the measuring range of the acceleration sensor according to the preset information.
The measuring range of the acceleration sensor may include, but is not limited to, 16g, 8g, 4g, etc., and is not limited herein.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
In one possible example, the preset information includes a fall duration; the electronic device adjusts the measuring range of the acceleration sensor according to the preset information, and the method comprises the following steps: the electronic device acquires a preset first measuring range set of the acceleration sensor, wherein the first measuring range set comprises a corresponding relation between falling duration and measuring range; inquiring the first range set according to the falling duration, and determining a target range adapted to the falling duration; and adjusting the range of the acceleration sensor according to the target range.
The falling time is detected by the acceleration sensor according to the falling time of the electronic device, and may be 5ms, 10ms, and the like, which is not limited herein.
The corresponding relationship between the falling duration and the measuring range can be one-to-one, one-to-many, many-to-many, and the like, and is not limited herein.
For example, when the electronic device falls, the first detection is that no collision occurs within 5ms, and the current range is 4g, the detection is continuously performed according to the corresponding relationship between the falling duration and the range, and no collision occurs within the next 5ms, and the current range is 8g according to the corresponding relationship between the falling duration and the range, and the steps are repeated, as shown in table 1, table 1 is an embodiment of the corresponding relationship, but is not a unique expression,
TABLE 1
Time to fall Falling range
3ms 4g
5ms 4g
10ms 8g
15ms 16g
The corresponding measuring ranges are different due to different time in the time period, the measuring ranges are gradually increased, and the measuring range of the acceleration sensor is the most appropriate measuring range one second before the collision occurs.
Therefore, in the example, the electronic device accurately obtains the adaptive target range through the corresponding relation between the falling duration and the range in the range set, flexibly obtains different ranges according to different falling durations, and then the selected range can be accurately adapted to the current falling scene, so that the situations of false alarm or misjudgment caused by acceleration exceeding the range when the range is not fallen are avoided, and the accuracy and pertinence of the electronic device in falling adjustment are improved.
In one possible example, the falling duration is a falling duration detected by the electronic device in real time during a falling process.
The real-time detection is time-interval detection, and for example, the first detection time interval is 0-2.5ms, the second detection time interval is 2.6-5 ms, the third detection time interval is 6-7.5 ms, the fourth detection time interval is 7.6-10 ms, and the like, the detection can be divided according to different intervals, and the detection is not limited uniquely here.
For example, as shown in the above detection periods, the first detection period is 0 to 2.5ms and the corresponding drop range is 4g, the second detection period is 2.6 to 5ms and the corresponding drop range is 8g, the third detection period is 6 to 7.5ms and the corresponding drop range is 8g, the fourth detection period is 7.6 to 10ms and the corresponding drop range is 16g, it is detected that the current electronic device has dropped and no collision has occurred within 6s, at this time, the range of acceleration is 8g, detection is continued, a collision has occurred within 8s before, and at this time, the acceleration range added to the acceleration sensor is 16 g.
Therefore, in the example, the electronic device can continuously detect the falling in a segmented manner, and the falling range corresponding to each time period is dynamically adjusted, so that the accuracy and the real-time performance of the falling detection are improved.
In one possible example, the fall duration is an actual fall duration determined by the electronic device according to a fall initiation time and a fall collision time.
The falling starting time can be obtained by collecting N groups of falling accelerations by an acceleration sensor within a preset time period, if the N groups of falling accelerations are all gravity accelerations g, the current time period is judged to be the falling starting time, and N can be natural numbers such as 1, 2, 3 and 4, and is not limited uniquely here.
Wherein, fall crash time can be by acceleration sensor at the in-process that continuously detects, detect that fall acceleration is greater than acceleration of gravity, and N group after that also organize the time that corresponds with the fall acceleration that first group is greater than acceleration of gravity for falling crash time.
For example, when the electronic device is detected to fall, the acceleration sensor detects that the fall acceleration is 30 minutes and 00 seconds at 14 pm, the acquired 6 groups of fall accelerations are all gravitational accelerations, and the fall acceleration is 12g at 14 o' clock, 30 minutes and 10 seconds, the fall duration is 10S, the fall range corresponding to 10S is 16g, and thus the fall range of the acceleration sensor is adjusted to 16 g.
Therefore, in the example, the electronic device is long according to the actual falling time of the detection, the acceleration range can be rapidly adapted to the actual falling time in one second before the falling, the detection power consumption is reduced, and the accuracy and the high efficiency of the falling detection of the electronic device are facilitated.
In one possible example, the preset information includes scene information, and the scene information includes a current horizontal and vertical screen state and a foreground running application program of the electronic device; the electronic device adjusts the measuring range of the acceleration sensor according to the preset information, and the method comprises the following steps: the electronic device acquires a preset second range set of the acceleration sensor, wherein the second range set comprises a corresponding relation between scene information and ranges; inquiring the second range set according to the scene information, and determining a target range adapted to the scene information; and adjusting the range of the acceleration sensor according to the target range.
The scene information may be, but is not limited to, a landscape screen game state, a portrait screen reading state, a landscape screen video state, and the like, and is not limited herein.
The corresponding relationship between the scene information and the range may be one-to-one, one-to-many, many-to-many, and the like, and is not limited herein.
For example, when the user a sits on the chair and holds the electronic device with both hands to watch a video, the distance between the user a's hands and the ground is 80cm, the electronic device is detected to fall, the corresponding relationship between the fall range and the fall range in the sitting scene is shown in table 2,
TABLE 2
Figure BDA0001644085260000071
Figure BDA0001644085260000081
Table 1 is one of the scene information, not the only scene information, and it is known from table 2 that the current drop range is 8g, that is, the current acceleration range is adjusted to 8 g.
Therefore, in this example, the electronic device can accurately analyze the acceleration range required by the current scene according to the scene information, and the actual scene information is actually based on the usage habit of the user to determine the common height of the user when using the mobile phone in the current scene, so that the acceleration range correspondingly required in the scene is estimated, the purpose of dynamically adjusting the acceleration range is achieved, and the accuracy and the flexibility of the electronic device during the falling adjustment are improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a fall adjustment method provided in an embodiment of the present application, and the fall adjustment method is applied to an electronic device, where the electronic device includes an acceleration sensor, and as shown in fig. 3, the fall adjustment method in the embodiment of the present application includes the following steps:
s301, when the electronic equipment detects that the mobile terminal is in a falling state, acquiring the actual falling duration determined by the electronic device according to the falling starting time and the falling collision time.
S302, the electronic device acquires a preset first measuring range set of the acceleration sensor.
S303, the electronic equipment inquires the first range set according to the actual falling duration and determines the target range adaptive to the falling duration.
S304, the electronic equipment adjusts the range of the acceleration sensor according to the target range.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
In addition, the electronic device accurately obtains the adaptive target range through the corresponding relation between the falling duration and the range in the range set, flexibly obtains different ranges according to different falling durations, and then the selected range can be accurately adapted to the current falling scene, so that the condition that acceleration exceeds the range and then leads to false alarm or misjudgment when the falling range is not carried out is avoided, and the accuracy and pertinence of the electronic device in falling adjustment are improved.
In addition, the electronic device can continuously detect falling in a segmented manner, and dynamic adjustment is carried out according to the falling range corresponding to each time period, so that the accuracy and the real-time performance of falling detection are improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of another fall adjustment method provided in the embodiment of the present application, and as shown in fig. 4, the fall adjustment method in the embodiment of the present application includes the following steps:
s401, when the electronic equipment detects that the mobile terminal is in a falling state, scene information of the electronic device is obtained.
S402, the electronic equipment acquires a preset second measuring range set of the acceleration sensor.
And S403, the electronic device queries the second range set according to the scene information, and determines a target range adapted to the scene information.
S404, the electronic equipment adjusts the range of the acceleration sensor according to the target range.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
In addition, the electronic device can accurately analyze the acceleration range required by the current scene according to the scene information, and the actual scene information is actually based on the use habit of the user to determine the common height of the user when the user uses the mobile phone in the current scene, so that the acceleration range correspondingly required in the scene is estimated, the purpose of dynamically adjusting the acceleration range is further achieved, and the accuracy and the flexibility of the electronic device in falling adjustment are improved.
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-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. 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.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes 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 programs include instructions for performing the following steps;
when the mobile terminal is detected to be in a falling state, acquiring preset information of the electronic device, wherein the preset information comprises falling duration or scene information, and the scene information comprises a current horizontal and vertical screen state and a foreground running application program of the electronic device;
and adjusting the measuring range of the acceleration sensor according to the preset information.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
In one possible example, the preset information includes a fall duration; in the aspect of adjusting the measurement range of the acceleration sensor according to the preset information, the instructions in the program are specifically configured to perform the following operations:
acquiring a preset first measuring range set of the acceleration sensor, wherein the first measuring range set comprises a corresponding relation between a falling duration and a measuring range;
inquiring the first range set according to the falling duration, and determining a target range adapted to the falling duration;
and adjusting the range of the acceleration sensor according to the target range.
In one possible example, the falling duration is a falling duration detected by the electronic device in real time during a falling process.
In one possible example, the fall duration is an actual fall duration determined by the electronic device according to a fall initiation time and a fall collision time.
In one possible example, the preset information includes scene information, and the scene information includes a current horizontal and vertical screen state and a foreground running application program of the electronic device; in the aspect of adjusting the measurement range of the acceleration sensor according to the preset information, the instructions in the program are specifically configured to perform the following operations:
acquiring a preset second range set of the acceleration sensor, wherein the second range set comprises a corresponding relation between scene information and ranges;
inquiring the second range set according to the scene information, and determining a target range adapted to the scene information;
and adjusting the range of the acceleration sensor according to the target range.
Fig. 6 is a block diagram of functional units of a fall adjustment device 600 according to an embodiment of the present application. The fall adjustment device 600 is applied to an electronic apparatus including an acceleration sensor, the fall adjustment device 600 includes a detection unit 601 and an adjustment unit 602, wherein,
the detection unit 601 is configured to acquire preset information of the electronic device when detecting that the mobile terminal is in a falling state, where the preset information includes falling duration or scene information, and the scene information includes a current horizontal and vertical screen state of the electronic device and a foreground running application program;
the adjusting unit 602 is configured to adjust the measurement range of the acceleration sensor according to the preset information.
It can be seen that, in the embodiment of the application, when the electronic device first detects that the electronic device is in a falling state, preset information of the electronic device is obtained, the preset information includes falling duration or scene information, the scene information includes a current horizontal and vertical screen state of the electronic device and an application program running in a foreground, and finally, the range of the acceleration sensor is adjusted according to the preset information. Because the electronic device can flexibly obtain different falling information according to different falling states, and further dynamically adjust the range of the measuring range, the problem that the error of a detection result is large due to the fact that the acceleration value exceeds the measuring range under the falling condition is avoided, and the accuracy and the intelligence of the electronic device during falling adjustment are improved.
In one possible example, the preset information includes a fall duration; in the aspect of adjusting the measurement range of the acceleration sensor according to the preset information, the drop adjustment device 600 further includes:
an obtaining unit 603, configured to obtain a preset first range set of the acceleration sensor, where the first range set includes a correspondence between a fall duration and a range;
a querying unit 604, configured to query the first range set according to the drop duration, and determine a target range adapted to the drop duration;
the adjusting unit 602 is further configured to adjust the range of the acceleration sensor according to the target range.
In one possible example, the falling duration is a falling duration detected by the electronic device in real time during a falling process.
In one possible example, the fall duration is an actual fall duration determined by the electronic device according to a fall initiation time and a fall collision time.
In one possible example, the preset information includes scene information, and the scene information includes a current horizontal and vertical screen state and a foreground running application program of the electronic device; in the aspect of adjusting the range of the acceleration sensor according to the preset information, the obtaining unit 603 is further configured to obtain a preset second range set of the acceleration sensor, where the second range set includes a corresponding relationship between scene information and a range;
the querying unit 604 is further configured to query the second range set according to the scene information, and determine a target range adapted to the scene information;
the adjusting unit 602 is further configured to adjust the range of the acceleration sensor according to the target range.
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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
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 division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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 invention 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
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 disks, read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (12)

1. A fall adjustment method applied to an electronic device including an acceleration sensor, the method comprising:
when the electronic equipment is detected to be in a falling state, acquiring preset information of the electronic equipment, wherein the preset information comprises falling duration or scene information, and the scene information comprises the current horizontal and vertical screen states of the electronic equipment and foreground running application programs;
and adjusting the measuring range of the acceleration sensor according to the preset information, wherein the measuring range of the acceleration sensor is the most appropriate measuring range in the second before the collision occurs.
2. The method of claim 1, wherein the preset information comprises a fall duration; the adjusting the measuring range of the acceleration sensor according to the preset information comprises:
acquiring a preset first measuring range set of the acceleration sensor, wherein the first measuring range set comprises a corresponding relation between a falling duration and a measuring range;
inquiring the first range set according to the falling duration, and determining a target range adapted to the falling duration;
and adjusting the range of the acceleration sensor according to the target range.
3. The method of claim 2, wherein the drop duration is a drop duration detected by the electronic device in real time during the drop.
4. The method of claim 2, wherein the fall duration is an actual fall duration determined by the electronic device based on a fall onset time and a fall impact time.
5. The method according to claim 1, wherein the preset information comprises scene information, and the scene information comprises current horizontal and vertical screen states and foreground running applications of the electronic device; the adjusting the measuring range of the acceleration sensor according to the preset information comprises:
acquiring a preset second range set of the acceleration sensor, wherein the second range set comprises a corresponding relation between scene information and ranges;
inquiring the second range set according to the scene information, and determining a target range adapted to the scene information;
and adjusting the range of the acceleration sensor according to the target range.
6. A fall adjustment device, applied to an electronic apparatus including an acceleration sensor, comprising a detection unit and an adjustment unit, wherein,
the detection unit is used for acquiring preset information of the electronic equipment when the electronic equipment is detected to be in a falling state, wherein the preset information comprises falling duration or scene information, and the scene information comprises the current horizontal and vertical screen states of the electronic equipment and foreground running application programs;
the adjusting unit is used for adjusting the measuring range of the acceleration sensor according to the preset information, and the measuring range of the acceleration sensor is the most appropriate measuring range in the second before the collision occurs.
7. The fall adjustment device according to claim 6, wherein the preset information includes a fall duration; in the aspect of adjusting the measurement range of the acceleration sensor according to the preset information, the adjusting unit is specifically configured to:
acquiring a preset first measuring range set of the acceleration sensor, wherein the first measuring range set comprises a corresponding relation between a falling duration and a measuring range;
inquiring the first range set according to the falling duration, and determining a target range adapted to the falling duration;
and adjusting the range of the acceleration sensor according to the target range.
8. The fall adjustment device of claim 7, wherein the fall duration is a fall time detected by the electronic device in real time.
9. The fall adjustment device according to claim 7, wherein the fall duration is an actual fall duration determined by the electronic device according to a fall start time and a fall collision time.
10. The fall adjustment device according to claim 6, wherein the preset information includes scene information, and the scene information includes a current landscape screen state and foreground running application programs of the electronic device; in the aspect of adjusting the measurement range of the acceleration sensor according to the preset information, the adjusting unit is specifically configured to:
acquiring a preset second range set of the acceleration sensor, wherein the second range set comprises a corresponding relation between scene information and ranges;
inquiring the second range set according to the scene information, and determining the target range adaptive to the falling duration;
and adjusting the range of the acceleration sensor according to the target range.
11. 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 in the method of any of claims 1-5.
12. 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 1-5.
CN201810398459.XA 2018-04-27 2018-04-27 Fall adjustment method and related product Active CN108777738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810398459.XA CN108777738B (en) 2018-04-27 2018-04-27 Fall adjustment method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810398459.XA CN108777738B (en) 2018-04-27 2018-04-27 Fall adjustment method and related product

Publications (2)

Publication Number Publication Date
CN108777738A CN108777738A (en) 2018-11-09
CN108777738B true CN108777738B (en) 2020-06-16

Family

ID=64026742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810398459.XA Active CN108777738B (en) 2018-04-27 2018-04-27 Fall adjustment method and related product

Country Status (1)

Country Link
CN (1) CN108777738B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209335B (en) * 2019-05-08 2021-12-14 珠海格力电器股份有限公司 Control method and device of intelligent terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009192417A (en) * 2008-02-15 2009-08-27 Panasonic Corp Fall detector and mobile device with the same
CN102654401A (en) * 2012-03-31 2012-09-05 江苏省东方世纪网络信息有限公司 Adaptive measurement range control method of gyroscopic sensor
CN103472262A (en) * 2013-09-09 2013-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Parameter calibration method of range-adjustable-type MEMS accelerometer
CN107238410A (en) * 2017-06-19 2017-10-10 上海斐讯数据通信技术有限公司 A kind of wearable device and intelligence sample method
CN107289915A (en) * 2017-06-15 2017-10-24 杭州士兰微电子股份有限公司 Measurement apparatus and measuring method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9234770B2 (en) * 2010-04-19 2016-01-12 Qualcomm Incorporated Dynamic sensor range

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009192417A (en) * 2008-02-15 2009-08-27 Panasonic Corp Fall detector and mobile device with the same
CN102654401A (en) * 2012-03-31 2012-09-05 江苏省东方世纪网络信息有限公司 Adaptive measurement range control method of gyroscopic sensor
CN103472262A (en) * 2013-09-09 2013-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Parameter calibration method of range-adjustable-type MEMS accelerometer
CN107289915A (en) * 2017-06-15 2017-10-24 杭州士兰微电子股份有限公司 Measurement apparatus and measuring method
CN107238410A (en) * 2017-06-19 2017-10-10 上海斐讯数据通信技术有限公司 A kind of wearable device and intelligence sample method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《70kg的物体坠落2米的冲击力是多少》;love就是不明白;《https://zhidao.baidu.com/question/1178917486108927899.html》;20161018;第1页 *
《题目》;无;《https://www.zybang.com/question/90137bcd01411acc064ffd9127e8b987.html》;20171014;第1页 *

Also Published As

Publication number Publication date
CN108777738A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN108550353B (en) Brightness adjusting method and related product
CN108769350B (en) Fall detection method and related device
CN106412249B (en) The detection method and device of drop information
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN108153503B (en) Display control method and related product
CN102662474A (en) Terminal and method and device for controlling terminal
CN111092748B (en) Alarm rule setting method, device, equipment and storage medium for Internet of things equipment
CN104166614A (en) Frame rate detecting method for mobile device and related device
EP3594848A1 (en) Queue information acquisition method, device and computer readable storage medium
CN109061611B (en) Proximity sensor calibration method and related device
CN108055386B (en) Mobile terminal, management method thereof and storage device
CN106101764A (en) A kind of methods, devices and systems showing video data
CN106453597A (en) Data synchronization cycle adjustment method, device and system
CN107016990B (en) Audio signal generation method and device
CN108777738B (en) Fall adjustment method and related product
CN105630352A (en) Mistaken touch prevention method and device
CN108304123B (en) Page display control method and related product
CN107302591A (en) Method of data synchronization, device, storage medium and electronic equipment
CN108601048B (en) Flow control method and mobile terminal
CN107908348B (en) The method and mobile terminal of display
JP2022008797A (en) Method for reducing power consumption of terminal, and terminal
CN112400308A (en) Charging prompting method and related product
CN106412250B (en) One kind falling statistical method and device
CN108337371B (en) Electronic device, fall protection method, device and computer readable storage medium
CN108307052B (en) Electronic device, fall control method and related product

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
GR01 Patent grant
GR01 Patent grant