CN104765466A - Key control method and device for mobile terminal - Google Patents

Key control method and device for mobile terminal Download PDF

Info

Publication number
CN104765466A
CN104765466A CN201510223398.XA CN201510223398A CN104765466A CN 104765466 A CN104765466 A CN 104765466A CN 201510223398 A CN201510223398 A CN 201510223398A CN 104765466 A CN104765466 A CN 104765466A
Authority
CN
China
Prior art keywords
interrupt signal
button
keys interrupt
mobile terminal
key
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.)
Granted
Application number
CN201510223398.XA
Other languages
Chinese (zh)
Other versions
CN104765466B (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 CN201510223398.XA priority Critical patent/CN104765466B/en
Publication of CN104765466A publication Critical patent/CN104765466A/en
Application granted granted Critical
Publication of CN104765466B publication Critical patent/CN104765466B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention belongs to the technical field of mobile terminals, and provides a key control method and device for a mobile terminal. The method includes the steps that when a key interrupt signal is detected, the duration time of the key interrupt signal is monitored; when the duration time of the key interrupt signal is longer than a preset value, a key corresponding to the key interrupt signal is forbidden. According to the method, when the key interrupt signal is detected, the duration time of the key interrupt signal is monitored, and when the duration time of the key interrupt signal is longer than the preset value, and the key corresponding to the key interrupt signal is forbidden, so that the problem that due to key damage, the key is always in a long pressed state and continuously triggers key interrupt is solved, and the mobile terminal can be used normally after the key is damaged.

Description

The key control method of mobile terminal and device
Technical field
The invention belongs to technical field of mobile terminals, particularly relate to key control method and the device of mobile terminal.
Background technology
The push button longevity of each mobile terminal is all limited, button also may cause card key because structure is not good, or causes button to corrode due to infiltrated into liquid, thus button is in long by state always, continue trigger key to interrupt, mobile terminal cannot normally be used.Such as, volume key is in long by state always, cause volume progress bar to be presented at current interface, and volume constantly regulates always; Power key is in long by state always, causes occurring cycle power option always; Shoot button is in long by state always, causes constantly taking pictures.Therefore, the technical scheme that proposition one is new is needed, to solve the problems of the technologies described above.
Summary of the invention
Given this, embodiments provide a kind of key control method and device of mobile terminal, cause button to be in length by state to solve in prior art because button damages always, make the problem that mobile terminal cannot normally use.
On the one hand, embodiments provide a kind of key control method of mobile terminal, comprising:
When keys interrupt signal being detected, monitor the duration of described keys interrupt signal;
When the duration of described keys interrupt signal is greater than preset value, forbid the button that described keys interrupt signal is corresponding.
Second aspect, embodiments provides a kind of key control device of mobile terminal, comprising:
Monitoring unit, for when keys interrupt signal being detected, monitors the duration of described keys interrupt signal;
Forbidden cell, for when the duration of described keys interrupt signal is greater than preset value, forbids the button that described keys interrupt signal is corresponding.
The beneficial effect that the embodiment of the present invention compared with prior art exists is: the embodiment of the present invention is by when keys interrupt signal being detected, the duration of monitoring keys interrupt signal, and when the duration of keys interrupt signal is greater than preset value, the button that forbidding keys interrupt signal is corresponding, thus avoid and be in long by state, the problem continuing trigger key interruption because button damages the button caused always, thus mobile terminal still normally can use after button damages.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow figure of the key control method of the mobile terminal that the embodiment of the present invention provides;
Fig. 2 is the realization flow figure of the key control method of the mobile terminal that another embodiment of the present invention provides;
Fig. 3 is the structured flowchart of the key control device of the mobile terminal that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of the key control method of the mobile terminal that the embodiment of the present invention provides, and details are as follows:
In step S101, when keys interrupt signal being detected, monitor the duration of described keys interrupt signal.
It should be noted that, mobile terminal in the embodiment of the present invention can comprise mobile phone (or being called " honeycomb " phone) and have the computing machine of mobile terminal, such as, can be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they and wireless access network exchange language and/or data.Such as, Personal Communications Services (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (WirelessLocal Loop, WLL) stand, personal digital assistant (Personal Digital Assistant, the equipment such as PDA), in this no limit.
Keys interrupt signal may be pressed by user due to button and trigger, and also automatically may trigger because button damages.
Preferably, described when keys interrupt signal being detected, the duration monitoring described keys interrupt signal is specially:
After receiving button monitored instruction, if keys interrupt signal detected, then monitor the duration of described keys interrupt signal.
Here, receiving button monitored instruction can be receive the button monitored instruction that user is sent by the combination of a button or multiple button in pre-set button on mobile terminal or existing button; Or, receive the button monitored instruction (such as slide two circles counterclockwise) that user is sent by mobile terminal touch screen.If receive the button monitored instruction of user's input, then show that some or multiple button of now mobile terminal exists fault, need to monitor.Alternatively, after receiving button monitored instruction, if keys interrupt signal detected in normal boot-strap pattern, factory mode and/or fast attack mode, then start timer, the duration of monitoring keys interrupt signal.Here, the duration of keys interrupt signal refers to the duration that button is pressed.
In step s 102, when the duration of described keys interrupt signal is greater than preset value, the button that described keys interrupt signal is corresponding is forbidden.
Such as, preset value can be 10 seconds, does not limit at this.In the unspoiled situation of button, the duration of keys interrupt signal generally can not exceed preset value, and the duration that namely button is pressed generally can not exceed preset value.When the duration of keys interrupt signal is greater than preset value, show that the button that this keys interrupt signal is corresponding damages to a great extent, therefore, the button that forbidding keys interrupt signal is corresponding.The button that forbidding keys interrupt signal is corresponding refers to the keys interrupt signal ignoring this button, does not process the keys interrupt signal of this button.
Fig. 2 shows the realization flow figure of the key control method of the mobile terminal that another embodiment of the present invention provides, with reference to Fig. 2:
In step s 201, when keys interrupt signal being detected, monitor the duration of described keys interrupt signal;
In step S202, when the duration of described keys interrupt signal is greater than preset value, forbid the button that described keys interrupt signal is corresponding;
In step S203, the touch-screen of described mobile terminal arranges virtual key, described virtual key is for performing the function of button corresponding to described keys interrupt signal.
As one embodiment of the present of invention, after the button that forbidding keys interrupt signal is corresponding, the touch-screen of mobile terminal arranges virtual key, and by the functional mapping of button corresponding for this keys interrupt signal on this virtual key, to be completed the function of button corresponding to this keys interrupt signal by this virtual key, thus when button damages, mobile terminal also can normally use.
Alternatively, after the button that described forbidding described keys interrupt signal is corresponding, described method also comprises:
When the button that described keys interrupt signal is corresponding is power key, power up function is increased to specified button, with after described mobile terminal shutdown, started shooting by described specified button.
Here, specified button can for any one physical button except power key.As one embodiment of the present of invention, when the button that keys interrupt signal is corresponding is power key, power up function is increased to specified button, with after mobile terminal shutdown, started shooting by this specified button, thus when power key damages, still can normal boot-strap.
Alternatively, after the button that described forbidding described keys interrupt signal is corresponding, described method also comprises:
When the button that described keys interrupt signal is corresponding is power key, after described mobile terminal shutdown, if detect, described mobile terminal enters charged state, then directly start shooting.
As an alternative embodiment of the invention, when the button that keys interrupt signal is corresponding is power key, after mobile terminal shutdown, if detect, mobile terminal enters charged state, then directly start shooting, thus when power key damages, still can normal boot-strap.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by when keys interrupt signal being detected, the duration of monitoring keys interrupt signal, and when the duration of keys interrupt signal is greater than preset value, the button that forbidding keys interrupt signal is corresponding, thus avoid and be in long by state, the problem continuing trigger key interruption because button damages the button caused always, thus mobile terminal still normally can use after button damages.
Fig. 3 shows the structured flowchart of the key control device of the mobile terminal that the embodiment of the present invention provides, and this device may be used for the key control method of the mobile terminal shown in service chart 1 or Fig. 2.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
With reference to Fig. 3, this device comprises:
Monitoring unit 31, for when keys interrupt signal being detected, monitors the duration of described keys interrupt signal;
Forbidden cell 32, for when the duration of described keys interrupt signal is greater than preset value, forbids the button that described keys interrupt signal is corresponding.
Preferably, described device also comprises:
Virtual key setting unit 33, arranges virtual key on the touch-screen at described mobile terminal, and described virtual key is for performing the function of button corresponding to described keys interrupt signal.
Alternatively, described device also comprises:
First start setting unit 34, when being power key for the button corresponding when described keys interrupt signal, increases power up function to specified button, with after described mobile terminal shutdown, is started shooting by described specified button.
Alternatively, described device also comprises:
Second start setting unit 35, when being power key for the button corresponding when described keys interrupt signal, after described mobile terminal shutdown, if detect, described mobile terminal enters charged state, then directly start shooting.
Preferably, described monitoring unit 31 specifically for:
After receiving button monitored instruction, if keys interrupt signal detected, then monitor the duration of described keys interrupt signal.
The embodiment of the present invention is by when keys interrupt signal being detected, the duration of monitoring keys interrupt signal, and when the duration of keys interrupt signal is greater than preset value, the button that forbidding keys interrupt signal is corresponding, thus avoid and be in long by state, the problem continuing trigger key interruption because button damages the button caused always, thus mobile terminal still normally can use after button damages.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. a key control method for mobile terminal, is characterized in that, comprising:
When keys interrupt signal being detected, monitor the duration of described keys interrupt signal;
When the duration of described keys interrupt signal is greater than preset value, forbid the button that described keys interrupt signal is corresponding.
2. the method for claim 1, is characterized in that, after the button that described forbidding described keys interrupt signal is corresponding, described method also comprises:
The touch-screen of described mobile terminal arranges virtual key, and described virtual key is for performing the function of button corresponding to described keys interrupt signal.
3. method as claimed in claim 1 or 2, it is characterized in that, after the button that described forbidding described keys interrupt signal is corresponding, described method also comprises:
When the button that described keys interrupt signal is corresponding is power key, power up function is increased to specified button, with after described mobile terminal shutdown, started shooting by described specified button.
4. method as claimed in claim 1 or 2, it is characterized in that, after the button that described forbidding described keys interrupt signal is corresponding, described method also comprises:
When the button that described keys interrupt signal is corresponding is power key, after described mobile terminal shutdown, if detect, described mobile terminal enters charged state, then directly start shooting.
5. the method for claim 1, is characterized in that, described when keys interrupt signal being detected, and the duration monitoring described keys interrupt signal is specially:
After receiving button monitored instruction, if keys interrupt signal detected, then monitor the duration of described keys interrupt signal.
6. a key control device for mobile terminal, is characterized in that, comprising:
Monitoring unit, for when keys interrupt signal being detected, monitors the duration of described keys interrupt signal;
Forbidden cell, for when the duration of described keys interrupt signal is greater than preset value, forbids the button that described keys interrupt signal is corresponding.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Virtual key setting unit, arranges virtual key on the touch-screen at described mobile terminal, and described virtual key is for performing the function of button corresponding to described keys interrupt signal.
8. device as claimed in claims 6 or 7, it is characterized in that, described device also comprises:
First start setting unit, when being power key for the button corresponding when described keys interrupt signal, increases power up function to specified button, with after described mobile terminal shutdown, is started shooting by described specified button.
9. device as claimed in claims 6 or 7, it is characterized in that, described device also comprises:
Second start setting unit, when being power key for the button corresponding when described keys interrupt signal, after described mobile terminal shutdown, if detect, described mobile terminal enters charged state, then directly start shooting.
10. device as claimed in claim 6, is characterized in that, described monitoring unit specifically for:
After receiving button monitored instruction, if keys interrupt signal detected, then monitor the duration of described keys interrupt signal.
CN201510223398.XA 2015-05-04 2015-05-04 The key control method and device of mobile terminal Expired - Fee Related CN104765466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510223398.XA CN104765466B (en) 2015-05-04 2015-05-04 The key control method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510223398.XA CN104765466B (en) 2015-05-04 2015-05-04 The key control method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN104765466A true CN104765466A (en) 2015-07-08
CN104765466B CN104765466B (en) 2018-01-26

Family

ID=53647352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510223398.XA Expired - Fee Related CN104765466B (en) 2015-05-04 2015-05-04 The key control method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN104765466B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376377A (en) * 2015-10-09 2016-03-02 广东欧珀移动通信有限公司 Physical button processing method and device
CN107155003A (en) * 2017-04-26 2017-09-12 深圳天珑无线科技有限公司 The emergency processing method and its system of a kind of physical button
CN107168828A (en) * 2017-04-26 2017-09-15 深圳天珑无线科技有限公司 A kind of utilization sensor circuit realizes the method and its system of button switching
CN107515754A (en) * 2017-08-24 2017-12-26 北京小米移动软件有限公司 System startup separator processing method, device and storage medium
CN108337372A (en) * 2018-01-19 2018-07-27 广东欧珀移动通信有限公司 Electronic device, the detection method of physical button and Related product
CN109040437A (en) * 2018-07-18 2018-12-18 奇酷互联网络科技(深圳)有限公司 The method and apparatus of mobile terminal and its test earphone exception
CN109077685A (en) * 2018-07-17 2018-12-25 佛山市顺德区美的洗涤电器制造有限公司 Key control method, device and the computer readable storage medium of dish-washing machine
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A kind of virtual key display methods and terminal
CN109831567A (en) * 2018-11-15 2019-05-31 芯海科技(深圳)股份有限公司 A kind of method and system for the reliability improving mobile terminal pressure induction power supply key
CN113054979A (en) * 2021-02-26 2021-06-29 深圳前海云充科技有限公司 Control method and device for key fool-proofing, computer equipment and storage medium
CN113946226A (en) * 2020-07-15 2022-01-18 炬芯科技股份有限公司 Key processing method and device, readable storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009029048A1 (en) * 2007-08-30 2009-03-05 Razer (Asia-Pacific) Pte Ltd Keys deactivation system and method
CN103686356A (en) * 2013-12-10 2014-03-26 深圳Tcl新技术有限公司 Method and device for adjusting key values
CN104281410A (en) * 2009-08-18 2015-01-14 佳能株式会社 Information processing apparatus, control method therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009029048A1 (en) * 2007-08-30 2009-03-05 Razer (Asia-Pacific) Pte Ltd Keys deactivation system and method
CN104281410A (en) * 2009-08-18 2015-01-14 佳能株式会社 Information processing apparatus, control method therefor
CN103686356A (en) * 2013-12-10 2014-03-26 深圳Tcl新技术有限公司 Method and device for adjusting key values

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376377A (en) * 2015-10-09 2016-03-02 广东欧珀移动通信有限公司 Physical button processing method and device
CN107155003A (en) * 2017-04-26 2017-09-12 深圳天珑无线科技有限公司 The emergency processing method and its system of a kind of physical button
CN107168828A (en) * 2017-04-26 2017-09-15 深圳天珑无线科技有限公司 A kind of utilization sensor circuit realizes the method and its system of button switching
CN107515754A (en) * 2017-08-24 2017-12-26 北京小米移动软件有限公司 System startup separator processing method, device and storage medium
CN108337372B (en) * 2018-01-19 2020-06-02 Oppo广东移动通信有限公司 Electronic device, physical key detection method, device and computer readable storage medium
CN108337372A (en) * 2018-01-19 2018-07-27 广东欧珀移动通信有限公司 Electronic device, the detection method of physical button and Related product
CN109077685A (en) * 2018-07-17 2018-12-25 佛山市顺德区美的洗涤电器制造有限公司 Key control method, device and the computer readable storage medium of dish-washing machine
CN109040437A (en) * 2018-07-18 2018-12-18 奇酷互联网络科技(深圳)有限公司 The method and apparatus of mobile terminal and its test earphone exception
CN109831567A (en) * 2018-11-15 2019-05-31 芯海科技(深圳)股份有限公司 A kind of method and system for the reliability improving mobile terminal pressure induction power supply key
CN109831567B (en) * 2018-11-15 2021-01-19 芯海科技(深圳)股份有限公司 Method and system for improving reliability of pressure sensing power key of mobile terminal
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A kind of virtual key display methods and terminal
CN113946226A (en) * 2020-07-15 2022-01-18 炬芯科技股份有限公司 Key processing method and device, readable storage medium and electronic equipment
CN113054979A (en) * 2021-02-26 2021-06-29 深圳前海云充科技有限公司 Control method and device for key fool-proofing, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104765466B (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN104765466A (en) Key control method and device for mobile terminal
EP2977854B1 (en) Method, apparatus, and user terminal for removing malicious power consuming application
US20170161507A1 (en) Dual-system Electronic Apparatus and Terminal
EP2942716A1 (en) Sim card hot-plug guard and sim card on-site shutdown swipe-card method, and terminal
US20100154027A1 (en) Methods and Systems for Enabling Community-Tested Security Features for Legacy Applications
CN103810020A (en) Virtual machine elastic scaling method and device
CN103838648A (en) Terminal and data backup method
CN105204979A (en) Recording method of Android logs and mobile terminal
CN104679336A (en) Method and device for adjusting touch screen parameters
CN104777891A (en) OTG (on-the-go) connecting control method applied to intelligent terminal and connecting control device
EP3148039A1 (en) Fast charging method, power source adapter and mobile terminal
US11096177B2 (en) Operation mode switching method and user equipment
CN104572217A (en) Updating method and system of wearable intelligent device
CN105022955A (en) Locking method and mobile terminal of application program
CN104902526A (en) Method and device for switching network, and mobile terminal
CN105068844A (en) Method and apparatus for solving problem of no startup of Android terminal
CN104156050A (en) Task monitoring method and electronic device
CN104659881A (en) Charging method and device for mobile terminal
CN104375854A (en) Application updating and downloading method and user terminal
CN103837835B (en) A kind of mobile equipment cell container decline degree detecting method and device thereof
CN104767890A (en) Alarm clock control method and device based on handheld device
CN104951178A (en) Processing method, device and system for desktop data
CN104793899A (en) Method and device detecting whether Raid is pulled out or not on basis of virtual disk layer
CN104834553A (en) Service concurrent processing method for user terminal and user terminal
CN103870564A (en) Data updating method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

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

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

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

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

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180126

CF01 Termination of patent right due to non-payment of annual fee