CN110244849B - Proximity recognition method and device, mobile terminal and storage medium - Google Patents

Proximity recognition method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110244849B
CN110244849B CN201910523750.XA CN201910523750A CN110244849B CN 110244849 B CN110244849 B CN 110244849B CN 201910523750 A CN201910523750 A CN 201910523750A CN 110244849 B CN110244849 B CN 110244849B
Authority
CN
China
Prior art keywords
mobile terminal
state information
touch
rear cover
touch screen
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
CN201910523750.XA
Other languages
Chinese (zh)
Other versions
CN110244849A (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 CN201910523750.XA priority Critical patent/CN110244849B/en
Publication of CN110244849A publication Critical patent/CN110244849A/en
Application granted granted Critical
Publication of CN110244849B publication Critical patent/CN110244849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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

Abstract

The embodiment of the application discloses a proximity identification method, a device, a mobile terminal and a storage medium, belonging to the technical field of computers, wherein the proximity identification method is applied to the mobile terminal and comprises the following steps: acquiring sensing data acquired by the mobile terminal, wherein the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal; determining whether a touch state of a rear cover of the mobile terminal is changed, wherein the touch state is used for indicating whether the rear cover is touched; and if the touch state of the rear cover is not changed, identifying whether an object close to the mobile terminal exists according to the induction data. According to the embodiment of the application, the screen occupation ratio of the touch screen can be improved, the cost of the mobile terminal can be saved, and the accuracy of proximity identification can be improved.

Description

Proximity recognition method and device, mobile terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a proximity identification method and device, a mobile terminal and a storage medium.
Background
The proximity sensing function is a function that the mobile terminal can detect a near-far state between an object and the mobile terminal, so as to perform a corresponding operation according to a detection result. For example, when the mobile terminal is in a call state, the screen may be turned off when it is determined that the object is in a close state, and the screen may be turned on when the object is in a far state.
In the related art, the proximity sensing function may be implemented by a proximity sensor. Generally, a proximity sensor is mounted on a front panel provided with two openings, and the proximity sensor emits infrared rays outward from one opening and receives reflected infrared rays from the other opening, thereby detecting a near-far state between an object and a mobile terminal according to the intensity of the received infrared rays.
Disclosure of Invention
The embodiment of the application provides a proximity identification method and device, a mobile terminal and a storage medium.
According to an aspect of the present application, there is provided a proximity recognition method applied to a mobile terminal, the method including:
acquiring sensing data acquired by the mobile terminal, wherein the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal;
determining whether a touch state of a rear cover of the mobile terminal is changed, wherein the touch state is used for indicating whether the rear cover is touched;
and if the touch state of the rear cover is not changed, identifying whether an object close to the mobile terminal exists according to the induction data.
According to another aspect of the present application, there is provided a proximity recognition apparatus applied to a mobile terminal, the apparatus including:
the acquisition module is used for acquiring sensing data acquired by the mobile terminal, and the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal;
the mobile terminal comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether the touch state of a rear cover of the mobile terminal is changed or not, and the touch state is used for indicating whether the rear cover is touched or not;
and the identification module is used for identifying whether an object close to the mobile terminal exists or not according to the induction data when the determination module determines that the touch state of the rear cover does not change.
According to still another aspect of the present application, there is provided a mobile terminal including a processor, a memory and a touch screen, the memory having at least one instruction stored therein, the instruction in the memory being loaded and executed by the processor to implement the proximity recognition method as described above; at least one instruction is stored in a memory in the touch screen, and the instructions in the memory in the touch screen are loaded and executed by a processor in the touch screen to implement the proximity recognition method as described above.
According to yet another aspect of the present application, there is provided a computer-readable storage medium in a mobile terminal, the storage medium having at least one instruction stored therein, the instructions in the storage medium in the mobile terminal being loaded and executed by a processor to implement the proximity recognition method as described above; at least one instruction is stored in the storage medium in the touch screen in the mobile terminal, and the instruction in the storage medium in the touch screen is loaded and executed by a processor in the touch screen to implement the proximity recognition method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced 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. 1 is a flow chart of a proximity identification method provided by an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of interaction of internal components in a mobile terminal according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a proximity identification method provided by an exemplary embodiment of the present application;
FIG. 4 is a flow chart of some of the steps provided based on the proximity recognition method shown in FIG. 3;
FIG. 5 is a flow chart of a portion of the steps provided based on the proximity recognition method shown in FIG. 3;
FIG. 6 is a flow chart provided based on the proximity recognition method shown in FIG. 3;
fig. 7 is a block diagram of a proximity recognition apparatus according to an exemplary embodiment of the present application;
fig. 8 is a block diagram of a proximity recognition apparatus according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a mobile terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application is applied to an application scene of proximity recognition by using the touch screen, and the mobile terminal can execute corresponding operation according to a recognition result of the proximity recognition. The mobile terminal may be a handheld electronic device, for example, the mobile terminal may include a mobile phone, a tablet computer, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-to-read machine, an electronic book, an electronic dictionary, a vehicle-mounted terminal, a Virtual Reality (VR) player terminal, an Augmented Reality (AR) player terminal, or the like.
According to different applications running when the touch screen in the mobile terminal performs proximity recognition, the mobile terminal can perform different operations according to recognition results, and two common application scenarios are introduced below.
1. On-off screen control during call
The mobile terminal starts a proximity sensing function of the touch screen when a call is made, proximity recognition is carried out through the touch screen, and when an object is recognized to be in a close state, a user generally thinks that the mobile terminal is placed beside an ear for the call, so that in order to prevent the mobile terminal from responding to the mistaken touch of the ear or a human face on the touch screen, screen-off operation can be carried out on the touch screen; when the object is recognized to be in the far state, the user is generally considered to possibly operate the touch screen, so that the touch screen can be subjected to screen lightening operation in order to respond to the operation of the user on the touch screen. That is, the mobile terminal may perform a screen-off operation when recognizing that the object is in the close state through the touch screen, and perform a screen-on operation when recognizing that the object is in the distant state through the touch screen. The approaching state may be that the distance between the object and the mobile terminal is smaller than a distance threshold, and the departing state may be that the distance between the object and the mobile terminal is greater than or equal to the distance threshold.
The call may be an operator call triggered by a telephone application, a network call triggered by an instant messaging application, or other types of calls, which is not limited in this embodiment.
2. Play mode control during voice play
The mobile terminal starts a proximity sensing function of the touch screen when playing voice, proximity recognition is carried out through the touch screen, and when recognizing that an object is in a close state, a user generally thinks that the mobile terminal is placed beside the ear to listen to the voice, so that the voice can be played in a receiver mode in order to protect the privacy of the user; when the object is far away from the user, the user may be in a noisy environment and cannot hear the voice clearly or need to do other things, so that the user can listen to the voice clearly. That is, the mobile terminal may play the voice in the earpiece mode when recognizing that the object is in the close state through the touch screen, and play the voice in the speaker mode when recognizing that the object is in the far state through the touch screen.
The voice may be a voice message received and sent by the instant messaging application, and the embodiment is not limited.
Of course, the mobile terminal may also combine the first application scenario and the second application scenario, for example, perform the on/off screen control and the play mode control during a call, or perform the on/off screen control and the play mode control during voice playing, which is not limited in this embodiment.
The proximity sensing function of the touch screen applies the capacitive sensing principle. After the proximity sensing function is started, the touch screen can acquire capacitance data at regular time. Because the human body is a conductor, when the ear or the face of the user approaches or moves away from the touch screen, the capacitance data collected by the touch screen can change, and therefore whether the object is in the approaching state or the moving away state can be identified according to the change of the capacitance data.
In an optional embodiment, a capacitance threshold may be set, the acquired capacitance data is compared with the capacitance threshold, and when the capacitance data is greater than the capacitance threshold, it is determined that the object is in a close state; when the capacitance data is less than or equal to the capacitance threshold, it is determined that the object is in a distant state.
The mobile terminal comprises a touch screen, a middle frame and a rear cover, wherein the middle frame is used for connecting the touch screen and the rear cover. When a user is in a call or plays voice, the user has two hand-held postures, the first hand-held posture is that all fingers of the user touch the middle frame and do not touch the rear cover; the second hand-held gesture is a user's finger touching both the middle frame and the back cover. Since the middle frame and the rear cover are generally made of a conductive material and a person is a conductor, the inventors found that: when a user switches a hand-held gesture (namely, the situation that the back cover is not touched by fingers is changed into the situation that the back cover is touched by fingers, or the situation that the back cover is touched by fingers is changed into the situation that the back cover is not touched by fingers), capacitance data measured by the touch screen is influenced due to the change of the conductive quantity of the fingers, so that the mobile terminal mistakenly thinks that an object is approaching to or far away from the mobile terminal, and the accuracy of approaching identification is influenced.
The middle frame and the rear cover may be made of the same material, for example, the middle frame and the rear cover are made of plastic material, or the middle frame and the rear cover are made of metal material. The middle frame and the rear cover may be made of different materials, for example, the middle frame is made of plastic and the rear cover is made of metal, or the middle frame is made of metal and the rear cover is made of plastic.
The inventor also finds that when the middle frame and the rear cover are made of different materials, the switching of the handheld posture also involves the change of the touched conductive material, and the change of the touched conductive material has a large influence on the capacitance data measured by the touch screen, so that when the middle frame and the rear cover are made of different materials, the switching of the handheld posture has a large influence on the accuracy of the proximity recognition.
If the erroneous judgment of the proximity recognition caused by the switching of the handheld posture is to be avoided, a contact sensor may be disposed on the rear cover, and when the touch screen acquires capacitance data, whether the touch state of the rear cover changes or not may be detected by the contact sensor, so as to determine whether the proximity recognition is performed based on the capacitance data according to the detection result. For example, when the detection result is that the touch state of the rear cover is not changed, proximity recognition is performed based on the capacitance data; when the detection result is that the touch state of the rear cover has changed, proximity recognition is not performed based on the capacitance data.
The touch sensor is a sensor that can sense whether the rear cover is touched, for example, the touch sensor may be a capacitance sensor, a pressure sensor, a switch with touch contacts, and the like, and the embodiment is not limited thereto.
The touch sensor is disposed in a rear cover of the mobile terminal and connected to a processor in the mobile terminal through a flat cable, or connected to the touch screen through a flat cable, thereby processing a measurement parameter of the touch sensor. The following describes how the touch sensor is mounted in the mobile terminal.
In an alternative embodiment, the rear cover may include a touch sensor therein, and the touch sensor may be disposed in a predetermined area where a user's finger touches the rear cover when talking or playing a voice.
In an alternative embodiment, multiple touch sensors may be included in the back cover, and the touch sensors may be evenly distributed throughout the back cover. Alternatively, when the handset is disposed on the top of the mobile terminal, the touch sensors may be uniformly distributed on the lower half portion of the rear cover; when the earpiece is disposed at the bottom of the mobile terminal, the touch sensors may be uniformly distributed at the upper half of the rear cover.
Please refer to fig. 1, which is a flowchart illustrating a proximity recognition method according to an exemplary embodiment of the present application. The proximity recognition method may be applied to the mobile terminal shown above. In fig. 1, the proximity recognition method includes:
and step 110, acquiring sensing data acquired by the mobile terminal, wherein the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal.
The mobile terminal may periodically collect sensing data, which may be capacitance data as described above. The acquisition period of the sensing data may be set as required, and this embodiment is not limited.
And step 120, determining whether a touch state of a rear cover of the mobile terminal is changed, wherein the touch state is used for indicating whether the rear cover is touched.
Since the sensing data may be caused by a change in the holding posture of the user or by an object approaching or moving away from the user, the mobile terminal may detect whether the touch state of the rear cover has changed. If the touch state of the rear cover is not changed, it indicates that the sensing data is caused by an object approaching or departing, and the mobile terminal performs step 130.
And step 130, if the touch state of the rear cover is not changed, identifying whether an object close to the mobile terminal exists according to the sensing data.
The mobile terminal can set a capacitance threshold value, compare the acquired sensing data with the capacitance threshold value, and determine that the object is in a close state when the sensing data is greater than the capacitance threshold value; and when the sensing data is smaller than or equal to the capacitance threshold value, determining that the object is in a far state.
In summary, according to the proximity identification method provided by this embodiment, since the sensing data can be collected by the mobile terminal, and whether an object close to the mobile terminal exists is identified according to the sensing data, it is avoided that a proximity sensor is arranged in the mobile terminal, so that the screen occupation ratio of the touch screen can be improved, and the cost of the mobile terminal can be saved.
The mobile terminal can determine whether the touch state of the rear cover changes after acquiring the sensing data, and when the touch state of the rear cover does not change, the sensing data is determined to be generated by the fact that an object moves relative to the mobile terminal instead of being generated by the change of the handheld posture, and then proximity recognition is performed according to the sensing data, so that the problem of misjudgment caused by the fact that the proximity recognition is performed due to the change of the handheld posture can be solved, and the accuracy of the proximity recognition is improved.
In the embodiment of the present application, the mobile terminal includes a processor, a touch screen, and a contact sensor in the rear cover, and the approach identification method implemented by the mobile terminal may be briefly summarized as follows: the contact sensor sends the measurement parameters to the processor; the processor generates first state information according to the measurement parameters and sends the first state information to the touch screen; the touch screen determines whether to perform proximity recognition according to the first state information, please refer to fig. 2. The complete flow of the approach identification method is described below with the embodiment shown in fig. 3.
Please refer to fig. 3, which is a flowchart illustrating a proximity recognition method according to another exemplary embodiment of the present application. The proximity recognition method may be applied to the mobile terminal shown above. In fig. 3, the proximity recognition method includes:
and 310, acquiring sensing data acquired by the mobile terminal, wherein the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal.
In this embodiment, the sensing data may be acquired by the touch screen. At this time, obtaining the sensing data collected by the mobile terminal may be implemented as: and acquiring sensing data acquired by the touch screen.
The touch screen has a contact mode and a suspension mode, wherein the contact mode is used for implementing a touch recognition function, the suspension mode is used for implementing a proximity sensing function, and the definition of the proximity sensing function is described in detail in the foregoing description.
Since the touch screen has two modes, a switch can be set, and the mode of the touch screen is controlled by the switch. For example, if the mobile terminal controls the switch to enable the touch screen to be in a contact mode, the touch recognition function is turned on, and the proximity sensing function is turned off; or, the mobile terminal enables the touch screen to be in a suspended mode by controlling the switch, which is equivalent to turning on the proximity sensing function and turning off the touch recognition function. In an optional implementation manner, the mobile terminal may automatically control the touch screen to start the proximity sensing function when talking or playing voice.
In this embodiment, the processor may control the touch screen to start the proximity sensing function, and the starting manner is described below.
In an optional embodiment, the processor may write the first numerical value corresponding to the start in a register corresponding to the touch screen during a call or voice playing, and start the proximity sensing function when the touch screen reads the first data from the register. Correspondingly, the processor can write the closed corresponding second data into the register when the proximity sensing function of the touch screen needs to be closed, and close the proximity sensing function when the touch screen reads the second data from the register. Wherein the first data is different from the second data. The register corresponding to the touch screen refers to a register corresponding to a section of address space in a memory of the touch screen.
Optionally, the processor may write data into the register through an SPI (Serial Peripheral Interface) or an I2C (Inter-Integrated Circuit) Interface, which is not limited in this embodiment.
After the proximity sensing function is turned on, the touch screen may periodically collect sensing data, which may be capacitance data as described above. The acquisition period of the sensing data may be set as required, and this embodiment is not limited.
Since the sensing data may be caused by a change in the holding posture of the user or by an object approaching or moving away from the user, it is possible to detect whether the touch state of the rear cover has changed. If the touch state of the rear cover is not changed, it indicates that the sensing data is caused by an object approaching or departing, and step 380 is executed; if the touch state of the rear cover is changed, it indicates that the sensing data may be caused by the change of the user holding posture, and step 390 is executed.
When detecting whether the touch state of the rear cover changes, the mobile terminal may obtain first state information and second state information, where the first state information is used to indicate the touch state of the rear cover measured this time, and the second state information is used to indicate the touch state of the rear cover measured last time, so that the mobile terminal may determine whether the touch state of the rear cover changes according to the first state information and the second state information.
When the first status information is obtained, the mobile terminal may read the measurement parameter of the touch sensor and generate the first status information according to the measurement parameter, and the above steps may be executed by a processor in the mobile terminal, that is, the processor executes step 320 and step 330.
At step 320, the measured parameters of the touch sensor are read by the processor.
Wherein, when the touch sensor is a capacitive sensor, the measurement parameter is capacitance data; when the touch sensor is a pressure sensor, the measured parameter is pressure data; when the touch sensor is a switch having touch contacts, the measurement parameter is switch data.
In this embodiment, the processor may periodically obtain the measurement parameters of the touch sensor after the proximity sensing function of the touch screen is turned on. In an alternative embodiment, the processor may start a timer when the proximity sensing function is started, and periodically acquire the measurement parameter through the timer. The period of the timer may be set as required, and this embodiment is not limited. For example, the period of the timer may be set to 500 ms.
And 330, generating first state information according to the measurement parameters through the processor, wherein the first state information is used for indicating the touch state of the rear cover measured this time.
The touch state indicated by the first state information may be a state in which the rear cover is touched or a state in which the rear cover is not touched. In this embodiment, the processor may set different data for the two states to distinguish, and the first state information at this time may also be referred to as a flag bit. For example, taking 0 and 1 as examples to represent the first state information, when the back cover is touched, the first state information is set to 1; when the rear cover is not touched, setting the first state information to be 0; or, when the back cover is touched, setting the first state information to 0; when the rear cover is not touched, the first state information is set to 1. Of course, other settings may be set to represent the first state information, and this embodiment is not limited.
In an alternative embodiment, the processor may set a threshold value based on the type of touch sensor and generate the first status information based on the measured parameter and the threshold value. For example, when the touch sensor is a capacitive sensor, a capacitance threshold is set; when the touch sensor is a pressure sensor, a pressure threshold is set.
In an alternative embodiment, the processor may further set a voltage threshold, convert the measured parameter into voltage data, and generate the first status information according to the voltage data and the voltage threshold, and the processor may generate the first status information through the following sub-steps, please refer to fig. 4.
The measured parameters are converted into voltage data by the processor, step 331.
The processor can obtain a calculation formula between the measurement parameters and the voltage values, the actually measured measurement parameters are used as the input of the calculation formula, and the output of the calculation formula is used as voltage data; or, the processor may preset a correspondence between the measurement parameter and the voltage data, and search for voltage data corresponding to the actually measured measurement parameter in the correspondence; alternatively, the processor may convert the measurement parameter into the voltage data by other means, which is not limited in this embodiment.
Step 332, comparing the voltage data with a preset voltage threshold by the processor.
In step 333, when the voltage data is greater than the voltage threshold, first state information indicating that the back cover is touched is generated by the processor.
When the voltage data is greater than the voltage threshold, indicating that the back cover is touched, the processor may generate first state information with data of 1.
When the voltage data is less than or equal to the voltage threshold, first state information indicating that the back cover is not touched is generated by the processor, step 334.
When the voltage data is less than or equal to the voltage threshold, indicating that the rear cover is not touched, the processor may generate first state information with data of 0.
After the processor acquires the first state information, the first state information may be sent to the touch screen, and the touch screen determines whether the touch state of the rear cover has changed based on the acquired first state information and the acquired second state information. That is, the processor performs step 340 to transmit the first state information, and the touch screen performs step 350 and 370 to determine whether the touch state of the rear cover has changed.
And step 340, sending the first state information to the touch screen through the processor.
In this embodiment, the processor may write the first state information into a register corresponding to the touch screen. The register in this step may be the same as or different from the register in step 310, and this embodiment is not limited.
Optionally, the processor may write the first state information into the register through the SPI or the I2C interface, which is not limited in this embodiment.
Still taking the example in step 330 as an illustration, when the first status information is 1, the processor writes 1 into the register; when the first state information is 0, the processor writes 0 in the register.
Step 350, receiving the first state information through the touch screen.
In this embodiment, the touch screen may read the first state information from a register corresponding to the touch screen.
Still taking the example in step 330 for illustration, when the data in the register is 1, the first state information read by the touch screen is 1; when the data in the register is 0, the first state information read by the touch screen is 0.
And step 360, acquiring second state information through the touch screen, wherein the second state information is used for indicating the last measured touch state of the rear cover.
The touch state indicated by the second state information may be a state in which the rear cover is touched, or may be a state in which the rear cover is not touched, and the representation form of the touch state is the same as that of the first state information, which is described in detail in step 330.
In the last period of acquiring the induction data, the touch screen reads first state information from a register corresponding to the touch screen, and the first state information is stored in a memory, and the first state information is second state information in the current period.
The second state information is represented by 0 and 1, and when the back cover is touched, the second state information read by the touch screen is 1; when the rear cover is not touched, the second state information read by the touch screen is 0.
And step 370, determining whether the touch state of the rear cover changes according to the first state information and the second state information through the touch screen.
In an alternative embodiment, the touch screen may determine whether the touch state of the rear cover is changed through the following sub-steps, please refer to fig. 5.
Step 371 compares the first state information and the second state information through the touch screen.
The touch screen can compare the data of the first state information and the second state information, and when the data of the first state information and the data of the second state information are the same, for example, both are 0 or both are 1, the first state information and the second state information are determined to be the same; when the data of the two are different, for example, one is 0 and the other is 1, it is determined that the first state information and the second state information are different.
And 372, when the first state information and the second state information are the same, determining that the touch state of the rear cover is not changed through the touch screen.
And step 373, determining that the touch state of the rear cover is changed through the touch screen when the first state information is different from the second state information.
It should be noted that the touch screen may update the second state information in the memory with the first state information after reading the first state information. The touch screen can also update the second state information in the memory by using the first state information when the first state information is determined to be different from the second state information; the second state information in the memory is maintained unchanged upon determining that the first state information is the same as the second state information.
And 380, if the touch state of the rear cover is not changed, identifying whether an object close to the mobile terminal exists according to the sensing data.
The touch screen can be provided with a capacitance threshold value, the acquired sensing data is compared with the capacitance threshold value, when the sensing data is larger than the capacitance threshold value, an object close to the mobile terminal is determined to exist, namely the object is in a close state, and a first sensing result is generated; when the sensing data is smaller than or equal to the capacitance threshold value, it is determined that no object close to the mobile terminal exists, namely the object exists in a far state, and a second sensing result is generated. And the data of the first sensing result is different from that of the second sensing result.
The touch screen may send the generated sensing result (the first sensing result or the second sensing result) to the processor, and the processor performs a corresponding operation according to the sensing result. In an alternative embodiment, the touch screen may report the sensing result to the processor by triggering an interrupt.
Step 390, if the touch status of the rear cover changes, the sensing data is discarded.
The touch screen may not process the collected sensing data, or the touch screen may discard the collected sensing data, so as to save a storage space of the touch screen.
In summary, according to the proximity identification method provided in this embodiment, since the touch screen in the mobile terminal has a proximity sensing function, sensing data can be collected through the touch screen, and whether an object close to the mobile terminal exists is identified according to the sensing data, so that a proximity sensor is not arranged in the mobile terminal, which not only can improve the screen occupation ratio of the touch screen, but also can save the cost of the mobile terminal.
If the touch screen performs proximity recognition when a user holds the mobile terminal, whether the touch screen contacts the rear cover when the user holds the mobile terminal may cause a change in the sensing data, so that the mobile terminal can determine whether the touch state of the rear cover changes after acquiring the sensing data, determine that the sensing data is generated by an object moving relative to the mobile terminal instead of a change in a holding posture when the touch screen does not change, and perform proximity recognition according to the sensing data, thereby avoiding a problem of erroneous judgment caused by proximity recognition due to the change in the holding posture, and improving accuracy of the proximity recognition.
The touch screen can discard the acquired sensing data so as to save the storage space of the touch screen.
The following describes an implementation process of the embodiment of the present application by taking an example that the processor acquires measurement parameters of the touch sensor at regular time through the timer, and the first status information is a flag bit, please refer to fig. 6.
And step 610, a processor in the mobile terminal starts a proximity sensing function of the touch screen and starts a timer to read measurement parameters of the contact sensor in the rear cover at regular time.
And step 620, the processor generates a current state zone bit according to the measurement parameters and informs the touch screen.
In step 630, the touch screen obtains and stores the current status flag.
Step 640, the touch screen judges whether the current status flag bit is the same as the last status flag bit, if so, step 650 is executed; if not, go to step 680.
And 650, detecting the capacitance change at regular time by the touch screen, and acquiring current capacitance data to perform approaching and departing data processing to obtain an approaching state or a departing state.
And step 660, reporting the approaching state or the departing state to the processor by the touch screen through triggering the interrupt.
In step 670, the processor executes a preset operation after acquiring the approaching state or the departing state.
In step 680, the touch screen detects the capacitance change at regular time, filters out the current capacitance data, maintains the last approaching state or leaving state unchanged, and executes step 670.
Two application scenarios related to the embodiments of the present application are described below.
1. After the proximity sensing function of the touch screen is started, the processor determines that the back cover is touched at the initial time according to the contact sensor, the generated first state information is 1, and the 1 is written into a register corresponding to the touch screen; the touch screen writes the information 1 as second state information into a memory, and acquires induction data in a first period; in a first period, the processor determines that the current back cover is touched according to the touch sensor, and the generated first state information is 1, and the 1 is written into the register; and if the touch screen determines that the first state information is the same as the second state information, proximity identification is carried out according to the induction data collected in the first period. The touch screen collects sensing data in a second period; in a second period, the processor determines that the front cover and the rear cover are not touched according to the touch sensor, the generated first state information is 0, and 0 is written into the register; and if the touch screen determines that the first state information is different from the second state information, discarding the induction data acquired in the second period, keeping the result of the approach identification in the first period unchanged, and writing 0 as the second state information into the memory.
2. After the proximity sensing function of the touch screen is started, the processor determines that the rear cover is not touched initially according to the contact sensor, the generated first state information is 0, and 0 is written into a register corresponding to the touch screen; the touch screen writes 0 as second state information into the memory, and acquires induction data in a first period; in a first period, the processor determines that the current back cover is touched according to the touch sensor, and the generated first state information is 1, and the 1 is written into the register; and if the touch screen determines that the first state information is different from the second state information, discarding the induction data acquired in the first period, and writing 1 as the second state information into the memory. The touch screen collects sensing data in a second period; in a second period, the processor determines that the current back cover is touched according to the touch sensor, and the generated first state information is 1, and 1 is written into the register; and if the touch screen determines that the first state information is the same as the second state information, performing proximity identification on the induction data acquired in the second period.
The first point to be explained is: the embodiment shown in fig. 3 is described by taking the example of generating the first state information by the processor as an example, in another implementation, the first state information may be generated by the touch screen
Step 320 may be replaced with: and reading the measurement parameters of the touch sensor through the touch screen.
Step 330 may be replaced with: and generating first state information according to the measurement parameters through the touch screen, wherein the first state information is used for indicating the touch state of the rear cover measured at this time.
Step 350 is performed after step 330, omitting step 340, and the remaining steps are unchanged.
The second point to be explained is: the embodiment shown in fig. 3 is described by taking an example that the touch screen detects whether the touch state of the rear cover changes and performs proximity recognition according to the detection result and the sensing data, and in another embodiment, the processor may detect whether the touch state of the rear cover changes and perform proximity recognition according to the detection result and the sensing data, and then
Step 310 may be replaced with: and acquiring sensing data acquired by the touch screen through the processor, wherein the sensing data is acquired based on the capacitance sensing change of the touch screen.
Step 360 is performed after step 330, omitting steps 340 and 350.
Step 360 may be replaced with: second state information indicating a last measured touch state of the rear cover is acquired by the processor.
Step 370 may be replaced with: and determining whether the touch state of the rear cover is changed or not according to the first state information and the second state information through a processor.
The remaining steps were unchanged.
The third point to be noted is: the embodiment shown in fig. 3 is described by taking an example that the processor generates the first state information, the touch screen detects whether the touch state of the rear cover is changed, and proximity recognition is performed according to the detection result and the sensing data, and in another embodiment, the first state information may be generated by the touch screen, the processor detects whether the touch state of the rear cover is changed, and proximity recognition is performed according to the detection result and the sensing data
Step 310 may be replaced with: and acquiring sensing data acquired by the touch screen through the processor, wherein the sensing data is acquired based on the capacitance sensing change of the touch screen.
Step 320 may be replaced with: and reading the measurement parameters of the touch sensor through the touch screen.
Step 330 may be replaced with: and generating first state information according to the measurement parameters through the touch screen, wherein the first state information is used for indicating the touch state of the rear cover measured at this time.
Step 340 may be replaced with: and sending the first state information to the processor through the touch screen.
Step 350 may be replaced with: first state information is received by a processor.
Step 360 may be replaced with: second state information indicating a last measured touch state of the rear cover is acquired by the processor.
Step 370 may be replaced with: and determining whether the touch state of the rear cover is changed or not according to the first state information and the second state information through a processor.
The remaining steps were unchanged.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 7 shows a block diagram of a proximity recognition apparatus according to an exemplary embodiment of the present application. The proximity recognition means may be implemented as all or part of the mobile terminal by software, hardware or a combination of both. The device includes:
an obtaining module 710, configured to obtain sensing data collected by a mobile terminal, where the sensing data is obtained based on a capacitance sensing change of a touch screen of the mobile terminal;
a determining module 720, configured to determine whether a touch state of a rear cover of the mobile terminal has changed, where the touch state is used to indicate whether the rear cover is touched;
the identifying module 730 is configured to identify whether an object approaching the mobile terminal exists according to the sensing data when the determining module 720 determines that the touch state of the rear cover does not change.
Referring to fig. 8, in an alternative embodiment, the apparatus further includes:
and a discarding module 740, configured to discard the sensing data when the touch state of the rear cover changes.
In an optional embodiment, the determining module 720 is further configured to:
acquiring first state information, wherein the first state information is used for indicating the touch state of the rear cover measured this time;
acquiring second state information, wherein the second state information is used for indicating the last measured touch state of the rear cover;
and determining whether the touch state of the rear cover changes according to the first state information and the second state information.
In an alternative embodiment, a touch sensor is disposed in the rear cover, and the determining module 720 is further configured to:
reading a measurement parameter of the touch sensor;
first state information is generated from the measured parameter.
In an optional embodiment, the determining module 720 is further configured to:
converting the measured parameter into voltage data;
comparing the voltage data with a preset voltage threshold;
when the voltage data is larger than the voltage threshold, generating first state information for indicating that the back cover is touched;
when the voltage data is less than or equal to the voltage threshold, first state information indicating that the back cover is not touched is generated.
In an optional embodiment, the determining module 720 is further configured to:
comparing the first state information and the second state information;
when the first state information and the second state information are the same, determining that the touch state of the rear cover is not changed;
when the first state information and the second state information are different, it is determined that the touch state of the rear cover has changed.
In an optional embodiment, the identifying module 730 is further configured to:
comparing the induction data with a preset capacitance threshold value;
when the induction data is larger than the capacitance threshold value, determining that an object close to the mobile terminal exists;
and when the sensing data is less than or equal to the capacitance threshold value, determining that no object close to the mobile terminal exists.
In summary, the proximity identification device provided in this embodiment has a proximity sensing function for the touch screen in the mobile terminal, so that sensing data can be collected through the touch screen, and whether an object close to the mobile terminal exists is identified according to the sensing data, and thus, a proximity sensor is not required to be arranged in the mobile terminal, which can improve the screen occupation ratio of the touch screen, and can also save the cost of the mobile terminal.
If the touch screen performs proximity recognition when a user holds the mobile terminal, whether the touch screen contacts the rear cover when the user holds the mobile terminal may cause a change in the sensing data, so that the mobile terminal can determine whether the touch state of the rear cover changes after acquiring the sensing data, determine that the sensing data is generated by an object moving relative to the mobile terminal instead of a change in a holding posture when the touch screen does not change, and perform proximity recognition according to the sensing data, thereby avoiding a problem of erroneous judgment caused by proximity recognition due to the change in the holding posture, and improving accuracy of the proximity recognition.
The touch screen can discard the acquired sensing data so as to save the storage space of the touch screen.
Fig. 9 is a block diagram of a mobile terminal according to an exemplary embodiment of the present application, where the mobile terminal includes a processor 910, a memory 920 and a touch screen 930, and the memory 920 stores at least one instruction, and the instruction in the memory is loaded and executed by the processor 910 to implement the proximity recognition method according to the above embodiments; at least one instruction is stored in a memory in the touch screen, and the instruction in the memory in the touch screen is loaded and executed by a processor in the touch screen to implement the proximity recognition method as described in the above embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where at least one instruction is stored in the storage medium in a mobile terminal, and the instruction in the storage medium in the mobile terminal is loaded and executed by a processor to implement the proximity identification method according to the above embodiments; at least one instruction is stored in the storage medium in the touch screen in the mobile terminal, and the instruction in the storage medium in the touch screen is loaded and executed by a processor in the touch screen to implement the proximity recognition method according to the above embodiments.
It should be noted that: in the proximity recognition apparatus provided in the above embodiment, when the proximity recognition method is executed, only the division of the above functional modules is taken as an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the approach identification device and the approach identification method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A proximity identification method is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring sensing data acquired by the mobile terminal, wherein the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal;
acquiring first state information, wherein the first state information is used for indicating the touch state of a rear cover of the mobile terminal measured this time, and the touch state is used for indicating whether the rear cover is touched or not;
acquiring second state information, wherein the second state information is used for indicating the last measured touch state of the rear cover;
comparing the first state information and the second state information;
when the first state information and the second state information are the same, determining that the touch state of the rear cover is not changed;
and if the touch state of the rear cover is not changed, judging whether an object close to the mobile terminal exists according to the induction data.
2. The method of claim 1, further comprising:
and if the touch state of the rear cover is changed, discarding the induction data.
3. The method of claim 1 or 2, wherein a touch sensor is disposed in the rear cover, and the acquiring first status information comprises:
reading the measurement parameters of the touch sensor;
and generating the first state information according to the measurement parameters.
4. The method of claim 3, wherein the generating the first state information according to the measurement parameter comprises:
converting the measured parameter into voltage data;
comparing the voltage data with a preset voltage threshold;
when the voltage data is larger than the voltage threshold, generating first state information for indicating that the back cover is touched;
when the voltage data is less than or equal to the voltage threshold, first state information indicating that the rear cover is not touched is generated.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
determining that the touch state of the rear cover has changed when the first state information and the second state information are different.
6. The method according to claim 1, wherein the determining whether the object near the mobile terminal exists according to the sensing data comprises:
comparing the sensing data with a preset capacitance threshold value;
when the sensing data is larger than the capacitance threshold value, determining that an object close to the mobile terminal exists;
when the sensing data is smaller than or equal to the capacitance threshold value, determining that no object close to the mobile terminal exists.
7. A proximity recognition apparatus applied to a mobile terminal, the apparatus comprising:
the acquisition module is used for acquiring sensing data acquired by the mobile terminal, and the sensing data is acquired based on capacitance sensing change of a touch screen of the mobile terminal;
the mobile terminal comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring first state information, the first state information is used for indicating the touch state of a rear cover of the mobile terminal measured this time, and the touch state is used for indicating whether the rear cover is touched; acquiring second state information, wherein the second state information is used for indicating the last measured touch state of the rear cover; comparing the first state information and the second state information; when the first state information and the second state information are the same, determining that the touch state of the rear cover is not changed;
and the identification module is used for identifying whether an object close to the mobile terminal exists or not according to the induction data when the determination module determines that the touch state of the rear cover does not change.
8. A mobile terminal, characterized in that the mobile terminal comprises a processor, a memory and a touch screen, wherein at least one instruction is stored in the memory, and the instruction in the memory is loaded and executed by the processor to realize the proximity recognition method according to any one of claims 1 to 6; at least one instruction is stored in a memory in the touch screen, the instructions in the memory in the touch screen being loaded and executed by a processor in the touch screen to implement the proximity recognition method of any of claims 1 to 6.
9. A computer-readable storage medium, wherein at least one instruction is stored in the storage medium in a mobile terminal, and the instruction in the storage medium in the mobile terminal is loaded and executed by a processor to implement the proximity recognition method according to any one of claims 1 to 6; at least one instruction is stored in the storage medium in a touch screen in the mobile terminal, and the instruction in the storage medium in the touch screen is loaded and executed by a processor in the touch screen to implement the proximity recognition method according to any one of claims 1 to 6.
CN201910523750.XA 2019-06-17 2019-06-17 Proximity recognition method and device, mobile terminal and storage medium Active CN110244849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910523750.XA CN110244849B (en) 2019-06-17 2019-06-17 Proximity recognition method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910523750.XA CN110244849B (en) 2019-06-17 2019-06-17 Proximity recognition method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110244849A CN110244849A (en) 2019-09-17
CN110244849B true CN110244849B (en) 2022-04-15

Family

ID=67887597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910523750.XA Active CN110244849B (en) 2019-06-17 2019-06-17 Proximity recognition method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110244849B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111123941B (en) * 2019-12-27 2022-01-11 深圳市越疆科技有限公司 Object area identification method, device, equipment and computer readable storage medium
TWI749967B (en) * 2020-06-17 2021-12-11 禾瑞亞科技股份有限公司 Touch sensitive processing method and apparatus and touch system
CN113687147A (en) * 2021-08-17 2021-11-23 Oppo广东移动通信有限公司 Capacitance sensing assembly and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629183A (en) * 2012-02-29 2012-08-08 华为终端有限公司 Terminal screen control method and device
CN104732167A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Mobile terminal and detecting control method used for same
CN105138171A (en) * 2015-08-28 2015-12-09 小米科技有限责任公司 Touch press key and fingerprint recognition method
CN105474131A (en) * 2013-08-13 2016-04-06 三星电子株式会社 Method and apparatus for recognizing grip state in electronic device
CN106354268A (en) * 2016-09-29 2017-01-25 努比亚技术有限公司 Screen control system based on proximity sensor and mobile terminal
CN106371682A (en) * 2016-09-13 2017-02-01 努比亚技术有限公司 Gesture recognition system based on proximity sensor and method thereof
CN106375510A (en) * 2016-11-30 2017-02-01 深圳天珑无线科技有限公司 Mobile terminal
CN106657602A (en) * 2016-10-26 2017-05-10 努比亚技术有限公司 Conversation screen-off system based on proximity sensor and mobile terminal
CN108196709A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 The touch screen control method and control system of a kind of intelligent terminal
CN108683751A (en) * 2018-03-28 2018-10-19 广东欧珀移动通信有限公司 Control method, control device, electronic device, computer storage media and equipment
CN109032420A (en) * 2018-08-31 2018-12-18 京东方科技集团股份有限公司 The operating method of display device and display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8493356B2 (en) * 2010-04-22 2013-07-23 Maxim Integrated Products, Inc. Noise cancellation technique for capacitive touchscreen controller using differential sensing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629183A (en) * 2012-02-29 2012-08-08 华为终端有限公司 Terminal screen control method and device
CN105474131A (en) * 2013-08-13 2016-04-06 三星电子株式会社 Method and apparatus for recognizing grip state in electronic device
CN104732167A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Mobile terminal and detecting control method used for same
CN105138171A (en) * 2015-08-28 2015-12-09 小米科技有限责任公司 Touch press key and fingerprint recognition method
CN106371682A (en) * 2016-09-13 2017-02-01 努比亚技术有限公司 Gesture recognition system based on proximity sensor and method thereof
CN106354268A (en) * 2016-09-29 2017-01-25 努比亚技术有限公司 Screen control system based on proximity sensor and mobile terminal
CN106657602A (en) * 2016-10-26 2017-05-10 努比亚技术有限公司 Conversation screen-off system based on proximity sensor and mobile terminal
CN106375510A (en) * 2016-11-30 2017-02-01 深圳天珑无线科技有限公司 Mobile terminal
CN108196709A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 The touch screen control method and control system of a kind of intelligent terminal
CN108683751A (en) * 2018-03-28 2018-10-19 广东欧珀移动通信有限公司 Control method, control device, electronic device, computer storage media and equipment
CN109032420A (en) * 2018-08-31 2018-12-18 京东方科技集团股份有限公司 The operating method of display device and display device

Also Published As

Publication number Publication date
CN110244849A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN104951159B (en) Touch key-press and fingerprint identification method
CN110244849B (en) Proximity recognition method and device, mobile terminal and storage medium
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN104020878A (en) Touch input control method and device
CN106873834B (en) Method and device for identifying triggering of key and mobile terminal
EP3435216A1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of damaged touch screen
CN105242870A (en) False touch method and device of terminal with touch screen
CN105511631A (en) Gesture recognition method and device
CN104598111A (en) Display mode switching method and display mode switching device
CN106055144B (en) Control method and device, the electronic equipment of touch screen state
US10951754B2 (en) Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
CN112650405B (en) Interaction method of electronic equipment and electronic equipment
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN107239166A (en) It is a kind of to adjust method and the mobile terminal that interface of mobile terminal is shown
CN108319886A (en) Fingerprint identification method and device
CN106201108B (en) Gloves control mode touch mode control method and device and electronic equipment
US11482037B2 (en) User interface display method of terminal, and terminal
CN111954110A (en) Earphone interaction method and earphone
CN106325623A (en) Method and apparatus for monitoring touch on touch screen and terminal device
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN105204713A (en) Incoming call responding method and device
CN113778255B (en) Touch recognition method and device
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN113495609A (en) Sleep state judgment method and system, wearable device and storage medium

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