CN110737307A - Physical key state control method and device of mobile terminal - Google Patents

Physical key state control method and device of mobile terminal Download PDF

Info

Publication number
CN110737307A
CN110737307A CN201910940070.8A CN201910940070A CN110737307A CN 110737307 A CN110737307 A CN 110737307A CN 201910940070 A CN201910940070 A CN 201910940070A CN 110737307 A CN110737307 A CN 110737307A
Authority
CN
China
Prior art keywords
mobile terminal
humidity
physical key
distance
preset
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
CN201910940070.8A
Other languages
Chinese (zh)
Other versions
CN110737307B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910940070.8A priority Critical patent/CN110737307B/en
Publication of CN110737307A publication Critical patent/CN110737307A/en
Application granted granted Critical
Publication of CN110737307B publication Critical patent/CN110737307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1656Details related to functional adaptations of the enclosure, e.g. to provide protection against EMI, shock, water, or to host detachable peripherals like a mouse or removable expansions units like PCMCIA cards, or to provide access to internal components for maintenance or to removable storage supports like CDs or DVDs, or to mechanically mount accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to physical key state control methods and devices of a mobile terminal, the mobile terminal and a storage medium, the method comprises the steps of obtaining environmental parameters in a preset distance of the mobile terminal, and controlling the physical keys of the mobile terminal to enter a waterproof state after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environmental parameters, wherein in the waterproof state, the physical keys of the mobile terminal are retracted into a shell of the mobile terminal, and the outer surfaces of the physical keys are flush with the outer surface of the shell of the mobile terminal.

Description

Physical key state control method and device of mobile terminal
Technical Field
The present disclosure relates to the field of control technologies of mobile terminals, and in particular, to a method and an apparatus for controlling a physical key state of a mobile terminal, and a storage medium.
Background
The mobile terminals are more and more commonly used in life, and the application environment of the corresponding mobile terminals becomes more complex, for example, the mobile terminals may need to be used in liquid such as water, but in the related art, the control of waterproofing still stays in the waterproof bag which needs the user to use the outside, and the mobile terminals are placed in the waterproof bag, or for mobile terminals with waterproof structures, the user needs to manually adjust the waterproof structures, the operation is complicated, and the user experience is not good.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides methods for controlling physical key states of a mobile terminal, and apparatuses, the mobile terminal, and a storage medium, where the technical solution is as follows:
according to th aspect of the disclosed embodiment, there is provided kinds of physical key state control methods of a mobile terminal, including:
acquiring environmental parameters within a preset distance of the mobile terminal;
after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state; and in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
Optionally, the acquiring the environmental parameter within the predetermined distance of the mobile terminal includes:
acquiring the environmental humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the distance value change of the contact object within the preset distance through a distance sensor arranged on the mobile terminal; or the like, or, alternatively,
and acquiring the environment humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the pressure value change within the preset distance through a pressure sensor arranged on the mobile terminal.
Optionally, the method further comprises: detecting whether the ambient humidity is equal to or greater than a preset humidity threshold value or not according to the ambient humidity within the preset distance;
the determining that the mobile terminal has a liquid environment within the predetermined distance according to the environment parameter includes:
if the environmental humidity is equal to or greater than a preset humidity threshold value, determining that the liquid environment exists in the preset distance of the mobile terminal; or the like, or, alternatively,
and if the environmental humidity is smaller than a preset humidity threshold value, determining that the liquid environment does not exist in the preset distance of the mobile terminal.
Optionally, the acquiring the environmental parameter within the predetermined distance of the mobile terminal includes:
when the mobile terminal enters a swimming mode, determining the environmental parameter as a liquid parameter; the fluid parameter can indicate that the mobile terminal has the fluid environment within the predetermined distance.
Optionally, the method further comprises:
when the liquid environment is not arranged within the preset distance, controlling the movement of a physical key of the mobile terminal on the mobile terminal so as to exit a waterproof state; and after exiting from the waterproof state, the physical key of the mobile terminal protrudes out of the outer surface of the shell of the mobile terminal.
Optionally, the physical keys include at least of a power key, a volume up key, a volume down key, a home key;
according to a second aspect of the embodiments of the present disclosure, there is provided kinds of physical key state control devices of a mobile terminal, including:
an obtaining module configured to obtain an environmental parameter within a predetermined distance of the mobile terminal;
and the control module is configured to control the physical key of the mobile terminal to enter a waterproof state after determining that the mobile terminal has a liquid environment within the predetermined distance according to the environment parameter, wherein in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
Optionally, the obtaining module further includes an th obtaining sub-module and a second obtaining sub-module;
the acquisition submodule is further configured to acquire the ambient humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal;
the second acquisition sub-module is further configured to acquire the contact distance value change within the predetermined distance through a distance sensor arranged on the mobile terminal; or acquiring the pressure value change within a preset distance through a pressure sensor arranged on the mobile terminal.
Optionally, the apparatus further comprises: a detection module configured to:
detecting whether the ambient humidity is equal to or greater than a preset humidity threshold value or not according to the ambient humidity within the preset distance;
the control module configured to:
if the current environment humidity is equal to or greater than a preset humidity threshold value, determining that the liquid environment exists in the preset distance of the mobile terminal; or the like, or, alternatively,
and if the current environment humidity is smaller than a preset humidity threshold value, determining that the liquid environment does not exist in the distance of the mobile terminal.
Optionally, the obtaining module is further configured to:
when the mobile terminal enters a swimming mode, determining the environmental parameter as a liquid parameter; the fluid parameter can indicate that the mobile terminal has the fluid environment within a predetermined distance.
Optionally, the apparatus further comprises a second control module;
the second control module is configured to control the movement of a physical key of the mobile terminal on the mobile terminal to exit a waterproof state when the liquid environment is not present within the predetermined distance; and after exiting from the waterproof state, the physical key of the mobile terminal protrudes out of the outer surface of the shell of the mobile terminal.
Optionally, the physical keys include at least of a power key, a volume up key, a volume down key, a home key.
According to a third aspect of the embodiments of the present disclosure, there is provided kinds of mobile terminals, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring environmental parameters within a preset distance of the mobile terminal;
after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state; and in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
In a fourth aspect of the embodiments of the present disclosure, there are non-transitory computer-readable storage media, where instructions in the storage media, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of implementing any of the above-mentioned methods for controlling physical key states of the mobile terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
obtaining environmental parameters within a preset distance of the mobile terminal; and after determining that the liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state, namely, controlling the physical key of the mobile terminal to retract into a shell of the mobile terminal, wherein the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal. Therefore, the physical keys can automatically retract into the shell of the mobile terminal to occupy the gap without filler in the shell, so that gaps between the physical keys and the shell of the mobile terminal are reduced, and liquid molecules, such as water molecules, enter the shell of the mobile terminal, so that the water resistance of the mobile terminal can be intelligently controlled, and the physical keys can be automatically switched from a non-water-resistant state to a water-resistant state without being triggered by a user, so that the phenomenon of water resistance failure caused by forgetting to trigger the user is reduced; meanwhile, user operation is simplified, and user experience is improved.
It is to be understood that both the foregoing -general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification , illustrate embodiments consistent with the invention and together with the description , serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a physical key state control method of mobile terminals according to an exemplary embodiment of ;
FIG. 2 is a scene diagram illustrating a method for controlling physical key status of a mobile terminal according to an exemplary embodiment of ;
fig. 3 is another scenario diagram illustrating a method for controlling physical key status of a mobile terminal according to an exemplary embodiment of ;
fig. 4 is a block diagram illustrating a key state control apparatus of a kind of mobile terminal according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a variety of mobile terminals according to an exemplary embodiment.
Detailed Description
The embodiments described in the exemplary embodiments below do not represent all embodiments consistent with the invention's , rather, they are merely examples consistent with the invention's aspects , as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a physical key state control method of mobile terminals according to an exemplary embodiment of , the method including the steps of, as shown in fig. 1:
step 101: acquiring environmental parameters within a preset distance of the mobile terminal;
step 102: after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state; and in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
The method is applied to the mobile terminal, the mobile terminal can be at least of mobile phones, tablet computers, notebook computers and wearable devices, and the wearable devices can be smart watches, smart bracelets, smart helmets and the like.
It should be noted that the mobile terminal of this embodiment has physical keys, and the physical keys can move relative to the housing of the mobile terminal, for example, enter and exit the housing.
Here, the physical keys of the mobile terminal can move relative to the surface of the mobile terminal, and the physical keys can be driven by the motor to move. In short, any structure capable of driving the physical keys of the mobile terminal to move in the prior art may be used, and the structure may be based on a control instruction to drive the physical keys to move, which is not described herein again.
In the embodiment, the environmental parameters within the preset distance of the mobile terminal are obtained; and after the liquid environment in the preset distance of the mobile terminal is determined according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state.
Here, the waterproof state may be understood as: the liquid can be prevented from entering the state of the mobile terminal when in a liquid environment. For example, the liquid may be an aqueous liquid such as fresh water, salt water, vinegar, and liquid alcohol.
In the waterproof state, the physical keys of the mobile terminal are retracted into the shell of the mobile terminal, and the outer surfaces of the physical keys are flush with the outer surface of the shell of the mobile terminal. Therefore, when the mobile terminal has a liquid environment within the expected distance, the physical keys of the mobile terminal can be retracted into the shell of the mobile terminal, and the outer surfaces of the physical keys are flush with the outer surface of the shell of the mobile terminal, that is, the physical keys can be retracted into the shell of the mobile terminal to occupy the gap without filler in the shell, so that the gaps between the physical keys and the shell of the mobile terminal are reduced, and further liquid molecules, such as water molecules, enter the shell of the mobile terminal, therefore, the water resistance of the mobile terminal can be intelligently controlled, and thus, without being triggered by a user, the physical keys can be automatically switched from a non-waterproof state to a waterproof state, and the phenomenon of water resistance failure caused by forgetting to trigger by the user is reduced; meanwhile, user operation is simplified, and user experience is improved.
In , in step 101, the acquiring environmental parameters within a predetermined distance of the mobile terminal includes:
acquiring the environmental humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the distance value change of the contact object within the preset distance through a distance sensor arranged on the mobile terminal; or the like, or, alternatively,
and acquiring the environment humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the pressure value change within the preset distance through a pressure sensor arranged on the mobile terminal.
Here, the acquiring, by a humidity sensor provided on the mobile terminal, an environmental parameter within a predetermined distance includes: and a humidity sensor arranged on the mobile terminal acquires environmental parameters of the mobile terminal within the preset distance according to a preset time period. For example, the mobile terminal is set to detect the environmental parameter for a time period of 3 seconds or 10 seconds, so that the environmental parameter of the predetermined distance of the mobile terminal can be monitored in real time. For example, taking a wearable device as an example, when a wearable device is worn during running, sweating, surfing and the like, the environment parameters of the wearable device can be detected in real time, so that the current environment of the wearable device can be known in time.
In order to reduce the excessive consumption of the electric energy of the mobile terminal caused by real-time detection and improve the endurance time of the mobile terminal, the time period can be set according to the possibility that liquid environment exists at the preset distance of different mobile terminals. The higher the probability, the shorter the time period may be set; accordingly, the lower the probability, the longer the time period may be set to save power of the mobile terminal.
In the embodiment, the preset time period may be set according to different user requirements, for example, some people may sweat easily during running, which indicates that the mobile terminal used by the user, for example, the wearable device, is more likely to be in a liquid environment, and therefore, the time period may be set to be shorter, for example, 3 seconds, while some people may not sweat easily, which indicates that the mobile terminal used by the user, for example, the wearable device, is more likely to be in a water environment than the user, and therefore, the time period may be set to be longer , for example, 10 seconds, than the user.
In another embodiment, the preset time period may be set according to different device types, for example, for a notebook computer, the preset time period may be longer, for example, days, or even longer, since the notebook computer is unlikely to be in a liquid environment, for a mobile phone, the mobile phone may be affected by rain, and the mobile phone may be more likely to be in a water environment than the notebook computer, and therefore, the preset time period may be set to be shorter than the time period of the notebook computer, for example, , for a wearable device, the mobile phone may be most likely to have a liquid environment, and the preset time period may be shorter than the mobile phone, for example, .
The method for detecting the humidity of the mobile terminal comprises the steps that the humidity sensor is arranged on the mobile terminal, and the humidity sensor is arranged on the mobile terminal, so that the current environment humidity of the mobile terminal is detected based on the opening of the humidity sensor by a user only when the humidity is required to be detected, the electric energy of the mobile terminal can be further saved by , and the cruising ability can be improved.
Here, the obtaining of the contact distance value change within the predetermined distance through the distance sensor provided in the mobile terminal may be understood as that if the contact distance value within the predetermined distance of the mobile terminal changes from larger distances to smaller distances, it indicates that there will be contact around the mobile terminal, and based on the above ambient humidity, starts to analyze whether there is a liquid environment within the predetermined distance of the mobile terminal.
Here, the obtaining of the pressure value change within the predetermined distance through the pressure sensor disposed on the mobile terminal may be understood as that if the pressure value detected by the pressure sensor of the mobile terminal is changed from smaller pressure values to larger pressure values, it indicates that there will be a contact object around the mobile terminal to apply pressure to the mobile terminal, and based on the above ambient humidity, starts to analyze whether a liquid environment exists within the predetermined distance of the mobile terminal.
In this embodiment, through the ambient humidity that humidity sensor obtained, the contact object distance value that combines to obtain through distance sensor changes, or, through the ambient humidity that humidity sensor obtained, the pressure value that combines to obtain pressure sensor changes, play and analyze whether mobile terminal the result of having the liquid environment in the predetermined distance is more accurate.
, the method further includes detecting whether the current environmental humidity is equal to or greater than a preset humidity threshold according to the current environmental humidity, and the determining that the liquid environment exists within the predetermined distance of the mobile terminal according to the environmental parameter in step 102 includes determining that the liquid environment exists within the predetermined distance of the mobile terminal if the current environmental humidity is equal to or greater than a preset humidity threshold, or determining that the liquid environment exists within the predetermined distance of the mobile terminal if the current environmental humidity is less than a preset humidity threshold.
Here, the humidity threshold may be a humidity value that the mobile terminal can bear after being tested, and specifically, the humidity value of the mobile terminal may be a value that the mobile terminal is effective to prevent moisture or water inside the mobile terminal. For example, the humidity threshold is a, and if the current environmental humidity of the mobile terminal is less than a, it is considered that a liquid environment exists within the predetermined distance of the mobile terminal; and if the current environment humidity of the mobile terminal is equal to or greater than A, the mobile terminal is considered to have no liquid environment within the predetermined distance.
In another embodiment, the obtaining 101 the environment parameter within the predetermined distance of the mobile terminal includes determining that the environment parameter is a liquid parameter when the mobile terminal enters the swimming mode, and the liquid parameter can indicate that the mobile terminal has the liquid environment within the predetermined distance.
Specifically, the mobile terminal is provided with a selection control for a swimming mode; the mobile terminal detects an input operation of a control for a swimming mode; and controlling the mobile terminal to enter the swimming mode based on the input operation.
In another implementation, based on the geographical location information of the mobile terminal, the mobile terminal is controlled to enter the swimming mode when the geographical location information is a preset geographical location.
It should be noted that the preset geographic location may be a physical location of a gymnasium with a swimming pool, or may also be a geographic location of a sports stadium with a swimming pool, or a geographic location of a seaside scenic spot, or may also be a geographic location set by the user. So, do not need the user to carry out manual setting, through the geographical position that mobile terminal located, carry out the early warning for mobile terminal's waterproof in advance, promote user experience.
, the method further includes controlling the movement of the physical keys of the mobile terminal on the mobile terminal to exit the waterproof state when the liquid environment is not present within the predetermined distance of the mobile terminal, wherein the physical keys of the mobile terminal protrude out of the outer surface of the housing of the mobile terminal after exiting the waterproof state.
Here, the predetermined distance of the mobile terminal does not have a liquid environment, and may be that the predetermined distance of the mobile terminal does not have a liquid environment detected by the humidity sensor and the distance sensor in the above embodiment, or the predetermined distance of the mobile terminal detected by the humidity sensor and the pressure sensor does not have a liquid environment; it may also be that in the above implementation, by detecting that the mobile terminal does not enter the swimming mode, it is determined that there is no liquid environment within the predetermined distance of the mobile terminal.
In this embodiment, when the mobile terminal does not have a liquid environment within the predetermined distance, the waterproof state is automatically exited, the use of the physical keys of the mobile terminal is resumed, manual operation by a user is not required, and the intelligence of the mobile terminal is improved.
, the physical keys include at least of power key, volume up key, volume down key, and main key.
It should be noted that the physical keys are virtually all physical keys that may comprise the housing surface of the mobile terminal.
, the present disclosure further provides specific embodiments to further understand the method for controlling the physical key status of the mobile terminal provided by the embodiments of the present disclosure.
The method described in this embodiment is specifically applied to wearable devices, in particular to smart watches.
Referring to fig. 2, fig. 2 is a scene schematic diagram of a method for controlling a physical key state of a mobile terminal according to an exemplary embodiment, where as shown in fig. 2, in a left diagram of fig. 2, a physical key 21 of the smart watch is in a state of exiting from the waterproof state in the above embodiment, that is, the physical key 21 of the smart watch protrudes out of an outer surface of a housing of the smart watch, and in a right diagram of fig. 2, the physical key 21 of the smart watch is in the waterproof state in the above embodiment, where in the waterproof state, the physical key 21 of the smart watch retracts into the housing of the mobile terminal, and an outer surface of the physical key is flush with an outer surface of the housing of the mobile terminal.
Obviously, under the condition that the physical keys 21 are in a waterproof state, the physical keys 21 occupy the free space inside the smart watch due to being retracted into the smart watch, so that gaps between the physical keys and the shell of the mobile terminal are reduced, water molecules are prevented from entering the shell of the smart watch, and an effective waterproof effect is achieved on the smart watch.
In this implementation, the smart watch may determine whether there is a liquid environment within a predetermined distance of the smart watch in two ways.
, determining a liquid parameter of the environment parameter by determining whether the smart watch is in a swimming mode or not, and when the smart watch enters the swimming mode, wherein the liquid parameter can indicate that a liquid environment exists within the preset distance of the mobile terminal, and at this time, the liquid environment can be determined to exist within the preset distance of the smart watch, and the movement of a physical button of the smart watch on the smart watch is controlled to enter a waterproof state, so that the influence of the liquid entering on internal parts of the smart watch is reduced.
In this embodiment, the liquid may be water.
Specifically, referring to fig. 3, fig. 3 is another scenario of a physical key state control method of a mobile terminal according to an exemplary embodiment of , and as shown in fig. 3, when the smart watch is set to the swimming mode, an icon for the swimming mode is displayed at a predetermined position on a display screen of the smart watch.
Wherein another modes are, through the humidity transducer who sets up in the smart watch, have the liquid environment when humidity transducer sensing to in the predetermined distance of smart watch, for example, the smart watch is in aqueous, or falls into water under the circumstances, and the physics button of automatic adjustment smart watch is waterproof state.
Here, the condition that the humidity sensor senses that the environment is that the user is in water or falls into water can be determined according to the method described in the above embodiment by detecting whether the current environment humidity is equal to or greater than a preset humidity threshold, and if the current environment humidity is equal to or greater than the preset humidity threshold, determining that the user of the smart watch is in water or falls into water; correspondingly, if the current environment humidity is smaller than the preset humidity threshold value, it is determined that the user of the smart watch is not in water or falls into water.
In this embodiment, when the smart watch is not in the swimming mode, or falls into water, or is in water, the physical keys of the smart watch will automatically extend out to exit the waterproof mode.
This embodiment can intelligently control the physics button entering waterproof state of intelligent wrist-watch, has improved the waterproof nature and the intellectuality of intelligent wrist-watch.
Fig. 4 is a physical key state control apparatus of kinds of mobile terminals according to an exemplary embodiment, and referring to fig. 4, the apparatus includes an obtaining module 41 and a th control module 42;
the obtaining module 41 is configured to obtain an environmental parameter within a predetermined distance of the mobile terminal;
the control module 42 is configured to control the physical key of the mobile terminal to enter a waterproof state after determining that the mobile terminal has a liquid environment within the predetermined distance according to the environmental parameters, wherein in the waterproof state, the physical key of the mobile terminal retracts into the housing of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the housing of the mobile terminal.
In alternative embodiments, the obtaining module 41 further includes a obtaining submodule and a second obtaining submodule;
the acquisition submodule is further configured to acquire the ambient humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal;
the second acquisition sub-module is further configured to acquire a contact object distance change within the predetermined distance through a distance sensor arranged on the mobile terminal; or acquiring the pressure value change within a preset distance through a pressure sensor arranged on the mobile terminal.
In alternative embodiments, the apparatus further includes a detection module configured to:
detecting whether the ambient humidity is equal to or greater than a preset humidity threshold value or not according to the ambient humidity within the preset distance;
the th control module 42, further configured to:
if the environmental humidity is equal to or greater than a preset humidity threshold value, determining that the liquid environment exists in the preset distance of the mobile terminal; or the like, or, alternatively,
and if the environmental humidity is smaller than a preset humidity threshold value, determining that the liquid environment does not exist in the preset distance of the mobile terminal.
In alternative embodiments, the obtaining module 41 is further configured to:
when the mobile terminal enters a swimming mode, determining the environmental parameter as a liquid parameter; the fluid parameter can indicate that the mobile terminal has the fluid environment within a predetermined distance.
In alternative embodiments, the apparatus further includes a second control module;
the second control module is configured to control the movement of a physical key of the mobile terminal on the mobile terminal to exit a waterproof state when the liquid environment is not present within the predetermined distance; and after exiting from the waterproof state, the physical key of the mobile terminal protrudes out of the outer surface of the shell of the mobile terminal.
In alternative embodiments, the physical keys include at least of power key, volume up key, volume down key, primary key.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 5 is a block diagram of a variety of mobile terminals 500 that are shown in accordance with an exemplary embodiment of . for example, the mobile terminals 500 may be mobile telephones, computers, digital cast terminals, messaging devices, game consoles, tablet devices, medical devices, fitness devices, personal digital assistants, and the like.
Referring to FIG. 5, mobile terminal 500 may include one or more components including processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communications component 516.
The processing component 502 generally controls the overall operation of the mobile terminal 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations the processing component 502 may include or more processors 520 to execute instructions to perform all or portions of the steps of the methods described above.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on mobile terminal 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 506 provides power to the various components of mobile terminal 500 Power component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for mobile terminal 500.
The multimedia component 508 includes a screen between the mobile terminal 500 and a user that provides output interfaces. in embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.A touch panel includes or more touch sensors to sense gestures on the touch, slide, and touch panel.
For example, audio component 510 includes Microphones (MICs) configured to receive external audio signals when mobile terminal 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode, the received audio signals may be stored in memory 504 or transmitted via communications component 516. in embodiments, audio component 510 also includes speakers for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 514 may include or more sensors to provide various aspects of state evaluation for mobile terminal 500. for example, sensor assembly 514 may detect the open/closed state of device 500, the relative positioning of components such as the display and keypad of mobile terminal 500, sensor assembly 514 may also detect changes in the position of mobile terminal 500 or mobile terminal 500 components, the presence or absence of user contact with mobile terminal 500, orientation or acceleration/deceleration of mobile terminal 500, and temperature changes of mobile terminal 500. sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
The communication component 516 is configured to facilitate communications between the mobile terminal 500 and other devices in a wired or wireless manner, the mobile terminal 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof in exemplary embodiments, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel in exemplary embodiments, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications.
In an exemplary embodiment, the mobile terminal 500 may be implemented by or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), field programmable arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, non-transitory computer readable storage media are also provided, such as the memory 504 including instructions executable by the processor 520 of the mobile terminal 500 to perform the above-described methods.
non-transitory computer readable storage media, wherein instructions when executed by a processor of a mobile terminal enable the mobile terminal to perform the page display method described in the above embodiments.
This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the -like principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains and as may be applied to the essential features hereinbefore set forth, the specification and examples are to be considered as illustrative, the true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1, method for controlling physical key state of mobile terminal, comprising:
acquiring environmental parameters within a preset distance of the mobile terminal;
after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state;
and in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
2. The method according to claim 1, wherein the obtaining environmental parameters within a predetermined distance of the mobile terminal comprises:
acquiring the environmental humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the distance value change of the contact object within the preset distance through a distance sensor arranged on the mobile terminal; or the like, or, alternatively,
and acquiring the environment humidity within the preset distance through a humidity sensor arranged on the mobile terminal, and acquiring the pressure value change within the preset distance through a pressure sensor arranged on the mobile terminal.
3. The method of claim 2, further comprising: detecting whether the ambient humidity is equal to or greater than a preset humidity threshold value or not according to the ambient humidity within the preset distance;
the determining that the mobile terminal has a liquid environment within the predetermined distance according to the environment parameter includes:
if the environmental humidity is equal to or greater than a preset humidity threshold value, determining that the liquid environment exists in the preset distance of the mobile terminal; or the like, or, alternatively,
and if the environmental humidity is smaller than a preset humidity threshold value, determining that the liquid environment does not exist in the preset distance of the mobile terminal.
4. The method according to claim 1, wherein the obtaining environmental parameters within a predetermined distance of the mobile terminal comprises:
when the mobile terminal enters a swimming mode, determining the environmental parameter as a liquid parameter; the fluid parameter can indicate that the mobile terminal has the fluid environment within the predetermined distance.
5. The method of claim 1, further comprising:
when the liquid environment is not arranged within the preset distance, controlling the movement of a physical key of the mobile terminal on the mobile terminal so as to exit a waterproof state; and after exiting from the waterproof state, the physical key of the mobile terminal protrudes out of the outer surface of the shell of the mobile terminal.
6. The method of claim 1, wherein the physical keys include at least of a power key, a volume up key, a volume down key, and a home key.
7, A physical key state control device of mobile terminal, comprising:
an obtaining module configured to obtain an environmental parameter within a predetermined distance of the mobile terminal;
and the control module is configured to control the physical key of the mobile terminal to enter a waterproof state after determining that the mobile terminal has a liquid environment within the predetermined distance according to the environment parameter, wherein in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
8. The apparatus of claim 7, wherein the obtaining module further comprises an th obtaining sub-module and a second obtaining sub-module;
the acquisition submodule is further configured to acquire the ambient humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal;
the second acquisition sub-module is further configured to acquire the contact distance value change within the predetermined distance through a distance sensor arranged on the mobile terminal; or acquiring the pressure value change within a preset distance through a pressure sensor arranged on the mobile terminal.
9. The apparatus of claim 8, further comprising: a detection module configured to:
detecting whether the ambient humidity is equal to or greater than a preset humidity threshold value or not according to the ambient humidity within the preset distance;
the th control module being further configured to:
if the environmental humidity is equal to or greater than a preset humidity threshold value, determining that the liquid environment exists in the preset distance of the mobile terminal; or the like, or, alternatively,
and if the environmental humidity is smaller than a preset humidity threshold value, determining that the liquid environment does not exist in the preset distance of the mobile terminal.
10. The apparatus of claim 7, wherein the obtaining module is further configured to:
when the mobile terminal enters a swimming mode, determining the environmental parameter as a liquid parameter; the fluid parameter can indicate that the mobile terminal has the fluid environment within a predetermined distance.
11. The apparatus of claim 7, further comprising a second control module;
the second control module is configured to control the movement of a physical key of the mobile terminal on the mobile terminal to exit a waterproof state when the liquid environment is not present within the predetermined distance; and after exiting from the waterproof state, the physical key of the mobile terminal protrudes out of the outer surface of the shell of the mobile terminal.
12. The device of claim 7, wherein the physical keys include at least of a power key, a volume up key, a volume down key, and a home key.
A mobile terminal of the type , comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring environmental parameters within a preset distance of the mobile terminal;
after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters, controlling a physical key of the mobile terminal to enter a waterproof state;
and in the waterproof state, the physical key of the mobile terminal retracts into the shell of the mobile terminal, and the outer surface of the physical key is flush with the outer surface of the shell of the mobile terminal.
14, non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of a method of implementing a physical key state control of a mobile terminal according to any of claims 1 to 6 and .
CN201910940070.8A 2019-09-30 2019-09-30 Physical key state control method and device of mobile terminal Active CN110737307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910940070.8A CN110737307B (en) 2019-09-30 2019-09-30 Physical key state control method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910940070.8A CN110737307B (en) 2019-09-30 2019-09-30 Physical key state control method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN110737307A true CN110737307A (en) 2020-01-31
CN110737307B CN110737307B (en) 2021-09-21

Family

ID=69268440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910940070.8A Active CN110737307B (en) 2019-09-30 2019-09-30 Physical key state control method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN110737307B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278543A (en) * 2005-08-23 2008-10-01 摩托罗拉公司 Mobile electronic device having a rotatable keypad
CN202406156U (en) * 2011-12-10 2012-08-29 陆建益 Multimedia phone supplied with power by solar energy and provided with full-function keyboard
EP2626768A1 (en) * 2010-11-12 2013-08-14 Kyocera Corporation Electronic device and handheld terminal provided therewith
CN104238671A (en) * 2014-09-15 2014-12-24 广东小天才科技有限公司 Method for realizing waterproof protection on wearable equipment and wearable equipment
CN106292261A (en) * 2016-08-30 2017-01-04 歌尔股份有限公司 A kind of intelligent watch and the installation method of physical button assembly thereof
CN206060717U (en) * 2016-08-31 2017-03-29 安顺供电局 A kind of concentrator with built-in key
US20170133173A1 (en) * 2014-06-17 2017-05-11 Zte Corporation Waterproof Apparatus for Terminal Side-Key, and Terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278543A (en) * 2005-08-23 2008-10-01 摩托罗拉公司 Mobile electronic device having a rotatable keypad
EP2626768A1 (en) * 2010-11-12 2013-08-14 Kyocera Corporation Electronic device and handheld terminal provided therewith
CN202406156U (en) * 2011-12-10 2012-08-29 陆建益 Multimedia phone supplied with power by solar energy and provided with full-function keyboard
US20170133173A1 (en) * 2014-06-17 2017-05-11 Zte Corporation Waterproof Apparatus for Terminal Side-Key, and Terminal
CN104238671A (en) * 2014-09-15 2014-12-24 广东小天才科技有限公司 Method for realizing waterproof protection on wearable equipment and wearable equipment
CN106292261A (en) * 2016-08-30 2017-01-04 歌尔股份有限公司 A kind of intelligent watch and the installation method of physical button assembly thereof
CN206060717U (en) * 2016-08-31 2017-03-29 安顺供电局 A kind of concentrator with built-in key

Also Published As

Publication number Publication date
CN110737307B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN105159640B (en) Display interface rotating method and device and mobile terminal
US20160210034A1 (en) Method and apparatus for switching display mode
CN107608561B (en) Touch screen control method and device
CN106843706B (en) Shutdown control method and device and terminal equipment
CN107943347B (en) Touch screen control method and device
CN106941572B (en) Incoming call reminding method and device
CN107202574B (en) Motion trail information correction method and device
CN108769416B (en) Screen-off display method and device and non-transitory computer-readable storage medium
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
CN105807894B (en) Using the treating method and apparatus for holding lock
CN112839177B (en) Lens control method, lens control device and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN106527703B (en) Message reminding method and device
CN105786561B (en) Method and device for calling process
CN111240456A (en) Power saving setting method, power saving setting device and computer storage medium
CN110737307B (en) Physical key state control method and device of mobile terminal
CN107809538B (en) Alarm clock reminding method and device and computer readable storage medium
US20160125303A1 (en) Method and apparatus for calculating smart indicator
CN107528098B (en) Charging method and device
CN110798721B (en) Episode management method and device and electronic equipment
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN110286735B (en) Processing method, device and medium
CN108365645B (en) Charging control method and device and storage medium
CN109813295B (en) Orientation determination method and device and electronic equipment

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