CN112180459A - Water inflow detection method, wearable device and computer readable storage medium - Google Patents

Water inflow detection method, wearable device and computer readable storage medium Download PDF

Info

Publication number
CN112180459A
CN112180459A CN202011038392.2A CN202011038392A CN112180459A CN 112180459 A CN112180459 A CN 112180459A CN 202011038392 A CN202011038392 A CN 202011038392A CN 112180459 A CN112180459 A CN 112180459A
Authority
CN
China
Prior art keywords
voltage
value
photosensitive
values
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011038392.2A
Other languages
Chinese (zh)
Other versions
CN112180459B (en
Inventor
朱群峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202011038392.2A priority Critical patent/CN112180459B/en
Publication of CN112180459A publication Critical patent/CN112180459A/en
Application granted granted Critical
Publication of CN112180459B publication Critical patent/CN112180459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V11/00Prospecting or detecting by methods combining techniques covered by two or more of main groups G01V1/00 - G01V9/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics (AREA)
  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geology (AREA)
  • Remote Sensing (AREA)
  • Examining Or Testing Airtightness (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

The embodiment of the invention discloses a water inlet detection method, wearable equipment and a computer readable storage medium, which are used for improving the accuracy of water inlet detection. The method provided by the embodiment of the invention comprises the following steps: acquiring a first photosensitive value and a second photosensitive value at different moments through a photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal by the first voltage difference through an analog-to-digital converter; determining that the wearable device is water-inlet when the first digital signal is larger than a preset digital signal threshold value; and/or acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal by the second voltage difference through an analog-to-digital converter; and determining that the wearable device is water-inlet if the second digital signal is larger than a preset digital signal threshold value.

Description

Water inflow detection method, wearable device and computer readable storage medium
Technical Field
The invention relates to the field of wearable device application, in particular to a water inlet detection method, a wearable device and a computer readable storage medium.
Background
With the rapid development of science and technology, the functions of wearable devices are gradually improved, and the user groups using the wearable devices are also increasingly huge. In the process of daily use of the wearable device by a user, the wearable device inevitably encounters a problem of water inflow, but when the wearable device is less in water inflow, the user can hardly find that a small amount of rainwater, sweat and the like seep into the wearable device. If the user can not timely handle the problem of these small amounts of water intaking, then, can make wearable equipment cause trouble such as short circuit, and then cause this wearable equipment automatic shutdown. At this time, if the user forcibly performs the power-on operation on the wearable device, the wearable device will be further damaged. Therefore, it is highly desirable to provide a technical solution that can detect whether the wearable device has entered water in time, and take corresponding measures when detecting that the wearable device has entered water.
Disclosure of Invention
The embodiment of the invention provides a water inlet detection method, wearable equipment and a computer-readable storage medium, which are used for detecting whether the wearable equipment enters water or not through a light sensation sensor and/or an electrode voltage detection circuit, so that the accuracy of detecting whether the wearable equipment enters water or not by the wearable equipment is improved.
In view of this, a first aspect of an embodiment of the present invention provides a method for detecting water inflow, which may include:
acquiring a first photosensitive value and a second photosensitive value at different moments through a photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference; determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value;
and/or the presence of a gas in the gas,
acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference; and determining that the wearable device is water-inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
Optionally, the first photosensitive value and the second photosensitive value at different times are obtained through the photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; obtaining a first voltage difference value according to the first voltage value and the second voltage value, including: acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers more than or equal to 1; respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value; respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; or acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers greater than or equal to 1; respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values; respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value; and acquiring a first voltage difference value according to the first voltage average value and the second voltage average value.
Optionally, the electrode voltage detection circuit is configured to obtain a third voltage value and a fourth voltage value at different times; obtaining a second voltage difference value according to the third voltage value and the fourth voltage value, including: acquiring P third voltage values and Q fourth voltage values within a second preset time length through an electrode voltage detection circuit, wherein P and Q are integers more than or equal to 1; averaging the P third voltage values and the Q fourth voltage values respectively to obtain a third voltage mean value and a fourth voltage mean value; and acquiring a second voltage difference value according to the third voltage average value and the fourth voltage average value.
Optionally, the method further includes: acquiring continuous X photosensitive values within a third preset time length through a photosensitive sensor, wherein X is an integer greater than or equal to 2; respectively converting the continuous X photosensitive values to obtain continuous X voltage values; obtaining continuous X first digital signals from the continuous X voltage values through the analog-to-digital converter; and determining that the wearable device is flooded under the condition that the X continuous first digital signals are detected to be continuously descending.
Optionally, the method further includes: acquiring continuous Y voltage values within the third preset time length through an electrode voltage detection circuit, wherein Y is an integer greater than or equal to 2; obtaining continuous Y second digital signals from the continuous Y voltage values through the analog-to-digital converter; and determining that the wearable device is flooded in the case that the continuous Y second digital signals are detected to be continuously descending.
Optionally, after the determining that the wearable device is water-in, the method further comprises: generating and outputting a reminding message; or generating a reminding message and sending the reminding message to the terminal equipment.
Optionally, the method further includes: starting a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
A second aspect of an embodiment of the present invention provides a wearable device, which may include:
the first acquisition module is used for acquiring a first photosensitive value and a second photosensitive value at different moments through the photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference;
the first processing module is used for determining that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value;
and/or the presence of a gas in the gas,
the second acquisition module is used for acquiring a third voltage value and a fourth voltage value at different moments through the electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference;
and the second processing module is used for determining that the wearable device is water inlet under the condition that the second digital signal is greater than the preset digital signal threshold value.
Optionally, the first obtaining module is specifically configured to obtain, through the light sensor, N first light sensing values and M second light sensing values within a first preset time period, where N and M are integers greater than or equal to 1; respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value; respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; or the like, or, alternatively,
optionally, the first obtaining module is specifically configured to obtain, through the light sensor, N first light sensing values and M second light sensing values within a first preset time period, where N and M are integers greater than or equal to 1; respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values; respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value; and acquiring a first voltage difference value according to the first voltage average value and the second voltage average value.
Optionally, the second obtaining module is specifically configured to obtain, through the electrode voltage detection circuit, P third voltage values and Q fourth voltage values within a second preset time period, where P and Q are integers greater than or equal to 1; averaging the P third voltage values and the Q fourth voltage values respectively to obtain a third voltage mean value and a fourth voltage mean value; and acquiring a second voltage difference value according to the third voltage average value and the fourth voltage average value.
Optionally, the first obtaining module is further configured to obtain, through the light sensor, X consecutive light sensing values within a third preset time period, where X is an integer greater than or equal to 2; respectively converting the continuous X photosensitive values to obtain continuous X voltage values; obtaining continuous X first digital signals from the continuous X voltage values through the analog-to-digital converter;
the first processing module is further configured to determine that the wearable device is water-in if the X consecutive first digital signals are detected to be continuously falling.
Optionally, the second obtaining module is further configured to obtain, through the electrode voltage detection circuit, Y voltage values that are continuous within the third preset time period, where Y is an integer greater than or equal to 2; obtaining continuous Y second digital signals from the continuous Y voltage values through the analog-to-digital converter;
the second processing module is further configured to determine that the wearable device is water-in if the consecutive Y second digital signals are detected to be continuously falling.
Optionally, the first processing module or the second processing module is further configured to generate and output a prompt message; or generating a reminding message and sending the reminding message to the terminal equipment.
Optionally, the first processing module or the second processing module is further configured to start a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
A third aspect of an embodiment of the present invention provides a wearable device, which may include:
a memory storing executable program code;
and a processor coupled to the memory;
the processor calls the executable program code stored in the memory for performing the method according to the first aspect of the embodiment of the present invention.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method according to the first aspect of embodiments of the present invention.
A fifth aspect of the embodiments of the present invention discloses a computer program product, which, when running on a computer, causes the computer to execute any one of the methods disclosed in the first aspect of the embodiments of the present invention.
A sixth aspect of the present embodiment discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where when the computer program product runs on a computer, the computer is caused to execute any one of the methods disclosed in the first aspect of the present embodiment.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the application, a first photosensitive value and a second photosensitive value at different moments are obtained through a photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference; determining that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value; and/or acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference value; and determining that the wearable device is water inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
The wearable device can acquire a first voltage difference value by processing the first photosensitive value and the second photosensitive value through the photosensitive sensor; the wearable device converts the first voltage difference value to obtain a first digital signal; the wearable device determines that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value; and/or the wearable device can also obtain a second voltage difference value through the electrode voltage detection circuit; the wearable device converts the second voltage difference value to obtain a second digital signal; and the wearable device determines that the wearable device is water-inlet when the second digital signal is greater than the preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the light sensation sensor and/or the electrode voltage detection circuit, and the accuracy of detecting whether the wearable device enters water or not through the wearable device is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to the drawings.
FIG. 1 is a schematic diagram of an embodiment of a water inlet detection method in an embodiment of the invention;
FIG. 2 is a schematic diagram of another embodiment of a water inlet detection method in an embodiment of the invention;
FIG. 3 is a schematic diagram of another embodiment of a water inlet detection method in an embodiment of the invention;
FIG. 4 is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the invention;
FIG. 5 is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the invention;
FIG. 6 is a schematic diagram of another embodiment of a water inlet detection method in an embodiment of the invention;
FIG. 7 is a schematic diagram of another embodiment of a water inlet detection method in an embodiment of the invention;
FIG. 8 is a schematic diagram of another embodiment of a water ingress detection method in an embodiment of the invention;
FIG. 9 is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the invention;
FIG. 10 is a diagram of one embodiment of a wearable device in an embodiment of the invention;
fig. 11 is a schematic diagram of another embodiment of the wearable device in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a water inlet detection method, wearable equipment and a computer-readable storage medium, which are used for detecting whether the wearable equipment enters water or not through a light sensation sensor and/or an electrode voltage detection circuit, so that the accuracy of detecting whether the wearable equipment enters water or not by the wearable equipment is improved.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. The embodiments based on the present invention should fall into the protection scope of the present invention.
It is understood that the terminal device according to the embodiment of the present invention may include a general handheld electronic terminal device, such as a mobile phone, a smart phone, a portable terminal, a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP) device, a notebook Computer, a notebook (Note Pad), a Wireless Broadband (Wibro) terminal, a tablet Computer (PC), a smart PC, a Point of Sales (POS), a car Computer, and the like.
The terminal device may also comprise a wearable device. The wearable device may be worn directly on the user or may be a portable electronic device integrated into the user's clothing or accessory. Wearable equipment is not only a hardware equipment, can realize powerful intelligent function through software support and data interaction, high in the clouds interaction more, for example: the system has the functions of calculation, positioning and alarming, and can be connected with a mobile phone and various terminals. Wearable devices may include, but are not limited to, wrist-supported watch types (e.g., wrist watches, wrist-supported products), foot-supported shoes types (e.g., shoes, socks, or other leg-worn products), head-supported Glass types (e.g., glasses, helmets, headbands, etc.), and various types of non-mainstream products such as smart clothing, bags, crutches, accessories, and the like.
In the following, a brief description of the terms involved in the embodiments of the present invention is given as follows:
light sensor: a sensor capable of producing strain on light intensity. The light sensor generally refers to a device capable of sensitively sensing light energy from ultraviolet light to infrared light and converting the light energy into an electrical signal. The light sensor is a sensing device, mainly composed of photosensitive elements, and mainly classified into an environmental light sensor, an infrared light sensor, a solar light sensor, an ultraviolet light sensor, and the like.
Digital-to-Analog converters (a/D converters or ADCs), all referred to as Analog-to-Digital converters. The a/D converter generally refers to an electronic component that converts an analog signal into a digital signal. A typical a/D converter converts an input voltage signal into an output digital signal. Since digital signals do not have practical significance per se, only one relative magnitude is represented. Therefore, any analog-to-digital converter needs a reference analog quantity as a conversion standard, the most common reference standard is the maximum convertible signal size, and the output digital quantity represents the size of the input signal relative to the reference signal.
A photoelectric converter: generally referred to as a multimode fiber transceiver, which is an ethernet transmission medium conversion unit for interchanging long-distance optical signals and short-distance twisted pair electrical signals. The electrical signal may comprise a voltage or current that varies with time, with a voltage being used in this embodiment.
Electrode voltage detection circuit: the electrode voltage detection circuit is a voltage-limiting and shunting circuit consisting of a resistor and a diode, and outputs a comparison result after being compared with a reference voltage by a comparator. The electrode voltage detection circuit is used for detecting voltage changes.
The technical solution of the present invention is further described below by way of an embodiment, as shown in fig. 1, which is a schematic diagram of an embodiment of a water inlet detection method in an embodiment of the present invention, and the method may include:
101. and acquiring a first photosensitive value and a second photosensitive value at different moments by using the photosensitive sensor.
It can be understood that the light sensation sensor detects that the light sensation sensor utilizes the difference between the light sensation value before the water enters and the light sensation value after the water enters to judge whether the wearable device enters the water. Namely, the light sensation sensor judges whether the wearable device enters water or not by using the difference value between the first light sensation value and the second light sensation value.
It can be understood that, as the wearable device is filled with water, the light signal sent by the light-sensitive sensor becomes weaker as the resistance of the water becomes larger, and the light-sensitive value received by the wearable device becomes lower.
102. And respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value.
Optionally, the converting, by the wearable device, the first photosensitive value and the second photosensitive value into a first voltage value and a second voltage value, respectively, may include: the wearable device converts the first photosensitive value and the second photosensitive value into a first voltage value and a second voltage value through a photoelectric converter respectively.
It will be appreciated that the value of the light sensitivity and the value of the voltage are directly proportional. Along with the increase of water inflow, the light signal sent by the light-sensitive sensor can be weakened due to the increase of the resistance of water, the light-sensitive value received by the wearable device can be lowered, and the voltage value converted by the photoelectric converter of the wearable device can be lowered.
103. And acquiring a first voltage difference value according to the first voltage value and the second voltage value.
Optionally, the obtaining, by the wearable device, a first voltage difference value according to the first voltage value and the second voltage value may include: and the wearable equipment subtracts the second voltage value from the first voltage value to obtain a first voltage difference value.
104. And obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference.
105. And determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value.
It can be understood that, as the amount of water entering the wearable device increases, the light signal sent by the light-sensitive sensor becomes weaker due to the increase of the resistance of the water, the light-sensitive value received by the wearable device becomes lower, and the voltage value converted by the photoelectric converter by the wearable device becomes lower. Further, the wearable device indicates that the water inflow of the wearable device is more if the obtained first voltage difference value is larger.
In the embodiment of the invention, the wearable device obtains a first voltage difference value by processing the first photosensitive value and the second photosensitive value through the photosensitive sensor; the wearable device converts the first voltage difference value to obtain a first digital signal; and the wearable device determines that the wearable device is water-inlet when the first digital signal is larger than a preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the light sensation sensor, and the accuracy of detecting whether the wearable device enters water or not through the wearable device is improved.
As shown in fig. 2, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
201. n first photosensitive values and M second photosensitive values within a first preset time length are obtained through the photosensitive sensor.
Wherein N and M are integers of 1 or more.
It can be understood that the N first photosensitive values are N photosensitive values before the wearable device enters water, and the M first photosensitive values are M photosensitive values after the wearable device enters water. The wearable device obtains N first photosensitive values and M second photosensitive values within a first preset time period, may be wearable to obtain N continuous first photosensitive values and M continuous second photosensitive values within the first preset time period, and may also be wearable to obtain any N first photosensitive values and any M second photosensitive values within the first preset time period, where the obtained content is not specifically limited.
202. And respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value.
It can be understood that the light sensation sensor averages the N first light sensation values to obtain a first light sensation average value, averages the M second light sensation values to obtain a second light sensation average value, and the wearable device determines whether the accuracy of water inflow of the wearable device is improved by a corresponding difference value between the first light sensation average value and the second light sensation average value.
203. And respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value.
Optionally, the converting, by the wearable device, the first light-sensing average value and the second light-sensing average value into a first voltage value and a second voltage value respectively may include: the wearable device converts the first light sensing average value and the second light sensing average value through a photoelectric converter to obtain a first voltage value and a second voltage value respectively.
204. And acquiring a first voltage difference value according to the first voltage value and the second voltage value.
205. And obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference.
206. And determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value.
It should be noted that step 204-.
In the embodiment of the invention, the wearable device obtains a first voltage difference value by processing the N first photosensitive values and the M second photosensitive values through the photosensitive sensor; the wearable device converts the first voltage difference value to obtain a first digital signal; and the wearable device determines that the wearable device is water-inlet when the first digital signal is larger than a preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the first photosensitive mean value and the second photosensitive mean value which are obtained by the photosensitive sensor, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 3, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
301. n first photosensitive values and M second photosensitive values within a first preset time length are obtained through the photosensitive sensor.
Wherein N and M are integers of 1 or more.
It should be noted that step 301 is similar to step 201 shown in fig. 2 in this embodiment, and is not described again here.
302. And respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values.
303. And respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value.
It can be understood that the wearable device averages the N first voltage values to obtain a first voltage mean value, averages the M second voltage values to obtain a second voltage mean value, and determines whether the wearable device has an improved accuracy of water intake through a corresponding difference value between the N first photosensitive values and the M second photosensitive values, that is, through a difference value between the first voltage mean value and the second voltage mean value.
304. And acquiring a first voltage difference value according to the first voltage mean value and the second voltage mean value.
Optionally, the obtaining, by the wearable device, a first voltage difference value according to the first voltage mean value and the second voltage mean value may include: and the wearable equipment subtracts the second voltage mean value from the first voltage mean value to obtain a first voltage difference value.
305. And obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference.
306. And determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value.
It should be noted that the steps 305-306 are similar to the steps 205-206 shown in fig. 2 in this embodiment, and are not described herein again.
In the embodiment of the invention, the wearable device obtains N first voltage values and M second voltage values by converting the N first photosensitive values and the M second photosensitive values through the photosensitive sensor; the wearable device processes the N first voltage values and the M second voltage values to obtain first voltage difference values; the wearable device converts the first voltage difference value to obtain a first digital signal; and the wearable device determines that the wearable device is water-inlet when the first digital signal is larger than a preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the first voltage mean value and the second voltage mean value which are obtained by the light sensation sensor, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 4, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
401. and acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit.
It can be understood that the electrode voltage detection circuit has the detection principle that a main board of the wearable device is provided with a group of voltage division electrodes and ground electrodes, the electrode dot matrix is arranged, when the wearable device enters water, the voltage of the electrodes can be changed, and the wearable device judges whether the wearable device enters water or not through the difference value between the voltage value before water enters and the voltage value after water enters. Namely, the wearable device judges whether the wearable device enters water or not by utilizing the third voltage value and the fourth voltage value.
It can be understood that, as the amount of water entering the wearable device increases, the detected voltage value decreases as the resistance of the water increases.
402. And acquiring a second voltage difference value according to the third voltage value and the fourth voltage value.
Optionally, the obtaining, by the wearable device, a second voltage difference value according to the third voltage value and the fourth voltage value may include: and the wearable equipment subtracts the fourth voltage value from the third voltage value to obtain a second voltage difference value.
403. And obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference.
404. And determining that the wearable device is water-inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
In the embodiment of the invention, the wearable device obtains a second voltage difference value through the electrode voltage detection circuit; the wearable device converts the second voltage difference value to obtain a second digital signal; and the wearable device determines that the wearable device is water-inlet when the second digital signal is greater than the preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the third voltage value and the fourth voltage value acquired by the electrode voltage detection circuit, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 5, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
501. and acquiring P third voltage values and Q fourth voltage values within a second preset time length through the electrode voltage detection circuit.
Wherein P and Q are integers of 1 or more.
It can be understood that the P third voltage values are P voltage values before the wearable device is filled with water, and the Q fourth voltage values are Q voltage values after the wearable device is filled with water. The wearable device obtains P third voltage values and Q fourth voltage values within a first preset time period, may be wearable obtains P continuous third voltage values and Q continuous fourth voltage values within the first preset time period, or may be wearable obtains any P third voltage values and any Q fourth voltage values within the first preset time period, and the specific obtaining content is not specifically limited.
502. And respectively averaging the P third voltage values and the Q fourth voltage values to obtain a third voltage mean value and a fourth voltage mean value.
It can be understood that, the wearable device averages the P third voltage values to obtain a third voltage mean value, averages the Q fourth voltage values to obtain a fourth voltage mean value, and the wearable device determines whether the wearable device has an improved accuracy of water intake through a corresponding difference value between the P third voltage values and the Q fourth voltage values, that is, through a difference value between the third voltage mean value and the fourth voltage mean value.
503. And acquiring a second voltage difference value according to the third voltage mean value and the fourth voltage mean value.
Optionally, the obtaining, by the wearable device, a second voltage difference value according to the third voltage mean value and the fourth voltage mean value may include: and the wearable equipment subtracts the fourth voltage mean value from the third voltage mean value to obtain a second voltage difference value.
504. And obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference.
505. And determining that the wearable device is water-inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
It should be noted that step 504 and step 505 are similar to step 403 and step 404 shown in fig. 4 in this embodiment, and are not described herein again.
In the embodiment of the invention, the wearable device obtains P third voltage values and Q fourth voltage values through the electrode voltage detection circuit; the wearable device processes the P third voltage values and the Q fourth voltage values to obtain a second voltage difference value; the wearable device converts the second voltage difference value to obtain a second digital signal; and the wearable device determines that the wearable device is water-inlet when the second digital signal is greater than the preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the P third voltage values and the Q fourth voltage values acquired by the electrode voltage detection circuit, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 6, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
601. and acquiring continuous X photosensitive values within a third preset time length through the photosensitive sensor.
Wherein X is an integer of 2 or more.
It is understood that the X exposure values consecutive within the third preset time period may include at least two of the following: a continuous photosensitive value in a fourth preset time period before the wearable device enters water, B continuous photosensitive values in a fifth preset time period in the wearable device water inlet process, and C continuous photosensitive values in a sixth preset time period after the wearable device enters water, wherein A, B, C is an integer greater than or equal to 1. It can be understood that, if the wearable device obtains, through the light sensation sensor, a consecutive light sensation values in the fourth preset time period and C consecutive light sensation values in the sixth preset time period, the fourth preset time period + the sixth preset time period is equal to the third preset time period, and the a light sensation values + the C light sensation values are equal to X light sensation values.
602. And respectively converting the continuous X photosensitive values to obtain continuous X voltage values.
603. And obtaining continuous X first digital signals through the analog-to-digital converter according to the continuous X voltage values.
604. Determining that the wearable device is flooded if the X consecutive first digital signals are detected to be falling consecutively.
It can be understood that, as the amount of water entering the wearable device increases, the detected voltage value decreases as the resistance of the water increases. Therefore, if the X first digital signals are continuously decreased, the water intake of the wearable device is considered to be gradually increased.
In the embodiment of the invention, the wearable device converts the obtained continuous X photosensitive values through the photosensitive sensor to obtain continuous X voltage values; the wearable device processes the continuous X voltage values, obtains continuous X first digital signals, and determines that the wearable device is flooded after judging that the continuous X first digital signals continuously drop. Therefore, the wearable device can detect whether the wearable device enters water or not through continuous X photosensitive values acquired by the photosensitive sensors, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 7, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
701. and acquiring continuous Y voltage values within the third preset time through an electrode voltage detection circuit.
Wherein Y is an integer of 2 or more.
It is understood that the Y voltage values consecutive within the third preset time period may include at least two of the following: a continuous voltage values in the fourth preset time period before the wearable device enters water, B continuous voltage values in the fifth preset time period in the wearable device water inlet process, and C continuous voltage values in the sixth preset time period after the wearable device enters water, wherein A, B, C is an integer greater than or equal to 1. It can be understood that, if the wearable device obtains, through the electrode voltage detection circuit, consecutive a photosensitive values in the fourth preset time period and consecutive B voltage values in the fifth preset time period, the fourth preset time period + the fifth preset time period is equal to the third preset time period, and a photosensitive value + B photosensitive values are equal to Y photosensitive values.
702. And obtaining continuous Y second digital signals through the analog-to-digital converter according to the continuous Y voltage values.
703. Determining that the wearable device is flooded if the consecutive Y second digital signals are detected to be continuously falling.
It can be understood that, as the amount of water entering the wearable device increases, the detected voltage value decreases as the resistance of the water increases. Therefore, the continuous decrease of the Y second digital signals can be regarded as the water inflow of the wearable device gradually increases.
In the embodiment of the invention, the wearable device obtains a second voltage difference value through the electrode voltage detection circuit; the wearable device converts the second voltage difference value to obtain a second digital signal; and the wearable device determines that the wearable device is water-inlet when the second digital signal is greater than the preset digital signal threshold value. Therefore, the wearable device can detect whether the wearable device enters water or not through the continuous Y voltage values acquired by the electrode voltage detection circuit, and the accuracy of detecting whether the wearable device enters water or not by the wearable device is improved.
As shown in fig. 8, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
801. and acquiring a first photosensitive value and a second photosensitive value at different moments by using the photosensitive sensor.
802. And respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value.
803. And acquiring a first voltage difference value according to the first voltage value and the second voltage value.
804. And obtaining a first digital signal through the analog-to-digital converter according to the first voltage difference.
805. And determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value.
It should be noted that steps 801-805 are similar to steps 101-105 shown in fig. 1 in this embodiment, and are not described herein again.
806. Generating and outputting a reminding message; or generating a reminding message and sending the reminding message to the terminal equipment.
It can be understood that the reminder message may be output by the wearable device through voice announcement, or may be output by the first wearable device through vibration and/or ringing. In addition, the voice broadcast can be output at least once.
Optionally, the sending, by the wearable device, the alert message to the terminal device may include: the wearable device sends the reminding message to the terminal device at least once.
It should be noted that step 806 may be implemented in combination with any of the embodiments of fig. 2 to 7 in this embodiment. Are also within the scope of the present invention and will not be described in detail herein.
In the embodiment of the invention, the wearable device obtains a first voltage difference value by processing the first photosensitive value and the second photosensitive value through the photosensitive sensor; the wearable device converts the first voltage difference value to obtain a first digital signal; the wearable device determines that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value; after determining that the wearable device is flooded, taking corresponding measures, which may include: generating and outputting a reminding message; or generating a reminding message and sending the reminding message to the terminal equipment. Therefore, the wearable device can detect whether the wearable device enters water or not through the light sensation sensor, the accuracy of whether the wearable device detects the water or not is improved under the condition that the wearable device enters the water or not, and in addition, the wearable device is timely protected by taking corresponding measures.
As shown in fig. 9, which is a schematic diagram of another embodiment of the water inlet detection method in the embodiment of the present invention, the method may include:
901. and acquiring a first photosensitive value and a second photosensitive value at different moments by using the photosensitive sensor.
902. And respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value.
903. And acquiring a first voltage difference value according to the first voltage value and the second voltage value.
904. And obtaining a first digital signal through the analog-to-digital converter according to the first voltage difference.
905. And determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value.
It should be noted that the steps 901-905 are similar to the steps 801-805 shown in fig. 8 in this embodiment, and are not described herein again.
906. Starting a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
Optionally, the start-up circuit protection procedure may include power-down protection.
Optionally, the wearable device may flash to alarm by presetting a light emitting diode in the closed circuit, where the flashing alarm includes: the wearable device carries out multiple-time flicker alarm through a light emitting diode in a preset closed circuit.
It should be noted that step 906 and any one of the embodiments in fig. 2 to fig. 8 in this embodiment may be implemented in combination. Are also within the scope of the present invention and will not be described in detail herein.
In the embodiment of the invention, the wearable device obtains a first voltage difference value by processing the first photosensitive value and the second photosensitive value through the photosensitive sensor; the wearable device converts the first voltage difference value to obtain a first digital signal; the wearable device determines that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value; after determining that the wearable device is flooded, taking corresponding measures, which may include: starting a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm. Therefore, the wearable device can detect whether the wearable device enters water or not through the light sensation sensor, the accuracy of whether the wearable device detects the water or not is improved under the condition that the wearable device enters the water or not, and in addition, the wearable device is timely protected by taking corresponding measures.
As shown in fig. 10, which is a schematic diagram of an embodiment of a wearable device in an embodiment of the present invention, the wearable device may include:
a first obtaining module 1001, configured to obtain, through a light sensor, a first light sensing value and a second light sensing value at different times; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference;
the first processing module 1002 is configured to determine that the wearable device has entered water when the first digital signal is greater than a preset digital signal threshold;
and/or the presence of a gas in the gas,
a second obtaining module 1003, configured to obtain, through the electrode voltage detection circuit, a third voltage value and a fourth voltage value at different times; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference;
a second processing module 1004 configured to determine that the wearable device is water-in if the second digital signal is greater than the preset digital signal threshold.
Alternatively, in some embodiments of the present invention,
the first obtaining module 1001 is specifically configured to obtain, through a light sensor, N first light sensing values and M second light sensing values within a first preset time period, where N and M are integers greater than or equal to 1; respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value; respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; or the like, or, alternatively,
the first obtaining module 1001 is specifically configured to obtain, through a light sensor, N first light sensing values and M second light sensing values within a first preset time period, where N and M are integers greater than or equal to 1; respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values; respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value; and acquiring a first voltage difference value according to the first voltage average value and the second voltage average value.
Alternatively, in some embodiments of the present invention,
a second obtaining module 1002, configured to obtain, through the electrode voltage detection circuit, P third voltage values and Q fourth voltage values within a second preset time period, where P and Q are integers greater than or equal to 1; averaging the P third voltage values and the Q fourth voltage values respectively to obtain a third voltage mean value and a fourth voltage mean value; and acquiring a second voltage difference value according to the third voltage average value and the fourth voltage average value.
Alternatively, in some embodiments of the present invention,
the first obtaining module 1001 is further configured to obtain, through the light sensor, X consecutive light sensing values within a third preset time period, where X is an integer greater than or equal to 2; respectively converting the continuous X photosensitive values to obtain continuous X voltage values; obtaining continuous X first digital signals from the continuous X voltage values through the analog-to-digital converter;
the first processing module 1002 is further configured to determine that the wearable device is water-in if it is detected that the X consecutive first digital signals are continuously falling.
Alternatively, in some embodiments of the present invention,
a second obtaining module 1003, configured to obtain, through the electrode voltage detection circuit, Y voltage values that are continuous within the third preset time period, where Y is an integer greater than or equal to 2; obtaining continuous Y second digital signals from the continuous Y voltage values through the analog-to-digital converter;
the second processing module 1004 is further configured to determine that the wearable device is water-in if it is detected that the consecutive Y second digital signals are consecutive drops.
Alternatively, in some embodiments of the present invention,
the first obtaining module 1001 or the second processing module 1003 is further configured to generate and output a prompting message; or generating a reminding message and sending the reminding message to the terminal equipment.
Alternatively, in some embodiments of the present invention,
the first obtaining module 1001 or the second processing module 1003 is further configured to start a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
Fig. 11 is a schematic diagram illustrating another embodiment of a wearable device in an embodiment of the present invention, and fig. 11 is a block diagram illustrating a partial structure of a mobile phone related to the wearable device provided in the embodiment of the present invention. Referring to fig. 11, the cellular phone includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 11:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 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 1120 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 input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, 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 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 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.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 11, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are then processed by the audio data output processor 1180, and then transmitted to, for example, another cellular phone via the RF circuit 1110, or output to the memory 1120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 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 within processor 1180.
The phone also includes a power supply 1190 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 1180 via a power management system, so that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 1180 included in the wearable device further has the following functions:
acquiring a first photosensitive value and a second photosensitive value at different moments through a photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference; determining that the wearable device enters water under the condition that the first digital signal is larger than a preset digital signal threshold value;
and/or the presence of a gas in the gas,
acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference; and determining that the wearable device is water-inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
Optionally, the processor 1180 further has the following functions:
acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers more than or equal to 1; respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value; respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; or the like, or, alternatively,
acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers more than or equal to 1; respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values; respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value; and acquiring a first voltage difference value according to the first voltage average value and the second voltage average value.
Optionally, the processor 1180 further has the following functions:
acquiring P third voltage values and Q fourth voltage values within a second preset time length through an electrode voltage detection circuit, wherein P and Q are integers more than or equal to 1; averaging the P third voltage values and the Q fourth voltage values respectively to obtain a third voltage mean value and a fourth voltage mean value; and acquiring a second voltage difference value according to the third voltage average value and the fourth voltage average value.
Optionally, the processor 1180 further has the following functions:
acquiring continuous X photosensitive values within a third preset time length through a photosensitive sensor, wherein X is an integer greater than or equal to 2; respectively converting the continuous X photosensitive values to obtain continuous X voltage values; obtaining continuous X first digital signals from the continuous X voltage values through the analog-to-digital converter; and determining that the wearable device is flooded under the condition that the X continuous first digital signals are detected to be continuously descending.
Optionally, the processor 1180 further has the following functions:
acquiring continuous Y voltage values within the third preset time length through an electrode voltage detection circuit, wherein Y is an integer greater than or equal to 2; obtaining continuous Y second digital signals from the continuous Y voltage values through the analog-to-digital converter; and determining that the wearable device is flooded in the case that the continuous Y second digital signals are detected to be continuously descending.
Optionally, the processor 1180 further has the following functions:
generating and outputting a reminding message; or generating a reminding message and sending the reminding message to the terminal equipment.
Optionally, the processor 1180 further has the following functions:
starting a circuit protection program; and/or, a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of detecting water ingress, comprising:
acquiring a first photosensitive value and a second photosensitive value at different moments through a photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference; determining that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value;
and/or the presence of a gas in the gas,
acquiring a third voltage value and a fourth voltage value at different moments through an electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference value; and determining that the wearable device is water-inlet under the condition that the second digital signal is larger than the preset digital signal threshold value.
2. The method according to claim 1, wherein the first photo-sensing value and the second photo-sensing value at different time are obtained by a photo-sensing sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; obtaining a first voltage difference value according to the first voltage value and the second voltage value, including:
acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers more than or equal to 1; respectively averaging the N first photosensitive values and the M second photosensitive values to obtain a first photosensitive average value and a second photosensitive average value; respectively converting the first sensitization average value and the second sensitization average value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; or the like, or, alternatively,
acquiring N first photosensitive values and M second photosensitive values within a first preset time length through a photosensitive sensor, wherein N and M are integers more than or equal to 1; respectively converting the N first photosensitive values and the M second photosensitive values to obtain N first voltage values and M second voltage values; respectively averaging the N first voltage values and the M second voltage values to obtain a first voltage average value and a second voltage average value; and acquiring a first voltage difference value according to the first voltage mean value and the second voltage mean value.
3. The method according to claim 1, wherein the third voltage value and the fourth voltage value at different time are obtained by the electrode voltage detection circuit; obtaining a second voltage difference value according to the third voltage value and the fourth voltage value, including:
acquiring P third voltage values and Q fourth voltage values within a second preset time length through an electrode voltage detection circuit, wherein P and Q are integers more than or equal to 1; averaging the P third voltage values and the Q fourth voltage values respectively to obtain a third voltage mean value and a fourth voltage mean value; and acquiring a second voltage difference value according to the third voltage mean value and the fourth voltage mean value.
4. The method of claim 1, further comprising:
acquiring continuous X photosensitive values within a third preset time length through a photosensitive sensor, wherein X is an integer greater than or equal to 2;
respectively converting the continuous X photosensitive values to obtain continuous X voltage values;
obtaining continuous X first digital signals from the continuous X voltage values through the analog-to-digital converter;
determining that the wearable device is flooded if the X consecutive first digital signals are detected to be falling consecutively.
5. The method of claim 1, further comprising:
acquiring continuous Y voltage values within the third preset time length through an electrode voltage detection circuit, wherein Y is an integer greater than or equal to 2;
obtaining continuous Y second digital signals from the continuous Y voltage values through the analog-to-digital converter;
determining that the wearable device is flooded if the consecutive Y second digital signals are detected to be continuously falling.
6. The method of any of claims 1-5, wherein after the determining that the wearable device is water-in, the method further comprises:
generating and outputting a reminding message; or the like, or, alternatively,
and generating a reminding message and sending the reminding message to the terminal equipment.
7. The method of claim 6, further comprising:
starting a circuit protection program; and/or the presence of a gas in the gas,
and a light emitting diode in a preset closed circuit is used for carrying out flashing alarm.
8. A wearable device, comprising:
the first acquisition module is used for acquiring a first photosensitive value and a second photosensitive value at different moments through the photosensitive sensor; respectively converting the first photosensitive value and the second photosensitive value to obtain a first voltage value and a second voltage value; acquiring a first voltage difference value according to the first voltage value and the second voltage value; obtaining a first digital signal through an analog-to-digital converter according to the first voltage difference;
the first processing module is used for determining that the wearable device enters water when the first digital signal is larger than a preset digital signal threshold value;
and/or the presence of a gas in the gas,
the second acquisition module is used for acquiring a third voltage value and a fourth voltage value at different moments through the electrode voltage detection circuit; acquiring a second voltage difference value according to the third voltage value and the fourth voltage value; obtaining a second digital signal through the analog-to-digital converter according to the second voltage difference value;
and the second processing module is used for determining that the wearable device is water inlet under the condition that the second digital signal is greater than the preset digital signal threshold value.
9. A wearable device, comprising:
a memory storing executable program code;
and a processor coupled to the memory;
the processor calls the executable program code stored in the memory for performing the method of any one of claims 1-7.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1-7.
CN202011038392.2A 2020-09-28 2020-09-28 Water inflow detection method, wearable device and computer readable storage medium Active CN112180459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011038392.2A CN112180459B (en) 2020-09-28 2020-09-28 Water inflow detection method, wearable device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011038392.2A CN112180459B (en) 2020-09-28 2020-09-28 Water inflow detection method, wearable device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112180459A true CN112180459A (en) 2021-01-05
CN112180459B CN112180459B (en) 2023-05-23

Family

ID=73945235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011038392.2A Active CN112180459B (en) 2020-09-28 2020-09-28 Water inflow detection method, wearable device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112180459B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113131936A (en) * 2021-03-10 2021-07-16 青岛歌尔智能传感器有限公司 Signal generation method and wearable device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02173543A (en) * 1988-11-30 1990-07-05 Tatsuta Electric Wire & Cable Co Ltd Detecting device for leakage liquid
US20110267074A1 (en) * 2010-04-29 2011-11-03 Schlumberger Technology Corporation Method of measuring a multiphase flow
US20150323382A1 (en) * 2014-05-08 2015-11-12 Pinnacle Imaging Corporation Light-detecting device and method for converting optical radiation on switched conductivity diodes
CN106908135A (en) * 2016-12-26 2017-06-30 浙江科聪智能科技有限公司 Sensor Design method, sensor, artificial intelligence robot, intelligent civilian infrastructure, Earthquake Forecast System, the intelligent network of rivers
CN106971506A (en) * 2017-04-27 2017-07-21 广东小天才科技有限公司 Wearable device and its soaked alarm method
CN109724758A (en) * 2018-12-11 2019-05-07 努比亚技术有限公司 A kind of water inlet detecting device, method, mobile terminal and storage medium
CN111025184A (en) * 2019-12-09 2020-04-17 珠海格力电器股份有限公司 Method and device for detecting short circuit of coupler of electric kettle, storage medium and processor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02173543A (en) * 1988-11-30 1990-07-05 Tatsuta Electric Wire & Cable Co Ltd Detecting device for leakage liquid
US20110267074A1 (en) * 2010-04-29 2011-11-03 Schlumberger Technology Corporation Method of measuring a multiphase flow
US20150323382A1 (en) * 2014-05-08 2015-11-12 Pinnacle Imaging Corporation Light-detecting device and method for converting optical radiation on switched conductivity diodes
CN106908135A (en) * 2016-12-26 2017-06-30 浙江科聪智能科技有限公司 Sensor Design method, sensor, artificial intelligence robot, intelligent civilian infrastructure, Earthquake Forecast System, the intelligent network of rivers
CN106971506A (en) * 2017-04-27 2017-07-21 广东小天才科技有限公司 Wearable device and its soaked alarm method
CN109724758A (en) * 2018-12-11 2019-05-07 努比亚技术有限公司 A kind of water inlet detecting device, method, mobile terminal and storage medium
CN111025184A (en) * 2019-12-09 2020-04-17 珠海格力电器股份有限公司 Method and device for detecting short circuit of coupler of electric kettle, storage medium and processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113131936A (en) * 2021-03-10 2021-07-16 青岛歌尔智能传感器有限公司 Signal generation method and wearable device
CN113131936B (en) * 2021-03-10 2023-03-24 青岛歌尔智能传感器有限公司 Signal generation method and wearable device

Also Published As

Publication number Publication date
CN112180459B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN108112063B (en) Power management method, power management device, terminal and readable storage medium
CN103024205B (en) Method, device and terminal for controlling power
CN108900231B (en) Dynamic antenna adjustment method and related product
CN107071147B (en) Parameter adjusting method and device
CN109561420B (en) Emergency help-seeking method and related equipment
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN106845422B (en) Fingerprint identification module, fingerprint identification method and mobile terminal
CN111641962A (en) Cell measurement method and terminal equipment
CN107566604B (en) Message reminding control method and user terminal
CN106446111B (en) Data migration method and terminal
CN111611027A (en) Method for starting application program, terminal equipment and readable storage medium
CN108172200B (en) Method for displaying text in application and terminal equipment
CN105303361B (en) Alarm clock adjusting method and device and terminal
WO2019104712A1 (en) Communication method, wearable device, mobile terminal and system
CN106095566B (en) Response control method and mobile terminal
CN112180459B (en) Water inflow detection method, wearable device and computer readable storage medium
CN109189538A (en) Method and device for sending directional red packet
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN107862190B (en) Reminding method and related product
CN112087717B (en) Positioning method, wearable device, terminal device and readable storage medium
CN107329547B (en) Temperature control method and device and mobile terminal
CN106777383B (en) File sorting method and intelligent terminal
CN103034319B (en) A kind of the method for display and control, control device and terminal are carried out to terminal
CN106792583B (en) Multimedia message sending method, terminal and computer readable storage medium
CN106817751B (en) Data sending method and mobile terminal

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