Background technology
Laser found by einstein in 1916, nineteen sixty laser artificial by success.Laser brightness is high, penetrability is strong, diversity is little, in same medium along rectilinear propagation.Because the velocity of propagation of laser in these two kinds of different mediums of empty G&W is different, so laser is entering water by air, then can there is twice refraction effect while entering air by water.Adopt lower powered infrared laser, utilize the variation of refraction effect and water level, can measure the variation of water level.
Bluetooth technology is a kind of short-distance wireless communication technology, and communication distance can reach 100 meters of left and right, it can simplified apparatus between and communicating by letter between equipment and Internet, it was proposed by Ericsson at first in 1994, it is operated in 2.45G open frequency range.In equipment end, add Bluetooth transmission module, at computer terminal or smart mobile phone end, add bluetooth receiver module, the data that equipment end sends, computing machine or smart mobile phone can receive.
Traditional network communications technology refers to Internet communication technology, but along with the development of the 3G communication technology, mobile communication also develops into a kind of more conventional network communications technology, and two kinds of networks have the trend of mutual fusion.Order first two network is progressively deep among our daily life, becomes our the requisite instrument of living, learn, work.By the computing machine at accessing Internet, we can send to assigned address by Internet by data.By smart mobile phone access mobile communication net or wireless Internet, we also can send to the upper address of appointment of Internet or the phone number of appointment.
Along with expanding economy, people's living standard is more and more higher, and green, healthy, high-quality life are more and more advocated and pursued.Wherein more and more higher to the requirement of drinking water sources, particularly, among city, pure water has been the indispensable living material of each family, each office.Pure water is to be generally contained among 5 gallons of pure water barrels, by the special water conservancy project people that send, send door waterborne.Traditional water mode of crying is when user finds that pure water runs low, and makes a phone call to feed water valve shop and please send water conservancy project people, and this mode has a lot of drawbacks, first be to need special messenger next on duty, need to often check whether water is finished, if slightly carelessness makes troubles to life and office; Again, this mode is uneconomical, need in water, can produce extra-pay by phone.
Summary of the invention
The object of the invention is to propose a kind of pure water and be automatically water system, it is automatically monitored water level, automatically sends and be water information without staff on duty, is not subject to distance limit, the life that can greatly be convenient for people to and office.
For reaching this object, the present invention by the following technical solutions:
(1) system ingredient: the whole water system that cries is comprised of external labeling type laser pure water water level monitoring module, bluetooth communication, instant communication software module three parts.
External labeling type laser pure water water level monitoring module is mainly comprised of Infrared laser emission head, infrared laser Receiver, STM8S103 single-chip microcomputer, power supply.Infrared laser emission head is 3mv infrared laser pipe and the accessory circuit thereof of 3V power supply, and launch spot diameter is 2mm.Infrared laser Receiver is 650nm simulated laser receiving tube and accessory circuit and auxiliary equipment, and output low level while receiving laser, exports high level while not receiving laser.STM8S103 single-chip microcomputer and accessory circuit thereof, as the main control part of external labeling type laser pure water water level detecting module, are penetrated infrared laser, reception and are differentiated signal, the control bluetooth dispensing device transmitted signal that infrared laser Receiver is exported for timing controlled Infrared laser emission hair.
Bluetooth communication is divided into bluetooth dispensing device and bluetooth receiving trap.Bluetooth dispensing device is BCM92045NMD bluetooth 2.0 modules and accessory circuit, and bluetooth receiving trap is bluetooth 2.0 general modules.The function of bluetooth communication is that the data of water level monitoring module are sent to computer terminal.
Instant communication software module is divided into again client software, send water spot end software, water factory's server software three parts.Client software divides two kinds of computer terminal software and smart mobile phone end softwares.Client software is installed on pure water user's computing machine or smart mobile phone, and computer terminal software application C# writes, and supports Windows operating system; Mobile phone terminal software adopts JAVA to write, and supports Android system.Client software needs first to register before using, and to obtain a unique ID, the phone number of water spot is sent in the typing in advance of mobile phone terminal software.Send water spot end software to be installed on the computing machine that send water spot, for receiving sequence information.After sending water spot end software to install, need registration, to obtain a unique ID.Server software is installed on server, for doing the server of instant communication software.
(2) System Working Principle: external labeling type laser pure water water level monitoring module is installed on the outside of pure water barrel by sucker, this mode does not directly contact water source, can not cause drinking water pollution, after simple adjustment, the laser of the Infrared laser emission device transmitting of external labeling type laser pure water water level monitoring module be through being received by laser receiver after water, and now water level monitoring module can not send the water level information that transfinites; Along with pure water is constantly used, when the water level in bucket drops to a certain degree, the laser that Infrared laser emission device sends can first pass air, and then enter in water, now because the cause of refraction, mounted laser receiver just can not receive laser, the warning thereby triggering water level transfinites, and water level detecting module can be sent and is water signal by bluetooth dispensing device.
If select computing machine as the execution body that is water, the bluetooth receiving trap of computer terminal receives that water level monitoring module sends be water signal after, can notify the client software moving on computing machine.The client software moving on computing machine can provide " automatically ordering water " and " manually ordering water " two kinds to order water mode, chooses while automatically ordering water, when receiving while being water signal, send water spot end software to send order water order by client software from trend; Choose while manually ordering water, can manually order at any time water by user.
The above-mentioned concrete communication process of ordering water by software is: client software sends and orders water Frame to water factory's server software, orders water Frame and comprises Customer ID, send water spot end ID, send water number amount.Water factory's server software receives to be ordered after water Frame, first resolve, after the log-on message of the local storage of contrast, to the water spot end software that send of appointment, send water Frame, send water Frame to comprise Customer ID, customer address, customer phone, send water number amount.Send that water spot end software receives that water factory server end sends send water Frame after, first resolve, then with the form of prompting message, eject and determining on the screen of water spot end computing machine, by sending water spot end staff to dispatch, send water.
If select smart mobile phone as the execution body that is water, the bluetooth module of mobile phone terminal receive the transmission of water level monitoring module be water signal time, can notify preassembled mobile phone terminal software on mobile phone.The software moving on mobile phone can provide " automatically ordering water " and " note is ordered water " two kinds to order water mode.In elected, during " automatically ordering water " mode, mobile phone terminal software can be ordered water information to sending water spot end software to send by internet, and idiographic flow is identical with computer terminal software; In elected during " note is ordered water " mode, mobile phone terminal software sends and orders water note from the predefined mobile phone that send water spot of trend, orders water note and need to pre-enter mobile phone terminal software.
Client software and the function of sending water spot end software to have Instant Messenger (IM) software concurrently, client can carry out information interchange with sending water spot staff at any time.
Send water spot end software to have and next day send water number amount forecast function.Send water spot end software according to every day the last week cry water number amount carry out based on vector machine order water quantitative forecast, to the result of sending water spot end staff that prediction is provided, can be used as the reference of sending water spot to order goods to water factory.
Water factory's server software has next day production quantity forecast function.Server software can carry out the production quantity prediction based on vector machine according to the water number amount of crying of every day the last week, and provides predicted data, as the reference of producing to the production management personnel of water factory.
The beneficial effect of this system is: (1) cost is low, easy for installation, without staff on duty, can greatly provide amenities for the people and work; (2) use cost is low, has internet to use; (3) not only facilitate user, but also can automatic Prediction next day determine the water yield, can conveniently send water spot and pure water manufacturer.
Embodiment:
Below in conjunction with accompanying drawing, the present invention will be further described:
(1) Fig. 1 is the principle of work schematic diagram of external labeling type laser pure water water level monitoring module.
External labeling type laser pure water water level detecting module is installed on the outer wall of purified water bucket by sucker, easy installation and removal, does not directly contact water source, safe and sanitary.1. be the work schematic diagram of water level when higher, the laser of now laser beam emitting device transmitting directly exposes to laser receiver through pure water, and external labeling type laser pure water water level monitoring module can not sent water level overload alarm information; 2. be the work schematic diagram of water level when lower, the infrared laser line of now laser beam emitting device transmitting is first injected air, and then enter in water, at the A of air and water surface intersection point, can reflect, after laser rays enters in water, can expose to B point, now laser receiver can not receive laser, external labeling type laser pure water water level monitoring module can be sent water level overload alarm information, and through bluetooth module, is sent to computing machine or mobile phone by the control of single-chip microcomputer.
(2) Tu2Wei system layout and principle of work schematic diagram.
Dotted line frame A is user side, and dotted line frame B is water factory's end, and dotted line frame C is for sending water spot end.External labeling type laser pure water water level detecting module is installed on the pure water barrel of user side, and computing machine is installed computer terminal software, and mobile phone is installed mobile phone terminal software.Water factory's end computing machine build-in services device end software.Send water spot end computing machine to install and send water spot end software.External labeling type laser pure water water level detecting module detects water level when too low, can be sent out and is water signal by bluetooth module, as shown in figure 1..2. for what select that computing machine or mobile phone send by internet, be water number certificate.3. to be mobile phone send to local wireless router is water number certificate, and then wireless router can make water number certificate send on internet.4. for server send water number certificate to what send that water end (W.E.) software sends.5. for mobile phone is ordered water note to what send that water spot phone sends.