CN109874165B - Method for timely closing sensor of wearable device, wearable device and storage medium - Google Patents

Method for timely closing sensor of wearable device, wearable device and storage medium Download PDF

Info

Publication number
CN109874165B
CN109874165B CN201910246511.4A CN201910246511A CN109874165B CN 109874165 B CN109874165 B CN 109874165B CN 201910246511 A CN201910246511 A CN 201910246511A CN 109874165 B CN109874165 B CN 109874165B
Authority
CN
China
Prior art keywords
application program
sensor
wearable device
state
memory
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
CN201910246511.4A
Other languages
Chinese (zh)
Other versions
CN109874165A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910246511.4A priority Critical patent/CN109874165B/en
Publication of CN109874165A publication Critical patent/CN109874165A/en
Application granted granted Critical
Publication of CN109874165B publication Critical patent/CN109874165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method for timely closing a sensor of wearable equipment, which comprises the steps of detecting the running state of an application program of the wearable equipment and the memory condition of the wearable equipment after the sensor corresponding to the application program is arranged in a system manager of the wearable equipment; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. In addition, the invention also discloses wearable equipment and a storage medium. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, reduced wearable equipment consumption, improved wearable equipment performance.

Description

Method for timely closing sensor of wearable device, wearable device and storage medium
Technical Field
The invention relates to the field of wearable equipment, in particular to a method for timely closing a sensor of the wearable equipment, the wearable equipment and a storage medium.
Background
Wearable equipment is called wearable intelligent equipment, and is a general name for applying wearable technology to intelligently design daily wearing and develop wearable equipment. The key point for determining the future market development of the wearable device market is to improve the convenience and the functionality of the wearable device. This also puts higher demands on the development of wearable devices and their related technologies, especially in terms of sensors, which are core components of wearable devices. Depending on the product, the role that the sensor plays in the wearable device is also different. However, it is undeniable that the function and performance of the wearable device are not supported by the sensor core technology. To reduce power consumption and facilitate wearing, wearable devices are typically designed to be small in size.
Taking the bracelet as an example, the sensor is the leading cause of consumption, again because bracelet battery total amount is low grade reason, if can not use up the sensor at the user after, in time close, the resource will be seriously wasted.
In the prior art, after a user clicks for example a bracelet heart rate, an Activity of a sports heart rate monitoring interface is opened, a heart rate sensor is opened in an onCreate () periodic function of the Activity interface for monitoring, and after the Activity is detected, the interface is refreshed and displayed to the user. When the application program is closed, a periodic function onDestore () of the Activity is called, and the closing operation of the sensor is carried out in the periodic function onDestore (), so that the release of resources is realized.
The prior art has the problems that: the sensor switch and the application program life cycle are bound together in design, when the application program crash or the application program is killed off in the background, the closing process of the sensor cannot be carried out, so that the sensor resource cannot be released in time, and the wearable device is in serious power consumption.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for turning off a sensor of a wearable device in time, the wearable device, and a storage medium, so as to ensure that the sensor can be turned off in time when not in use, reduce power consumption of the wearable device, and improve performance of the wearable device.
According to an aspect of the embodiments of the present invention, there is provided a method for timely turning off a wearable device sensor, including:
detecting the running state of the wearable device application program and the memory condition of the wearable device;
when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged;
and when the sensor is in an open state, closing the sensor and then closing the application program.
Optionally, before detecting the running state of the application program of the wearable device and the memory condition of the wearable device, the method further includes:
and setting a sensor used correspondingly by an application program in the system manager of the wearable device.
Optionally, the detecting the running state of the application program of the wearable device and the memory condition of the wearable device includes:
detecting the wearable device application running state;
the application program running state comprises a normal working state and a stop working state;
detecting the memory condition of the wearable device;
the memory condition comprises a memory shortage state and a memory sufficiency state.
Optionally, when it is detected that the memory of the wearable device is insufficient, the application program needs to be closed, or the application program stops working, determining whether the sensor is in an open state includes:
when the wearable device is detected to have insufficient memory and the application program needs to be closed, judging whether a sensor used by the application program is in an open state or not; alternatively, the first and second electrodes may be,
and when the application program is detected to stop working, judging whether a sensor used by the application program is in an open state or not.
Optionally, when it is detected that the memory of the wearable device is insufficient and the application program needs to be closed, determining whether a sensor used by the application program is in an open state includes:
when the wearable device is detected to have insufficient memory, the wearable device system manager checks and kills part of application programs, and the application programs are in a state needing to be closed;
when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, when it is detected that the application program stops working, the determining whether a sensor used by the application program is in an open state includes:
when the wearable device system manager detects the CRash of the application program, the application program is in a work stopping state;
and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, the turning off the sensor and then turning off the application when the sensor is in the on state includes:
when the sensor is judged to be in an open state, actively calling a sensor closing function to close the sensor;
and when the sensor is closed, closing the application program.
Optionally, the method further comprises:
and when the sensor is judged to be in the closed state, normally closing the application program.
According to another aspect of an embodiment of the present invention, there is provided a wearable device including:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program realizes the steps of the method when executed by the processor.
According to another aspect of embodiments of the present invention, there is provided a storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the method.
Compared with the prior art, the method for timely shutting down the sensor of the wearable device, the wearable device and the storage medium provided by the invention have the advantages that after the sensor used by the application program is arranged in the system manager of the wearable device, the running state of the application program of the wearable device and the memory condition of the wearable device are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has strengthened user's use and has experienced.
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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method for timely turning off a sensor of a wearable device according to an embodiment of the present invention;
FIG. 6 is a logic diagram of a method for timely shutting down a sensor of a wearable device according to an embodiment of the disclosure;
fig. 7 is a block diagram of a wearable device according to an embodiment of the present invention;
fig. 8 is a hardware schematic diagram of an implementation manner of a wearable device provided in an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch, an intelligent mobile phone and the like. With the continuous development of screen technologies, screen forms such as flexible screens and folding screens appear, and mobile terminals such as smart phones can also be used as wearable devices. The wearable device provided in the embodiment of the present invention may include: a Radio Frequency (RF) unit, a WiFi module, an audio output unit, an a/V (audio/video) input unit, a sensor, a display unit, a user input unit, an interface unit, a memory, a processor, and a power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic diagram of a hardware structure of a wearable device for implementing various embodiments of the present invention, where the wearable device 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or combine certain components, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the rf unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, the rf unit 101 may transmit uplink information to a base station, in addition, the downlink information sent by the base station may be received and then sent to the processor 110 of the wearable device for processing, the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic location where the wearable device is located changes, the base station may send a message notification of the change in the geographic location to the radio frequency unit 101 of the wearable device, and after receiving the message notification, the message notification may be sent to the processor 110 of the wearable device for processing, and the processor 110 of the wearable device may control the message notification to be displayed on the display panel 1061 of the wearable device; typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: the server may push a message notification of resource update to the wearable device through wireless communication to remind a user of updating the application program if the file resource corresponding to the application program in the server is updated after the wearable device finishes downloading the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may be configured with an esim card (Embedded-SIM) to access an existing communication network, and by using the esim card, the internal space of the wearable device may be saved, and the thickness may be reduced.
It is understood that although fig. 1 shows the radio frequency unit 101, it is understood that the radio frequency unit 101 does not belong to the essential constituents of the wearable device, and can be omitted entirely as required within the scope not changing the essence of the invention. Wearable device 100 may implement a communication connection with other devices or a communication network through WiFi module 102 alone, which is not limited to the embodiments of the present invention.
WiFi belongs to short-distance wireless transmission technology, and the wearable device can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband Internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the wearable device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the wearable device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
In one embodiment, the wearable device 100 includes one or more cameras, and by turning on the cameras, capturing of images can be realized, functions such as photographing and recording can be realized, and the positions of the cameras can be set as required.
The wearable device 100 also includes at least one sensor 105, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the wearable device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, and the wearable device can realize non-contact operation by adopting the proximity sensor, so that more operation modes are provided.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which, when worn, enables detection of heart rate by proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, and by reading the fingerprint, functions such as security verification can be implemented.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 is a flexible display screen, and when the wearable device using the flexible display screen is worn, the screen can be bent, so that the wearable device is more conformable. Optionally, the flexible display screen may adopt an OLED screen body and a graphene screen body, in other embodiments, the flexible display screen may also be made of other display materials, and this embodiment is not limited thereto.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape to wrap around when worn. In other embodiments, other approaches may be taken.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the wearable device. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
In one embodiment, the side of the wearable device 100 may be provided with one or more buttons. The button can realize various modes such as short-time pressing, long-time pressing, rotation and the like, thereby realizing various operation effects. The number of the buttons can be multiple, and different buttons can be combined for use to realize multiple operation functions.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the wearable device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the wearable device, and is not limited herein. For example, when receiving a message notification of an application program through the rf unit 101, the processor 110 may control the message notification to be displayed in a predetermined area of the display panel 1061, where the predetermined area corresponds to a certain area of the touch panel 1071, and perform a touch operation on the certain area of the touch panel 1071 to control the message notification displayed in the corresponding area on the display panel 1061.
The interface unit 108 serves as an interface through which at least one external device is connected to the wearable apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 is configured as a contact, and is connected to another corresponding device through the contact to implement functions such as charging and connection. The contact can also be waterproof.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device by various interfaces and lines, and performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling up data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for supplying power to various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through Bluetooth, so that communication and information interaction are realized.
Please refer to fig. 2-4, which are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device in the embodiment of the invention comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show the structural schematic diagram of the wearable device screen when the wearable device screen is unfolded, and fig. 4 shows the structural schematic diagram of the wearable device screen when the wearable device screen is bent.
Based on the above wearable device hardware structure, various embodiments of the method of the present invention are presented.
The embodiment of the invention discloses a method for timely closing a sensor of wearable equipment, the wearable equipment and a storage medium, wherein after the sensor used correspondingly by an application program is arranged in a system manager of the wearable equipment, the running state of the application program of the wearable equipment and the memory condition of the wearable equipment are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has increased user's use and has experienced.
Example one
The method for timely turning off the sensor of the wearable device provided by the embodiment is applicable to various wearable devices, for example, to wearable devices capable of talking and/or communicating, and is also applicable to wearable devices incapable of talking and/or communicating, and what functions the wearable device specifically has is not taken as a limitation on the wearable device provided by the embodiment, as long as the method for timely turning off the sensor of the wearable device provided by the embodiment can be implemented.
The method for timely turning off the sensor of the wearable device provided by the embodiment is shown in fig. 5, and includes:
step S501: and detecting the running state of the application program of the wearable device and the memory condition of the wearable device.
Step S502: when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged.
Step S503: and when the sensor is in an open state, closing the sensor and then closing the application program.
Wherein, a sensor used by an application program needs to be set in advance in the system manager of the wearable device. For example, a heart rate application corresponds to using a heart rate sensor.
The sensor is a detecting device which can sense the measured information and convert the sensed information into electric signals or other information in required form according to a certain rule to output, so as to meet the requirements of information transmission, processing, storage, display, record, control and the like.
Sensors in wearable devices can now be classified according to function into the following categories:
a motion sensor: including acceleration sensors, gyroscopes, geomagnetic or electronic compass sensors, barometric pressure sensors (which measure barometric pressure to calculate altitude), and the like. The sensors mainly realize the functions of motion detection, navigation, entertainment, man-machine interaction and the like, wherein the electronic compass sensor can be used for measuring the direction and realizing or assisting navigation. Therefore, measuring, recording and analyzing the activity of the human body by the motion sensor anytime and anywhere has a great value, and the user can know the number of running steps, the number of swimming laps, the riding distance, the energy consumption and the sleeping time, and even analyze the sleeping quality and the like.
A biosensor: the blood glucose sensor, the blood pressure sensor, the electrocardio sensor, the myoelectricity sensor, the body temperature sensor, the brain wave sensor and the like are included, and the functions mainly realized by the sensors comprise health and medical monitoring, entertainment and the like.
An environment sensor: the environment monitoring and health reminding device comprises a temperature and humidity sensor, a gas sensor, a pH sensor, an ultraviolet sensor, an ambient light sensor, a particulate matter sensor or a dust sensor, an air pressure sensor, a microphone and the like, wherein the sensors mainly realize the functions of environment monitoring, weather forecast, health reminding and the like.
Typically, when an application is opened for operation, a corresponding sensor is used. If the terminal is used for shooting, the terminal can determine the exposure time and whether the LED flash lamp is turned on or not according to the brightness of the environment by using the light sensor, so that the shooting quality of the picture is improved. However, when the photo application is closed, the light sensor is not fully released, still in the wake-up state. The light sensor in the wake-up state will then consume the terminal power and it is therefore necessary to release the light sensor.
In practical application, the wearable device application program condition needs to be known by detecting the wearable device application program running state and the wearable device memory condition, wherein the application program running state includes a normal working state and a stop working state, and the memory condition includes a memory shortage state and a memory sufficiency state.
In practical application, when the wearable device system manager detects the CRash of an application program, the application program is in a stop working state; and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
In practical application, when the wearable device is detected to have insufficient memory, and a housekeeper of the wearable device checks and kills part of application programs, the application programs are in a state of needing to be closed; when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
In practical application, when the sensor is judged to be in an open state, a sensor closing function is actively called to close the sensor, and after the sensor is closed, the application program is closed; and when the sensor is judged to be in the closed state, normally closing the application program.
For example, when it is detected that the heart rate application program needs to be checked and killed, such as insufficient memory of the device, before the heart rate application program is checked and killed, the sensor closing function should be actively called to close the sensor, and then the checking and killing application is performed. When the application program crash is detected, a sensor closing function is actively called to close the sensor which is strongly bound by the application program, so that the purpose of releasing resources is achieved.
In this way, in the method for timely shutting down a wearable device sensor described in the embodiment in fig. 5, after a sensor used by an application is set in a wearable device system manager, an application running state of the wearable device and a memory condition of the wearable device are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has increased user's use and has experienced.
Example two
The logic diagram of the method for timely turning off the sensor of the wearable device provided by the embodiment is shown in fig. 6, and includes:
step S601: and setting a sensor used correspondingly by an application program in the system manager of the wearable device.
In practical application, a sensor used by an application program is set in advance in the wearable device system manager. For example, the heart rate application program proceeds to step S602 in response to using the heart rate sensor.
Step S602: and detecting the running state of the application program of the wearable device and the memory condition of the wearable device.
In practical application, the wearable device application program condition needs to be known by detecting the wearable device application program running state and the wearable device memory condition, wherein the application program running state includes a normal working state and a stop working state, and the memory condition includes a memory shortage state and a memory sufficiency state. The process advances to step S603.
Step S603: when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged.
In practical application, when the wearable device system manager detects the CRash of an application program, the application program is in a stop working state; and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state. When the wearable device is detected to have insufficient memory, the wearable device system manager checks and kills part of application programs, and the application programs are in a state needing to be closed; when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
When the sensor is in the on state, the process proceeds to step S604.
Step S604: and calling a sensor closing function, closing the sensor and then closing the application program.
In practical application, when the sensor is judged to be in an open state, a sensor closing function is actively called, the sensor is closed, and after the sensor is closed, the application program is closed.
When the sensor is in the off state, the process proceeds to step S605.
Step S605: and normally closing the application program.
For example, when it is detected that the heart rate application program needs to be checked and killed, such as insufficient memory of the device, before the heart rate application program is checked and killed, the sensor closing function should be actively called to close the sensor, and then the checking and killing application is performed. When the application program crash is detected, a sensor closing function is actively called to close the sensor which is strongly bound by the application program, so that the purpose of releasing resources is achieved.
As can be seen, in the embodiment, in the logic diagram of the method for timely shutting down the sensor of the wearable device described in fig. 6, after the sensor used by the application program is set in the system manager of the wearable device, the running state of the application program of the wearable device and the memory condition of the wearable device are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has increased user's use and has experienced.
EXAMPLE III
According to the embodiment of the invention, the wearable device for implementing the method is also provided.
Fig. 7 is a block diagram of a wearable device according to an embodiment of the present invention, and as shown in fig. 7, the wearable device may include: a memory 701, and one or more processors 702 (only one of which is shown), the processors 702 being coupled to the memory 701 via a communication bus.
The memory 701 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method for timely turning off the wearable device sensor in the embodiment of the present invention, and the processor 702 executes various functional applications and data processing by running the software programs and modules stored in the memory 701, that is, the method for timely turning off the wearable device sensor is implemented. The memory 701 may include high speed random access memory 701 and may also include non-volatile memory 701, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory 701. In some examples, memory 701 may further include memory 701 disposed remotely from processor 702, and such remote memory 701 may be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The wearable device further comprises transmission means (not shown) for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device includes a Network adapter (NIC) that can be connected to the router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Wherein, in particular, the memory 701 is used for storing application programs;
the processor 702 may call a method program stored in the memory 701 to timely turn off the wearable device sensor to perform the following steps:
detecting the running state of the wearable device application program and the memory condition of the wearable device;
when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged;
and when the sensor is in an open state, closing the sensor and then closing the application program.
Optionally, before detecting the running state of the application program of the wearable device and the memory condition of the wearable device, the method further includes:
and setting a sensor used correspondingly by an application program in the system manager of the wearable device.
Optionally, the detecting the running state of the application program of the wearable device and the memory condition of the wearable device includes:
detecting the wearable device application running state;
the application program running state comprises a normal working state and a stop working state;
detecting the memory condition of the wearable device;
the memory condition comprises a memory shortage state and a memory sufficiency state.
Optionally, when it is detected that the memory of the wearable device is insufficient, the application program needs to be closed, or the application program stops working, determining whether the sensor is in an open state includes:
when the wearable device is detected to have insufficient memory and the application program needs to be closed, judging whether a sensor used by the application program is in an open state or not; alternatively, the first and second electrodes may be,
and when the application program is detected to stop working, judging whether a sensor used by the application program is in an open state or not.
Optionally, when it is detected that the memory of the wearable device is insufficient and the application program needs to be closed, determining whether a sensor used by the application program is in an open state includes:
when the wearable device is detected to have insufficient memory, the wearable device system manager checks and kills part of application programs, and the application programs are in a state needing to be closed;
when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, when it is detected that the application program stops working, the determining whether a sensor used by the application program is in an open state includes:
when the wearable device system manager detects the CRash of the application program, the application program is in a work stopping state;
and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, the turning off the sensor and then turning off the application when the sensor is in the on state includes:
when the sensor is judged to be in an open state, actively calling a sensor closing function to close the sensor;
and when the sensor is closed, closing the application program.
Optionally, the method further comprises:
and when the sensor is judged to be in the closed state, normally closing the application program.
In the wearable device provided by this embodiment, after a sensor used correspondingly to an application program is set in a system manager of the wearable device, an application program running state of the wearable device and a memory condition of the wearable device are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has strengthened user's use and has experienced.
Example four
It will be understood by those skilled in the art that all or part of the steps of the method for implementing the above embodiments may be implemented by hardware associated with at least one program instruction, the at least one program may be stored in a storage medium, and when executed, the at least one program may include the steps of:
detecting the running state of the wearable device application program and the memory condition of the wearable device;
when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged;
and when the sensor is in an open state, closing the sensor and then closing the application program.
Optionally, before detecting the running state of the application program of the wearable device and the memory condition of the wearable device, the method further includes:
and setting a sensor used correspondingly by an application program in the system manager of the wearable device.
Optionally, the detecting the running state of the application program of the wearable device and the memory condition of the wearable device includes:
detecting the wearable device application running state;
the application program running state comprises a normal working state and a stop working state;
detecting the memory condition of the wearable device;
the memory condition comprises a memory shortage state and a memory sufficiency state.
Optionally, when it is detected that the memory of the wearable device is insufficient, the application program needs to be closed, or the application program stops working, determining whether the sensor is in an open state includes:
when the wearable device is detected to have insufficient memory and the application program needs to be closed, judging whether a sensor used by the application program is in an open state or not; alternatively, the first and second electrodes may be,
and when the application program is detected to stop working, judging whether a sensor used by the application program is in an open state or not.
Optionally, when it is detected that the memory of the wearable device is insufficient and the application program needs to be closed, determining whether a sensor used by the application program is in an open state includes:
when the wearable device is detected to have insufficient memory, the wearable device system manager checks and kills part of application programs, and the application programs are in a state needing to be closed;
when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, when it is detected that the application program stops working, the determining whether a sensor used by the application program is in an open state includes:
when the wearable device system manager detects the CRash of the application program, the application program is in a work stopping state;
and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
Optionally, the turning off the sensor and then turning off the application when the sensor is in the on state includes:
when the sensor is judged to be in an open state, actively calling a sensor closing function to close the sensor;
and when the sensor is closed, closing the application program.
Optionally, the method further comprises:
and when the sensor is judged to be in the closed state, normally closing the application program.
In the storage medium provided in this embodiment, after a sensor used correspondingly to an application program is set in a wearable device system manager, an application program running state of the wearable device and a memory condition of the wearable device are detected; when the wearable device is detected to have insufficient memory, the application program needs to be closed, or the application program stops working, whether the sensor is in an open state or not is judged; and when the sensor is in an open state, closing the sensor and then closing the application program. The problem of after application program crash or being killed by the backstage, can no longer walk the sensor and close the flow is solved, guarantee that the sensor can in time close under the not in-use condition, has reduceed wearable equipment consumption, has improved wearable equipment performance, has strengthened user's use and has experienced.
Based on the above embodiments, it can be seen that, if the device is a watch, a bracelet, or a wearable device, the screen of the device may not cover the watchband region of the device, and may also cover the watchband region of the device. Here, the present application proposes an optional implementation manner, in which the device may be a watch, a bracelet, or a wearable device, and the device includes a screen and a connection portion. The screen can be a flexible screen, and the connecting part can be a watchband. Optionally, the screen of the device or the display area of the screen may partially or completely cover the wristband of the device. As shown in fig. 8, fig. 8 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application, where a screen of the wearable device extends to two sides, and a part of the screen is covered on a watchband of the wearable device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, and this is not limited in this application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method of timely turning off a wearable device sensor, the method comprising:
setting a sensor used correspondingly by an application program in a system manager of the wearable device;
detecting the running state of the wearable device application program and the memory condition of the wearable device;
when the wearable device is detected to have insufficient memory and the application program needs to be closed, judging whether a sensor used by the application program is in an open state or not; alternatively, the first and second electrodes may be,
when the application program is detected to stop working, judging whether a sensor used by the application program is in an open state or not;
when the sensor is in an open state, closing the sensor and then closing the application program;
wherein when the application program is detected to stop working, the method comprises the following steps:
when the wearable device system manager detects the application crash, the application is in a stop working state.
2. The method of claim 1, wherein the detecting the wearable device application operating state and the wearable device memory condition comprises:
detecting the wearable device application running state;
the application program running state comprises a normal working state and a stop working state;
detecting the memory condition of the wearable device;
the memory condition comprises a memory shortage state and a memory sufficiency state.
3. The method of claim 1, wherein when it is detected that the wearable device has insufficient memory and the application needs to be closed, determining whether a sensor used by the application is in an open state comprises:
when the wearable device is detected to have insufficient memory, the wearable device system manager checks and kills part of application programs, and the application programs are in a state needing to be closed;
when the application program is in a state needing to be closed, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
4. The method according to claim 1, wherein the determining whether the sensor used by the application program is in an open state when the application program is detected to stop working comprises:
and when the application program is in a work stop state, acquiring a sensor used correspondingly by the application program, and judging whether the sensor used correspondingly by the application program is in an open state.
5. The method according to any one of claims 1-4, wherein said shutting down the sensor and then shutting down the application when the sensor is in an on state comprises:
when the sensor is judged to be in an open state, actively calling a sensor closing function to close the sensor;
and when the sensor is closed, closing the application program.
6. The method of claim 1, further comprising:
and when the sensor is judged to be in the closed state, normally closing the application program.
7. A wearable device comprising a memory, at least one processor, and at least one program stored on the memory and executable by the at least one processor, the at least one program when executed by the at least one processor implementing the steps of the method of any of claims 1-6.
8. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the method of any one of claims 1-6.
CN201910246511.4A 2019-03-29 2019-03-29 Method for timely closing sensor of wearable device, wearable device and storage medium Active CN109874165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910246511.4A CN109874165B (en) 2019-03-29 2019-03-29 Method for timely closing sensor of wearable device, wearable device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910246511.4A CN109874165B (en) 2019-03-29 2019-03-29 Method for timely closing sensor of wearable device, wearable device and storage medium

Publications (2)

Publication Number Publication Date
CN109874165A CN109874165A (en) 2019-06-11
CN109874165B true CN109874165B (en) 2021-09-14

Family

ID=66921563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910246511.4A Active CN109874165B (en) 2019-03-29 2019-03-29 Method for timely closing sensor of wearable device, wearable device and storage medium

Country Status (1)

Country Link
CN (1) CN109874165B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688225A (en) * 2019-09-26 2020-01-14 珠海市魅族科技有限公司 Sensor management method and device, storage medium and electronic device
CN112929482B (en) * 2019-11-21 2022-02-18 深圳市万普拉斯科技有限公司 Sensor operation control method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302274A (en) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 Sensor control method and apparatus
CN106055075A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for closing sensors
CN106095487A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 The method for closing of a kind of application program and device
CN107463477A (en) * 2017-06-27 2017-12-12 广东欧珀移动通信有限公司 Mobile terminal and its management method, computer-readable recording medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354582B (en) * 2013-06-14 2015-02-25 广东欧珀移动通信有限公司 Method and system for intelligently associating with application through sensor
CN104092972B (en) * 2014-07-15 2018-10-02 北京小鱼在家科技有限公司 A kind of communication terminal and the tool for being installed on mobile terminal
CN106332247A (en) * 2016-08-16 2017-01-11 深圳铂睿智恒科技有限公司 Method and system for automatically closing background redundant applications based on mobile terminal
CN107734135A (en) * 2017-08-18 2018-02-23 广东小天才科技有限公司 Operating method, device, equipment and the storage medium of wearable device
CN107566488B (en) * 2017-09-01 2021-01-05 西安万像电子科技有限公司 Sensor data processing method and system
CN107734616B (en) * 2017-10-31 2021-01-15 Oppo广东移动通信有限公司 Application program closing method and device, storage medium and electronic equipment
CN109151198B (en) * 2018-08-27 2020-09-22 惠州Tcl移动通信有限公司 Control method of proximity and light sensor, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302274A (en) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 Sensor control method and apparatus
CN106055075A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for closing sensors
CN106095487A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 The method for closing of a kind of application program and device
CN107463477A (en) * 2017-06-27 2017-12-12 广东欧珀移动通信有限公司 Mobile terminal and its management method, computer-readable recording medium

Also Published As

Publication number Publication date
CN109874165A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
CN109982179B (en) Audio signal output method and device, wearable device and storage medium
CN110299100B (en) Display direction adjustment method, wearable device and computer readable storage medium
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109874165B (en) Method for timely closing sensor of wearable device, wearable device and storage medium
CN110098845B (en) Message processing method, wearable device, mobile terminal and readable storage medium
CN110072295B (en) Dual-channel communication method, device, first terminal and medium
CN110083289A (en) A kind of button display methods, wearable device and computer readable storage medium
CN110399195B (en) Desktop icon dynamic replacement method, equipment and computer readable storage medium
CN110139270B (en) Wearable device pairing method, wearable device and computer readable storage medium
CN110213637B (en) Method for adding watermark to video file, wearable device and readable storage medium
CN110532050B (en) Motion data refreshing method, wearable device and computer readable storage medium
CN109933187B (en) Wearing equipment operation control method, wearing equipment and computer readable storage medium
CN110177208B (en) Video recording association control method, equipment and computer readable storage medium
CN110086808B (en) Account login control method and device and computer readable storage medium
CN110069193B (en) Interface switching method of wearable device, wearable device and storage medium
CN110069200B (en) Wearable device input control method, wearable device and storage medium
CN110657794A (en) Compass calibration method of wearable device, wearable device and storage medium
CN110570625A (en) safety reminding method of intelligent wearable device, intelligent wearable device and storage medium
CN110120208B (en) Method for automatically adjusting screen display, wearable device and storage medium
CN109976613B (en) Text input implementation method, wearable device and computer-readable storage medium
CN110138965B (en) Wearable device, number formatting method and device thereof, and storage medium
CN110018775B (en) Content display method, terminal and computer readable storage medium
CN109976608B (en) Application timing method and device and computer readable storage medium
CN109901812B (en) Volume adjustment method for wearable device, wearable device and readable storage medium

Legal Events

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