CN106161732B - Control method and device and electronic equipment - Google Patents

Control method and device and electronic equipment Download PDF

Info

Publication number
CN106161732B
CN106161732B CN201510135062.8A CN201510135062A CN106161732B CN 106161732 B CN106161732 B CN 106161732B CN 201510135062 A CN201510135062 A CN 201510135062A CN 106161732 B CN106161732 B CN 106161732B
Authority
CN
China
Prior art keywords
interrupt signal
hall device
signal
preset time
interrupt
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
CN201510135062.8A
Other languages
Chinese (zh)
Other versions
CN106161732A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510135062.8A priority Critical patent/CN106161732B/en
Publication of CN106161732A publication Critical patent/CN106161732A/en
Application granted granted Critical
Publication of CN106161732B publication Critical patent/CN106161732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

According to the control method, the control device and the electronic equipment, after a first interrupt signal from the Hall device is received, the generation condition of the Hall device interrupt signal in a preset time length is continuously obtained, wherein the preset time length is smaller than the minimum limit value of the time interval between two times of normal interrupt signals of the Hall device; on the basis, whether the first interrupt signal is the misoperation signal of the Hall device is identified, and when the first interrupt signal is the misoperation signal, the first interrupt signal is discarded. According to the method and the device, whether the interrupt signal of the Hall device is the misoperation signal or not is identified through the generation condition of the interrupt signal of the Hall device in the preset time, so that the misoperation signal is filtered, and the user experience is improved.

Description

Control method and device and electronic equipment
Technical Field
The invention belongs to the technical field of anti-interference detection, and particularly relates to a control method, a control device and electronic equipment.
Background
The Hall device is a magnetic sensitive device, and the smart phone can have the identification function of covering and opening the leather cover of the smart phone by arranging the Hall device on the top of the smart phone. When the leather sheath (the built-in magnet block) is closed, the Hall device detects that the magnetic field exceeds the limit value, and then an interrupt signal is generated to indicate that the mobile phone enters the leather sheath mode.
At present, in the Design of a dual-antenna mobile phone, a hall device and a transmitting antenna of a radio frequency signal are generally arranged at the top of the mobile phone, the distance is short, and due to factors such as a structure ID (Industrial Design), the difficulty and the cost for moving the hall device and the transmitting antenna far away are high. However, when the distance between the two is short, signal interference is very easy to occur, that is, the hall device is erroneously operated under the interference of the radio frequency transmission signal, thereby reducing the user experience.
Disclosure of Invention
In view of the above, the present invention provides a control method, a control device and an electronic device, and aims to solve the problem that in a dual-antenna mobile phone, a hall device is erroneously operated due to interference of an interference signal, and further erroneously instructs the mobile phone to perform state switching.
Therefore, the invention discloses the following technical scheme:
a control method is applied to electronic equipment with an antenna and a Hall device, and the method comprises the following steps:
receiving a first interrupt signal from the Hall device;
acquiring the generation condition of the Hall device interrupt signal within a preset time length; the preset duration takes the receiving time of the first interrupt signal as an initial time, and is less than the lowest limit value of the time interval between two normal interrupt signals of the Hall device;
identifying whether the first interrupt signal is a misoperation signal of the Hall device or not according to the generation condition of the Hall device interrupt signal in the preset time length;
and if the first interrupt signal is the misoperation signal of the Hall device, discarding the first interrupt signal.
In the above method, preferably, the obtaining of the generation condition of the hall device interrupt signal within the preset time duration is:
and counting the number of interrupt signals received from the Hall device in the preset time.
In the above method, preferably, the identifying whether the first interrupt signal is a misoperation signal of the hall device according to the generation status of the hall device interrupt signal within the preset time period includes:
judging whether the number of the interrupt signals is greater than 0;
and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
The method preferably further includes, after discarding the first interrupt signal:
taking the last interrupt signal received in the preset time as a first interrupt signal, and returning to execute the steps: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
In the above method, preferably, the obtaining of the generation condition of the hall device interrupt signal within the preset time duration is:
and continuously receiving a second interrupt signal from the Hall device within the preset time length.
In the above method, preferably, the identifying whether the first interrupt signal is a misoperation signal of the hall device according to the generation status of the hall device interrupt signal within the preset time period includes:
judging whether a second interrupt signal from the Hall device is received within the preset time length;
and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
The method preferably further includes, after discarding the first interrupt signal:
taking the second interrupt signal as a first interrupt signal, and returning to execute the steps of: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
The above method, preferably, further comprises:
and if the first interrupt signal is not the misoperation signal of the Hall device, controlling the electronic equipment to switch the state according to the first interrupt signal.
A control device is applied to an electronic device with an antenna and a Hall device, and the device comprises:
the receiving module is used for receiving a first interrupt signal from the Hall device;
the acquisition module is used for acquiring the generation condition of the Hall device interrupt signal within a preset time length; the preset duration takes the receiving time of the first interrupt signal as an initial time, and is less than the lowest limit value of the time interval between two normal interrupt signals of the Hall device;
the identification module is used for identifying whether the first interrupt signal is the misoperation signal of the Hall device according to the generation condition of the Hall device interrupt signal in the preset time length;
and the discarding module is used for discarding the first interrupt signal when the first interrupt signal is an misoperation signal of the Hall device.
Preferably, in the above apparatus, the obtaining module is:
and the counting unit is used for counting the number of the interrupt signals received from the Hall device in the preset time.
The above apparatus, preferably, the identification module includes:
the first judging unit is used for judging whether the number of the interrupt signals is greater than 0;
and the first identification unit is used for identifying the first interrupt signal as an misoperation signal of the Hall device when the judgment result of the first judgment unit is yes.
The above apparatus, preferably, further comprises:
and the first returning module is used for taking the last interrupt signal received within the preset time length as a first interrupt signal and returning to execute the acquiring module.
Preferably, in the above apparatus, the obtaining module is:
and the continuous receiving unit is used for continuously receiving the second interrupt signal from the Hall device within the preset time length.
The above apparatus, preferably, the identification module includes:
the second judging unit is used for judging whether a second interrupt signal from the Hall device is received within the preset time length;
and the second identification unit is used for identifying the first interrupt signal as the misoperation signal of the Hall device when the judgment result of the second judgment unit is yes.
The above apparatus, preferably, further comprises:
and the second returning module is used for taking the second interrupt signal as the first interrupt signal and returning to execute the acquiring module.
The above apparatus, preferably, further comprises:
and the control module is used for controlling the electronic equipment to switch the state according to the first interrupt signal when the first interrupt signal is not the misoperation signal of the Hall device.
An electronic device having an antenna and a hall device includes the control apparatus as described above.
According to the scheme, after the first interrupt signal from the Hall device is received, the generation condition of the interrupt signal of the Hall device in the preset time length is continuously acquired, wherein the preset time length is smaller than the minimum value of the time interval between two times of normal interrupt signals of the Hall device; on the basis, whether the first interrupt signal is the misoperation signal of the Hall device is identified, and when the first interrupt signal is the misoperation signal, the first interrupt signal is discarded. It is thus clear that this application is based on in the real scene, and when the user actually operated the cell-phone leather sheath, the time interval between the normal interrupt signal of hall device obviously is distinguished from this characteristics of the maloperation time interval that antenna interference signal leads to, through the production situation of hall device interrupt signal in the predetermined duration, comes the interrupt signal of discerning hall device whether to be the maloperation signal, and then realizes filtering the maloperation signal, has promoted user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a first embodiment of a control method provided by the present application;
fig. 2 is a flowchart of a second embodiment of a control method provided in the present application;
fig. 3 is a flowchart of a third embodiment of a control method provided in the present application;
FIG. 4 is a flowchart of a fourth embodiment of a control method provided in the present application;
fig. 5 is a flowchart of a fifth embodiment of a control method provided in the present application;
FIG. 6 is a flowchart of a sixth embodiment of a control method provided by the present application;
fig. 7 is a schematic structural diagram of a seventh embodiment of a control device provided by the present application;
fig. 8 is a schematic structural diagram of an eighth embodiment of a control device provided in the present application;
FIG. 9 is a schematic structural diagram of a ninth embodiment of a control apparatus provided in the present application;
FIG. 10 is a schematic structural diagram of a tenth embodiment of a control device provided in the present application;
FIG. 11 is a schematic structural diagram of an eleventh embodiment of a control device provided in the present application;
fig. 12 is a schematic structural diagram of a twelfth embodiment of a control device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a control method provided in the present application, where the method is applicable to an electronic device such as a smart phone, a tablet computer, and the like having an antenna and a hall device, as shown in fig. 1, the method may include the following steps:
s101: a first interrupt signal is received from the hall device.
In the current design of a dual-antenna mobile phone, a hall device and a transmitting antenna of a radio frequency signal are generally arranged at the top of the mobile phone, and the hall device and the transmitting antenna are close to each other. When the top antenna transmits a radio frequency signal, a magnetic field in a nearby area is strengthened, and the hall device is easily interfered to cause misoperation, so that the first interrupt signal received in the step can be a normal interrupt signal sent by the hall device when a user operates the mobile phone leather sheath, and can also be a misoperation signal caused by interference.
S102: acquiring the generation condition of the Hall device interrupt signal within a preset time length; the preset time length takes the receiving time of the first interrupt signal as the starting time, and the preset time length is less than the lowest limit value of the time interval between two normal interrupt signals of the Hall device.
The radio frequency signal is modulated and has an electrical wave with a certain transmission frequency.
When a user uses a dual-antenna mobile phone to make a call and send short messages, the antenna at the top of the mobile phone can transmit radio frequency signals at a certain transmission frequency to realize communication with a base station, and the working frequency of the current mobile phone system is generally between 800MHz and 1800 MHz.
In a double-antenna mobile phone with a top antenna and a Hall device closer in layout distance, the probability of signal interference is often higher, for example, 2 or 3 times of interference may occur within 100ms, when a user actually operates a mobile phone leather case, the limitation of manual operation is limited, the time interval of twice closing the leather case is longer, generally not less than 200ms, and therefore the time interval between twice normal interrupt signals of the Hall device and the time interval between misoperation caused by interference signals are obviously different.
Based on the method, after the interrupt signal to be identified of the Hall device is received, whether the received interrupt signal to be identified is the misoperation signal or not is identified by continuously acquiring the generation condition of the interrupt signal of the Hall device within the preset time length.
The preset time length can be determined according to the condition that the Hall device is interfered by a top antenna signal, and the preset time length is smaller than the minimum limit value of the time interval between two times of normal interrupt signals of the Hall device. For example, assume that it is known through preliminary experimental tests that: interference may occur 2 or 3 times within 100ms, and the minimum value of the time interval between two normal interrupt signals of the hall device is 200ms, the preset time duration may be set to a time duration capable of effectively identifying the hall device operation signal (identifying whether the hall device operation signal is a misoperation signal) such as 100ms, 120ms, 180ms, and the like.
S103: and identifying whether the first interrupt signal is a misoperation signal of the Hall device or not according to the generation condition of the Hall device interrupt signal in the preset time.
As can be seen from the above description, in the two cases that the first interrupt signal is a normal signal or an incorrect operation signal of the hall device, the generation conditions of the hall device interrupt signal within the preset time length are different, and in the case of the normal signal, it is impossible to receive another interrupt signal of the hall device within the preset time length; in the case of a malfunction, the opposite is true.
Therefore, whether the first interrupt signal is the misoperation signal of the hall device can be specifically identified according to the generation condition of the hall device interrupt signal in the preset time length.
S104: and if the first interrupt signal is the misoperation signal of the Hall device, discarding the first interrupt signal.
When the first interrupt signal is identified as the misoperation signal, the first interrupt signal is discarded to avoid mistakenly indicating the mobile phone to switch the state (for example, indicating the mobile phone to enter a leather sheath mode), so that the misoperation signal caused by the interference is filtered.
According to the scheme, after the first interrupt signal from the Hall device is received, the generation condition of the interrupt signal of the Hall device in the preset time length is continuously acquired, wherein the preset time length is smaller than the minimum value of the time interval between two times of normal interrupt signals of the Hall device; on the basis, whether the first interrupt signal is the misoperation signal of the Hall device is identified, and when the first interrupt signal is the misoperation signal, the first interrupt signal is discarded. It is thus clear that this application is based on in the real scene, and when the user actually operated the cell-phone leather sheath, the time interval between the normal interrupt signal of hall device obviously is distinguished from this characteristics of the maloperation time interval that antenna interference signal leads to, through the production situation of hall device interrupt signal in the predetermined duration, comes the interrupt signal of discerning hall device whether to be the maloperation signal, and then realizes filtering the maloperation signal, has promoted user experience.
Example two
Referring to fig. 2, fig. 2 is a flowchart of a second embodiment of a control method provided in the present application. Wherein, the step S102 can be implemented by the following steps:
s201: and counting the number of interrupt signals received from the Hall device in the preset time.
On this basis, as shown in fig. 2, the step S103 can be implemented by the following steps:
s202: judging whether the number of the interrupt signals is greater than 0;
s203: and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
The present embodiment takes the preset time duration of 180ms as an example for explanation.
After receiving the first interrupt signal of the hall device, the present embodiment continues to count the number of interrupt signals received from the hall device in the next 180ms, and if the number of interrupt signals is greater than 0, for example, it is assumed that 3 interrupt signals are received in 180 ms.
Because of the limitation of manual operation capability, after the user operates the mobile phone to enable the Hall device to send an interrupt signal once, the user cannot operate the mobile phone again within a short time of 180ms to enable the Hall device to generate the interrupt signal, so that the first interrupt signal can be judged to be a misoperation signal of the Hall device; and otherwise, judging the first interrupt signal as a normal signal of the Hall device.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flowchart of a third embodiment of a control method provided in the present application, and this embodiment is based on the scheme provided by the second embodiment, as shown in fig. 3, the method may further include:
s301: taking the last interrupt signal received in the preset time as a first interrupt signal, and returning to execute the steps: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
Based on the same reason as the first interrupt signal, in the interrupt signals received within the preset time period, other signals except the last interrupt signal may not be normal signals of the hall device, so that the embodiment directly replaces the first interrupt signal with the last interrupt signal received within the preset time period, and returns to the identification process of the first interrupt signal, that is, the identification of each interrupt signal of the hall device is realized by executing the signal identification process in a circulating manner.
Example four
Referring to fig. 4, fig. 4 is a flowchart of a fourth embodiment of a control method provided in the present application. Wherein, the step S102 can be implemented by the following steps:
s401: and continuously receiving a second interrupt signal from the Hall device within the preset time length.
On this basis, as shown in fig. 4, the step S103 can be implemented by the following steps:
s402: judging whether a second interrupt signal from the Hall device is received within the preset time length;
s403: and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
Different from the second embodiment, after receiving the first interrupt signal of the hall device, the second embodiment starts timing, continues to receive the interrupt signal from the hall device within a preset time period, and stops the timing once receiving the interrupt signal.
Still taking the preset time duration of 180ms as an example, assuming that the interrupt signal of the hall device is received again after the first interrupt signal is received for 70ms, the current time is stopped (different from the second time duration of 180ms), and it is determined that the first interrupt signal is the misoperation signal of the hall device. Otherwise, if the preset time length is timed to be up and the interruption signal is not received all the time, the first interruption signal is judged to be the normal signal of the Hall device.
EXAMPLE five
Referring to fig. 5, fig. 5 is a flowchart of a fifth embodiment of a control method provided in the present application, and this embodiment is based on a scheme provided in a fourth embodiment, as shown in fig. 5, the method may further include:
s501: taking the second interrupt signal as a first interrupt signal, and returning to execute the steps of: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
After the first interrupt signal is identified as the misoperation signal, the second interrupt signal received within the preset time still needs to be identified, for example, the signal received at the time of timing 70ms in the fourth embodiment, for this reason, the second interrupt signal replaces the first interrupt signal, and the identification flow of the first interrupt signal is returned, and the identification of each signal of the hall device is realized by executing the signal identification flow in a circulating manner.
EXAMPLE six
Referring to fig. 6, fig. 6 is a flowchart of a sixth embodiment of a control method provided in the present application, in this embodiment, the method may further include:
s601: and if the first interrupt signal is not the misoperation signal of the Hall device, controlling the electronic equipment to switch the state according to the first interrupt signal.
When the first interrupt signal is not a misoperation signal of the Hall device, namely the first interrupt signal is a normal signal, the electronic equipment can be switched to a normal state according to the signal, and the electronic equipment is controlled to enter a leather sheath mode.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of a seventh embodiment of a control apparatus provided in the present application, where the apparatus may be applied to an electronic device such as a smart phone, a tablet computer, and the like having an antenna and a hall device, and as shown in fig. 7, the apparatus may include a receiving module 100, an obtaining module 200, an identifying module 300, and a discarding module 400.
The receiving module 100 is configured to receive a first interrupt signal from the hall device.
In the current design of a dual-antenna mobile phone, a hall device and a transmitting antenna of a radio frequency signal are generally arranged at the top of the mobile phone, and the hall device and the transmitting antenna are close to each other. When the top antenna transmits a radio frequency signal, a magnetic field in a nearby area is strengthened, and the hall device is easily interfered to cause misoperation, so that the received first interrupt signal can be a normal interrupt signal sent by the hall device when a user operates the mobile phone leather sheath, and can also be a misoperation signal caused by interference.
The obtaining module 200 is configured to obtain a generation status of the hall device interrupt signal within a preset time period, where the preset time period takes a receiving time of the first interrupt signal as an initial time, and the preset time period is less than a minimum limit of a time interval between two normal interrupt signals of the hall device.
The radio frequency signal is modulated and has an electrical wave with a certain transmission frequency.
When a user uses a dual-antenna mobile phone to make a call and send short messages, the antenna at the top of the mobile phone can transmit radio frequency signals at a certain transmission frequency to realize communication with a base station, and the working frequency of the current mobile phone system is generally between 800MHz and 1800 MHz.
In a double-antenna mobile phone with a top antenna and a Hall device closer in layout distance, the probability of signal interference is often higher, for example, 2 or 3 times of interference may occur within 100ms, when a user actually operates a mobile phone leather case, the limitation of manual operation is limited, the time interval of twice closing the leather case is longer, generally not less than 200ms, and therefore the time interval between twice normal interrupt signals of the Hall device and the time interval between misoperation caused by interference signals are different.
Based on the method, after the interrupt signal to be identified of the Hall device is received, whether the received interrupt signal to be identified is the misoperation signal or not is identified by continuously acquiring the generation condition of the interrupt signal of the Hall device within the preset time length.
The preset time length can be determined according to the condition that the Hall device is interfered by a top antenna signal, and the preset time length is smaller than the minimum limit value of the time interval between two times of normal interrupt signals of the Hall device. For example, assume that it is known through preliminary experimental tests that: interference may occur 2 or 3 times within 100ms, and the minimum value of the time interval between two normal interrupt signals of the hall device is 200ms, the preset time duration may be set to a time duration capable of effectively identifying the hall device operation signal (identifying whether the hall device operation signal is a misoperation signal) such as 100ms, 120ms, 180ms, and the like.
The identifying module 300 is configured to identify whether the first interrupt signal is a misoperation signal of the hall device according to a generation status of the hall device interrupt signal within the preset time period.
As can be seen from the above description, in the two cases that the first interrupt signal is a normal signal or an incorrect operation signal of the hall device, the generation conditions of the hall device interrupt signal within the preset time length are different, and in the case of the normal signal, it is impossible to receive another interrupt signal of the hall device within the preset time length; in the case of a malfunction, the opposite is true.
Therefore, whether the first interrupt signal is the misoperation signal of the Hall device can be specifically identified according to the generation condition of the Hall device interrupt signal in the preset time length.
A discarding module 400, configured to discard the first interrupt signal when the first interrupt signal is an erroneous operation signal of the hall device.
When the first interrupt signal is identified as the misoperation signal, the first interrupt signal is discarded to avoid mistakenly indicating the mobile phone to switch the state (for example, indicating the mobile phone to enter a leather sheath mode), so that the misoperation signal caused by the interference is filtered.
According to the scheme, after the first interrupt signal from the Hall device is received, the generation condition of the interrupt signal of the Hall device in the preset time length is continuously acquired, wherein the preset time length is smaller than the minimum value of the time interval between two times of normal interrupt signals of the Hall device; on the basis, whether the first interrupt signal is the misoperation signal of the Hall device is identified, and when the first interrupt signal is the misoperation signal, the first interrupt signal is discarded. It is thus clear that this application is based on in the real scene, and when the user actually operated the cell-phone leather sheath, the time interval between the normal interrupt signal of hall device obviously is distinguished from this characteristics of the maloperation time interval that antenna interference signal leads to, through the production situation of hall device interrupt signal in the predetermined duration, comes the interrupt signal of discerning hall device whether to be the maloperation signal, and then realizes filtering the maloperation signal, has promoted user experience.
Example eight
Referring to fig. 8, fig. 8 is a schematic structural diagram of an eighth embodiment of a control device provided in the present application. The obtaining module 200 is specifically a counting unit 201, and is configured to count the number of interrupt signals received from the hall device within the preset time period.
On this basis, as shown in fig. 8, the identification module 300 includes a first judgment unit 301 and a first identification unit 302.
A first determining unit 301, configured to determine whether the number of the interrupt signals is greater than 0;
a first identifying unit 302, configured to identify the first interrupt signal as an erroneous operation signal of the hall device when the determination result of the first determining unit is yes.
The present embodiment takes the preset time duration of 180ms as an example for explanation.
After receiving the first interrupt signal of the hall device, the present embodiment continues to count the number of interrupt signals received from the hall device in the next 180ms, and if the number of interrupt signals is greater than 0, for example, it is assumed that 3 interrupt signals are received in 180 ms.
Because of the limitation of manual operation capability, after the user operates the mobile phone to enable the Hall device to send an interrupt signal once, the user cannot operate the mobile phone again within a short time of 180ms to enable the Hall device to generate the interrupt signal, so that the first interrupt signal can be judged to be a misoperation signal of the Hall device; and otherwise, judging the first interrupt signal as a normal signal of the Hall device.
Example nine
Referring to fig. 9, fig. 9 is a schematic structural diagram of a ninth embodiment of the control apparatus provided in the present application, and in this embodiment, based on the solution provided in the eighth embodiment, as shown in fig. 9, the apparatus may further include a first returning module 500, configured to use a last interrupt signal received within the preset time period as a first interrupt signal, and return to execute the obtaining module 200.
Based on the same reason as the first interrupt signal, in the interrupt signals received within the preset time period, other signals except the last interrupt signal may not be normal signals of the hall device, so that the embodiment directly replaces the first interrupt signal with the last interrupt signal received within the preset time period, and returns to the identification process of the first interrupt signal, that is, the identification of each signal of the hall device is realized by executing the signal identification process in a circulating manner.
Example ten
Referring to fig. 10, fig. 10 is a schematic structural diagram of a control device according to a tenth embodiment of the present disclosure. The obtaining module 200 is specifically a continuous receiving unit 202, configured to continuously receive the second interrupt signal from the hall device within the preset time period.
On this basis, as shown in fig. 10, the identification module includes a second judgment unit 303 and a second identification unit 304.
A second judging unit 303, configured to judge whether a second interrupt signal from the hall device is received within the preset time period;
a second identifying unit 304, configured to identify the first interrupt signal as a misoperation signal of the hall device when a determination result of the second determining unit is yes.
Different from the eighth embodiment, after receiving the first interrupt signal of the hall device, the present embodiment starts timing, continues to receive the interrupt signal from the hall device within a preset time period, and stops the timing once receiving the interrupt signal.
Still taking the preset time duration of 180ms as an example, assuming that the interrupt signal of the hall device is received again after the first interrupt signal is received for 70ms, the current time is stopped (different from the eighth time of 180ms), and it is determined that the first interrupt signal is the misoperation signal of the hall device. Otherwise, if the preset time length is timed to be up and the interruption signal is not received all the time, the first interruption signal is judged to be the normal signal of the Hall device.
EXAMPLE eleven
Referring to fig. 11, fig. 11 is a schematic structural diagram of an eleventh embodiment of a control apparatus provided in the present application, and based on the solution provided in the tenth embodiment of the present application, as shown in fig. 11, the apparatus may further include a second returning module 600, configured to use the second interrupt signal as the first interrupt signal, and return to execute the obtaining module 200
After the first interrupt signal is identified as the misoperation signal, the second interrupt signal received within the preset time still needs to be identified, for example, the signal received at the time of timing 70ms in the fourth embodiment, for this reason, the second interrupt signal replaces the first interrupt signal, and the identification flow of the first interrupt signal is returned, and the identification of each signal of the hall device is realized by executing the signal identification flow in a circulating manner.
Example twelve
Referring to fig. 12, fig. 12 is a schematic structural diagram of a twelfth embodiment of a control device provided in the present application, in this embodiment, the device may further include:
and the control module 700 is configured to control the electronic device to switch states according to the first interrupt signal when the first interrupt signal is not an misoperation signal of the hall device.
When the first interrupt signal is not a misoperation signal of the Hall device, namely the first interrupt signal is a normal signal, the electronic equipment can be switched to a normal state according to the signal, and the electronic equipment is controlled to enter a leather sheath mode.
EXAMPLE thirteen
The embodiment discloses an electronic device, which includes the control device according to any one of the seventh to twelfth embodiments, and the electronic device may be a smart phone, a tablet computer, or the like having an antenna and a hall device.
According to the scheme, after the first interrupt signal from the Hall device is received, the generation condition of the interrupt signal of the Hall device in the preset time length is continuously acquired, wherein the preset time length is smaller than the minimum value of the time interval between two times of normal interrupt signals of the Hall device; on the basis, whether the first interrupt signal is the misoperation signal of the Hall device is identified, and when the first interrupt signal is the misoperation signal, the first interrupt signal is discarded. It is thus clear that this application is based on in the real scene, and when the user actually operated the cell-phone leather sheath, the time interval between the normal interrupt signal of hall device obviously is distinguished from this characteristics of the maloperation time interval that antenna interference signal leads to, through the production situation of hall device interrupt signal in the predetermined duration, comes the interrupt signal of discerning hall device whether to be the maloperation signal, and then realizes filtering the maloperation signal, has promoted user experience.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (17)

1. A control method is characterized by being applied to electronic equipment with an antenna and a Hall device, and the method comprises the following steps:
receiving a first interrupt signal from the Hall device;
continuously acquiring the generation condition of the interrupt signal of the Hall device within a preset time length by taking the receiving time of the first interrupt signal as an initial time, wherein the preset time length is less than the minimum limit value of the time interval between two times of normal interrupt signals of the Hall device;
identifying whether the first interrupt signal is a misoperation signal of the Hall device or not according to the generation condition of the Hall device interrupt signal in the preset time length;
and if the first interrupt signal is the misoperation signal of the Hall device, discarding the first interrupt signal.
2. The method according to claim 1, wherein the obtaining of the generation condition of the hall device interrupt signal within the preset time period is:
and counting the number of interrupt signals received from the Hall device in the preset time.
3. The method of claim 2, wherein the identifying whether the first interrupt signal is a malfunction signal of the hall device according to the generation status of the hall device interrupt signal within the preset time period comprises:
judging whether the number of the interrupt signals is greater than 0;
and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
4. The method of claim 3, further comprising, after discarding the first interrupt signal:
taking the last interrupt signal received in the preset time as a first interrupt signal, and returning to execute the steps: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
5. The method according to claim 1, wherein the obtaining of the generation condition of the hall device interrupt signal within the preset time period is:
and continuously receiving a second interrupt signal from the Hall device within the preset time length.
6. The method of claim 5, wherein the identifying whether the first interrupt signal is a malfunction signal of the hall device according to the generation status of the hall device interrupt signal within the preset time period comprises:
judging whether a second interrupt signal from the Hall device is received within the preset time length;
and if the judgment result is yes, the first interrupt signal is an misoperation signal of the Hall device.
7. The method of claim 6, further comprising, after discarding the first interrupt signal:
taking the second interrupt signal as a first interrupt signal, and returning to execute the steps of: and acquiring the generation condition of the Hall device interrupt signal within a preset time length.
8. The method of any one of claims 1-7, further comprising:
and if the first interrupt signal is not the misoperation signal of the Hall device, controlling the electronic equipment to switch the state according to the first interrupt signal.
9. A control device, applied to an electronic apparatus having an antenna and a Hall device, the device comprising:
the receiving module is used for receiving a first interrupt signal from the Hall device;
the acquisition module is used for continuously acquiring the generation condition of the interrupt signal of the Hall device within a preset time length by taking the receiving time of the first interrupt signal as an initial time, wherein the preset time length is less than the minimum limit value of the time interval between two times of normal interrupt signals of the Hall device;
the identification module is used for identifying whether the first interrupt signal is the misoperation signal of the Hall device according to the generation condition of the Hall device interrupt signal in the preset time length;
and the discarding module is used for discarding the first interrupt signal when the first interrupt signal is an misoperation signal of the Hall device.
10. The apparatus of claim 9, wherein the obtaining module is:
and the counting unit is used for counting the number of the interrupt signals received from the Hall device in the preset time.
11. The apparatus of claim 10, wherein the identification module comprises:
the first judging unit is used for judging whether the number of the interrupt signals is greater than 0;
and the first identification unit is used for identifying the first interrupt signal as an misoperation signal of the Hall device when the judgment result of the first judgment unit is yes.
12. The apparatus of claim 11, further comprising:
and the first returning module is used for taking the last interrupt signal received within the preset time length as a first interrupt signal and returning to execute the acquiring module.
13. The apparatus of claim 9, wherein the obtaining module is:
and the continuous receiving unit is used for continuously receiving the second interrupt signal from the Hall device within the preset time length.
14. The apparatus of claim 13, wherein the identification module comprises:
the second judging unit is used for judging whether a second interrupt signal from the Hall device is received within the preset time length;
and the second identification unit is used for identifying the first interrupt signal as the misoperation signal of the Hall device when the judgment result of the second judgment unit is yes.
15. The apparatus of claim 14, further comprising:
and the second returning module is used for taking the second interrupt signal as the first interrupt signal and returning to execute the acquiring module.
16. The apparatus of claim 9, further comprising:
and the control module is used for controlling the electronic equipment to switch the state according to the first interrupt signal when the first interrupt signal is not the misoperation signal of the Hall device.
17. An electronic device having an antenna and a hall device, comprising a control apparatus according to any one of claims 9 to 16.
CN201510135062.8A 2015-03-26 2015-03-26 Control method and device and electronic equipment Active CN106161732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510135062.8A CN106161732B (en) 2015-03-26 2015-03-26 Control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510135062.8A CN106161732B (en) 2015-03-26 2015-03-26 Control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106161732A CN106161732A (en) 2016-11-23
CN106161732B true CN106161732B (en) 2020-02-21

Family

ID=57340028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510135062.8A Active CN106161732B (en) 2015-03-26 2015-03-26 Control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106161732B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932828B (en) * 2018-07-27 2020-05-05 江苏盛海智能科技有限公司 Method and terminal for realizing unmanned vehicle remote control

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782590B (en) * 2009-11-27 2013-06-05 艾默生网络能源有限公司 Method and system for detecting fan fault of electric and electronic products
CN102798467B (en) * 2011-05-23 2014-07-23 北京海兰德维通信技术有限公司 Infrared detection system and method
CN103383594B (en) * 2012-05-04 2018-01-05 富泰华工业(深圳)有限公司 Electronic equipment and its control method
CN102761349B (en) * 2012-07-10 2014-09-10 四川九洲空管科技有限责任公司 Method and system for judging effective relevant peak pulse sequence
CN103685691A (en) * 2012-09-11 2014-03-26 上海斐讯数据通信技术有限公司 Mobile terminal capable of guarding against theft and mobile terminal anti-theft method

Also Published As

Publication number Publication date
CN106161732A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US9048882B2 (en) Near field communications (NFC) and proximity sensor for portable devices
CN105636136B (en) A kind of communication terminal is resident method for switching network and communication terminal
CN108886787B (en) Obtain the methods, devices and systems of control information
CN108599304A (en) Charging box, charge control method and Related product
EP3633880B1 (en) Radio frequency interference processing method and electronic device
US20180159639A1 (en) Method and system for debugging conducted interference of frequency modulation signals, and electronic device thereof
CN103516879B (en) The radiation based reminding method of mobile terminal and mobile terminal
CN105163359A (en) Network mode switching method and mobile communication terminal
KR102016866B1 (en) Signal Processing Method and Related Devices
CN108810260A (en) antenna switching control method and related product
US10732724B2 (en) Gesture recognition method and apparatus
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
CN105162979B (en) A kind of incoming call mute control method and smartwatch
CN104168385A (en) Double card switchover method and device
CN105745906B (en) Message processing method, system and related equipment
CN106161732B (en) Control method and device and electronic equipment
CN107431524B (en) Antenna configuration method and terminal
CN105491225A (en) Control method and electronic apparatus
CN203326990U (en) Wireless communication device
CN104219729B (en) connection processing method and electronic equipment
CN103856613A (en) State switching method and device and first communication terminal
CN108767606B (en) Adapter, charging method, and computer-readable storage medium
CN103813304B (en) A kind of method and device realized the communication resource and shared
CN108924902B (en) Wireless network disconnection method and device and electronic device
CN104242963A (en) Automatic switching method and system of electromagnetic signal receiving frequencies

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant