Background technology
Laser is found by einstein that in 1916 nineteen sixty, laser was by successful artificial.Laser brightness is high, penetrability is strong, diversity is little, in a kind of 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 getting into water by air, refraction effect can take place twice when getting into air by water again.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 about 100 meters, it can simplified apparatus between and communicating by letter between equipment and the Internet, it was proposed by Ericsson in 1994 at first, it is operated in the open frequency range of 2.45G.Add the Bluetooth transmission module in equipment end, add the bluetooth receiver module at computer terminal or smart mobile phone end, the data that equipment end is sent, computing machine or smart mobile phone can receive.
Traditional network communications technology is meant Internet communication technology, but along with the 3G development of Communication Technique, and mobile communication also develops into a kind of network communications technology relatively more commonly used, and two kinds of networks have the trend of mutual fusion.Present two kinds of networks progressively are deep among our daily life, become we the life, study, work necessary tool.Through we can send to assigned address through Internet with data at the computing machine that inserts the internet.Through smart mobile phone access mobile communication net or wireless Internet, we also can send to Internet and go up the address of appointment or the phone number of appointment.
Along with expanding economy, people's living standard is increasingly high, to green, healthy, high-quality life is more and more advocated and pursue.Wherein to drinking water sources require increasingly highly, particularly among the city, pure water has been the indispensable living material of each family, each office.Pure water generally is to be contained among 5 gallons of pure water barrels, send door waterborne by the special water conservancy project people that send.Traditional water mode of crying is when the user finds that pure water runs low, and phones and send the water valve shop please send the water conservancy project people, and this mode has a lot of drawbacks; At first be to need the special messenger next on duty; Need often check whether water uses up,, make troubles for life and office if carelessness is arranged slightly; Once more, this mode is uneconomical, need can produce extra-pay in water through phone.
Summary of the invention
The objective of the invention is to propose a kind of pure water and be water system automatically, it need not staff on duty, monitors water level automatically, automatically sends and be water information, does not receive distance limit, life that can be convenient for people to greatly and office.
For reaching this purpose, the present invention adopts following technical scheme:
(1) system's ingredient: the whole water system that cries is made up 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 mainly is made up of infrared laser emitting head, infrared laser reception head, STM8S103 single-chip microcomputer, power supply.The infrared laser emitting head is the 3mv infrared laser pipe and the accessory circuit thereof of 3V power supply, and the launch spot diameter is 2mm.It is 650nm simulated laser receiving tube and accessory circuit and auxiliary equipment that infrared laser receives head, output low level when receiving laser, output high level when not receiving laser.STM8S103 single-chip microcomputer and accessory circuit thereof are used for timing controlled infrared laser emitting head emission infrared laser, reception and differentiate that infrared laser receives the signal of head output, control bluetooth dispensing device sends signal as the main control part of external labeling type laser pure water water level detecting module.
Bluetooth communication is divided into bluetooth dispensing device and bluetooth receiving trap.The bluetooth dispensing device is BCM92045NMD bluetooth 2.0 modules and accessory circuit, and the bluetooth receiving trap is bluetooth 2.0 general modules.The function of bluetooth communication is that the data with the water level monitoring module are sent to computer terminal.
The instant communication software module is divided into client software again, 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 computer or smart mobile phone, and computer terminal software uses C# to write, and supports Windows operating system; Mobile phone end The software adopted JAVA writes, and supports the An Zhuo system.Need registration earlier before client software uses, to obtain a unique ID, the phone number of water spot is sent in the typing in advance of mobile phone end software.Send water spot end software to be installed on the computing machine that send water spot, be used to receive sequence information.Need registration after sending water spot end software to install, to obtain a unique ID.Server software is installed on server, is used to do the server of instant communication software.
(2) system works principle: external labeling type laser pure water water level monitoring module is installed on the outside of pure water barrel through sucker; This mode is the direct contact water source not; Can not cause drinking water pollution; After simple adjustment, the infrared laser emitter emitted laser of external labeling type laser pure water water level monitoring module can be received by laser receiver after passing water, and this moment, the water level monitoring module can not sent the water level information that transfinites; Along with pure water is constantly used; When the decline of water table in the bucket arrived to a certain degree, the laser that the infrared laser emitter sends can pass air earlier, and then got in the water; This moment is because the cause of refraction; Mounted laser receiver just can not receive laser, the warning thereby the triggering water level transfinites, and the water level detecting module can be sent through the bluetooth dispensing device be the water signal.
If select for use computing machine as the execution body that is water, the bluetooth receiving trap of computer terminal receives crying after the water signal of water level monitoring module transmission, can notify the client software that moves on the computing machine.The client software that moves on the computing machine can provide " ordering water automatically " and " manually ordering water " to order the water mode for two kinds, chooses when ordering water automatically, when receiving when being the water signal, send water spot end software to send by client software from trend and orders the water order; Choose when manually ordering water, can manually order water at any time by the user.
The above-mentioned concrete communication process of ordering water through software is: client software sends to water factory's server software and orders the water Frame, orders the water Frame and comprises Customer ID, send water spot end ID, send the water number amount.After water factory's server software receives and orders the water Frame; Resolve earlier; After the log-on message of the local storage of contrast, send the water Frame, send the water Frame to comprise Customer ID, customer address, customer phone, send the water number amount to the water spot end software that send of appointment.Send water spot end software to receive sending after the water Frame of water factory's server end transmission, resolve earlier, the form with prompting message ejects on the screen of deciding water spot end computing machine then, send water by sending water spot end staff to dispatch.
If select smart mobile phone as the execution body that is water, the bluetooth module of mobile phone end receive the transmission of water level monitoring module be the water signal time, can notify preassembled mobile phone end software on the mobile phone.The software that moves on the mobile phone can provide " ordering water automatically " and " note is ordered water " two kinds to order the water mode.During " ordering water automatically " mode, mobile phone end software can be ordered water information to sending water spot end software to send through the internet in elected, and idiographic flow is identical with computer terminal software; In elected during " note is ordered water " mode, mobile phone end software sends from the predefined mobile phone that send water spot of trend and orders the water note, and ordering the water note needs input handset end software in advance.
Client software and the function of sending water spot end software to have MSN concurrently, the client can carry out information interchange with sending the 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 to carry out the water number amount of ordering prediction, to sending water spot end staff that prediction result is provided, can be used as the reference of sending water spot to order goods to water factory based on vector machine according to the water number amount of crying of every day the last week.
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 the production management personnel provide predicted data to water factory, as the reference of producing.
The beneficial effect of this system is: (1) cost is low, easy for installation, need not staff on duty, can provide amenities for the people greatly and work; (2) use cost is low, has the internet to use; (3) not only make things convenient for the user, but also can predict the water yield of deciding of next day automatically, can conveniently send water spot and pure water manufacturer.
Embodiment:
Below in conjunction with accompanying drawing the present invention is further specified:
(1) Fig. 1 is the principle of work synoptic 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 pure water bucket through sucker, easy installation and removal, direct contact water source not, safe and sanitary.1. be the work synoptic diagram of water level when higher, the laser beam emitting device emitted laser was directly passed pure water and was exposed to laser receiver this moment, and external labeling type laser pure water water level monitoring module can not sent water level overload alarm information; 2. be the work synoptic diagram of water level when low, this moment, the infrared laser line of laser beam emitting device emission was injected air earlier, and then got in the water; Can reflect at the A of air and water surface intersection point; Laser rays can expose to the B point after getting in the water, and this moment, 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 is sent to computing machine or mobile phone through the control of single-chip microcomputer through bluetooth module.
(2) Fig. 2 is system layout and principle of work synoptic diagram.
Frame of broken lines A is a user side, and frame of broken lines B is water factory's end, and frame of broken lines C is for sending the 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 end 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 send out through bluetooth module and be the water signal, as among the figure 1. shown in.2. for selecting computing machine or mobile phone to be the water number certificate through what the internet sent.3. being mobile phone is the water number certificate to what the wireless router of this locality sent, and wireless router can be with making the water number certificate send on the internet then.4. send the water number certificate for server to what send that water end (W.E.) software sends.5. order the water note for mobile phone to what send that the water spot phone sends.