CN110737307B - 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
CN110737307B
CN110737307B CN201910940070.8A CN201910940070A CN110737307B CN 110737307 B CN110737307 B CN 110737307B CN 201910940070 A CN201910940070 A CN 201910940070A CN 110737307 B CN110737307 B CN 110737307B
Authority
CN
China
Prior art keywords
mobile terminal
humidity
preset
distance
environmental
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
CN201910940070.8A
Other languages
Chinese (zh)
Other versions
CN110737307A (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 a method and a device for controlling physical key states of a mobile terminal, the mobile terminal and a storage medium, wherein the method comprises the following steps: acquiring environmental parameters within a preset distance of the mobile terminal; after determining that the mobile terminal has a liquid environment within a preset distance 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 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. Because this openly can control mobile terminal's physical button and get into waterproof state, promptly, with mobile terminal's physical button automatic indentation extremely in mobile terminal's the casing, and with the surface parallel and level of mobile terminal's casing reduces button and the inside gap of mobile terminal to reduce the harm of water to mobile terminal's internals, finally play intelligent waterproof effect.

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
Mobile terminals are more and more commonly used in life, and application environments of the corresponding mobile terminals become 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 water resistance still stays in a waterproof bag which needs a user to use the outside, and the mobile terminals are placed in the waterproof bag; or for some mobile terminals with waterproof structures, the user is required to manually adjust the waterproof structures, so that the operation is complex, and the user experience is not facilitated.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for controlling a physical key state of a mobile terminal, the mobile terminal, and a storage medium, wherein the technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for controlling a physical key state of a mobile terminal is provided, 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 comprise at least one of: a power key, a volume increasing key, a volume decreasing key and a main key;
according to a second aspect of the embodiments of the present disclosure, there is provided a physical key state control device of a mobile terminal, including:
an obtaining module configured to obtain an environmental parameter within a predetermined distance of the mobile terminal;
the first control module is configured to control a physical key of the mobile terminal to enter a waterproof state after determining that a liquid environment exists within the preset distance of the mobile terminal according to the environment parameters; 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: a first obtaining submodule and a second obtaining submodule;
the first obtaining sub-module is further configured to obtain 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 comprise at least one of: power key, volume plus key, volume minus key and main key.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal, 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, a non-transitory computer-readable storage medium is provided, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform steps of implementing any of the above 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 a mobile terminal according to an exemplary embodiment;
fig. 2 is a schematic diagram illustrating a scenario of a physical key state control method of a mobile terminal according to an exemplary embodiment;
fig. 3 is another schematic diagram illustrating another scenario of a physical key state control method of a mobile terminal according to an exemplary embodiment;
fig. 4 is a block diagram illustrating a key state control apparatus of a mobile terminal according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a physical key state control method of a mobile terminal according to an exemplary embodiment, as shown in fig. 1, the method including the steps of:
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.
Here, the method is applied to a mobile terminal, and the mobile terminal may be specifically at least one of a mobile phone, a tablet computer, a notebook computer, and a wearable device; wearable equipment can be for intelligent wrist-watch, intelligent bracelet, intelligent helmet etc..
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 an embodiment, in step 101, the acquiring an environmental parameter 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 one embodiment, the preset time period may be set according to different user requirements, for example, some people are prone to sweat during running, which indicates that the mobile terminal used by this type of user, for example, a 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; some people do not sweat easily, which means that the mobile terminal used by this kind of user, for example, a wearable device, is more likely to be in a water environment than the user who does not sweat easily, and therefore, the time period can be set longer than that of the user in the former kind, for example, 10 seconds.
In another embodiment, the preset time period may also be set according to different device types, for example, for a notebook computer, the preset time period may be longer, for example, one day or even longer, because it is unlikely to be in a liquid environment; for a mobile phone, the mobile phone may be influenced by the conditions such as rainy days, and compared with a notebook computer, the mobile phone is more likely to be in a water environment, so that the time period can be set to be shorter than that of the notebook computer; for wearable devices, the liquid environment is most likely to occur, and the time period can be set to be shorter than that of a mobile phone.
Of course, acquiring the ambient humidity within the predetermined distance by the humidity sensor disposed on the mobile terminal may further include: and when the humidity sensor is started, acquiring the environmental humidity within the preset distance through the humidity sensor arranged on the mobile terminal. Therefore, only when the humidity is required to be detected, the current environment humidity of the mobile terminal is detected based on the opening of the humidity sensor by the user, the electric energy of the mobile terminal can be further saved, and the cruising ability is improved.
Here, the obtaining of the contact distance value change within the predetermined distance through the distance sensor provided on the mobile terminal may be understood as that if the contact distance value within the predetermined distance of the mobile terminal changes from a larger distance to a smaller distance, it indicates that there will be contact around the mobile terminal, and based on the environmental humidity, the contact distance value within the predetermined distance of the mobile terminal is analyzed together to obtain 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 changes from a smaller pressure value to a larger pressure value, it indicates that there will be a contact object around the mobile terminal to apply pressure to the mobile terminal, and based on the environmental humidity, the mobile terminal is analyzed together to obtain whether there is a liquid environment within the predetermined distance of the mobile terminal.
In this embodiment, through the ambient humidity that humidity transducer obtained combines the contact object distance value that obtains through distance sensor to change, perhaps, through the ambient humidity that humidity transducer obtained combines the pressure value change that pressure sensor obtained, analyzes out together mobile terminal whether the result that has the liquid environment in the predetermined distance is more accurate.
Further, the method further comprises: detecting whether the current environment humidity is equal to or greater than a preset humidity threshold value or not according to the current environment humidity; the step 102 of determining that the mobile terminal has a liquid environment within the predetermined distance according to the environment parameter includes: 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, if the current environment humidity is smaller than a preset humidity threshold, determining that the liquid environment exists in the preset distance of the mobile terminal.
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 step 101 of 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.
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 embodiment, based on the geographical location information of the mobile terminal, when the geographical location information is a preset geographical location, the mobile terminal is controlled to enter the swimming mode.
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.
Further, the method further comprises: and when the liquid environment does not exist within the preset distance of the mobile terminal, controlling the movement of the physical key of the mobile terminal on the mobile terminal so as to exit from a waterproof state, wherein 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. Therefore, the waterproof state is automatically quitted when the liquid environment is not arranged in the preset distance of the mobile terminal or when the liquid environment is not arranged in the preset distance of the mobile terminal, so that the physical keys of the mobile terminal protrude out of the surface of the mobile terminal, the operation of a user is facilitated, and the user experience is improved.
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.
Further, the physical keys include at least one of: power key, volume plus key, volume minus 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.
Further, the present disclosure also provides a specific embodiment to further understand the method for controlling the physical key state of the mobile terminal provided by the embodiment 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 illustrating a physical key state control method of a mobile terminal according to an exemplary embodiment, as shown in fig. 2, in the 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; in the right diagram of fig. 2, the physical keys 21 of the smart watch are in the waterproof state described in the above embodiment, wherein in the waterproof state, the physical keys 21 of the smart watch are retracted into the housing of the mobile terminal, and the outer surfaces of the physical keys are flush with the 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.
In one mode, by determining whether the smart watch is in a swimming mode, when the smart watch enters the swimming mode, determining the liquid parameter of the environmental parameter; the liquid parameter can indicate that the mobile terminal has a liquid environment within the preset distance, at this time, the fact that the liquid environment is within the preset distance of the intelligent watch can be determined, the movement of a physical key of the intelligent watch on the intelligent watch is controlled, so that the intelligent watch enters a waterproof state, and the influence of the entering of liquid on internal parts of the intelligent watch is reduced.
In this embodiment, the liquid may be water.
Specifically, referring to fig. 3, fig. 3 is another schematic view of a scenario of a method for controlling a physical key state of a mobile terminal according to an exemplary embodiment, and as shown in fig. 3, when the smart watch is set to a swimming mode, an icon for the swimming mode is displayed at a predetermined position on a display screen of the smart watch.
Another mode is that, 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 diagram illustrating a physical key state control apparatus of a mobile terminal according to an exemplary embodiment, and referring to fig. 4, the apparatus includes: an acquisition module 41 and a first control module 42;
the obtaining module 41 is configured to obtain an environmental parameter within a predetermined distance of the mobile terminal;
the first control module 42 is configured to control a physical key of the mobile terminal to enter a waterproof state after determining that a liquid environment exists within the predetermined distance of the mobile terminal according to the environment parameter; 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 an optional embodiment, the obtaining module 41 further includes: a first obtaining submodule and a second obtaining submodule;
the first obtaining sub-module is further configured to obtain 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 an optional embodiment, 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 first 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 an optional embodiment, 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 an alternative embodiment, 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.
In an alternative embodiment, the physical keys comprise at least one of: power key, volume plus key, volume minus key and main 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 illustrating a mobile terminal 500 according to an example embodiment. For example, the mobile terminal 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 5, the mobile terminal 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the mobile terminal 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
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. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the mobile terminal 500.
The multimedia component 508 includes a screen providing an output interface between the mobile terminal 500 and the user. In some 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the mobile terminal 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker 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.
The sensor component 514 includes one or more sensors for providing various aspects of state assessment for the mobile terminal 500. For example, sensor assembly 514 may detect an open/closed state of device 500, the relative positioning of components, such as a display and keypad of mobile terminal 500, the change in position of mobile terminal 500 or a component of mobile terminal 500, the presence or absence of user contact with mobile terminal 500, the orientation or acceleration/deceleration of mobile terminal 500, and the change in temperature of mobile terminal 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
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 an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the mobile terminal 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the page display method according to the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the 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. It is intended that the specification and examples be considered as exemplary only, with a 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 (12)

1. A physical key state control method of a mobile terminal is characterized by comprising the following steps:
acquiring environmental parameters within a preset distance of the mobile terminal; the obtaining of the environmental parameters 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, acquiring the environmental humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal and acquiring the pressure value change within the predetermined distance through a pressure sensor arranged on the mobile terminal; wherein, through the humidity transducer that sets up on the mobile terminal obtains the environmental parameter in the predetermined distance, include: acquiring environmental parameters of the mobile terminal within the preset distance according to a preset time period by a humidity sensor arranged on the mobile terminal, wherein the preset time period is set according to the possibility that different preset distances of the mobile terminal have liquid environments;
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 move under the driving of a motor so as 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 of claim 1, 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.
3. 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.
4. 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.
5. The method of claim 1, wherein the physical keys comprise at least one of: power key, volume plus key, volume minus key and main key.
6. A physical key state control device of a mobile terminal, comprising:
an obtaining module configured to obtain an environmental parameter within a predetermined distance of the mobile terminal; the obtaining of the environmental parameters 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, acquiring the environmental humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal and acquiring the pressure value change within the predetermined distance through a pressure sensor arranged on the mobile terminal; wherein, through the humidity transducer that sets up on the mobile terminal obtains the environmental parameter in the predetermined distance, include: acquiring environmental parameters of the mobile terminal within the preset distance according to a preset time period by a humidity sensor arranged on the mobile terminal, wherein the preset time period is set according to the possibility that different preset distances of the mobile terminal have liquid environments;
the first control module is configured to control a physical key of the mobile terminal to be driven by a motor to move so as to enter a waterproof state after determining that a liquid environment exists in the preset distance of the mobile terminal according to the environment parameters; 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.
7. The apparatus of claim 6, 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 first control module 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.
8. The apparatus of claim 6, 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.
9. The apparatus of claim 6, 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.
10. The apparatus of claim 6, wherein the physical keys comprise at least one of: power key, volume plus key, volume minus key and main key.
11. A mobile terminal, 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; the obtaining of the environmental parameters 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, acquiring the environmental humidity within the predetermined distance through a humidity sensor arranged on the mobile terminal and acquiring the pressure value change within the predetermined distance through a pressure sensor arranged on the mobile terminal; wherein, through the humidity transducer that sets up on the mobile terminal obtains the environmental parameter in the predetermined distance, include: acquiring environmental parameters of the mobile terminal within the preset distance according to a preset time period by a humidity sensor arranged on the mobile terminal, wherein the preset time period is set according to the possibility that different preset distances of the mobile terminal have liquid environments;
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.
12. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of a physical key state control method implementing the mobile terminal of any of claims 1 to 5.
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 CN110737307A (en) 2020-01-31
CN110737307B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202406156U (en) * 2011-12-10 2012-08-29 陆建益 Multimedia phone supplied with power by solar energy and provided with full-function keyboard
CN104238671A (en) * 2014-09-15 2014-12-24 广东小天才科技有限公司 Method for realizing waterproof protection of wearable device and wearable device
CN106292261A (en) * 2016-08-30 2017-01-04 歌尔股份有限公司 A kind of intelligent watch and the installation method of physical button assembly thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070142101A1 (en) * 2005-08-23 2007-06-21 Sudhir Seshagiri Mobile electronic device having a rotatable keypad
EP2626768B1 (en) * 2010-11-12 2020-01-22 Kyocera Corporation Electronic device and handheld terminal provided therewith
CN204498512U (en) * 2014-06-17 2015-07-22 中兴通讯股份有限公司 Terminal side switch water-tight device and terminal
CN206060717U (en) * 2016-08-31 2017-03-29 安顺供电局 A kind of concentrator with built-in key

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202406156U (en) * 2011-12-10 2012-08-29 陆建益 Multimedia phone supplied with power by solar energy and provided with full-function keyboard
CN104238671A (en) * 2014-09-15 2014-12-24 广东小天才科技有限公司 Method for realizing waterproof protection of wearable device and wearable device
CN106292261A (en) * 2016-08-30 2017-01-04 歌尔股份有限公司 A kind of intelligent watch and the installation method of physical button assembly thereof

Also Published As

Publication number Publication date
CN110737307A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
US20170344192A1 (en) Method and device for playing live videos
CN105159640B (en) Display interface rotating method and device and mobile terminal
EP3261019A1 (en) Method and device for obtaining movement track
CN107608561B (en) Touch screen control method and device
CN109557999B (en) Bright screen control method and device and storage medium
CN107943409B (en) Touch screen control method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN107943347B (en) Touch screen control 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
CN107343087B (en) Intelligent equipment control method and device
CN106843706B (en) Shutdown control method and device and terminal equipment
CN105868709B (en) Method and device for closing fingerprint identification function
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
CN112135035B (en) Control method and device of image acquisition assembly and storage medium
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN107809588B (en) Monitoring method and device
CN107734303B (en) Video identification method and device
CN110737307B (en) Physical key state control method and device of mobile terminal
US20200106936A1 (en) Full screen terminal, operation control method, and device based on full screen terminal
CN108647074B (en) Method, device, hardware device and medium for displaying dynamic information in screen locking state
CN109905543B (en) Method and device for preventing misoperation of terminal
CN112748817A (en) Information control method and device, terminal and storage medium
CN107677363B (en) Noise prompting method and intelligent terminal
CN106375727B (en) Method and device for controlling use state of image pickup 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