CN105526992B - Water level measurement method and device, container - Google Patents

Water level measurement method and device, container Download PDF

Info

Publication number
CN105526992B
CN105526992B CN201610045724.7A CN201610045724A CN105526992B CN 105526992 B CN105526992 B CN 105526992B CN 201610045724 A CN201610045724 A CN 201610045724A CN 105526992 B CN105526992 B CN 105526992B
Authority
CN
China
Prior art keywords
target
water level
medium
light
anaclasis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610045724.7A
Other languages
Chinese (zh)
Other versions
CN105526992A (en
Inventor
王毅
刘东旭
白茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi 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 Xiaomi Mobile Software Co Ltd, Beijing Smartmi Technology Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610045724.7A priority Critical patent/CN105526992B/en
Publication of CN105526992A publication Critical patent/CN105526992A/en
Application granted granted Critical
Publication of CN105526992B publication Critical patent/CN105526992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/28Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring the variations of parameters of electromagnetic or acoustic waves applied directly to the liquid or fluent solid material
    • G01F23/284Electromagnetic waves
    • G01F23/292Light, e.g. infrared or ultraviolet

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Thermal Sciences (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The disclosure is directed to water level measurement method and devices, terminal, the described method includes: obtaining target light diffracting position, the target light diffracting position is to detect position of the refraction light on preset level face after light reflect from first medium to second medium with target incident angle, and a kind of medium is air in the first medium and second medium, another kind medium is testing liquid;Determine that the target water level of the testing liquid is poor according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle, the known anaclasis position is to survey position of the refraction light on preset level face after light is reflected from first medium to second medium with target incident angle in known water level test, and the target refractive angle is the refraction angle after refraction.The disclosure determines that target water level is poor by the relationship between target light diffracting position, known anaclasis position, target incident angle and target refractive angle, realizes the water-head of measurement testing liquid, measurement method is easy, high-efficient.

Description

Water level measurement method and device, container
Technical field
This application involves field of measuring technique more particularly to water level measurement methods and device, container.
Background technique
Level measuring is widely used in all trades and professions, generallys use float-ball type code sensor, throw-in type liquid pick-up Device, ultrasonic type liquid transducer, radar type liquid transducer, these modes are substantially more expensive or run complexity.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides water level measurement method and devices, container.
According to the first aspect of the embodiments of the present disclosure, a kind of water level measurement method is provided, which comprises
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium, wherein target water level difference and anaclasis displacement difference are at just Than the anaclasis displacement difference is the displacement difference of target light diffracting position and known anaclasis position.
Optionally, anaclasis position, the target light diffracting position, the target incident angle and target known to the basis Refraction angle determines that the target water level of the testing liquid is poor, comprising:
The target water level for calculating testing liquid using following formula is poor:
Wherein, h indicates that the target water level of testing liquid is poor, and x1 indicates known anaclasis position, and x2 indicates target anaclasis Position, target incident angle are greater than 0 degree, and target refractive angle is less than 90 degree;
When the first medium is testing liquid, the second medium is air, α indicates target incident angle, and β indicates mesh Mark refraction angle;When the first medium is air, the second medium is testing liquid, β indicates target incident angle, and α is indicated Target refractive angle.
Optionally, the method also includes:
Refraction light moving direction is determined according to the target light diffracting position and the known anaclasis position;
The water level moving direction of testing liquid is determined according to the refraction light moving direction;
Water level moving direction poor according to the target water level, described, the known water level determine the target water of testing liquid Position.
Optionally, the method also includes:
Export the target water level;
Or,
The target water level is sent to terminal, the terminal is the associated terminal of container with receiving testing liquid;
Or,
Determine target water level range belonging to the target water level;
The corresponding target alerting pattern of target water level range, the incidence relation record are determined according to the incidence relation prestored There is the corresponding relationship of different water level ranges Yu corresponding alerting pattern;
The target water level is reminded according to the target alerting pattern.
According to the second aspect of an embodiment of the present disclosure, a kind of water level measurement method is provided, which comprises
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, by the target water level It is determined as the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level.
Optionally, the corresponding relation determining method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh The refraction angle after incidence angle is reflected from first medium to second medium is marked, target water level difference is directly proportional to anaclasis displacement difference, institute State the displacement difference that anaclasis displacement difference is target light diffracting position and known anaclasis position;
According to the target light diffracting position, the known anaclasis position, target water level difference and the known water Position determines the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
According to the third aspect of an embodiment of the present disclosure, a kind of level measurement device is provided, comprising: processor, optical inductor And optical transmitting set;
The optical transmitting set is set in first medium, and the optical inductor is horizontally disposed, the optical inductor and the place Manage device connection;
The optical transmitting set is configured as: described by first medium and second medium to optical inductor emission detection light A kind of medium is air in first medium and second medium, another medium is testing liquid;
The optical inductor is configured as: induction is described to detect the refraction after light is reflected from first medium to second medium Light;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on the optical inductor after second medium refraction;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium, wherein target water level difference and anaclasis displacement difference are at just Than the anaclasis displacement difference is the displacement difference of target light diffracting position and known anaclasis position.
Optionally, the processor is also configured to
Refraction light moving direction is determined according to the target light diffracting position and the known anaclasis position;
The water level moving direction of testing liquid is determined according to the refraction light moving direction;
Water level moving direction poor according to the target water level, described, the known water level determine the target water of testing liquid Position.
Optionally, described device further includes information output apparatus, and the information output apparatus is configured as: exporting the mesh Mark water level.
Optionally, described device further includes information carrying means, and the information carrying means is configured as: to the letter It ceases the associated terminal of transmitting device and sends the target water level.
Optionally, described device further includes information reminding device, and the processor is also configured to
Determine target water level range belonging to the target water level;
The corresponding target alerting pattern of target water level range, the incidence relation record are determined according to the incidence relation prestored There is the corresponding relationship of different water level ranges Yu corresponding alerting pattern;
Information reminding device is configured as: being reminded according to the target alerting pattern the target water level.
Optionally, the first medium is testing liquid, the second medium is air, and the optical transmitting set is set to described Testing liquid bottom, the optical inductor level are set to above the testing liquid.
According to a fourth aspect of embodiments of the present disclosure, a kind of level measurement device is provided, described device include: processor, Optical inductor and optical transmitting set;
The optical transmitting set is set in first medium, and the optical inductor is horizontally disposed, the optical inductor and the place Manage device connection;
The optical transmitting set is configured as: described by first medium and second medium to optical inductor emission detection light A kind of medium is air in first medium and second medium, another medium is testing liquid;
The optical inductor is configured as: induction is described to detect the refraction after light is reflected from first medium to second medium Light;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, by the target water level It is determined as the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level.
Optionally, the processor is also configured to
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh The refraction angle after incidence angle is reflected from first medium to second medium is marked, target water level difference is directly proportional to anaclasis displacement difference, institute State the displacement difference that anaclasis displacement difference is target light diffracting position and known anaclasis position;
According to the target light diffracting position, the known anaclasis position, target water level difference and the known water Position determines the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
According to a fifth aspect of the embodiments of the present disclosure, a kind of container is provided, the container includes cavity, processor, light sensation Answer device and optical transmitting set.
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the photoinduction Device is connected to the processor;
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light;
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from testing liquid to Position of the light on the optical inductor is reflected after air refraction;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the light on preset level face is reflected after testing liquid to air refraction, the target refractive angle is that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle;
According to the target light diffracting position, the known anaclasis position, target water level difference and the known water Position determines the target water level of testing liquid, wherein if target incident angle and target refractive angle are fixed, target water level difference and anaclasis Displacement difference is directly proportional, and the anaclasis displacement difference is the displacement difference of target light diffracting position and known anaclasis position.
According to a sixth aspect of an embodiment of the present disclosure, a kind of container is provided, the container includes: cavity, processor, light sensation Answer device and optical transmitting set;
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the photoinduction Device is connected to the processor;
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light;
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from testing liquid to Position of the light on preset level face is reflected after air refraction;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, by the target water level It is determined as the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level;
The corresponding relation determining method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh The refraction angle after incidence angle is reflected from first medium to second medium is marked, target water level difference is directly proportional to anaclasis displacement difference, institute State the displacement difference that anaclasis displacement difference is target light diffracting position and known anaclasis position;
According to the target light diffracting position, the known anaclasis position, target water level difference and the known water Position determines the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The disclosure can reflect light by obtaining to detect after light is reflected from first medium to second medium with target incident angle Target light diffracting position on preset level face, and according to known anaclasis position, target light diffracting position, target incident angle It determines that the target water level of testing liquid is poor with target refractive angle, realizes the water-head of measurement testing liquid, measurement method is easy, effect Rate is high.
In the disclosure behind target incident angle and fixed target refractive angle, water-head is directly proportional to anaclasis displacement difference, base In this, it can determine that the corresponding water-head of different anaclasis displacement differences, computational efficiency are fast according to the proportional relation.
The disclosure can reflect light by obtaining to detect after light is reflected from first medium to second medium with target incident angle Target light diffracting position on preset level face, and according to known anaclasis position, target light diffracting position, target incident angle Determine that the target water level of testing liquid is poor with target refractive angle, thus according to target light diffracting position, known anaclasis position, mesh Mark water-head and known water level determine the target water level of testing liquid, realize level measuring, and measurement method is easy to accomplish, measurement It is high-efficient.
The disclosure can directly export target water level after determining the target water level of testing liquid, can also send out to terminal The target water level is sent, the terminal is the associated terminal of container with receiving testing liquid, to export target in the terminal Water level.
The disclosure is reminded by different water level ranges using different alerting patterns, is realized the diversity of prompting, is mentioned Rise user experience.
The corresponding relationship of each anaclasis position and water level can be stored in advance in the disclosure, and getting target anaclasis When position, the corresponding target water level of target light diffracting position is directly determined according to the corresponding relationship prestored, the target water level is true It is set to the current level of testing liquid, measurement efficiency can be improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Figure 1A is a kind of disclosure flow chart of water level measurement method shown according to an exemplary embodiment.
Anaclasis schematic diagram is detected when Figure 1B is a kind of disclosure level measuring shown according to an exemplary embodiment.
Fig. 2 is the flow chart of the disclosure another water level measurement method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of the disclosure another water level measurement method shown according to an exemplary embodiment.
Fig. 4 is a kind of disclosure structure chart of level measurement device shown according to an exemplary embodiment.
Fig. 5 is the structure chart of the disclosure another level measurement device shown according to an exemplary embodiment.
Fig. 6 is the structure chart of the disclosure another level measurement device shown according to an exemplary embodiment.
Fig. 7 is the structure chart of the disclosure another level measurement device shown according to an exemplary embodiment.
Fig. 8 is the structure chart of the disclosure another level measurement device shown according to an exemplary embodiment.
Fig. 9 is a kind of disclosure structure chart of terminal shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
As shown in Figure 1A, Figure 1A is a kind of disclosure process of water level measurement method shown according to an exemplary embodiment Figure, method includes the following steps:
In a step 101, target light diffracting position is obtained, the target light diffracting position is detection light with target incident angle Position of the refraction light on preset level face after being reflected from first medium to second medium, in the first medium and second medium A kind of medium is air, another medium is testing liquid.
In a step 102, according to known anaclasis position, the target light diffracting position, the target incident angle and mesh Mark refraction angle determines that the target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with Position of the refraction light on preset level face, the target refractive angle after target incident angle is reflected from first medium to second medium It is to detect the refraction angle after light is reflected from first medium to second medium with target incident angle.
Wherein, the disclosure may be directly applied in testing container, also can be applied in level measurement device, can be with Applied in intelligent terminal, such as intelligent terminal obtains target light diffracting position from testing container, and according to known anaclasis Position, target light diffracting position, target incident angle and target refractive angle determine that the target water level of testing liquid is poor.The disclosure is implemented Example in, intelligent terminal can be smart phone, tablet computer, Intelligent bracelet, PDA (Personal Digital Assistant, Personal digital assistant), E-book reader, multimedia player etc..
Wherein, preset level face is the plane being parallel to the horizontal plane.First medium can be the first transparent medium, and second is situated between Matter can be the second transparent medium, and testing liquid can be transparency liquid to be measured.Known water level and anaclasis position can be The measurement result that one-shot measurement obtains;Known water level and anaclasis position are also possible to a water of fixed setting after testing in advance Computational efficiency and accuracy rate can be improved using the preset value as a reference value in position and anaclasis position.
As seen from the above-described embodiment, the present embodiment can be by obtaining detection light with target incident angle from first medium to the Target light diffracting position of the refraction light on preset level face after second medium refraction, and according to known anaclasis position, target light Diffracting position, target incident angle and target refractive angle determine that the target water level of testing liquid is poor, realize the water of measurement testing liquid Potential difference, measurement method are easy and high-efficient.
Wherein, detection light can both be reflected from testing liquid to air with target incident angle, and will reflect light projection On preset level face, and after being reflected from air to testing liquid with target incident angle, and will refraction light projection default On horizontal plane.It is understood that preset level face can be to be measured when detection light is reflected from testing liquid to air Horizontal plane above liquid, detection light pass sequentially through testing liquid and air directive preset level face;When detection light from air to When testing liquid is reflected, preset level face can be the intracorporal horizontal plane of prepare liquid, detection light pass sequentially through air and to Survey liquid directive preset level face.Wherein, preset level face can be set to testing liquid bottom as a preferred method, To realize the various water levels for measuring testing liquid.
Using first medium as testing liquid, second medium be air for be illustrated.Detection light can be emitter The detection light launched from testing liquid, emitter can be it is any can be with the device of emission detection light, such as can be Optical transmitting set.With position of the specific purposes setting emitter of sensed water level in testing liquid.For example, when purpose is water level It alarms when higher than watermark threshold, for this purpose, emitter can be set to any position under watermark threshold.When Purpose is that emitter can be set to testing liquid bottom when detecting each water level.Further, emitter can be set to Testing liquid bottom margin measures each water level with realizing.
Target incident angle can be preset angle, the angle that can also be changed according to demand.When target incident angle After determination, target refractive angle can be calculated according to the relative index of refraction between testing liquid and air.Wherein, in order to be capable of measuring water Position, while avoiding being totally reflected, target incident angle is greater than 0 degree, and target refractive angle is less than 90 degree.
As shown in Figure 1B, detection light folding when Figure 1B is a kind of disclosure level measuring shown according to an exemplary embodiment Penetrate schematic diagram.In this example, using first medium as testing liquid, second medium be air for be illustrated.Wherein, h is indicated The target water level of testing liquid is poor, and x1 indicates known anaclasis position, and x2 indicates target light diffracting position, and target incident angle is greater than 0 degree, target refractive angle is less than 90 degree;α indicates target incident angle, and β indicates target refractive angle, then anaclasis position known to the basis Set, the target light diffracting position, the target incident angle and target refractive angle determine that the target water level of the testing liquid is poor, Include:
The target water level for calculating testing liquid using following formula is poor:
As it can be seen that water-head is directly proportional to anaclasis displacement difference, is based on behind target incident angle and fixed target refractive angle This, can determine that the corresponding water-head of different anaclasis displacement differences, computational efficiency are fast according to the proportional relation.
It is understood that when second medium is testing liquid, β indicates mesh in above-mentioned formula when first medium is air Incidence angle is marked, α indicates target refractive angle, and this is no longer going to repeat them.
As shown in Fig. 2, Fig. 2 is the process of the disclosure another water level measurement method shown according to an exemplary embodiment Figure, method includes the following steps:
In step 201, target light diffracting position is obtained, the target light diffracting position is detection light with target incident angle Position of the refraction light on preset level face after being reflected from first medium to second medium, in the first medium and second medium A kind of medium is air, another medium is testing liquid.
In step 202, according to known anaclasis position, the target light diffracting position, the target incident angle and mesh Mark refraction angle determines that the target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with Position of the refraction light on preset level face, the target refractive angle after target incident angle is reflected from first medium to second medium It is to detect the refraction angle after light is reflected from first medium to second medium with target incident angle.
In step 203, poor according to the target light diffracting position, the known anaclasis position, the target water level The target water level of testing liquid is determined with the known water level.
Wherein, the disclosure may be directly applied in testing container, also can be applied in level measurement device, can be with Applied in intelligent terminal, such as intelligent terminal obtains target light diffracting position from being arranged in testing container, and according to known Anaclasis position, target light diffracting position, target incident angle and target refractive angle determine that the target water level of testing liquid is poor, according to Target light diffracting position, known anaclasis position, target water level difference and known water level determine the target water level of testing liquid.
As seen from the above-described embodiment, the disclosure can be by obtaining detection light with target incident angle from first medium to second Target light diffracting position of the light on preset level face is reflected after medium refraction, and is rolled over according to known anaclasis position, target light Penetrate position, target incident angle and target refractive angle and determine that the target water level of testing liquid is poor, thus according to target light diffracting position, Known anaclasis position, target water level difference and known water level determine the target water level of testing liquid, realize measurement testing liquid Water level, measurement method are easy and high-efficient.
Wherein, step 201 and 202 similar in Figure 1A 101 and 102, this is no longer going to repeat them.
About step 203, in an optional implementation, can according to the target light diffracting position and it is described Know that anaclasis position determines refraction light moving direction;The water level movement side of testing liquid is determined according to the refraction light moving direction To;Water level moving direction poor according to the target water level, described, the known water level determine the target water level of testing liquid.
As shown in Figure 1B, x1 indicates known anaclasis position, and x2 indicates target light diffracting position, then it represents that refraction light is with Know that anaclasis position is moved along the direction far from optical transmitting set in the horizontal plane, thus determines that water level is vertical along target water level It moves down, i.e. water level decreasing, determines testing liquid so as to, water level moving direction poor according to target water level, known water level Target water level, i.e., the difference of known water level and target water level difference can be determined as to the target water of testing liquid in the embodiment Position.
After determining the target water level of testing liquid, target water level can be directly exported.It is defeated that the way of output can be display Out, it is also possible to voice output, display when, which can be, directly displays number, it can also show progress bar etc., with specific reference to Demand setting.
In another implementation, the target water level can also be sent to terminal, the terminal is to be measured with receiving The associated terminal of the container of liquid, to export the target water level in the terminal.The way of output can be display output, can also To be voice output, display when, which can be, directly displays number, can also show progress bar etc., set with specific reference to demand It is fixed.
Wherein, when the present embodiment is applied in a reservoir, associated terminal can be smart phone, tablet computer, intelligence Bracelet, PDA (Personal Digital Assistant, personal digital assistant), E-book reader, multimedia player Deng.For example, target water level can be sent to associated mobile phone, so as to the displaying target water level in mobile phone.It for another example, can be to association Bracelet send target water level, so as to voice broadcast target water level etc. on bracelet.
When the present embodiment application in an intelligent terminal when, associated terminal can be wearable device, for example, Intelligent bracelet, Smartwatch etc..
It, can be to determine target water level range described in said target water level in another implementation;According to prestoring Incidence relation determine the corresponding target alerting pattern of target water level range, the incidence relation record have different water level ranges with The corresponding relationship of corresponding alerting pattern;The target water level is reminded according to the target alerting pattern.
Wherein, alerting pattern can be the modes such as flashing lamp prompting, the tinkle of bells prompting, display alarm, voice reminder.
For example, different water level ranges can correspond to the indicator light of flashing different colours, that is, pass through the finger of flashing different colours Show lamp, may remind the user that current level location.For example, when water level is 0~10%, flash red indicator light;Water level is When 10%~40%, flashed orange indicator light;When water level is 40%~70%, flashes yellow indicator light;Water level be 70%~ When 100%, blinking green indicator light.
For another example, different water level ranges can correspond to different the tinkle of bells, i.e., may remind the user that current level by different the tinkle of bells Location.For example, can play alarm the tinkle of bells, when water level is 0~10% or when 90%~100% to remind user that liquid is fast Dry or liquid is full fastly.When water level is 10%~50%, brief light music can be played;It, can be with when water level is 50%~90% Play brief cheerful and light-hearted music etc..
For another example, different water level ranges can correspond to different prompting forms, for example, passing through the tinkle of bells report when water level is 0~10% It is alert to remind;When water level is 10%~90%, display alarm;When water level is 90%~100%, red indicating light flashing is reminded.
As seen from the above-described embodiment, it is reminded by different water level ranges using different alerting patterns, realizes prompting Diversity, promoted user experience.
As shown in figure 3, Fig. 3 is the process of the disclosure another water level measurement method shown according to an exemplary embodiment Figure, method includes the following steps:
In step 301, target light diffracting position is obtained, the target light diffracting position is detection light with target incident angle Position of the refraction light on preset level face after being reflected from first medium to second medium, in the first medium and second medium A kind of medium is air, another medium is testing liquid.
In step 302, the corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, it will The target water level is determined as the current level of testing liquid, and the corresponding relationship includes that each anaclasis position is corresponding with water level Relationship.
The corresponding relationship of each anaclasis position and water level can be stored in advance in the disclosure, and getting target anaclasis When position, the corresponding target water level of target light diffracting position is directly determined according to the corresponding relationship prestored, the target water level is true It is set to the current level of testing liquid, measurement efficiency can be improved.
Wherein, the corresponding relationship of anaclasis position and water level can measure in several ways, for example, can manually survey Amount, refraction light is in default water after acquisition detection light is reflected from first medium to second medium under different water levels with target incident angle Position in plane, to obtain the corresponding relationship of anaclasis position and water level.
In another implementation, it can be determined using following step:
S1: obtaining target light diffracting position, and the target light diffracting position is that detection light is situated between with target incident angle from first Matter reflects position of the light on preset level face, a kind of medium in the first medium and second medium after reflecting to second medium It is testing liquid for air, another medium.
S2: true according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the fixed testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle Position of the refraction light on preset level face after being reflected from first medium to second medium, the target refractive angle be detection light with Target incident angle reflected from first medium to second medium after refraction angle.
S3: poor and described known according to the target light diffracting position, the known anaclasis position, the target water level Water level determines the target water level of testing liquid.
S4: anaclasis position pass corresponding with water level is established according to the relationship of the target light diffracting position and target water level System.
Wherein, S1 to S3 and step 201 in Fig. 2 are to 203 similar, and this is no longer going to repeat them.
It is understood that target light diffracting position and target under different water levels can be calculated using above-mentioned steps S1 to S4 The incidence relation of water level, so that the corresponding relationship of anaclasis position and water level is obtained, the corresponding relationship of anaclasis position and water level More, expression divides more accurate.
In an optional implementation, when only it needs to be determined that can determine water level range and diffracting position when range The corresponding relationship of range.Such as water level range is 0~10%, 10%~90%, 90%~100%, then can test water level and connect Corresponding target light diffracting position m1 when nearly 0, corresponding target light diffracting position m2 when water level is 10%, water level are 90% constantly Corresponding target light diffracting position m3, water level corresponding target light diffracting position m4 when being 100%, to obtain target anaclasis Position m1~m2 corresponds to water level 0~10%, and target light diffracting position m2~m3 corresponds to water level 10%~90%, target anaclasis position It sets m3~m4 and corresponds to water level 90%~100%, realize and be not necessarily to accurate water level specific location, determine the probable ranges of water level.
After determining the target water level of testing liquid, it can also be exported or be reminded, specifically in Fig. 2 the method The way of output is similar with alerting pattern, and this is no longer going to repeat them.It is corresponding with the embodiment of aforementioned water level measurement method, this public affairs It opens and additionally provides the embodiment of level measurement device.
As shown in figure 4, Fig. 4 is a kind of disclosure structure of level measurement device shown according to an exemplary embodiment Figure, described device includes: processor 410, optical inductor 420 and optical transmitting set 430.
The optical transmitting set 430 is set in first medium, and the optical inductor 420 is horizontally disposed, the optical inductor 420 It is connect with the processor 410.
The optical transmitting set 430 is configured as: by first medium and second medium to optical inductor emission detection light, institute State that a kind of medium in first medium and second medium is air, another medium is testing liquid.
The optical inductor 420 is configured as: induction is described to detect the folding after light is reflected from first medium to second medium Penetrate light.
The processor 410 is configured as:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on the optical inductor after second medium refraction;
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium.
It is understood that target incident angle can be a preset fixed angle, it is also possible to the angle changed.Example Such as, target incident angle can be adjusted by remote control control optical transmitting set.Wherein, one is corresponding under each target incident angle To known water level and known anaclasis position, so that target water level can be calculated after obtaining target light diffracting position.
Wherein, optical inductor can be an independent inductor, be also possible to multiple sensor groups at cluster.One In a optional implementation, in order to be capable of measuring all water levels, optical inductor can be the optical inductor of a bar shaped, photoinduction Device area, which is subject to, can receive the detection light that optical transmitting set emits under all water levels.In another implementation, if only Partial level is monitored, then the area of optical inductor, which is subject to, can receive the detection light that optical transmitting set emits under specified water level.
It is understood that the connection in figure is not exclusively the connection of physics, for example, the company of optical transmitting set and optical inductor It connects and can be light connects, optical inductor and processor can be wired or wireless connection.
In addition, the connection of processor and optical transmitting set can also be wireless when the angle of departure of optical transmitting set changes at any time Connection, is not shown in the figure the relationship.
As seen from the above-described embodiment, the present embodiment can be by obtaining detection light with target incident angle from first medium to the Target light diffracting position of the refraction light on preset level face after second medium refraction, and according to known anaclasis position, target light Diffracting position, target incident angle and target refractive angle determine that the target water level of testing liquid is poor, realize the water of measurement testing liquid Potential difference, measurement method are easy and high-efficient.
In an optional implementation, the processor 410 is also configured to calculate prepare liquid using following formula The target water level of body is poor:
Wherein, h indicates that the target water level of testing liquid is poor, and x1 indicates known anaclasis position, and x2 indicates target anaclasis Position, target incident angle are greater than 0 degree, and target refractive angle is less than 90 degree;When the first medium is testing liquid, second Jie When matter is air, α indicates target incident angle, and β indicates target refractive angle;When the first medium is air, the second medium When for testing liquid, β indicates target incident angle, and α indicates target refractive angle.
In an optional implementation, the processor 410 is also configured to
Refraction light moving direction is determined according to the target light diffracting position and the known anaclasis position.
The water level moving direction of testing liquid is determined according to the refraction light moving direction.
Water level moving direction poor according to the target water level, described, the known water level determine the target water of testing liquid Position.
As seen from the above-described embodiment, can according to target light diffracting position, known anaclasis position, target water level it is poor, Know that water level determines the target water level of testing liquid, realizes the current level for quickly determining testing liquid.
In an optional implementation, as shown in figure 5, Fig. 5 is that the disclosure is shown according to an exemplary embodiment The structure chart of another level measurement device, on the basis of aforementioned embodiment illustrated in fig. 4, described device further includes the embodiment Information output apparatus 440, the information output apparatus are configured as: exporting the target water level.
In an optional implementation, as shown in fig. 6, Fig. 6 is that the disclosure is shown according to an exemplary embodiment The structure chart of another level measurement device, on the basis of aforementioned embodiment illustrated in fig. 4, described device further includes the embodiment Information carrying means 450, the information carrying means 450 are configured as: being sent out to the associated terminal of the information carrying means Send the target water level.
In the embodiment of the present disclosure, terminal can be smart phone, tablet computer, Intelligent bracelet, PDA (Personal Digital Assistant, personal digital assistant), E-book reader, multimedia player etc..For example, can be to associated Mobile phone sends target water level, so as to the displaying target water level in mobile phone.For another example, target water level can be sent to associated bracelet, So as to voice broadcast target water level etc. on bracelet.
In an optional implementation, as shown in fig. 7, Fig. 7 is that the disclosure is shown according to an exemplary embodiment The structure chart of another level measurement device, on the basis of aforementioned embodiment illustrated in fig. 4, described device further includes the embodiment Information reminding device 460, the processor 410 are also configured to
Determine target water level range belonging to the target water level.
The corresponding target alerting pattern of target water level range, the incidence relation record are determined according to the incidence relation prestored There is the corresponding relationship of different water level ranges Yu corresponding alerting pattern.
Information reminding device 460 is configured as: being mentioned according to the target alerting pattern to the target water level It wakes up.
It is understood that can also be sent out to the associated terminal of the information carrying means after determining alerting pattern The alerting pattern is sent, so that terminal is reminded according to alerting pattern.
As seen from the above-described embodiment, by determining target water level range belonging to target water level, and according to the association prestored Relationship determines the corresponding target alerting pattern of target water level range, and realization proposes target water level according to target alerting pattern It wakes up, realizes that the intelligent of Suresh Kumar is reminded.
In an optional implementation, the first medium is testing liquid, the second medium is air, described Optical transmitting set is set to the testing liquid bottom, and the optical inductor level is set to above the testing liquid.
Correspondingly, above-mentioned level measurement device can be applied in container.Based on this, the disclosure also provides a kind of appearance Device, the container include cavity, processor, optical inductor and optical transmitting set.
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the photoinduction Device is connected to the processor.
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light.
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction.
The processor is configured to: target light diffracting position is obtained, the target light diffracting position is detection light with mesh Position of the refraction light on the optical inductor after incidence angle is marked from testing liquid to air refraction;According to known anaclasis position Set, the target light diffracting position, the target incident angle and target refractive angle determine that the target water level of the testing liquid is poor, The known anaclasis position be known water level test survey light with target incident angle from testing liquid to air refraction after reflect Position of the light on preset level face, the target refractive angle be detection light with target incident angle from first medium to second medium Refraction angle after refraction;It is poor and described according to the target light diffracting position, the known anaclasis position, the target water level Known water level determines the target water level of testing liquid.
As seen from the above-described embodiment, said vesse can be after obtaining target light diffracting position, according to known anaclasis position Set, target light diffracting position, target incident angle and target refractive angle determine that the target water level of testing liquid is poor, and according to target light Diffracting position, known anaclasis position, target water level difference and known water level determine the target water level of testing liquid, to realize appearance The measurement of water level in device measures easy to accomplish and high-efficient.
For example, container can be humidifier, humidifier includes cavity, processor, optical inductor and optical transmitting set.The light Transmitter is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the optical inductor and the processor Connection.As it can be seen that the measurement to liquid water level in humidifier may be implemented, current level may know that without opening.
As shown in figure 8, Fig. 8 is a kind of disclosure structure of level measurement device shown according to an exemplary embodiment Figure, described device includes: processor 810, optical inductor 820 and optical transmitting set 830.
The optical transmitting set 830 is set in first medium, and the optical inductor 820 is horizontally disposed, the optical inductor 820 It is connect with the processor 810.
The optical transmitting set 830 is configured as: by first medium and second medium to optical inductor emission detection light, institute State that a kind of medium in first medium and second medium is air, another medium is testing liquid.
The optical inductor 820 is configured as: induction is described to detect the folding after light is reflected from first medium to second medium Penetrate light.
The processor 810 is configured as: obtain target light diffracting position, the target light diffracting position be detection light with Position of the refraction light on preset level face after target incident angle is reflected from first medium to second medium, the first medium and A kind of medium is air in second medium, another medium is testing liquid;The target is determined according to the corresponding relationship prestored The target water level is determined as the current level of testing liquid, the corresponding relationship by the corresponding target water level in anaclasis position Corresponding relationship including each anaclasis position and water level.
In an optional implementation, the processor is also configured to
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid.
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium.
The target of testing liquid is determined according to the direction of the relatively described known anaclasis position of the target light diffracting position Moving direction of the water level relative to known water level.
According to the target water level, poor, the described moving direction, the known water level determine the target water level of testing liquid.
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
It is understood that target water level can also be identified directly in the form of scale and existed after determining corresponding relationship On the corresponding target light diffracting position of optical inductor, to obtain the graduated optical inductor of tool, which is directly pacified Dress in a reservoir, when receiving detection light every time, can determine target water level according to target light diffracting position.
Correspondingly, the disclosure also provides another container, the container includes: cavity, processor, optical inductor and light hair Emitter.
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the photoinduction Device is connected to the processor.
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light.
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction.
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from testing liquid to Position of the light on preset level face is reflected after air refraction.
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, by the target water level It is determined as the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level.
Correspondingly, the disclosure also provides a kind of terminal, the terminal includes processor;It is executable for storage processor The memory of instruction;Wherein, the processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid.
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium.
Correspondingly, the disclosure also provides another terminal, the terminal includes processor;It can for storage processor The memory executed instruction;Wherein, the processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, by the target water level It is determined as the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level.
The specific details of the realization process of the function of modules and effect, which are shown in, in above-mentioned apparatus corresponds to step in the above method Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As shown in figure 9, Fig. 9 is a kind of disclosure structure chart of terminal 900 shown according to an exemplary embodiment.The end End 900 can be the mobile phone with routing function, computer, digital broadcasting terminal, messaging device, game control Platform, tablet device, Medical Devices, body-building equipment, the terminals such as personal digital assistant.
Referring to Fig. 9, terminal 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and Communication component 916.
The integrated operation of the usual controlling terminal 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in terminal 900.These data are shown Example includes the instruction of any application or method for operating in terminal 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of terminal 900.Power supply module 906 may include power management system System, one or more power supplys and other with for terminal 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between the terminal 900 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When terminal 900 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when terminal 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for terminal 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of terminal 900, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 900, and sensor module 914 can also detect a group in terminal 900 or terminal 900 The position change of part, the existence or non-existence that user contacts with terminal 900,900 orientation of terminal or acceleration/deceleration and terminal 900 Temperature change.Sensor module 914 may include proximity sensor, be configured to examine without any physical contact Survey presence of nearby objects.Sensor module 914 can also include that optical sensor is used for such as CMOS or ccd image sensor It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between terminal 900 and other equipment.Terminal 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of terminal 900 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Wherein, when the instruction in the storage medium is executed by the processor, so that terminal 900 is able to carry out one kind Water level measurement method, comprising:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to Position of the refraction light on preset level face after second medium refraction, a kind of medium is sky in the first medium and second medium Gas, another medium are testing liquid.
It is determined according to known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of the testing liquid is poor, the known anaclasis position be known water level test survey light with target incident angle from Position of the refraction light on preset level face after first medium is reflected to second medium, the target refractive angle are detection light with mesh Mark the refraction angle after incidence angle is reflected from first medium to second medium.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (15)

1. a kind of water level measurement method, which is characterized in that the described method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Reflect position of the light on preset level face after medium refraction, in the first medium and second medium a kind of medium be air, Another medium is testing liquid;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle from first Position of the refraction light on preset level face after medium is reflected to second medium, the target refractive angle are that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle, wherein target water level difference is directly proportional to anaclasis displacement difference, institute State the displacement difference that anaclasis displacement difference is target light diffracting position and known anaclasis position.
2. the method according to claim 1, wherein anaclasis position, target light folding known to the basis It penetrates position, the target incident angle and target refractive angle and determines that the target water level of the testing liquid is poor, comprising:
The target water level for calculating testing liquid using following formula is poor:
Wherein, h indicates that the target water level of testing liquid is poor, and x1 indicates known anaclasis position, and x2 indicates target light diffracting position, Target incident angle is greater than 0 degree, and target refractive angle is less than 90 degree;
When the first medium is testing liquid, the second medium is air, α indicates target incident angle, and β indicates target folding Firing angle;When the first medium is air, the second medium is testing liquid, β indicates target incident angle, and α indicates target Refraction angle.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
Refraction light moving direction is determined according to the target light diffracting position and the known anaclasis position;
The water level moving direction of testing liquid is determined according to the refraction light moving direction;
Water level moving direction poor according to the target water level, described, the known water level determine the target water level of testing liquid.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Export the target water level;
Or,
The target water level is sent to terminal, the terminal is the associated terminal of container with receiving testing liquid;
Or,
Determine target water level range belonging to the target water level;
Determine that the corresponding target alerting pattern of target water level range, the incidence relation record have not according to the incidence relation prestored With the corresponding relationship of water level range and corresponding alerting pattern;
The target water level is reminded according to the target alerting pattern.
5. a kind of water level measurement method, which is characterized in that the described method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Reflect position of the light on preset level face after medium refraction, in the first medium and second medium a kind of medium be air, Another medium is testing liquid;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, and the target water level is determined For the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level;
The corresponding relation determining method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Position of the light on preset level face is reflected after medium refraction;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle from first Position of the refraction light on preset level face after medium is reflected to second medium, the target refractive angle are that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle, target water level difference is directly proportional to anaclasis displacement difference, the light Reflect the displacement difference that displacement difference is target light diffracting position and known anaclasis position;
It is true according to the target light diffracting position, the known anaclasis position, target water level difference and the known water level Determine the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
6. a kind of level measurement device, which is characterized in that described device includes: processor, optical inductor and optical transmitting set;
The optical transmitting set is set in first medium, and the optical inductor is horizontally disposed, the optical inductor and the processor Connection;
The optical transmitting set is configured as: by first medium and second medium to optical inductor emission detection light, described first A kind of medium is air in medium and second medium, another medium is testing liquid;
The optical inductor is configured as: induction is described to detect the refraction light after light is reflected from first medium to second medium;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Position of the light on the optical inductor is reflected after medium refraction;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle from first Position of the refraction light on preset level face after medium is reflected to second medium, the target refractive angle are that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle, wherein target water level difference is directly proportional to anaclasis displacement difference, institute State the displacement difference that anaclasis displacement difference is target light diffracting position and known anaclasis position.
7. device according to claim 6, which is characterized in that the processor is also configured to
Refraction light moving direction is determined according to the target light diffracting position and the known anaclasis position;
The water level moving direction of testing liquid is determined according to the refraction light moving direction;
Water level moving direction poor according to the target water level, described, the known water level determine the target water level of testing liquid.
8. device according to claim 7, which is characterized in that described device further includes information output apparatus, the information Output device is configured as: exporting the target water level.
9. device according to claim 7, which is characterized in that described device further includes information carrying means, the information Transmitting device is configured as: sending the target water level to the associated terminal of the information carrying means.
10. device according to claim 7, which is characterized in that described device further includes information reminding device, the processing Device is also configured to
Determine target water level range belonging to the target water level;
Determine that the corresponding target alerting pattern of target water level range, the incidence relation record have not according to the incidence relation prestored With the corresponding relationship of water level range and corresponding alerting pattern;
Information reminding device is configured as: being reminded according to the target alerting pattern the target water level.
11. according to any device of claim 6 to 10, which is characterized in that the first medium is testing liquid, described Second medium is air, and the optical transmitting set is set to the testing liquid bottom, and the optical inductor level is set to described to be measured Above liquid.
12. a kind of level measurement device, which is characterized in that described device includes: processor, optical inductor and optical transmitting set;
The optical transmitting set is set in first medium, and the optical inductor is horizontally disposed, the optical inductor and the processor Connection;
The optical transmitting set is configured as: by first medium and second medium to optical inductor emission detection light, described first A kind of medium is air in medium and second medium, another medium is testing liquid;
The optical inductor is configured as: induction is described to detect the refraction light after light is reflected from first medium to second medium;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Reflect position of the light on preset level face after medium refraction, in the first medium and second medium a kind of medium be air, Another medium is testing liquid;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, and the target water level is determined For the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level;
The processor is also configured to
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Position of the light on preset level face is reflected after medium refraction;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle from first Position of the refraction light on preset level face after medium is reflected to second medium, the target refractive angle are that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle, target water level difference is directly proportional to anaclasis displacement difference, the light Reflect the displacement difference that displacement difference is target light diffracting position and known anaclasis position;
It is true according to the target light diffracting position, the known anaclasis position, target water level difference and the known water level Determine the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
13. a kind of container, which is characterized in that the container includes cavity, processor, optical inductor and optical transmitting set;
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the optical inductor with The processor connection;
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light;
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from testing liquid to air Position of the light on the optical inductor is reflected after refraction;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle to be measured Position of the light on preset level face is reflected after liquid to air refraction, the target refractive angle is detection light with target incident angle Refraction angle after being reflected from first medium to second medium;
It is true according to the target light diffracting position, the known anaclasis position, target water level difference and the known water level Determine the target water level of testing liquid, wherein if target incident angle and target refractive angle are fixed, target water level difference and anaclasis are displaced Difference is directly proportional, and the anaclasis displacement difference is the displacement difference of target light diffracting position and known anaclasis position.
14. a kind of container, which is characterized in that the container includes: cavity, processor, optical inductor and optical transmitting set;
The optical transmitting set is set to cavity bottom margin, and the optical inductor is horizontally placed on cavity, the optical inductor with The processor connection;
The optical transmitting set is configured as: by testing liquid and air to optical inductor emission detection light;
The optical inductor is configured as: the refraction light after incuding the detection light from testing liquid to air refraction;
The processor is configured to:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from testing liquid to air Position of the light on preset level face is reflected after refraction;
The corresponding target water level of the target light diffracting position is determined according to the corresponding relationship prestored, and the target water level is determined For the current level of testing liquid, the corresponding relationship includes the corresponding relationship of each anaclasis position and water level;
The corresponding relation determining method includes:
Obtain target light diffracting position, the target light diffracting position be detection light with target incident angle from first medium to second Position of the light on preset level face is reflected after medium refraction;
According to the determination of known anaclasis position, the target light diffracting position, the target incident angle and target refractive angle The target water level of testing liquid is poor, and the known anaclasis position is to survey light in known water level test with target incident angle from first Position of the refraction light on preset level face after medium is reflected to second medium, the target refractive angle are that detection light is entered with target Firing angle reflected from first medium to second medium after refraction angle, target water level difference is directly proportional to anaclasis displacement difference, the light Reflect the displacement difference that displacement difference is target light diffracting position and known anaclasis position;
It is true according to the target light diffracting position, the known anaclasis position, target water level difference and the known water level Determine the target water level of testing liquid;
The corresponding relationship of anaclasis position and water level is established according to the relationship of the target light diffracting position and target water level.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of any one of claim 1 to 5 the method is realized when execution.
CN201610045724.7A 2016-01-22 2016-01-22 Water level measurement method and device, container Active CN105526992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610045724.7A CN105526992B (en) 2016-01-22 2016-01-22 Water level measurement method and device, container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610045724.7A CN105526992B (en) 2016-01-22 2016-01-22 Water level measurement method and device, container

Publications (2)

Publication Number Publication Date
CN105526992A CN105526992A (en) 2016-04-27
CN105526992B true CN105526992B (en) 2019-07-23

Family

ID=55769361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610045724.7A Active CN105526992B (en) 2016-01-22 2016-01-22 Water level measurement method and device, container

Country Status (1)

Country Link
CN (1) CN105526992B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145740A (en) * 2017-05-08 2017-09-08 段皓严 Position the method and device of position in kind
CN108536182A (en) * 2018-05-17 2018-09-14 安徽自动化仪表有限公司 A kind of fluid level controller
CN112391808A (en) * 2019-08-13 2021-02-23 青岛海尔洗衣机有限公司 Washing machine and control method thereof
CN111397692B (en) * 2020-06-03 2020-08-21 成都科睿埃科技有限公司 Liquid level detection method based on visual non-contact
CN114370678A (en) * 2021-12-15 2022-04-19 北京小米移动软件有限公司 Humidifying apparatus and control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4247784A (en) * 1978-12-18 1981-01-27 Eastman Kodak Company Measurement of material level in vessels
CN102419198A (en) * 2011-09-04 2012-04-18 长春理工大学 High-precision real-time laser triangulation method and triangulation device for liquid level
CN103076065B (en) * 2013-01-27 2017-05-03 中国科学院合肥物质科学研究院 Laser measuring device for detecting liquid level of liquid metal
CN103278212B (en) * 2013-06-15 2015-06-17 燕宸 Solution information acquisition device
CN203785742U (en) * 2014-01-24 2014-08-20 美的集团股份有限公司 Water level detection device and liquid container
CN104897243B (en) * 2015-06-17 2017-11-10 电子科技大学 Liquid level emasuring device and level measuring method based on anallatic transparency liquid

Also Published As

Publication number Publication date
CN105526992A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN105526992B (en) Water level measurement method and device, container
CN104850828B (en) Character recognition method and device
US10101156B2 (en) Method and apparatus for determining spatial parameter based on image and terminal device
CN105701967B (en) Position reminding method and apparatus
US20170013116A1 (en) Method, apparatus and computer-readable medium for travel path condition prompt
CN104832446A (en) Method and device for controlling fan
KR20160073861A (en) Portable apparatus and method for controlling a location information
KR20140118060A (en) Portable teriminal and sound output apparatus and method for providing locations of sound sources in the portable teriminal
CN105758319B (en) The method and apparatus for measuring target object height by mobile terminal
CN105469003B (en) screen protection method and device
CN106546970B (en) The ultrasonic wave calibration method and device of mobile device
CN105208284B (en) Shoot based reminding method and device
CN104601204B (en) trigger condition detection method and device
CN106886019B (en) Distance measurement method and device
KR102271184B1 (en) Video projector and operating method thereof
CN106933366A (en) Bright screen method and device
CN108280434A (en) The method and apparatus for showing information
CN105390120B (en) bright screen control method and device
CN111757262B (en) Positioning reminding method and system based on electronic fence and wearable device
CN106937243A (en) Based reminding method and device
CN108491177A (en) Space appraisal procedure and device
CN109543666A (en) Structure light assembly control method and device
CN108735218A (en) voice awakening method, device, terminal and storage medium
CN106534495B (en) The method, device and equipment of information processing
CN109803051A (en) Ambient brightness value-acquiring method and device

Legal Events

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