CN111862534A - Water detection method and device, computer equipment and storage medium - Google Patents

Water detection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111862534A
CN111862534A CN201910345475.7A CN201910345475A CN111862534A CN 111862534 A CN111862534 A CN 111862534A CN 201910345475 A CN201910345475 A CN 201910345475A CN 111862534 A CN111862534 A CN 111862534A
Authority
CN
China
Prior art keywords
waveform
water
information
terminal
verification
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.)
Pending
Application number
CN201910345475.7A
Other languages
Chinese (zh)
Inventor
冯荣华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201910345475.7A priority Critical patent/CN111862534A/en
Publication of CN111862534A publication Critical patent/CN111862534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/08Alarms for ensuring the safety of persons responsive to the presence of persons in a body of water, e.g. a swimming pool; responsive to an abnormal condition of a body of water
    • G08B21/088Alarms for ensuring the safety of persons responsive to the presence of persons in a body of water, e.g. a swimming pool; responsive to an abnormal condition of a body of water by monitoring a device worn by the person, e.g. a bracelet attached to the swimmer
    • 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
    • G01V3/02Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with propagation of electric current
    • 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 Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geology (AREA)
  • Remote Sensing (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a method and a device for detecting water, computer equipment and a storage medium, which comprises the following steps: acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal; analyzing waveform information of the electric signal and comparing and verifying the waveform information with a preset verification waveform, wherein the waveform of the electric signal sent by a second terminal correspondingly arranged with the first terminal is consistent with the verification waveform; and when the waveform information and the verification waveform are verified successfully, confirming that a preset water-meeting condition is achieved, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is in a preset variation range. The condition that the terminal met water can effectively be detected out through the wave form information of the signal of telecommunication of contrast collection and the difference of verifying between the wave form to in time make the counter-measure who meets water scene, reduce the harm of meeting water.

Description

Water detection method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for detecting water, a computer device, and a storage medium.
Background
The problem of children is a very hot topic in the world, corresponding measures can be made in the country aiming at the safety problem of children every year, but the problems of children losing and drowning cannot be avoided. With the rise of the wearable smart device market, the smart wearable market for children naturally becomes a competitive object of various manufacturers, and products are popular among consumers. Many parents equip children with smartwatches to reach the effect of contacting or monitoring children, for example, some smartwatches can monitor the position of children in real time. However, the greater risk to children is from drowning as opposed to being lost or abducted. Every year because the children of drowned physical death far more than the children that are turned round away, and present children dress smart machine generally can not detect and remind children's drowned condition, lead to children's wrist-watch can't provide help when children appear drowned danger.
Disclosure of Invention
The embodiment of the invention can provide a water-encountering detection method, a water-encountering detection device, computer equipment and a storage medium, wherein the water-encountering detection method, the water-encountering detection device, the computer equipment and the storage medium can timely find that a terminal encounters water and effectively reduce risk hazards.
In order to solve the above technical problem, the embodiment of the present invention adopts a technical solution that: a method for water detection is provided comprising the steps of:
Acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal;
analyzing waveform information of the electric signal and comparing and verifying the waveform information with a preset verification waveform, wherein the waveform of the electric signal sent by a second terminal correspondingly arranged with the first terminal is consistent with the verification waveform;
and when the waveform information and the verification waveform are verified successfully, confirming that a preset water-meeting condition is achieved, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is in a preset variation range.
Optionally, the detection device further comprises a second terminal correspondingly arranged to the first terminal, wherein the second terminal continuously sends an electrical signal with a waveform consistent with the verification waveform, so that the first terminal can collect the electrical signal with the waveform consistent with the detection waveform when the detection device is in water conduction.
Optionally, after the step of confirming that the preset water-encountering condition is achieved when the waveform information and the verification waveform are verified successfully, the method includes the following steps:
judging the distinguishing characteristics between the waveform information and the check waveform;
searching a preset scene database for a scene type having a mapping relation with the distinguishing features;
And defining the scene type with the mapping relation as scene information.
Optionally, the method further includes a step of constructing the scene database, where the step of constructing the scene database includes the steps of:
acquiring scene test information of a target scene type, wherein the scene test information comprises test waveform information of a test electric signal acquired by the first terminal when the scene is in a target scene;
comparing the waveform information of the test electrical signal with a preset test waveform to obtain a signal change characteristic, wherein the waveform of the electrical signal sent by the second terminal is consistent with the test waveform;
and determining the distinguishing characteristics corresponding to the target scene type according to the signal change characteristics, and inputting the distinguishing characteristics into the scene database.
Optionally, after the step of defining the scene type with the mapping relationship as the scene information, the method includes the following steps:
acquiring position information, wherein the position information is positioning data when the water-meeting condition is achieved;
generating prompt information according to the position information and the scene information;
and sending the prompt information to associated equipment, and triggering an alarm instruction of the associated equipment.
Optionally, after the step of confirming that the preset water-encountering condition is achieved when the verification of the waveform information and the verification waveform is successful, the method includes the following steps:
acquiring water-meeting time information, wherein the water-meeting time information is the time passing after the water-meeting condition is achieved;
comparing the water encountering time information with a preset first time threshold;
and when the water encountering time information is greater than the first time threshold value, triggering a preset water encountering prompt instruction.
Optionally, after the step of triggering a preset reminding instruction when the time is greater than the first time threshold, the method includes the following steps:
acquiring water leaving time information, wherein the water leaving time information is the time elapsed after the verification fails;
comparing the water leaving time information with a preset second time threshold;
and when the water leaving time information is larger than the second time threshold, triggering a preset water leaving prompt instruction.
To solve the above technical problem, an embodiment of the present invention further provides a water detecting device, including:
the acquisition module is used for acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal;
The processing module is used for analyzing the waveform information of the electric signal and comparing and verifying the waveform information with a preset check waveform, wherein the waveform of the electric signal sent by the second terminal correspondingly arranged to the first terminal is consistent with the check waveform;
and the execution module is used for confirming that a preset water-meeting condition is achieved when the waveform information and the verification waveform are verified successfully, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is within a preset variation range.
And (4) optional. Meet water detection device, still include with first terminal corresponds the second terminal that sets up, the second terminal continuously send the wave form with the unanimous signal of telecommunication of check-up wave form to when making meet water and switch on first terminal can gather the wave form is with the unanimous signal of telecommunication of inspection wave form.
Optionally, the water-detecting device further includes:
the first judgment submodule is used for judging the distinguishing characteristics between the waveform information and the check waveform;
the first searching submodule is used for searching a scene type which has a mapping relation with the distinguishing characteristics in a preset scene database;
And the first execution submodule is used for defining the scene type with the mapping relation as scene information.
Optionally, the water-detecting device further includes:
the first obtaining submodule is used for obtaining scene test information of a target scene type, wherein the scene test information comprises test waveform information of a test electric signal acquired by the first terminal when the scene is in a target scene;
the first processing submodule is used for comparing the waveform information of the test electric signal with a preset test waveform to obtain a signal change characteristic, wherein the electric signal waveform sent by the second terminal is consistent with the test waveform;
and the second execution submodule is used for determining the distinguishing characteristics corresponding to the target scene type according to the signal change characteristics and inputting the distinguishing characteristics into the scene database.
Optionally, the water-detecting device further includes:
the second acquisition submodule is used for acquiring position information, wherein the position information is positioning data when the water-meeting condition is achieved;
the second processing submodule is used for generating prompt information according to the position information and the scene information;
and the first sending submodule is used for sending the prompt information to associated equipment and triggering an alarm instruction of the associated equipment.
Optionally, the water-detecting device further includes:
the third acquiring submodule is used for acquiring water-encountering time information, wherein the water-encountering time information is the time passing after the water-encountering condition is achieved;
the first comparison submodule is used for comparing the water encountering time information with a preset first time threshold;
and the third execution submodule is used for triggering a preset water-encountering prompt instruction when the water-encountering time information is greater than the first time threshold.
Optionally, the water-detecting device further includes:
the fourth obtaining submodule is used for obtaining the water leaving time information, wherein the water leaving time information is the time passing after the verification fails;
the second comparison submodule is used for comparing the water leaving time information with a preset second time threshold;
and the fourth execution submodule is used for triggering a preset water leaving prompt instruction when the water leaving time information is greater than the second time threshold.
To solve the above technical problem, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the above water-detecting method.
To solve the above technical problem, embodiments of the present invention further provide a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to execute the steps of the above-mentioned water-detecting method.
The embodiment of the invention has the beneficial effects that: the wave form information of the signal of telecommunication of gathering through the contrast can effectively detect out the terminal condition of meeting water with verifying the difference between the wave form to in time make the counter measure of meeting water the scene, reduce the harm of meeting water, when being directed against children's user especially, timely meeting water counter measure can reduce children's drowned risk. The data information sent and received by the exposed terminal of the terminal is used for detecting the water-meeting state, the terminal of the data transmission interface of the terminal can be used for detecting the water-meeting state without a specific water detection module, the terminal does not depend on specific hardware conditions, the manufacturing cost of the terminal is reduced, meanwhile, the applicability is high, and the terminal can be applied to common terminal equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a basic flow of a water-detecting method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating the determination of terminal context information according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of constructing a scene database according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a process of triggering a reminder according to terminal location and a scene in an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for triggering a prompt according to a water-time scenario;
FIG. 6 is a schematic flow chart illustrating triggering of a prompt according to an embodiment of the present invention;
FIG. 7 is a block diagram of the basic structure of a water-detecting device in accordance with an embodiment of the present invention;
FIG. 8 is a block diagram of the basic structure of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely 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 of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
As will be appreciated by those skilled in the art, "terminal" as used herein includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that include receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (personal communications service), which may combine voice, data processing, facsimile and/or data communications capabilities; a PDA (personal digital assistant), which may include a radio frequency receiver, a pager, internet/intranet access, web browser, notepad, calendar and/or GPS (global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (mobile internet device), and/or a mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
Specifically referring to fig. 1, fig. 1 is a schematic diagram of a basic flow of the water-detecting method of this embodiment.
As shown in fig. 1, a method for water detection includes the following steps:
s1100, acquiring an electric signal flowing through a first terminal in an environment through the exposed first terminal;
the terminal is provided with a first terminal and a second terminal which are exposed, the first terminal is used for collecting electric signals in the environment, and the second terminal is used for continuously sending electric signals with specific waveforms. For example, data transmission is carried out by conducting the D + end and the D-end of the USB thimble, and when the USB thimble normally works, one exposed terminal continuously sends an electric signal, and the other terminal continuously collects the electric signal in the environment. Taking the USB interface as an example, the D + end of the USB thimble continuously transmits an electrical signal with a specified waveform as a basis for verification, and when the D + end and the D-end are connected, the data information transmitted by the D + end can be received by the D-end. By monitoring the D-terminal, the electric signals flowing through the D-terminal in the environment are collected in real time.
S1200, analyzing waveform information of the electric signal and comparing and verifying the waveform information with a preset verification waveform, wherein the waveform of the electric signal sent by a second terminal correspondingly arranged to the first terminal is consistent with the verification waveform;
After the first terminal collects the electric signals in the environment, waveform information of the electric signals is obtained through analysis, and the waveform information and the check waveform are compared and verified. The exposed second terminal continuously sends the electric signal with the waveform consistent with the check waveform, so that the first terminal can collect the electric signal with the waveform consistent with the check waveform when the water is conducted. Taking the USB interface as an example, the D + terminal of the USB interface continuously transmits the electrical signal with the waveform consistent with the verification waveform. And comparing the electric signal waveform information acquired by the first terminal with the check waveform to obtain a comparison result of the electric signal waveform information and the check waveform. When the two are completely consistent, the first terminal and the second terminal are determined to be completely conducted, and when the two are not completely consistent, a distinguishing point between the two is analyzed.
Specifically, since the medium that is conducted in the environment may attenuate the transmitted electrical signal, when the first terminal and the second terminal are conducted, the waveform information and the verification waveform are not necessarily completely consistent, and the comparison result may be affected differently according to the degree of the influence of the conducting medium on the signal transmission. For example, there may be a difference in waveform frequency, but the present invention is not limited thereto, and the comparison result may be set according to actual situations, for example, the frequency of the waveform information is reduced by 5% compared with the check waveform.
S1300, when the waveform information and the check waveform are verified successfully, confirming that a preset water meeting condition is achieved, wherein the verification success means that the waveform information and the check waveform are consistent or the difference between the waveform information and the check waveform is within a preset variation range;
and judging whether the water-meeting condition is achieved or not according to the comparison verification result of the waveform information and the check waveform, wherein the verification is successful, namely the two are consistent or the difference of the two is within a certain range.
Specifically, when the terminal is completely immersed in water, the transmitting end and the receiving end of the data transmission interface use water as a medium and are in a conducting state, and at this time, waveform information acquired by the receiving end and a check waveform transmitted by the transmitting end should be consistent, but because the conductivity of the medium is different, when the conductivity of the medium is poor, a transmitted signal may have a certain attenuation, so that the waveform information and the check waveform are not completely consistent, and the difference between the two is still within a certain range.
When the terminal accidentally contacts water in the daily use process (for example, the terminal is splashed with water or a human body sweats), the conduction effect of the two terminals is different from that of the terminal when the terminal is completely immersed, for example, the terminal is possibly in an incomplete conduction state when being splashed with water, data information is interrupted in the transmission process, and an electric signal acquired by a receiving end is incomplete, so that the result obtained when comparing and verifying the waveform information obtained by analysis and the verification waveform is possibly large in difference, and at the moment, the terminal can be judged to be in a state without danger and does not need to take measures.
When the water-meeting condition is met, it is determined that the equipment is in the water-meeting state, and certain remedial measures need to be taken, for example, prompt information is sent to the associated terminal to remind relevant personnel to respond.
As shown in fig. 2, step S1300 is followed by the following steps:
s1310, judging distinguishing characteristics between the waveform information and the check waveform; and comparing the acquired waveform information with the check waveform, and judging the distinguishing characteristic range of the distinguishing point between the acquired waveform information and the check waveform. According to the difference of the transmitted data information, a specific distinguishing characteristic can be set according to the actual situation, for example, when the transmitted data information is an electrical signal, the distinguishing characteristic can be frequency attenuation of the waveform information compared with the verification waveform, and the like, but is not limited thereto. The distinguishing characteristic can set different gradient ranges, such as frequency attenuation of 5% -10% and 10% -15%, according to different practical application scenarios.
S1320, searching a scene type having a mapping relation with the distinguishing characteristics in a preset scene database;
the scene database stores data corresponding to different scene types, such as water immersion, splash, sweat or the like, and is used for distinguishing different water-encountering scenes. When a scene database is constructed, firstly, a large amount of experimental data is acquired as test data of a corresponding scene, for example, for a water immersion scene, a verification test is performed on equipment in a water immersion state, the acquired data is test data, a difference point between a waveform of an electric signal received by a first terminal and a preset test waveform is judged, and a range of the difference point in the scene is acquired through a plurality of groups of experimental data and is used as a difference characteristic corresponding to a scene type. After the corresponding distinguishing features of each scene are acquired, the distinguishing features and the scene types are stored in a scene database in a mapping relation mode. The distinguishing of the scene types can be adjusted according to the actual application requirements, for example, when the scenes need to be classified more finely, the scene of 'soaking' can be refined into seawater, river water, tap water and the like.
And after the distinguishing features are judged, searching the scene type which has a mapping relation with the distinguishing features in a scene database.
S1330, defining the scene type with the mapping relation as scene information;
and determining the searched scene type having a mapping relation with the distinguishing features as the current scene information of the terminal.
Different water-meeting scenes can be effectively distinguished by distinguishing the mode of determining the scene information of the terminal through the characteristic, so that a basis is provided for subsequent measures, and the condition that the daily water-meeting condition mishaps to be urgent danger caused by adopting the same coping mode aiming at all the water-meeting conditions is avoided.
As shown in fig. 3, the method further comprises the following steps:
s2110, obtaining scene test information of a target scene type, wherein the scene test information comprises test waveform information of a test electric signal acquired by the first terminal when the scene is in a target scene;
when a scene database is constructed, scene testing of verification data is carried out on the terminal under different scenes, the scene testing is that under the type of a target scene, electric signals with waveforms consistent with the testing waveforms are sent through the second terminal, environment electric signals collected by the first terminal are collected and analyzed to obtain testing waveform information of the testing electric signals, and the testing waveform information obtained through the testing is used as scene testing data. According to the classification type of the scene, different scenes are tested for multiple times, such as a soaking state, a splashing state, sweat conduction and the like.
The method includes the steps that multiple times (such as 1000 times) of tests are conducted on a scene under a target scene state, so that multiple groups (such as 1000 groups) of test data are obtained, for example, a terminal is immersed into water in a soaking state, test electric signals collected by a first terminal are obtained, and corresponding test waveform information is obtained through analysis. In order to enable the scene test data to be more objective and real, when the same scene is tested, the scene details can be changed according to the actual situation, for example, for the immersion state, the terminal can be immersed in river water, seawater or tap water respectively for testing; for the splash condition test, the terminal can be splashed from different angles and different water amounts of the terminal respectively, and the like. And taking the test waveform information obtained by the test as scene test data of the target scene type.
S2120, comparing the waveform information of the test electrical signal with a preset test waveform to obtain a signal change characteristic, wherein the waveform of the electrical signal sent by the second terminal is consistent with the test waveform;
analyzing the distinguishing features of each set of acquired scene test data and the test waveform, where possible scene test data distinguishing points include, but are not limited to, frequencies, and the like, and the comparison result may be set according to actual situations, for example, the frequency of the waveform information of the test electrical signal is reduced by 5% compared with the test waveform, but is not limited to, this.
After acquiring multiple sets of test data distinguishing features of the same scene, counting the range of all the test data distinguishing features, and taking the variation range of the test data as the variation feature of the signal, such as frequency attenuation of 5-10%.
And respectively testing and processing by using the method to obtain the signal change characteristics of each preset scene classification.
S2130, determining distinguishing characteristics corresponding to the target scene type according to the signal change characteristics, and inputting the distinguishing characteristics into the scene database;
after the signal change characteristics are obtained, the signal change characteristics are stored in a scene database as distinguishing characteristics corresponding to the target scene type, and the distinguishing characteristics of each preset scene type are respectively obtained and stored through the method, so that the scene database is constructed.
The corresponding relation between the scene type and the distinguishing characteristic range is obtained through a scene test mode, so that a scene database is constructed, a reference basis for data analysis is provided for the process of water-encountering detection, the scene can be distinguished more accurately during the water-encountering detection, and the accuracy of the water-encountering detection is improved.
As shown in fig. 4, step S1330 is followed by the following steps:
S1340, acquiring position information, wherein the position information is positioning data when the water-meeting condition is achieved;
and after the scene information of the terminal is judged, acquiring real-time positioning data of the terminal as position information. Specifically, the positioning data of the terminal is determined through hardware information of a module (such as a GPS module or a Wi-Fi module) having a positioning function in the terminal, and the positioning data is associated with preset map data, so that information such as a position where the terminal is located and a position name is determined in a map.
S1350, generating prompt information according to the position information and the scene information; after the position information is acquired, prompt information is generated according to the position information and the scene information, and the prompt information includes, but is not limited to, a terminal position, a scene type, a prompt, and the like. In some embodiments, different prompt languages are set for different scene types, and a corresponding prompt language is selected according to the scene type of the terminal to generate the prompt information, for example, for a water immersion scene, the corresponding prompt language may be "a child may have a drowning danger and please go to rescue as soon as possible", and the setting of the content of the prompt language may be adjusted according to actual application requirements, which is not limited herein.
S1360, sending the prompt information to associated equipment, and triggering an alarm instruction of the associated equipment;
the terminal can be associated with one or more other devices when being set, for example, when the terminal is a child watch, the terminal can be associated with electronic devices such as a parent's mobile phone and a computer through a network, after the prompt information is obtained, the prompt information is sent to the associated devices, and the prompt information further comprises a warning trigger instruction of the associated devices so as to remind users of the associated devices of paying attention to the prompt information in time. For example, the terminal a sends a prompt message to the parent's mobile phone, the parent's mobile phone triggers a warning instruction (such as a ring or a vibration, but not limited thereto) after receiving the prompt message, and displays a prompt message "a is in a submerged state at the position B, a child may be in danger of drowning, and please go to help as soon as possible", the prompt message may be associated with a map application in the mobile phone, and a specific position where the a is located may be displayed in the map application when the position B is clicked, so that the parent is guided to go to the current location of the parent a more accurately and quickly.
The terminal is judged to acquire position data after meeting water state to generate prompt information and send the prompt information to the associated equipment to remind relevant personnel, the relevant personnel can be informed to take remedial measures in time when the terminal meets water and is possibly dangerous, the relevant personnel are guided to go to a target place through positioning data, and drowning risk of a terminal holder is effectively reduced.
As shown in fig. 5, the following steps are further included after step S1300:
s1410, acquiring water-encountering time information, wherein the water-encountering time information is the time passing after the water-encountering condition is achieved;
when the water-meeting condition is achieved, timing is started, whether the water-meeting condition is achieved is judged once again at regular time intervals (such as 5 seconds), and when the water-meeting condition is judged again, the time elapsed after timing is determined to be the water-meeting time.
S1420, comparing the water encountering time information with a preset first time threshold;
a first time threshold (e.g., 30 seconds) is preset in the system to distinguish whether it is accidentally water-wet or truly submersed in water. Specifically, the acquired water contact time is compared with a first time threshold value, and whether the water contact time is greater than a preset first time threshold value is judged. The value of the first time threshold can be adjusted according to actual use requirements, for example, when the water-meeting condition of the terminal needs to be judged more quickly and an alarm is given, the value of the first time threshold can be reduced appropriately; when the water-meeting condition of the terminal needs to be judged more accurately so as to reduce misjudgment caused by accidental water meeting, the value of the first time threshold value can be properly increased.
S1430, when the water encountering time information is greater than the first time threshold, triggering a preset water encountering prompt instruction;
when the water-meeting time is judged to be larger than the first time threshold value, the time that the terminal is in the water-meeting state is long enough, the terminal can be really immersed in water at the moment, the holder of the terminal can be in danger of drowning, and a preset water-meeting prompt instruction is triggered. The water-encounter prompt instruction may be to send a specified prompt message to the associated device to guide the associated person to go for help.
Through setting for meeting water time, can effectively distinguish and meet water and really appear dangerous scene by accident, reduce the erroneous judgement rate to meeting the water condition.
As shown in fig. 6, the following steps are further included after step S1430:
s1440, acquiring water leaving time information, wherein the water leaving time information is the time elapsed after the verification fails;
judging whether the terminal achieves the water-meeting condition once again at regular time intervals (such as 5 seconds) after the terminal is in the water-meeting state, starting timing when the verification fails and the water-meeting condition cannot be achieved, counting the time which passes after the verification fails as the water-leaving time, and clearing the water-leaving time when the terminal achieves the water-meeting condition again.
S1450, comparing the water leaving time information with a preset second time threshold;
a second time threshold (e.g., 30 seconds) is preset in the system to distinguish whether the terminal is actually out of the water-met state. Specifically, the acquired water leaving time is compared with a second time threshold, and whether the water leaving time is greater than a preset second time threshold is judged. The value of the second time threshold can be adjusted according to actual use requirements, for example, when the water leaving condition of the terminal needs to be judged more quickly, the value of the second time threshold can be reduced appropriately; when the terminal is required to be more accurately determined to be out of the water-encountering state so as to reduce misjudgment caused by accidental water leaving (for example, accidental water leaving when drowning and struggling), the value of the first time threshold can be appropriately increased.
S1430, when the water leaving time information is larger than the second time threshold, triggering a preset water leaving prompt instruction;
and when the water leaving time is judged to be greater than the second time threshold, the terminal is indicated to be separated from the water-meeting state, and a preset water leaving prompt instruction is triggered. The water-meeting prompting instruction can be used for sending specified prompting information to the associated equipment to inform the related personnel that the terminal is out of danger.
Through setting up the time of leaving water, when the terminal has broken away from the surface of water (promptly the terminal holder has broken away from drowned danger), in time inform relevant personnel, avoid causing the danger to have relieved but relevant personnel still promptly go to the condition of seeking help not obtaining the message, improve the validity and the accuracy that the terminal met water suggestion.
In order to solve the above technical problem, an embodiment of the present invention further provides a water detection device. Referring to FIG. 7, FIG. 7 is a block diagram of a basic structure of the water detecting device according to the present embodiment.
As shown in fig. 7, the water-detecting device includes: an acquisition module 2100, a processing module 2200, and an execution module 2300. The acquisition module is used for acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal; the processing module is used for analyzing the waveform information of the electric signal and comparing and verifying the waveform information with a preset verification waveform, wherein the waveform of the electric signal sent by the second terminal correspondingly arranged to the first terminal is consistent with the verification waveform; the execution module is used for confirming that a preset water-meeting condition is achieved when the waveform information and the verification waveform are verified successfully, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is within a preset variation range.
The wave form information of the signal of telecommunication of gathering through the contrast can effectively detect out the terminal condition of meeting water with verifying the difference between the wave form to in time make the counter measure of meeting water the scene, reduce the harm of meeting water, when being directed against children's user especially, timely meeting water counter measure can reduce children's drowned risk. The data information sent and received by the exposed terminal of the terminal is used for detecting the water-meeting state, the terminal of the data transmission interface of the terminal can be used for detecting the water-meeting state without a specific water detection module, the terminal does not depend on specific hardware conditions, the manufacturing cost of the terminal is reduced, meanwhile, the applicability is high, and the terminal can be applied to common terminal equipment.
In some embodiments, the water-detecting device further includes a second terminal disposed corresponding to the first terminal, and the second terminal continuously transmits an electrical signal having a waveform consistent with the verification waveform, so that the first terminal can collect the electrical signal having the waveform consistent with the verification waveform when the water-detecting device is turned on.
In some embodiments, the water-detecting device further comprises: the device comprises a first judgment submodule, a first search submodule and a first execution submodule. The first judgment submodule is used for judging distinguishing characteristics between the waveform information and the check waveform; the first searching submodule is used for searching a scene type which has a mapping relation with the distinguishing characteristics in a preset scene database; the first execution submodule is used for defining the scene type with the mapping relation as scene information.
In some embodiments, the water-detecting device further comprises: the device comprises a first acquisition submodule, a first processing submodule and a second execution submodule. The first obtaining submodule is used for obtaining scene test information of a target scene type, wherein the scene test information comprises test waveform information of a test electric signal collected by the first terminal when the first obtaining submodule is in a target scene; the first processing submodule is used for comparing the waveform information of the test electric signal with a preset test waveform to obtain a signal change characteristic, wherein the waveform of the electric signal sent by the second terminal is consistent with the test waveform; and the second execution submodule is used for determining the distinguishing characteristics corresponding to the target scene type according to the signal change characteristics and inputting the distinguishing characteristics into the scene database.
In some embodiments, the water-detecting device further comprises: the system comprises a second acquisition submodule, a second processing submodule and a first sending submodule. The second acquiring submodule is used for acquiring position information, wherein the position information is positioning data when the water-meeting condition is achieved; the second processing submodule is used for generating prompt information according to the position information and the scene information; and the first sending submodule is used for sending the prompt information to associated equipment and triggering a warning instruction of the associated equipment.
In some embodiments, the water-detecting device further comprises: a third obtaining submodule, a first comparison submodule and a third executing submodule. The third acquiring submodule is used for acquiring water-encountering time information, wherein the water-encountering time information is the time which passes after the water-encountering condition is achieved; the first comparison submodule is used for comparing the water encountering time information with a preset first time threshold; and the third execution submodule is used for triggering a preset water-encountering prompt instruction when the water-encountering time information is greater than the first time threshold.
In some embodiments, the water-detecting device further comprises: a fourth obtaining submodule, a second comparing submodule and a fourth executing submodule. The fourth obtaining submodule is used for obtaining water leaving time information, wherein the water leaving time information is time passing after verification fails; the second comparison sub-module is used for comparing the water leaving time information with a preset second time threshold; and the fourth execution submodule is used for triggering a preset water leaving prompt instruction when the water leaving time information is greater than the second time threshold.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device. Referring to fig. 8, fig. 8 is a block diagram of a basic structure of a computer device according to the present embodiment.
As shown in fig. 8, the internal structure of the computer device is schematically illustrated. As shown in fig. 8, the computer apparatus includes a processor, a nonvolatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize a water detection method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a water-detection method. The network interface of the computer device is used for connecting and communicating with the terminal. It will be appreciated by those skilled in the art that the configurations shown in the figures are block diagrams of only some of the configurations relevant to the present application, and do not constitute a limitation on the computing devices to which the present application may be applied, and that a particular computing device may include more or less components than those shown in the figures, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of the obtaining module 2100, the processing module 2200, and the executing module 2300 in fig. 7, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data required for executing all the submodules in the water-detecting device, and the server can call the program codes and data of the server to execute the functions of all the submodules.
The present invention also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the water-detecting method of any of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-only memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for water detection, comprising the steps of:
acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal;
analyzing waveform information of the electric signal and comparing and verifying the waveform information with a preset verification waveform, wherein the waveform of the electric signal sent by a second terminal correspondingly arranged with the first terminal is consistent with the verification waveform;
and when the waveform information and the verification waveform are verified successfully, confirming that a preset water-meeting condition is achieved, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is in a preset variation range.
2. The water-detecting method as recited in claim 1, further comprising a second terminal corresponding to the first terminal, wherein the second terminal continuously transmits an electrical signal having a waveform consistent with the verification waveform, so that the first terminal can collect an electrical signal having a waveform consistent with the verification waveform when the first terminal is turned on when the first terminal is in contact with water.
3. The water-detecting method of claim 1, wherein the step of confirming that the predetermined water-encountering condition is achieved when the verification of the waveform information and the verification waveform is successful comprises the steps of:
Judging the distinguishing characteristics between the waveform information and the check waveform;
searching a preset scene database for a scene type having a mapping relation with the distinguishing features;
and defining the scene type with the mapping relation as scene information.
4. The water-detecting method of claim 3, further comprising the step of building the scene database, the step of building the scene database comprising the steps of:
acquiring scene test information of a target scene type, wherein the scene test information comprises test waveform information of a test electric signal acquired by the first terminal when the scene is in a target scene;
comparing the waveform information of the test electrical signal with a preset test waveform to obtain a signal change characteristic, wherein the waveform of the electrical signal sent by the second terminal is consistent with the test waveform;
and determining the distinguishing characteristics corresponding to the target scene type according to the signal change characteristics, and inputting the distinguishing characteristics into the scene database.
5. The water-detecting method of claim 3, wherein the step of defining the scene type with mapping relationship as scene information is followed by the steps of:
Acquiring position information, wherein the position information is positioning data when the water-meeting condition is achieved;
generating prompt information according to the position information and the scene information;
and sending the prompt information to associated equipment, and triggering an alarm instruction of the associated equipment.
6. The water-detecting method of claim 1, wherein the step of confirming that the predetermined water-encountering condition is achieved when the verification of the waveform information and the verification waveform is successful comprises the steps of:
acquiring water-meeting time information, wherein the water-meeting time information is the time passing after the water-meeting condition is achieved;
comparing the water encountering time information with a preset first time threshold;
and when the water encountering time information is greater than the first time threshold value, triggering a preset water encountering prompt instruction.
7. The water-detecting method of claim 6, wherein the step of triggering a preset alert instruction when the time is greater than the first time threshold is followed by the steps of:
acquiring water leaving time information, wherein the water leaving time information is the time elapsed after the verification fails;
comparing the water leaving time information with a preset second time threshold;
And when the water leaving time information is larger than the second time threshold, triggering a preset water leaving prompt instruction.
8. A water-detecting device, comprising:
the acquisition module is used for acquiring an electric signal flowing through the first terminal in an environment through the exposed first terminal;
the processing module is used for analyzing the waveform information of the electric signal and comparing and verifying the waveform information with a preset check waveform, wherein the waveform of the electric signal sent by the second terminal correspondingly arranged to the first terminal is consistent with the check waveform;
and the execution module is used for confirming that a preset water-meeting condition is achieved when the waveform information and the verification waveform are verified successfully, wherein the verification success means that the waveform information and the verification waveform are consistent or the difference between the waveform information and the verification waveform is within a preset variation range.
9. A computer device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the water-detecting method of any of the preceding claims 1-7.
10. A non-transitory computer readable storage medium having instructions that, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a water-detection method, the method comprising the water-detection method of any of claims 1-7 above.
CN201910345475.7A 2019-04-26 2019-04-26 Water detection method and device, computer equipment and storage medium Pending CN111862534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910345475.7A CN111862534A (en) 2019-04-26 2019-04-26 Water detection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910345475.7A CN111862534A (en) 2019-04-26 2019-04-26 Water detection method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111862534A true CN111862534A (en) 2020-10-30

Family

ID=72951454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910345475.7A Pending CN111862534A (en) 2019-04-26 2019-04-26 Water detection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111862534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160343A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Water entrance detection method and related apparatus

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5121104A (en) * 1991-02-08 1992-06-09 Nelson Alan H Pool alarm
JP2003077077A (en) * 2001-08-31 2003-03-14 Osaka Gas Co Ltd Submergence detecting device
JP2005241476A (en) * 2004-02-26 2005-09-08 Japan Agengy For Marine-Earth Science & Technology Inundation sensor, submersible machine, and inundation detection method
JP2007040924A (en) * 2005-08-05 2007-02-15 Shizuo Watanabe Method for analyzing and evaluating liquid property and radio spectroscopic apparatus used for the same
CN101614573A (en) * 2009-04-28 2009-12-30 北京宝力马传感技术有限公司 Soaking monitoring method, device and equipment
KR101076774B1 (en) * 2010-12-29 2011-10-26 충북대학교 산학협력단 Submergence sensing device and method for submergence sensing using the same
US20120246801A1 (en) * 2011-03-03 2012-10-04 Cutler David M Water Sensing Electrode Circuit
US20160146935A1 (en) * 2014-11-26 2016-05-26 Samsung Electronics Co., Ltd. Method and apparatus for detecting that a device is immersed in a liquid
CN106971506A (en) * 2017-04-27 2017-07-21 广东小天才科技有限公司 Wearable device and its soaked alarm method
CN108759977A (en) * 2018-04-27 2018-11-06 青岛海尔科技有限公司 A kind of immersion detection device
CN109377724A (en) * 2018-10-30 2019-02-22 出门问问信息科技有限公司 Immersion warning device and its control method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5121104A (en) * 1991-02-08 1992-06-09 Nelson Alan H Pool alarm
JP2003077077A (en) * 2001-08-31 2003-03-14 Osaka Gas Co Ltd Submergence detecting device
JP2005241476A (en) * 2004-02-26 2005-09-08 Japan Agengy For Marine-Earth Science & Technology Inundation sensor, submersible machine, and inundation detection method
JP2007040924A (en) * 2005-08-05 2007-02-15 Shizuo Watanabe Method for analyzing and evaluating liquid property and radio spectroscopic apparatus used for the same
CN101614573A (en) * 2009-04-28 2009-12-30 北京宝力马传感技术有限公司 Soaking monitoring method, device and equipment
KR101076774B1 (en) * 2010-12-29 2011-10-26 충북대학교 산학협력단 Submergence sensing device and method for submergence sensing using the same
US20120246801A1 (en) * 2011-03-03 2012-10-04 Cutler David M Water Sensing Electrode Circuit
US20160146935A1 (en) * 2014-11-26 2016-05-26 Samsung Electronics Co., Ltd. Method and apparatus for detecting that a device is immersed in a liquid
CN106971506A (en) * 2017-04-27 2017-07-21 广东小天才科技有限公司 Wearable device and its soaked alarm method
CN108759977A (en) * 2018-04-27 2018-11-06 青岛海尔科技有限公司 A kind of immersion detection device
CN109377724A (en) * 2018-10-30 2019-02-22 出门问问信息科技有限公司 Immersion warning device and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160343A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Water entrance detection method and related apparatus

Similar Documents

Publication Publication Date Title
Robinson et al. A sensitive twitter earthquake detector
CN111935319B (en) Monitoring processing method and system based on vehicle terminal system and related equipment
CN111638751B (en) Safety early warning method and device based on wearable equipment and wearable equipment
CN108597176A (en) A kind of safe early warning method and wearable device based on wearable device
US20170134560A1 (en) Tactile messaging via a wearable device
CN115357470B (en) Information generation method and device, electronic equipment and computer readable medium
CN105336107A (en) Vibration alarm method and device
CN111862534A (en) Water detection method and device, computer equipment and storage medium
CN110650243B (en) Alarm method, alarm device, storage medium and terminal
CN112132095A (en) Dangerous state identification method and device, electronic equipment and storage medium
CN104125586A (en) Information prompt method, server and terminal
JP5492126B2 (en) Server, program and method for collecting wireless quality based on user experience quality
Matuszka et al. On a keyword-lifecycle model for real-time event detection in social network data
KR102022343B1 (en) System, server and method for detecting offensive word, analyzing location and notifying them based on smart phone
CN108267170B (en) Environment monitoring method and device
JP2008311844A (en) Information communication system and method
CN114445088A (en) Method and device for judging fraudulent conduct, electronic equipment and storage medium
CN107729737B (en) Identity information acquisition method and wearable device
RU2016107774A (en) METHOD AND DEVICE FOR NOTIFICATION OF CONDITION
KR101564347B1 (en) Terminal and method for requesting emergency relief
CN113114986A (en) Early warning method based on picture and sound synchronization and related equipment
KR100600334B1 (en) Apparatus For Discriminating Smell Using The Mobile Communication Terminal
CN106804039B (en) user security index obtaining method and device
Teodorescu On the responses of social networks' to external events
Sharmin et al. An android based security alert system for female

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