CN107105074B - Sliding cover state detection method and mobile terminal - Google Patents

Sliding cover state detection method and mobile terminal Download PDF

Info

Publication number
CN107105074B
CN107105074B CN201710142778.XA CN201710142778A CN107105074B CN 107105074 B CN107105074 B CN 107105074B CN 201710142778 A CN201710142778 A CN 201710142778A CN 107105074 B CN107105074 B CN 107105074B
Authority
CN
China
Prior art keywords
sliding
sliding cover
state
acceleration sensor
mobile terminal
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
CN201710142778.XA
Other languages
Chinese (zh)
Other versions
CN107105074A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201710142778.XA priority Critical patent/CN107105074B/en
Publication of CN107105074A publication Critical patent/CN107105074A/en
Application granted granted Critical
Publication of CN107105074B publication Critical patent/CN107105074B/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/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0235Slidable or telescopic telephones, i.e. with a relative translation movement of the body parts; Telephones using a combination of translation and other relative motions of the body parts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for detecting the state of a sliding cover and a mobile terminal, wherein the method comprises the following steps: determining the difference value of the accelerations of the first acceleration sensor and the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative; and if the difference is positive and the absolute value of the difference is greater than a preset threshold value, determining that the state of the sliding cover is a starting sliding-open state. Therefore, the state of the sliding cover is determined by processing the acceleration acquired by the acceleration sensor arranged on the mobile terminal, extra hardware is not needed, waste is avoided, cost is reduced, other elements on the mobile terminal cannot be influenced, and the mobile terminal is light and thin.

Description

Sliding cover state detection method and mobile terminal
Technical Field
The present invention relates to the field of information processing, and in particular, to a method for detecting a state of a sliding cover and a mobile terminal.
Background
In the prior art, sliding and closing detection of a sliding cover of a terminal (such as a slider phone) provided with the sliding cover is usually completed by matching a hall device with a magnet. Taking a slide phone as an example, when the slide phone is closed, the hall device is overlapped with the magnet, and the hall device generates a related signal by sensing the triggering of the magnet to inform the mobile phone to execute a related operation related to the closing, so as to complete the detection of the state of the slide phone.
However, the inventor finds that the existing sliding and closing detection mode of the sliding cover needs to use a magnet, and components inside the mobile phone are sensitive to a magnetic device, so that the existence of the magnet can affect the effect of some related elements (such as a compass); in addition, the hall device and the magnetic device have no other function except for detecting the state of the sliding cover, which causes a waste, can increase the manufacturing cost of the mobile phone to a certain extent, and is not beneficial to the light and thin design of the mobile phone.
Therefore, how to realize the detection of the state of the sliding cover on the premise of avoiding the influence of the magnet on the relevant elements in the mobile phone in the existing scheme so as to avoid waste and save cost becomes a technical problem to be solved by technical personnel at present.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a sliding closure state detection method and a mobile terminal, which realize the detection of the sliding closure state by utilizing an acceleration sensor on the mobile terminal, thereby avoiding waste and saving cost.
Specifically, the present invention proposes the following specific examples:
the embodiment of the invention discloses a method for detecting the state of a sliding cover, which is applied to a mobile terminal comprising the sliding cover, wherein the sliding cover is provided with a first acceleration sensor, and the body of the mobile terminal is provided with a second acceleration sensor, and the method comprises the following steps:
determining the difference value of the acceleration of the first acceleration sensor and the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative;
and if the difference is positive and the absolute value of the difference is greater than a preset threshold value, determining that the state of the sliding cover is a starting sliding-open state.
In a specific embodiment, after determining that the state of the sliding cover is the start sliding-open state, the method further includes:
determining a first displacement between the first acceleration sensor and the second acceleration sensor based on an integration process of the acquired acceleration;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
In a specific embodiment, after determining that the state of the slide cover is the slide-open state, the method further comprises:
and if the difference is negative and the absolute value of the difference is greater than a preset threshold, determining that the state of the sliding cover is a starting closed state.
In a specific embodiment, after determining that the state of the slider is the actuation closed state, the method further comprises:
performing integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
In a specific embodiment, the method further comprises:
when the mobile terminal is in a standby state, acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through the MCU of the mobile terminal;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
The embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a sliding cover, the sliding cover is provided with a first acceleration sensor, and a body of the mobile terminal is provided with a second acceleration sensor, and the device includes:
the first determining module is used for determining the difference value of the acceleration of the first acceleration sensor and the acceleration of the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative;
and the second determining module is used for determining that the state of the sliding cover is a starting sliding-open state when the value of the difference is positive and the absolute value of the difference is greater than a preset threshold value.
In a specific embodiment, the second determining module is further configured to, after determining that the state of the slider is the start slide-open state, determine a first displacement between the first acceleration sensor and the second acceleration sensor based on integrating the acquired acceleration;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
In a specific embodiment, the second determining module is further configured to determine that the state of the sliding cover is the start-up closed state if the difference is negative and the absolute value of the difference is greater than a preset threshold after determining that the state of the sliding cover is the slide-open state.
In a specific embodiment, the second determining module is further configured to, after determining that the state of the slider is the start-up closed state, perform integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
In a specific embodiment, the mobile terminal further includes:
the activation module is used for acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through the MCU of the mobile terminal when the mobile terminal is in a standby state;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
Therefore, the embodiment of the invention discloses a method for detecting the state of a sliding cover and a mobile terminal, wherein the method is applied to the mobile terminal comprising the sliding cover, the sliding cover is provided with a first acceleration sensor, the body of the mobile terminal is provided with a second acceleration sensor, and the method comprises the following steps: determining the difference value of the acceleration of the first acceleration sensor and the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative; and if the difference is positive and the absolute value of the difference is greater than a preset threshold value, determining that the state of the sliding cover is a starting sliding-open state. Therefore, the state of the sliding cover is determined by processing the acceleration acquired by the acceleration sensor arranged on the mobile terminal comprising the sliding cover, no additional hardware is required to be added, the waste is avoided, the cost is reduced, other elements on the mobile terminal cannot be influenced, and the mobile terminal is light and thin.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a method for detecting a state of a sliding cover according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an acceleration sensor in a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a sliding direction in a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Various embodiments of the present disclosure will be described more fully hereinafter. The present disclosure is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit the various embodiments of the disclosure to the specific embodiments disclosed herein, but rather, the disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the various embodiments of the disclosure.
With the development of the technology and continuous new requirements, the double acceleration sensors are gradually popularized and used on the mobile terminal, the scheme of the application is based on the scheme, the existing two acceleration sensors on the mobile terminal with the sliding cover are utilized, the states of the body and the sliding cover of the mobile terminal are calculated through the acceleration acquired by the two acceleration sensors, and then the effect of confirming the state of the sliding cover on the mobile terminal is achieved; therefore, any extra hardware equipment is not required to be added, waste is avoided, cost is reduced, and due to the fact that extra hardware such as magnets is not added, other elements on the mobile terminal cannot be affected, and the mobile terminal is light and thin.
The embodiment 1 of the invention discloses a sliding closure state detection method, which is applied to a mobile terminal comprising a sliding closure, wherein a first acceleration sensor is arranged on the sliding closure, and a second acceleration sensor is arranged on a body of the mobile terminal.
As shown in fig. 1, the method comprises the steps of:
step 101, determining the difference value of the accelerations of a first acceleration sensor and a second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative;
and 102, if the difference is positive and the absolute value of the difference is greater than a preset threshold, determining that the state of the sliding cover is a starting sliding-open state.
In the embodiment shown in FIG. 2, A is a slider; b corresponds to the part of the mobile terminal except the sliding cover, namely the body of the mobile terminal; acceleration sensors are arranged on the A and the B, and respectively are a first acceleration sensor (namely, the acceleration sensor 1 in the figure 2) and a second acceleration sensor (namely, the acceleration sensor 2 in the figure 2); when the sliding cover is in a closed state, the first acceleration sensor and the second acceleration sensor can be on the same vertical line (namely, the difference value on the sliding direction axis is 0); besides, the two acceleration sensors may be on different vertical lines, for example, the difference between the axes in the sliding direction may be 1 cm (specifically, the distance between the two acceleration sensors is not necessarily 1 cm), or 0.5 cm, or other distances, which may be specifically determined according to the inherent installation positions of the two acceleration sensors.
Specifically, consider that present acceleration sensor can detect the direction of three axle, and the sliding closure of specific mobile terminal only can operate along this axle of slip direction (also slide direction axle), consequently when judging, only need obtain the epaxial acceleration that detects of slip direction can, reduce data processing on the one hand, also can improve the treatment effeciency on the other hand, reduce the consumption to the electric quantity, can also make the judgement to the state of sliding closure more real-time, and then guarantee user's use and experience.
The acceleration detected by the two acceleration sensors on the sliding direction axis of the sliding cover can be acquired simultaneously, so that the state of the sliding cover can be judged according to the data acquired simultaneously, and the judgment is ensured to be timely. The two accelerations may not be acquired at the same time, specifically, as long as the acquired accelerations correspond to time information, and in the subsequent processing process, processing (for example, determining a difference) is performed based on the accelerations at the same time.
Here, a specific example is described, and as shown in fig. 3, the leftward sliding direction is set to positive (in this example, the leftward sliding direction is set to positive because the slide cover slides leftward in response to an operation, and in other examples, the rightward sliding direction is set to negative because the leftward sliding direction is set to slide away similarly, and therefore, no redundancy is described here); specifically, for example, the user can slide up and down based on the difference of the reference standard system, and can also change to a sliding direction to the left or the right based on the change of the reference system, which is not described again; specifically, the acceleration in accordance with the slide-open direction of the slide cover is positive, and the acceleration opposite to the slide-open direction of the slide cover is negative.
In this case, the acceleration obtained by the acceleration sensor 1 is a 1; the acceleration obtained by the acceleration sensor 2 is a 2; difference processing is carried out on a1 and a2, namely, the difference value of (a1-a2) is calculated; if the absolute value of the difference is larger than the set value K and the difference is a positive number (namely, the sliding cover is confirmed to be far away from the mobile terminal body); the operation of starting the sliding of the sliding cover occurs, that is, the state of the sliding cover is the starting sliding state.
Specifically, the set value K is a deviation amount set based on the accuracy of the acceleration sensor itself and the environmental influence; if the absolute value is smaller than the set value K, the difference of the acceleration sensors or the measurement difference is considered to be caused.
Specifically, the state of the sliding cover may include: starting a slide-open state, starting a close state, and a close state.
For this purpose, after determining that the state of the sliding cover is the starting sliding-open state, the method further comprises the following steps:
determining a first displacement between the first acceleration sensor and the second acceleration sensor based on an integration process of the acquired acceleration;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
Specifically, still taking the above as an example for explanation, the formula involved in the specific integration process includes:
Figure BDA0001243316920000071
and
Figure BDA0001243316920000072
the time t in the formula here is a time period from the start of determining the start slide-off state to the current time, and the acceleration a1 and the acceleration a2 are the accelerations monitored by the first acceleration sensor and the second acceleration sensor, respectively; and La and Lb are the first displacements of A and B, respectively.
If the difference of the first displacement reaches the threshold of sliding, determining that the sliding cover is in a sliding state; after the mobile terminal, such as a mobile phone, slides open, in order to further improve user experience and ensure convenience of use of the user, operations corresponding to the slide-open state, such as turning on a screen, and the like, may be preset, and specific operations may be flexibly set as required, and the structure of the corresponding mobile terminal is as shown in fig. 4, and may be customized or modified by the user; thus, once the slide-off state is determined, the corresponding operation is performed.
The specific sliding cover opening threshold value can be determined jointly based on the axial difference value of the two acceleration sensors in the sliding direction when the sliding cover is in the closed state and the relative positions of the two acceleration sensors when the sliding cover is in the sliding state; if the difference value of the two acceleration sensors on the sliding direction axis is 0 when the sliding cover is in the closed state, the relative position of the two acceleration sensors when the sliding cover is in the sliding state, which is measured in advance, can be used for determining the relative position.
Further, after determining that the state of the slide cover is the slide-open state, the method further includes:
and if the difference is negative and the absolute value of the difference is greater than a preset threshold, determining that the state of the sliding cover is a starting closed state.
After determining that the state of the sliding cover is the sliding-open state, the changes of the accelerations a1 and a2 monitored by the two acceleration sensors are still monitored; if the value of (a1-a2) is determined to be negative and the absolute value of (a1-a2) is greater than the preset threshold value, that is, the absolute value of the difference is greater than the set value K, in this case, it can be determined that the sliding cover is approaching the mobile terminal body, and the state of the sliding cover is determined to be the starting and closing state.
After determining that the state of the slider is the actuation closed state, the method further comprises:
performing integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
Taking the state of the sliding cover as the starting closed state (for example named as time 1), integrating the acquired acceleration to determine the relative displacement, wherein a specific formula involved in the integration process comprises the following steps:
Figure BDA0001243316920000091
and
Figure BDA0001243316920000092
in the formula, time t is a length corresponding to time 1, and the acceleration a1 and the acceleration a2 are accelerations monitored by the first acceleration sensor and the second acceleration sensor, respectively; la and Lb are the second displacements of A and B, respectively.
If the difference of the second displacement reaches a closing threshold, determining that the sliding cover is in a closing state; meanwhile, in this case, an operation corresponding to the closed state, for example, turning off the screen, may also be preset, and the specific operation may also be set and modified according to the needs of the user; so that the operation is performed when it is determined that the slide cover is in the closed state.
The specific closing threshold can be determined jointly based on the axial difference value of the two acceleration sensors in the sliding direction when the sliding cover is in the closing state and the relative positions of the two acceleration sensors when the sliding cover is in the sliding state; if the axial difference in the sliding direction is 0, the relative position of the two acceleration sensors when the slide cover is in the slide-open state, which is measured in advance, can be used to determine the relative position.
To reduce power consumption, the method further comprises:
when the mobile terminal is in a standby state, acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through an MCU (Single Chip Microcomputer) of the mobile terminal;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
Specifically, still taking the above as an example for explanation, specifically, the above process is processed by the main chip, and in the standby state, only a simple MCU is operated inside the main chip, at this time, all data of the whole acceleration sensor cannot be processed, and the integral calculation of the length of the two parts a and B cannot be performed. In this case, only the changes of the acceleration a1 and a2 are detected, and the difference between the two (in the above example, (a1-a2)) is detected, and if the difference does not reach the wake-up threshold, the standby state is maintained, and if the difference exceeds the wake-up threshold, the main chip is woken up to perform the subsequent operation. The specific wake-up threshold may be a set value K.
Therefore, by applying the technical scheme of the application, the difference value of the acceleration of the first acceleration sensor and the acceleration of the second acceleration sensor along the sliding direction axis of the sliding cover is determined, the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative; and if the difference is positive and the absolute value of the difference is greater than a preset threshold value, determining that the state of the sliding cover is a starting sliding-open state. Therefore, the state of the sliding cover is determined by processing the acceleration acquired by the acceleration sensor arranged on the mobile terminal, extra hardware is not needed, waste is avoided, cost is reduced, other elements on the mobile terminal cannot be influenced, and the mobile terminal is light and thin.
In order to achieve the above technical object, embodiment 2 of the present invention further discloses a mobile terminal, where the mobile terminal includes a sliding cover, the sliding cover is provided with a first acceleration sensor, and a body of the mobile terminal is provided with a second acceleration sensor, as shown in fig. 5, the device includes:
a first determining module 201, configured to determine a difference between accelerations of the first acceleration sensor and the second acceleration sensor along an axis of the sliding direction of the sliding cover, where an acceleration consistent with the sliding direction of the sliding cover is positive, and an acceleration opposite to the sliding direction of the sliding cover is negative;
a second determining module 202, configured to determine that the state of the sliding cover is a start sliding-open state when the difference is positive and an absolute value of the difference is greater than a preset threshold.
In a specific application scenario, the second determining module 202 is further configured to, after determining that the state of the sliding cover is the start slide-open state, perform integration processing on the acquired acceleration to determine a first displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
In a specific application scenario, the second determining module 202 is further configured to determine that the state of the sliding cover is the starting closed state if the difference is negative and the absolute value of the difference is greater than a preset threshold after determining that the state of the sliding cover is the sliding open state.
In a specific application scenario, the second determining module 202 is further configured to, after determining that the state of the slider is the start-up closed state, perform integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
In a specific application scenario, the mobile terminal further includes:
the activation module is used for acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through the MCU of the mobile terminal when the mobile terminal is in a standby state;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
Therefore, the embodiment of the invention discloses a method for detecting the state of a sliding cover and a mobile terminal, wherein the method is applied to the mobile terminal comprising the sliding cover, the sliding cover is provided with a first acceleration sensor, the body of the mobile terminal is provided with a second acceleration sensor, and the method comprises the following steps: determining the difference value of the acceleration of the first acceleration sensor and the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative; and if the difference is positive and the absolute value of the difference is greater than a preset threshold value, determining that the state of the sliding cover is a starting sliding-open state. Therefore, the state of the sliding cover is determined by processing the acceleration acquired by the acceleration sensor arranged on the mobile terminal comprising the sliding cover, no additional hardware is required to be added, the waste is avoided, the cost is reduced, other elements on the mobile terminal cannot be influenced, and the mobile terminal is light and thin.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (8)

1. A method for detecting the state of a sliding cover is applied to a mobile terminal comprising the sliding cover, and is characterized in that a first acceleration sensor is arranged on the sliding cover, a second acceleration sensor is arranged on a body of the mobile terminal, and the method comprises the following steps:
determining the difference value of the accelerations of the first acceleration sensor and the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative;
if the difference is positive and the absolute value of the difference is greater than a preset threshold, determining that the state of the sliding cover is a starting sliding-open state;
after determining that the state of the sliding cover is the starting sliding-open state, the method further comprises the following steps:
determining a first displacement between the first acceleration sensor and the second acceleration sensor based on an integration process of the acquired acceleration;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
2. The method of claim 1, wherein after determining that the state of the slider is the slide-open state, the method further comprises:
and if the difference is negative and the absolute value of the difference is greater than a preset threshold, determining that the state of the sliding cover is a starting closed state.
3. The method of claim 2, wherein after determining that the state of the slider is the actuated closed state, the method further comprises:
performing integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
4. The method of claim 1, further comprising:
when the mobile terminal is in a standby state, acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through the MCU of the mobile terminal;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
5. The utility model provides a mobile terminal, mobile terminal contains the sliding closure, its characterized in that, be equipped with first acceleration sensor on the sliding closure, be equipped with second acceleration sensor on mobile terminal's the body, mobile terminal still includes:
the first determining module is used for determining the difference value of the acceleration of the first acceleration sensor and the acceleration of the second acceleration sensor along the sliding direction axis of the sliding cover, wherein the acceleration consistent with the sliding direction of the sliding cover is positive, and the acceleration opposite to the sliding direction of the sliding cover is negative;
the second determining module is used for determining that the state of the sliding cover is a starting sliding-open state when the difference value is positive and the absolute value of the difference value is greater than a preset threshold value;
the second determining module is further configured to, after determining that the state of the sliding cover is the start slide-open state, determine a first displacement between the first acceleration sensor and the second acceleration sensor based on integration processing of the acquired acceleration;
and if the difference value of the first displacement reaches the sliding-open threshold of the sliding cover, determining that the sliding cover is in the sliding-open state, and triggering the mobile terminal to execute the operation corresponding to the sliding-open state.
6. The mobile terminal of claim 5, wherein the second determining module is further configured to determine that the state of the sliding cover is the startup closed state if the difference is negative and the absolute value of the difference is greater than a preset threshold after determining that the state of the sliding cover is the sliding open state.
7. The mobile terminal of claim 6, wherein the second determining module is further configured to perform integration processing based on the acquired acceleration to determine a second displacement between the first acceleration sensor and the second acceleration sensor after determining that the state of the slider is the start-up closed state;
and if the difference value of the second displacement reaches the closing threshold of the sliding cover, determining that the sliding cover is in a closing state, and triggering the mobile terminal to execute the operation corresponding to the closing state.
8. The mobile terminal of claim 5, further comprising:
the activation module is used for acquiring the acceleration detected by the first acceleration sensor and the second acceleration sensor on the sliding direction axis of the sliding cover in real time through the MCU of the mobile terminal when the mobile terminal is in a standby state;
and if the difference value of the acquired accelerations reaches a preset awakening threshold, activating a main control chip so that the main control chip executes the operation of acquiring the accelerations detected by the first acceleration sensor and the second acceleration sensor on the sliding direction shaft of the sliding cover.
CN201710142778.XA 2017-03-10 2017-03-10 Sliding cover state detection method and mobile terminal Active CN107105074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710142778.XA CN107105074B (en) 2017-03-10 2017-03-10 Sliding cover state detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142778.XA CN107105074B (en) 2017-03-10 2017-03-10 Sliding cover state detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107105074A CN107105074A (en) 2017-08-29
CN107105074B true CN107105074B (en) 2021-03-09

Family

ID=59675911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142778.XA Active CN107105074B (en) 2017-03-10 2017-03-10 Sliding cover state detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107105074B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010100690A1 (en) * 2009-03-05 2010-09-10 パナソニック株式会社 Electronic apparatus and electronic apparatus charging system
CN101957638A (en) * 2009-07-13 2011-01-26 Lg电子株式会社 Portable terminal
CN102150098A (en) * 2008-09-08 2011-08-10 高通股份有限公司 Multi-panel electronic device
CN102150099A (en) * 2008-09-08 2011-08-10 高通股份有限公司 Multi-panel electronic device
CN102377864A (en) * 2010-08-13 2012-03-14 希姆通信息技术(上海)有限公司 Mobile phone motion detection method based on acceleration sensor
CN103401961A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for automatically lightening screen of mobile phone
WO2016058092A1 (en) * 2014-10-16 2016-04-21 Griffin Innovation Mobile device systems and methods

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050079902A1 (en) * 2003-10-08 2005-04-14 Wei-Chih Chen Positioning apparatus and method for a slide cover
US7352567B2 (en) * 2005-08-09 2008-04-01 Apple Inc. Methods and apparatuses for docking a portable electronic device that has a planar like configuration and that operates in multiple orientations
CN101132425A (en) * 2006-08-23 2008-02-27 乐金电子(昆山)电脑有限公司 Mobile phone for reducing key operation times
CN101558367A (en) * 2006-12-05 2009-10-14 索尼爱立信移动通讯有限公司 Method and system for detecting movement of an object
KR101535486B1 (en) * 2008-10-27 2015-07-09 엘지전자 주식회사 Portable terminal
US9154592B2 (en) * 2010-02-05 2015-10-06 Microsoft Technology Licensing, Llc Moveable housing of a mobile communications device
US20120034953A1 (en) * 2010-08-06 2012-02-09 Kyocera Corporation Wireless handset having combined multiple displays
US9541966B2 (en) * 2011-09-07 2017-01-10 Htc Corporation Systems and methods for utilizing acceleration event signatures

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102150098A (en) * 2008-09-08 2011-08-10 高通股份有限公司 Multi-panel electronic device
CN102150099A (en) * 2008-09-08 2011-08-10 高通股份有限公司 Multi-panel electronic device
WO2010100690A1 (en) * 2009-03-05 2010-09-10 パナソニック株式会社 Electronic apparatus and electronic apparatus charging system
CN101957638A (en) * 2009-07-13 2011-01-26 Lg电子株式会社 Portable terminal
CN102377864A (en) * 2010-08-13 2012-03-14 希姆通信息技术(上海)有限公司 Mobile phone motion detection method based on acceleration sensor
CN103401961A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for automatically lightening screen of mobile phone
WO2016058092A1 (en) * 2014-10-16 2016-04-21 Griffin Innovation Mobile device systems and methods

Also Published As

Publication number Publication date
CN107105074A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN104007882B (en) High-accuracy screen touch response method and device
CN103686515A (en) Earphone system and control method with automatic sensing detection and control functions
JP2020507500A5 (en)
EP3012812A2 (en) Portable security device
EP2687945B1 (en) Mobile device with sensor hub and method for controlling the device
CN104142728B (en) Electronic installation
US9200906B1 (en) System and methods for handheld device based battery efficient context monitoring, detection of a vehicular motion and identification of a specific vehicle
US9852594B2 (en) Electronic apparatus and method for determining states of door thereof
RU2015141213A (en) HELP IN AN UNEXPECTED THERMAL EVENT
CN104950318B (en) The electricity saving method and mobile device of a kind of d GPS locating module
CN103513788B (en) Based on the gesture identification method of gyro sensor, system and mobile terminal
TWI493334B (en) Poewr saving method and sensor management system implementing the same
CN104902171A (en) Camera angle correction method and terminal
WO2016095353A1 (en) Terminal power consumption-controlling method, device and terminal
CN104135576A (en) Compass positioning optimization method and system for mobile terminal
CN114994580A (en) Door magnetic anomaly detection system and detection method thereof
CN111121705A (en) System and method for detecting door opening state based on six-axis detection
CN106896387B (en) Method for determining whether portable terminal is located indoors or outdoors and portable terminal
CN106792520B (en) Position information recording method and apparatus
CN107105074B (en) Sliding cover state detection method and mobile terminal
US20150095678A1 (en) Movement-based state modification
CN105426095A (en) Method and apparatus for turning on imaging function of mobile terminal in screen-off state
CN107291434A (en) Electronic equipment and the method for changing its theme interface
CN204360392U (en) A kind of Fingerprint Lock preventing fingerprint from practising fraud
CN104732708A (en) Hydropower station warning system and method

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

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant