Mode control method and related products
By integrating distance sensors and material detectors into wearable devices, the wearable device detects the wearing status and dynamically adjusts the battery life mode, which solves the problem of insufficient battery life of the device and improves the battery life of the device while being worn.
Patent Information
- Application Number
- CN202010077501.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-01-23
AI Technical Summary
The battery capacity of wearable devices is small, resulting in insufficient battery life and difficulty in meeting the daily use needs of users.
By integrating distance sensors and material detectors in wearable devices, the distance and type of material between the device and the obstruction are detected. If it is hair or skin, a specific battery life mode is entered to optimize battery use.
Dynamically adjust the battery life mode of wearable devices to improve the battery life of the device and ensure continuous and stable operation while being worn.
Smart Images

Figure CN113157077B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a mode control method and related products. Background Art
[0002] With the development of electronic equipment technology, wearable devices related to electronic equipment (such as glasses, bracelets, watches, etc.) have entered the lives of the public. Since wearable devices are easy to carry, users can use wearable devices alone to read text, send and receive emails, chat socially, watch videos or play games, which improves the convenience of operation. However, wearable devices are small in size and the battery capacity is small. Therefore, improving the battery life of wearable devices is a technical problem to be solved by those skilled in the art. Summary of the invention
[0003] The embodiments of the present invention provide a mode control method and related products, which can dynamically adjust the battery life mode of a wearable device and improve the battery life.
[0004] In a first aspect, an embodiment of the present application provides a mode control method, which is applied to a wearable device, wherein the wearable device includes a distance sensor and a material detector, and the method includes:
[0005] Detecting the distance between the wearable device and the obstruction by the distance sensor;
[0006] If the distance is less than a first threshold, detecting whether the obstruction is a preset substance by the substance detector, wherein the preset substance is hair or skin;
[0007] If so, enter the endurance mode corresponding to the current working mode of the wearable device.
[0008] In a second aspect, an embodiment of the present application provides a mode control device, which is applied to a wearable device, wherein the wearable device includes a distance sensor and a material detector, and the device includes:
[0009] A detection unit, configured to detect the distance between the wearable device and the obstruction through the distance sensor; if the distance is less than a first threshold, detecting whether the obstruction is a preset substance through the material detector, wherein the preset substance is hair or skin;
[0010] The processing unit is configured to enter a battery life mode corresponding to the current working mode of the wearable device if the obstruction is the preset substance.
[0011] In a third aspect, an embodiment of the present application provides a wearable device, the wearable device comprising a processor, a distance sensor and a material detector connected to the processor, wherein:
[0012] The distance sensor is used to detect the distance between the wearable device and the obstruction;
[0013] The material detector is used to detect whether the obstruction is a preset material if the distance is less than a first threshold;
[0014] The processor is used to enter a battery life mode corresponding to the current working mode of the wearable device if the obstruction is the preset material.
[0015] In a fourth aspect, an embodiment of the present application provides a wearable device, comprising a processor, a sensor module, a display, a radio frequency circuit, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for some or all of the steps described in the first aspect.
[0016] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0018] In an embodiment of the present application, a distance sensor is used to detect the distance between the wearable device and the obstruction. If the distance is less than a first threshold, a material detector is used to detect whether the obstruction is a preset material. If the obstruction is a preset material, the device is determined to be in a wearing state, and a battery life mode corresponding to the current working mode of the wearable device is entered. In other words, when it is determined that the wearable device is in a wearing state, the battery life mode of the wearable device is dynamically adjusted to improve the battery life. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1A schematic diagram of a scenario in which a wearable device is connected to an electronic device according to an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of the structure of a first wearable device provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of the structure of a second wearable device provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a scenario in which a substance detector according to an embodiment of the present invention detects a target substance;
[0024] Figure 5 It is an infrared spectrum provided in the embodiment of the present application;
[0025] Figure 6 A schematic flow chart of a first mode control method provided by an embodiment of the present invention;
[0026] Figure 7 A schematic flow chart of a second mode control method provided by an embodiment of the present invention;
[0027] Figure 8 A schematic flow chart of a third mode control method provided by an embodiment of the present invention;
[0028] Fig. 9 A schematic flow chart of a fourth mode control method provided by an embodiment of the present invention;
[0029] Fig.10 A schematic diagram of the structure of a third wearable device provided by an embodiment of the present invention;
[0030] Fig.11 It is a structural schematic diagram of a mode control device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] In the embodiments of the present application, wearable devices may include glasses, bracelets, watches and other devices, which are not limited here. Wearable devices can be connected to other wearable devices, or electronic devices other than wearable devices (for example, handheld devices, vehicle-mounted devices, computing devices, etc.). The connection network can be a mobile data network, a wireless fidelity (Wireless-Fidelity, Wi-Fi) network or a Bluetooth network, or it can be an ad hoc network based on low-power Wide-Area Network (LPWAN) technology.
[0033] This application uses glasses as a wearable device and a mobile phone as an electronic device for example. Figure 1 As shown, the wearable device 10 establishes a network connection with the mobile phone 20. The wearable device 10 can be used as a display device for the mobile phone 20, or it can be displayed independently. The display content of the wearable device 10 can be an image based on virtual reality technology (VR), or it can be an image to be displayed in an electronic device connected to the wearable device 10, such as instant information, video, etc.
[0034] This application uses glasses as an example of a wearable device. Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a structure of a wearable device 10 provided in an embodiment of the present application. Figure 2 As shown, the wearable device 10 includes: a housing 110, a display 120 arranged on the housing 110, and a mainboard 130 arranged in the housing 110, wherein the mainboard 130 is provided with a processor 140 and a memory 150 and a radio frequency circuit 160 connected to the processor 140.
[0035] In an embodiment of the present application, the display 120 includes a display driver circuit, a display screen, and a touch screen. Among them, the display driver circuit is used to control the display screen to display content according to the display data and display parameters (e.g., brightness, color, saturation, etc.) of the picture. The display screen may include a liquid crystal display screen, an organic light emitting diode display screen, an electronic ink display screen, a plasma display screen, a display screen using other display technologies, or a combination of several of them. The touch screen is used to detect touch operations. The touch screen may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (e.g., indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistive touch, optical touch, etc., which is not limited by the embodiments of the present application.
[0036] The shape and size of the mainboard 130 can be any size and shape that can be accommodated by the wearable device 10, and is not limited here.
[0037] The processor 140 is the control center of the wearable device 10. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 150, and calling data stored in the memory 150, it performs various functions of the wearable device 10 and processes data, thereby monitoring the wearable device 10 as a whole. The processor 140 includes an application processor and a baseband processor. Among them, the application processor mainly processes the operating system, user interface, and application programs. The baseband processor mainly processes wireless communications. It can be understood that the above-mentioned baseband processor may not be integrated into the processor.
[0038] The memory 150 can be used to store software programs and modules. The processor 140 executes various functional applications and data processing of the wearable device 10 by running the software programs and modules stored in the memory 150. The memory 150 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function, etc. The data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 150 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0039] The radio frequency circuit 160 is used to provide the wearable device 10 with the ability to communicate with external devices. The radio frequency circuit 160 may include analog and digital input and output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals. The wireless communication circuit in the radio frequency circuit 160 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna. For example, the wireless communication circuit in the radio frequency circuit 160 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the radio frequency circuit 160 may include a near field communication antenna and a near field communication transceiver. The radio frequency circuit 160 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, etc.
[0040] The mainboard 130 is also provided with a sensor module 170 connected to the processor 140. The sensor module 170 includes a distance sensor 171 and a material detector 172. The distance sensor 171 and the material detector 172 can be located Figure 2 The distance sensor 171 and the material detector 172 may also be located at the periphery of the display 120. Figure 3When the side frames include the distance sensor 171 and the material detector 172, the detection efficiency can be improved. If the wearable device 10 is a bracelet or a watch, the distance sensor 171 and the material detector 172 can also be located around the display or on the strap.
[0041] In an embodiment of the present application, the distance sensor 171 is used to determine the distance between the wearable device 10 and the obstruction. The distance sensor 171 can be divided into optical distance sensors, infrared distance sensors, ultrasonic distance sensors and the like according to different working principles. The present application takes an infrared distance sensor as an example, and the infrared distance sensor includes an infrared transmitting tube and an infrared receiving tube. The infrared transmitting tube transmits infrared rays, the infrared receiving tube receives the reflected infrared rays, and determines the distance based on the receiving time. It can be understood that the shorter the receiving time, the closer the distance. If the infrared receiving tube cannot receive the infrared rays emitted by the infrared transmitting tube, it indicates that the distance is far.
[0042] In the embodiment of the present application, the substance detector 172 can detect a variety of substances, such as heat, water, sugar, blood oxygen, fat, etc. Since different substances have different absorption capabilities for the near-infrared spectrum, multiple channels are integrated in the substance detector 172. When performing substance detection, please refer to Figure 4 As shown, infrared light is emitted to the target substance through the infrared LED lamp in the substance detector 172. Then, the light collecting device in the substance detector 172 collects infrared light of different wavelengths reflected back in each channel after irradiating the target substance, and transmits the collected infrared light data to the processor 140, so that the processor 140 draws the target infrared spectrum. Finally, the target infrared spectrum is analyzed by big data according to the infrared spectra of various substances pre-stored in the memory 150, so as to determine the data of each substance.
[0043] For example, the material detector integrates N different channels between the wavelength of 500nm and 1100nm, where N is an integer greater than 1, and emits near-infrared light of different wavelengths in each channel. Then, the characteristic light reflected back from each channel can be plotted as follows: Figure 5 From the infrared spectrum shown in the figure, it can be seen that the Figure 5 The method includes three curves A, B, and C, each of which corresponds to a substance. The substance corresponding to each curve can be determined by matching the infrared spectrum waveform corresponding to the preset substance type with the above three curves, or by matching the peak value corresponding to each curve with the peak value interval of the preset substance type.
[0044] In the embodiment of the present application, in addition to the distance sensor 171 and the material detector 172, the mainboard 130 may also include an electronic compass, a gyroscope, a light sensor, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like (not shown in the figure). Among them, the gyroscope is a three-axis gyroscope, which can simultaneously measure the position, movement trajectory, rotation angle, and acceleration in six directions, and the measured direction and position are three-dimensional. The posture of the wearable device 10 can be detected by the gyroscope.
[0045] The mainboard 130 may also include a positioning module (not shown in the figure). The positioning module is used to determine the current position of the wearable device 10, and may be based on the Global Navigation Satellite System (GNSS). The GNSS refers to all satellite navigation systems, including global, regional and enhanced, such as the United States' Global Positioning System (GPS), Russia's Global Navigation Satellite System-GLONASS, Europe's Galileo, China's Beidou Satellite Navigation System, and related enhancement systems, such as the United States' Wide Area Augmentation System (WAAS), Europe's Geostationary Navigation Overlay System (EGNOS) and Japan's Multi-Functional Satellite Augmentation System (MSAS), etc., and also covers other satellite navigation systems under construction and to be built in the future. The international GNSS system is a complex combination system with multiple systems, multiple levels and multiple modes.
[0046] The above is only an example. The wearable device 10 also includes input and output interfaces such as an audio input interface, a serial port, a keyboard, a speaker, a charging interface, and modules not shown such as a camera and a Bluetooth module, which are not limited in this application.
[0047] In an embodiment of the present application, the distance sensor 171 is used to detect the distance between the wearable device 10 and the obstruction; the material detector 172 is used to detect whether the obstruction is a preset material if the distance is less than a first threshold, and the preset material is hair or skin; the processor 140 is used to enter a battery life mode corresponding to the current working mode of the wearable device 10 if the obstruction is the preset material.
[0048] It can be seen that if it is determined that the obstruction is a preset substance, the device is determined to be in a wearing state, and enters a battery life mode corresponding to the current working mode of the wearable device 10. In other words, when the wearable device 10 is determined to be in a wearing state, the battery life mode of the wearable device is dynamically adjusted to improve the battery life.
[0049] In one possible example, in terms of detecting whether the obstruction is a preset substance, the substance detector 172 is specifically used to obtain an infrared spectrum of the obstruction; the processor 140 is further used to obtain a plurality of characteristic data based on the infrared spectrum, each characteristic data corresponding to a material element; and determine whether the obstruction is a preset substance based on the plurality of characteristic data.
[0050] In one possible example, in terms of determining whether the obstruction is a preset substance based on the multiple feature data, the processor 140 is specifically used to determine the ratio between the various material elements in the preset substance; based on the multiple feature data and the ratio, calculate the probability that the obstruction is the preset substance; if the probability is greater than a second threshold, determine that the obstruction is the preset substance.
[0051] In a possible example, before detecting the distance between the wearable device 10 and the obstruction, the gyroscope is used to detect the posture of the wearable device; if the posture is a preset posture, the distance sensor 171 is called to execute the step of detecting the distance between the wearable device 10 and the obstruction.
[0052] In one possible example, if the distance is greater than or equal to the first threshold, the processor 140 is also used to detect whether the wearable device 10 is in a safe position; if so, determine the standby time corresponding to the current working mode; before the standby time is reached, if no touch operation on the wearable device 10 is detected, control the wearable device 10 to enter an energy-saving mode.
[0053] In one possible example, in terms of detecting whether the wearable device 10 is in a safe position, the processor 140 is specifically used to determine the wireless network to which the wearable device 10 is connected; determine a security evaluation value of the wireless network; and when the security evaluation value is greater than a third threshold, determine that the wearable device 10 is in a safe position.
[0054] In one possible example, after the distance is less than a first threshold and before the material detector 172 detects whether the obstruction is a preset material, the processor 140 is further used to turn on the material detector 172; after entering an endurance mode corresponding to the current working mode of the wearable device 10, the processor 140 is further used to turn off the material detector 172.
[0055] The following is a detailed description of the embodiments of the present application.
[0056] See also Figure 6 , Figure 6is a flow chart of the first mode control method provided in the embodiment of the present application. Figure 6 As shown, the mode control method is applied to a wearable device, which includes a distance sensor and a material detector. The method includes:
[0057] S601: Detecting the distance between the wearable device and the obstruction through a distance sensor.
[0058] As mentioned earlier, the distance sensor detects the distance between the wearable device and the obstruction.
[0059] S602: If the distance is less than a first threshold, detecting whether the blocking object is a preset material by a material detector.
[0060] In the embodiment of the present application, the preset substance is hair or skin. The present application does not limit the first threshold value, and the first threshold value can be determined according to historical data. That is, when the user wears the wearable device, the distance between the wearable device and a fixed position is obtained. The fixed position can be the temple, the bridge of the nose, the center of the eyebrows, etc., which is not limited here.
[0061] The present application does not limit the method for detecting the material of the obstruction, and step S602 may include the following steps S11 to S13. Among them:
[0062] S11: Acquire an infrared spectrum of the obstruction through the material detector.
[0063] S12: Acquire a plurality of characteristic data according to the infrared spectrum.
[0064] Each characteristic data corresponds to a material element, and each characteristic data is the content of the material.
[0065] As mentioned above, the material detector can emit infrared light to collect characteristic light and draw an infrared spectrum. Then, the infrared spectrum is analyzed to determine the characteristic data corresponding to the material element.
[0066] S13: Determine whether the obstruction is a preset material according to the plurality of characteristic data.
[0067] The present application can pre-study the absorption capacity of human hair and skin to infrared spectrum to set the wavelength range of infrared light. The infrared light is emitted through a material detector to obtain a first infrared spectrum corresponding to the hair and a second infrared spectrum corresponding to the skin, and the various substances of the hair and the data corresponding to each substance are obtained based on the first infrared spectrum, and the various substances of the skin and the data corresponding to each substance are obtained based on the second infrared spectrum. Then, according to the data corresponding to each substance, the preset feature data corresponding to the preset substance is determined. After obtaining multiple feature data corresponding to the obstruction, the multiple feature data are compared with the preset feature data to obtain a comparison result of whether the obstruction is the preset substance.
[0068] In steps S11 to S13, the material corresponding to the obstruction is identified according to the characteristic data corresponding to the material element, which can improve the accuracy of identification.
[0069] In a possible example, step S13 includes the following steps S131 to S133, wherein:
[0070] S131: Determine the ratio between various material elements in the preset material.
[0071] Among them, the material elements of the preset material can be at least two of the following: water, lipids, pigments, trace elements, hydrogen ion concentration index (hydrogen ion concentration, PH), etc. The ratio between each material element is used to describe the ratio between the quantities of each material element. The ratio can be the material ratio corresponding to humans, or it can be the ratio for the current user, which is not limited here. Specifically, it is the ratio collected when the current user last wore the wearable device.
[0072] S132: Calculate the probability that the obstruction is the preset substance according to the plurality of feature data and the ratio.
[0073] The present application can perform weighted calculations based on the preset weights corresponding to the substances and proportions corresponding to each characteristic data in multiple characteristic data to obtain the probability that the obstruction is the preset substance. For example, when the ratio between water, lipids and trace elements is 3:2:1, the preset weights corresponding to water, lipids and trace elements are 0.5, 0.33, and 0.17, respectively. When the characteristic data corresponding to water, lipids and trace elements are 0.6, 0.5, and 0.4, respectively, the calculation process of the probability that the obstruction is the preset substance is 0.5*0.6+0.33*0.5+0.17*0.4, and 0.533 is obtained.
[0074] S133: If the probability is greater than a second threshold, determining that the obstruction is the preset substance.
[0075] The present application does not limit the second threshold value, which can be determined according to the success rate of the material detector, or according to the fault tolerance rate of the processor, etc. If the probability is less than or equal to the second threshold value, it is determined that the obstruction is not a preset material, and it can be determined that the wearable device is not in a wearing state.
[0076] In steps S131 to S133, the probability that the obstruction is the preset substance is calculated based on the ratio between the various material elements in the preset substance and the multiple characteristic data corresponding to the obstruction. Then the probability is compared with the second threshold. If the probability is greater than the second threshold, it is determined that the obstruction is the preset substance, which can further improve the accuracy of recognition.
[0077] S603: If the obstruction is the preset material, entering a battery life mode corresponding to the current working mode of the wearable device.
[0078] In the embodiment of the present application, the current working mode of the wearable device refers to the working mode of the wearable device in the current state. The current working mode can be a standby mode, a normal display mode, or a virtual reality display mode. Among them, the standby mode refers to the state in which the wearable device does not display, and the wearable device is used as glasses. The virtual reality display mode refers to the working mode of running virtual reality technology and displaying images, which can be run in virtual reality games. The normal display mode refers to the wearable device displaying the display content of non-virtual reality technology in the electronic device connected to it.
[0079] The current working mode can also be game mode, video mode, night mode, do not disturb mode, etc. The current working mode can also be motion detection mode and health detection mode, etc., which are not limited here. Among them, the motion detection mode is used to detect the operation status of the user when wearing the wearable device. For example, the number of steps, etc. The health detection mode is used to detect the health status of the user when wearing the wearable device. For example, the length of time of eye use, fatigue, etc.
[0080] This application does not limit the battery life mode corresponding to the current working mode. It can be understood that the standby mode does not require a wearable device display, and its corresponding battery life mode can be an energy-saving mode. The operating speed of the processor required for the virtual reality display mode is greater than the operating speed of the processor required for the ordinary display mode, then the battery life mode corresponding to the ordinary display mode can be a little more energy-efficient than the battery life mode corresponding to the virtual reality display mode. The battery life mode corresponding to the game mode can be similar to the virtual reality display mode, the battery life mode corresponding to the video mode can be similar to the ordinary display mode, and the night mode and the do not disturb mode can be similar to the standby mode. Since the use status of the motion detection mode and the health detection mode is used when worn, the corresponding battery life mode is also started when worn.
[0081] In such Figure 6In the method shown, the distance between the wearable device and the obstruction is detected by a distance sensor. If the distance is less than a first threshold, the obstruction is detected by a material detector to see if it is a preset material. If the obstruction is a preset material, the device is determined to be in a wearing state, and a battery life mode corresponding to the current working mode of the wearable device is entered. That is, when it is determined that the wearable device is in a wearing state, the battery life mode of the wearable device is dynamically adjusted to improve the battery life.
[0082] With the above Figure 6 For details on the embodiments shown in the drawings, please refer to Figure 7 , Figure 7 FIG. 1 is a flow chart of a second mode control method provided in an embodiment of the present application. Figure 7 As shown, the mode control method is applied to a wearable device, which includes a distance sensor and a material detector. The method includes:
[0083] S701: Detect the posture of the wearable device through a gyroscope.
[0084] S702: If the posture is a preset posture, detecting the distance between the wearable device and the obstruction by using a distance sensor.
[0085] The preset posture may be that the wearable device is in an open state. That is, the wearable device is at a certain height and is not folded. As mentioned above, the gyroscope can simultaneously measure the position, movement trajectory, rotation angle and acceleration in six directions.
[0086] S703: If the distance is less than a first threshold, detecting whether the blocking object is a preset material by a material detector.
[0087] S704: If the obstruction is the preset substance, entering a battery life mode corresponding to the current working mode of the wearable device.
[0088] Among them, steps S702 to S704 can refer to the description of steps S601 to S603, which will not be repeated here.
[0089] It can be understood that the present application first detects the posture of the wearable device through the gyroscope. If the posture is a preset posture, it is determined that the wearable device may be in a wearing state. Then the step of detecting the distance between the wearable device and the obstruction through the distance sensor is performed. Otherwise, the distance sensor is not activated to detect the distance. In this way, it is beneficial to improve the endurance.
[0090] With the above Figure 6 For details on the embodiments shown in the drawings, please refer to Figure 8 , Figure 8 FIG. 1 is a flow chart of a third mode control method provided in an embodiment of the present application. Figure 8 As shown, the mode control method is applied to a wearable device, which includes a distance sensor and a material detector. The method includes:
[0091] S801: Detecting the distance between the wearable device and the obstruction through a distance sensor.
[0092] Among them, step S801 can refer to the description of step S601, which will not be repeated here.
[0093] S802: If the distance is greater than or equal to a first threshold, detect whether the wearable device is in a safe position.
[0094] The safe location may be a preset fixed location, such as home, company, etc. The safe location may also be a preset area, such as a locker in a supermarket, a backpack, etc. The present application does not limit the method for detecting whether the wearable device is in a safe location, which may include the following two aspects:
[0095] In a first aspect, step S802 specifically includes: determining a wireless network to which the wearable device is connected; determining a security evaluation value of the wireless network; if the security evaluation value is greater than a third threshold, determining that the wearable device is in a safe location.
[0096] The wireless network may be a wireless fidelity (Wireless-Fidelity, Wi-Fi) network corresponding to the router, a hotspot shared by electronic devices, or a Bluetooth network enabled by electronic devices, etc., which is not limited here.
[0097] This application does not limit the method for determining the security evaluation value of a wireless network. Optionally, the number of connections, connection duration, and access content of the wireless network are determined; a first evaluation value is determined based on the number of connections; a second evaluation value is determined based on the connection duration and the access content; and the security evaluation value of the wireless network is determined based on the first evaluation value and the second evaluation value.
[0098] The number of connections refers to the number of times the wearable device or the electronic device connected to the wearable device connects to the wireless network. The connection duration refers to the duration of the wearable device or the electronic device connected to the wearable device connecting to the wireless network. The access content refers to the uploaded data, browsed data, or downloaded data of the wearable device during the process of connecting to the wireless network.
[0099] This application does not limit the third threshold. It is understandable that the longer the connection time, the more data that can be accessed. The access data can reflect the security indicators in the wireless network. For example, the more private content is accessed, the more the user trusts the wireless network. In this example, the second evaluation value is determined based on the connection time and the access content. The number of connections can also be reflected in the security indicators in the wireless network. For example, the more access times, the more the user trusts the wireless network. In this way, the first evaluation value is determined based on the number of connections. The security evaluation value of the wireless network is then determined based on the first evaluation value and the second evaluation value, which can improve the accuracy of determining the security evaluation value.
[0100] In the second aspect, step S802 specifically includes: determining the position and moving speed of the wearable device; determining a safety evaluation value of the position; if the safety evaluation value is greater than a third threshold, determining that the wearable device is in a safe position.
[0101] The location of the wearable device can be determined by the aforementioned positioning module, and the longitude and latitude information or address information can also be obtained through the network location service (Network Location Provider, NLP), wherein the network includes a mobile data network, a wireless fidelity (Wireless-Fidelity, Wi-Fi) network or a Bluetooth (Bluetooth) network, etc., that is, when the device is connected to at least one of the above networks, the corresponding base station's media access control (Media Access Control or Medium Access Control, MAC) address information and network signal strength, Wi-Fi's MAC address information and Bluetooth's MAC address information can be obtained, and the longitude and latitude information or address information corresponding to the above MAC address information can be calculated in the network state. The distance between the device and the base station can also be calculated by the time when multiple receivers set by the base station receive the signal sent by the device, and the direction of the device relative to the base station is obtained according to the direction in which the receiver receives the signal, thereby obtaining the longitude and latitude information or address information of the device. This method is not limited by the network state, as long as the subscriber identity module (Subscriber Identity Module, SIM card) or similar card is used in the device, it can be obtained.
[0102] In the embodiment of the present application, the safety evaluation value corresponding to the location can be determined by the place corresponding to the location. For example, the place is an address frequently visited by the user, and the more frequently used, the higher the safety evaluation value, or the distance between the place and a preset place.
[0103] It can be understood that the position of the wearable device is first determined, and then the safety evaluation value of the position is determined. If the safety evaluation value is greater than the third threshold, it is determined that the wearable device is in a safe position. In this way, the accuracy of identifying safety can be improved.
[0104] It should be noted that the above two implementations do not constitute a limitation on the embodiments of the present application. In practical applications, other implementations may also be used to detect whether the wearable device is in a safe position.
[0105] S803: If the wearable device is in the safe position, determine a standby time corresponding to the current working mode of the wearable device.
[0106] In the embodiment of the present application, the standby time corresponding to different current working modes can be preset. For example, if the current working mode is the standby mode, the standby time is the lock time. If the current working mode is the data download mode, the standby time is the time when the data download is completed. If the current working mode is the game mode, the standby time is the time when the game ends, etc.
[0107] In another possible example, if the wearable device is not in a safe position, the position is sent to an electronic device connected to the wearable device and a safe mode is entered.
[0108] The location is the current location of the wearable device, and the method for obtaining the location can be referred to above and will not be described in detail here. The security mode may include a lock operation, an operation for hiding the user's privacy applications, and an operation for uploading cloud data.
[0109] It can be understood that if the distance between the wearable device and the obstruction is far, and the wearable device is not in a safe position, it can be determined that the wearable device is in an unsafe state, for example, lost, stolen, etc. Therefore, in this example, the location is sent to the electronic device connected to the wearable device, and the safety mode is entered, so that the data of the wearable device can be protected, which is convenient for improving safety.
[0110] S804: Before the standby time is reached, if no touch operation on the wearable device is detected, controlling the wearable device to enter a power saving mode.
[0111] The present application does not limit the touch operation of the wearable device, which may be an operation of lifting or lowering the wearable device, or an operation of a display, etc.
[0112] exist Figure 8In the method shown, the distance between the wearable device and the obstruction is detected by a distance sensor. If the distance is greater than or equal to a first threshold, it is detected whether the wearable device is in a safe position. If so, the standby time corresponding to the current working mode of the wearable device is determined. And within the standby time, a touch operation on the wearable device is detected. If not, it is determined that the user has not operated the wearable device within the standby time, so that when the standby time is reached, the wearable device is controlled to enter the energy-saving mode. In this way, the battery life can be further improved.
[0113] With the above Figure 6 For details on the embodiments shown in the drawings, please refer to Fig. 9 , Fig. 9 FIG. 1 is a flow chart of a fourth mode control method provided in an embodiment of the present application. Fig. 9 As shown, the mode control method is applied to a wearable device, which includes a distance sensor and a material detector. The method includes:
[0114] S901: Detecting the distance between the wearable device and the obstruction through the distance sensor.
[0115] Among them, step S801 can refer to the description of step S601, which will not be repeated here.
[0116] S902: If the distance is less than a first threshold, turn on the material detector.
[0117] S903: Detecting, by means of the material detector, whether the obstruction is a preset material.
[0118] S904: If the obstruction is the preset material, entering a battery life mode corresponding to the current working mode of the wearable device.
[0119] S905: Turn off the substance detector.
[0120] It can be understood that after the distance is less than the first threshold, the material detector is turned on. After entering the endurance mode corresponding to the current working mode of the wearable device, the material detector is turned off, which can further improve the endurance.
[0121] With the above Figure 6 to Figure 9 For details on the embodiments shown in the drawings, please refer to Fig.10 , Fig.10 is a schematic diagram of the structure of another wearable device 10 provided in an embodiment of the present application. Fig.10As shown, the wearable device 10 includes a processor 140, a sensor module 170, a radio frequency circuit 160, a display 120, a memory 150, and one or more programs 151. The processor 140 is connected to the sensor module 170, the radio frequency circuit 160, the display 120, and the memory 150 via a bus 180. The sensor module 170 includes a distance sensor 171 and a material detector 172. The one or more programs 151 are stored in the memory 150 and are configured to be executed by the processor 140. The program 151 includes instructions for executing the following steps:
[0122] Detecting the distance between the wearable device 10 and the obstruction through the distance sensor 171;
[0123] If the distance is less than the first threshold, the material detector 172 detects whether the obstruction is a preset material, and the preset material is hair or skin;
[0124] If so, enter the endurance mode corresponding to the current working mode of the wearable device 10.
[0125] It can be seen that if the obstruction is determined to be a preset substance, the device is determined to be in a wearing state, and enters a battery life mode corresponding to the current working mode of the wearable device 10. In other words, when the wearable device 10 is determined to be in a wearing state, the battery life mode of the wearable device is dynamically adjusted to improve the battery life.
[0126] In a possible example, in terms of detecting whether the obstruction is a preset material by the material detector 172, the instructions in the program 151 are specifically used to perform the following operations:
[0127] Acquire an infrared spectrum of the obstruction through the material detector 172;
[0128] Acquire a plurality of characteristic data according to the infrared spectrum, each characteristic data corresponding to a material element;
[0129] Determine whether the obstruction is a preset substance according to the plurality of characteristic data.
[0130] In a possible example, in determining whether the obstruction is a preset material according to the plurality of feature data, the instructions in the program 151 are specifically used to perform the following operations:
[0131] Determine the ratio between various material elements in the preset material;
[0132] Calculating the probability that the obstruction is the preset substance according to the plurality of feature data and the ratio;
[0133] If the probability is greater than a second threshold, it is determined that the obstruction is the preset substance.
[0134] In a possible example, the sensor module 170 further includes a gyroscope 173. Before detecting the distance between the wearable device and the obstruction through the distance sensor 171, the instructions in the program 151 are further used to perform the following operations:
[0135] Detecting the posture of the wearable device by the gyroscope 173;
[0136] If the posture is a preset posture, the step of detecting the distance between the wearable device 10 and the obstruction by the distance sensor 171 is performed.
[0137] In a possible example, if the distance is greater than or equal to the first threshold, the instructions in the program 151 are further configured to perform the following operations:
[0138] Detecting whether the wearable device 10 is in a safe position;
[0139] If yes, determining the standby time corresponding to the current working mode;
[0140] Before the standby time is reached, if no touch operation on the wearable device 10 is detected, the wearable device 10 is controlled to enter a power saving mode.
[0141] In a possible example, in terms of detecting whether the wearable device 10 is in a safe position, the instructions in the program 151 are specifically used to perform the following operations:
[0142] Determine a wireless network to which the wearable device 10 is connected;
[0143] Determining a security evaluation value of the wireless network;
[0144] When the safety evaluation value is greater than a third threshold, it is determined that the wearable device 10 is in a safe position.
[0145] In a possible example, after the distance is less than the first threshold and before the material detector 172 detects whether the obstruction is a preset material, the instructions in the program 151 are further used to perform the following operations:
[0146] Turning on the substance detector 172;
[0147] After entering the endurance mode corresponding to the current working mode of the wearable device 10, the instructions in the program 151 are further used to perform the following operations:
[0148] The substance detector 172 is turned off.
[0149] Please refer to Fig.11 , Fig.11 The mode control device shown is applied to a wearable device, which includes a distance sensor and a material detector. Fig.11 As shown, the mode control device includes:
[0150] The detection unit 1001 is used to detect the distance between the wearable device and the obstruction through the distance sensor; if the distance is less than a first threshold, the material detector is used to detect whether the obstruction is a preset material, and the preset material is hair or skin;
[0151] The processing unit 1002 is configured to enter a battery life mode corresponding to the current working mode of the wearable device if the obstruction is the preset substance.
[0152] It can be seen that if it is determined that the obstruction is a preset substance, the device is determined to be in a wearing state, and enters a battery life mode corresponding to the current working mode of the wearable device. In other words, when the wearable device is determined to be in a wearing state, the battery life mode of the wearable device is dynamically adjusted to improve the battery life.
[0153] In a possible example, the detection unit 1001 is specifically used to obtain an infrared spectrum of the obstruction through the material detector; obtain multiple feature data based on the infrared spectrum, each feature data corresponds to a material element; and determine whether the obstruction is a preset substance based on the multiple feature data.
[0154] In a possible example, the detection unit 1001 is specifically used to determine the ratio between each material element in a preset substance; calculate the probability that the obstruction is the preset substance based on the multiple feature data and the ratio; if the probability is greater than a second threshold, determine that the obstruction is the preset substance.
[0155] In a possible example, the wearable device also includes a gyroscope. Before detecting the distance between the wearable device and the obstruction through the distance sensor, the detection unit 1001 is also used to detect the posture of the wearable device through the gyroscope; if the posture is a preset posture, the step of detecting the distance between the wearable device and the obstruction through the distance sensor is executed.
[0156] In a possible example, if the distance is greater than or equal to the first threshold, the detection unit 1001 is also used to detect whether the wearable device is in a safe position; and to detect a touch operation on the wearable device; the processing unit 1002 is also used to determine the standby time corresponding to the current working mode if the wearable device is in the safe position; before the standby time is reached, if the detection unit does not detect the touch operation, the wearable device is controlled to enter an energy-saving mode.
[0157] In a possible example, the processing unit 1002 is specifically used to determine the wireless network to which the wearable device is connected; determine a security evaluation value of the wireless network; if the security evaluation value is greater than a third threshold, determine that the wearable device is in a safe location.
[0158] In a possible example, after the distance is less than a first threshold and before the material detector detects whether the obstruction is a preset material, the processing unit 1002 is also used to turn on the material detector; after entering an endurance mode corresponding to the current working mode of the wearable device, the processing unit 1002 is also used to turn off the material detector.
[0159] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the method embodiment, and the computer includes a wearable device.
[0160] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product can be a software installation package, and the computer includes a wearable device.
[0161] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modes involved are not necessarily required by the present application.
[0162] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0163] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0164] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0165] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software program mode.
[0166] If the integrated unit is implemented in the form of a software program model and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., and other media that can store program codes.
[0167] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable memory, which may include a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0168] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A mode control method, characterized in that: Applied to a wearable device, the wearable device includes a distance sensor and a material detector, and the method includes: Detecting the distance between the wearable device and the obstruction by the distance sensor; If the distance is less than a first threshold, detecting whether the obstruction is a preset substance by the substance detector, wherein the preset substance is hair or skin; If yes, entering a battery life mode corresponding to the current working mode of the wearable device; If the distance is greater than or equal to the first threshold, the method further includes: Detecting whether the wearable device is in a safe position; If yes, determining the standby time corresponding to the current working mode, if no, sending the location to an electronic device connected to the wearable device and entering a safe mode; Before the standby time is reached, if no touch operation on the wearable device is detected, controlling the wearable device to enter a power saving mode; Wherein, detecting whether the wearable device is in a safe position includes: Determining a wireless network to which the wearable device is connected; Determining the security evaluation value of the wireless network, specifically: determining the number of connections, connection duration, and access content of the wireless network; determining a first evaluation value according to the number of connections; determining a second evaluation value according to the connection duration and the access content; determining the security evaluation value of the wireless network according to the first evaluation value and the second evaluation value; If the safety evaluation value is greater than a third threshold, it is determined that the wearable device is in a safe position.
2. The method according to claim 1, characterized in that The detecting whether the obstruction is a preset substance by the substance detector includes: Acquiring an infrared spectrum of the obstruction through the material detector; Acquire a plurality of characteristic data according to the infrared spectrum, each characteristic data corresponding to a material element; Determine whether the obstruction is a preset substance according to the plurality of characteristic data.
3. The method according to claim 2, characterized in that The determining whether the obstruction is a preset substance according to the plurality of characteristic data includes: Determine the ratio between various material elements in the preset material; Calculating the probability that the obstruction is the preset substance according to the plurality of feature data and the ratio; If the probability is greater than a second threshold, it is determined that the obstruction is the preset substance.
4. The method according to any one of claims 1 to 3, characterized in that: The wearable device further includes a gyroscope. Before detecting the distance between the wearable device and the obstruction by the distance sensor, the method further includes: Detecting the posture of the wearable device by means of the gyroscope; If the posture is a preset posture, the step of detecting the distance between the wearable device and the obstruction by the distance sensor is performed.
5. The method according to any one of claims 1 to 3, characterized in that: After the distance is less than the first threshold and before the material detector detects whether the obstruction is a preset material, the method further includes: turning on the substance detector; After entering the endurance mode corresponding to the current working mode of the wearable device, the method further includes: The substance detector is turned off.
6. A mode control device, characterized in that: Applied to a wearable device, the wearable device includes a distance sensor and a material detector, and the device includes: A detection unit, configured to detect the distance between the wearable device and the obstruction through the distance sensor; if the distance is less than a first threshold, detecting whether the obstruction is a preset substance through the material detector, wherein the preset substance is hair or skin; a processing unit, configured to enter a battery life mode corresponding to a current working mode of the wearable device if the obstruction is the preset substance; Wherein, if the distance is greater than or equal to the first threshold, the device is further specifically configured to: Detecting whether the wearable device is in a safe position; If yes, determining the standby time corresponding to the current working mode, if no, sending the location to an electronic device connected to the wearable device and entering a safe mode; Before the standby time is reached, if no touch operation on the wearable device is detected, controlling the wearable device to enter a power saving mode; Wherein, detecting whether the wearable device is in a safe position includes: Determining a wireless network to which the wearable device is connected; Determining the security evaluation value of the wireless network, specifically: determining the number of connections, connection duration, and access content of the wireless network; determining a first evaluation value according to the number of connections; determining a second evaluation value according to the connection duration and the access content; determining the security evaluation value of the wireless network according to the first evaluation value and the second evaluation value; If the safety evaluation value is greater than a third threshold, it is determined that the wearable device is in a safe position.
7. A wearable device, characterized in that: The invention comprises a processor, a sensor module, a display, a radio frequency circuit, and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: It is used to store a computer program, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.
