In the prior art, for user using prepayment mode using water, gas or electricity treating method, substantially by with
What under type was completed:
The first step, the stuck point of selling that user goes to supervisor company (referring to Running-water Company, gas company and power supply company) specified are purchased
IC rechargeable card is bought, and by the required water, gas and electricity or right by commercially available set amount (water is gentle with a cube metering, and electricity is to spend metering)
The amount of money answered is filled in the IC rechargeable card;
Second step, IC rechargeable card is contacted or the IC card gauge table of electromechanical integration that cordless is corresponding
(also referred to as IC card pre-payment water meter or IC card water meter) interconnection, can starting gauge table work, (i.e. the gauge table will be supplemented with money by IC
Water, gas or the power supply for the set amount charged on card give the user).
Third step, after the set amount on IC rechargeable card is finished, the gauge table i.e. can close, stop output water, gas or
Electricity.
Above-mentioned prepayment mode, there are following defect (by taking pre-payment water meters as an example):
1) IC card water meter, in general, in use, counting in the following manner:
Mechanical to count: the water for flowing through the water meter pushes impeller rotation, and impeller drives gear set linkage, thus, make and tooth
Number on the mechanical count character wheel that associated gear connects in wheel group (e.g., records 10- 3、10- 2…103Cube equal different numbers grade
Character wheel) make corresponding change.
Electronic counter: it is rotated by stem-winder end band magnetic pointer, magnetic induction part detects acquisition pulse signal-count, i.e.,
The rotating cycle of magnetic pointer is measured, so that accumulating calculating determines electronic counting.
In the use process of such water meter, water meter will lead to table end because of phenomena such as pipeline pressure deficiency, water hammer and rotation
There are forward and reverse in table, at this time detect pointer rotating cycle sensor can generate counting pulse, i.e., no matter rotate forward or
Reversion can be calculated as using water, but water meter does not use water really at this time, and water meter mechanical character wheel does not increase, but electronic counting portion
Divide but counting, deviation occurs so as to cause pulsed electron stored counts value and water meter mechanical character wheel count value, and because of deviation meeting
Superposition, water meter can not periodically realize electromechanical synchronization, and water meter is bigger using time more long deviation, causes to produce between user and manager
Raw unnecessary dispute.
2) either non-contact IC card water meter or Contact Type Ic Card water meter, cannot achieve on line and supplement with money, Yong Huchong
Value need to carry user snap into it is specified sell water spot and supplement with money, purchase water time, place are restricted, supplement with money it is waiting for a long time, to user day
Often life brings very big inconvenience.
3) IC card water meter is difficult to prevent to supplement with money irregularities (administrative staff that only a few is done wrong to serve one's friends or relatives is by more moneys on exhibit and lesser moneys on counterfoil
Purchase water user pays supplement with money more less).
4) IC card water meter due to water purchase in advance, user's water consumption cannot be synchronized to backstage, lead to the long-term wealth of Running-water Company
It is engaged in pending accounts (" Deposit received " accounting process is denoted as " debt ", therefore can not confirm " income "), seriously affects financial accounting, and not
Convenient for its monitoring and management to user's water data.
5) IC card water meter be one autonomous working individual, it can not be monitored from the background, only user report for repairment or into
Could find that water meter failure, failure can not find and exclude in time when row water meter inspection, cause table end and background management system it
Between disconnection.
6) IC rechargeable card is easy to damage under strong magnetic disturbance, carries also inconvenient and is easily lost.
Utility model content
The technical problem to be solved by the present invention is to provide one kind can supplement with money and manage online based on the pre- of Internet of Things
Payment water meter system.
In order to solve the above-mentioned technical problem, the technical solution adopted in the utility model are as follows:
The pre-payment water meter system based on Internet of Things of the utility model, including several be mounted on using end and for electromechanics
Integrated prepayment metering water meter, palm terminal, internet and backstage water affairs management center, it is characterised in that: the prepayment
The electronic control module for taking metering water meter is supplied by main control MCU, wireless communication module, valve control module, electronic measurement module and battery
Electric module composition, wherein
Wireless communication module is interconnected with the bluetooth module pairing being built in palm terminal;The wireless communication module will be deposited
Pulsed electron stored counts value when storing up the upper end cycle in main control MCU is sent to palm terminal, while receiving palm
Terminal supplements mechanical character wheel when end cycle with money by upper one be shown on the prepayment metering water meter window for acquisition of taking pictures
It reading and new supplement period water preliminary filling magnitude with money and reads and use water preliminary filling magnitude to be stored in main control MCU the mechanical character wheel;
Pulsed electron stored counts value, mechanical character wheel reading and use when palm terminal is by a upper end cycle
Water preliminary filling magnitude is sent to backstage water affairs management center by internet;
Main control MCU, the pulsed electron stored counts value of real-time storage electronic measurement module record simultaneously supplement the period with money in new
When starting, pulsed electron stored counts value when supplementing end cycle with money for upper one is updated to upper one machinery when supplementing end cycle with money
Character wheel reading;After successful recharging, main control MCU issues the instruction opening the prepayment metering water meter and working to valve control module;
Valve control module, the water valve for controlling the prepayment metering water meter open or close;
Electronic measurement module acquires the pulse signal generated when prepayment metering water meter mechanical count pointer rotation, with
Obtain the pulsed electron stored counts value.
It is additionally provided in the prepayment metering water meter to the battery electricity that battery is monitored in the battery power supply module
Monitoring modular is pressed, the wireless communication module can will include the operation shape including battery status, valve state and environment magnetic disturbance
State information is sent to backstage water affairs management center.
Buzzer cue module whether prompt successful recharging is additionally provided in the prepayment metering water meter.
The main control MCU uses the chip of model MSP430FR6972IRGC;The wireless communication module mainly uses
The bluetooth module of model E66_V01;The valve control module mainly uses the chip of model SPX3010.
The pre-paying method based on Internet of Things water meter system of the utility model, using the utility model based on Internet of Things
Pre-payment water meter system, pre-payment according to the following steps:
1) prepayment metering water meter to be supplemented with money is waken up
User or administrative staff are loaded with the whole comprising the palm including mobile phone, Specialised mobile terminal of pre-payment APP under using
End includes the ground including the two dimensional code, bar code or the RFID that is bundled on water meter being printed on table to prepayment metering water meter
Location code is scanned, and is obtained address code relevant information and is matched interconnection with the wireless communication module in the prepayment metering water meter;
2) data exchange
Pulsed electron stored counts value when prepayment metering water meter supplements end cycle with money for be stored therein upper one and
Comprising sending palm end in the running state information including table end cell voltage state, valve state and environment magnetic disturbance state to
End;
Mechanical character wheel when palm terminal supplements end cycle with money to show on prepayment metering water meter window upper one is read
It is taken pictures and passes through image recognition software and be converted to corresponding digital information and send the prepayment metering water meter to;
3) amendment Electronic saving counts the truth of a matter, it is ensured that the electromechanical metering of prepayment metering water meter synchronizes;
Pulsed electron stored counts value when main control MCU in prepayment metering water meter supplements end cycle with money for upper one updates
Mechanical character wheel reading when supplementing end cycle with money for described upper one, updated numerical value as newly supplement period initial pulse with money
Electronics stored counts value;
4) it supplements with money
Using palm terminal, by new supplementing with money, period domestic demand is to be used is sent to prepayment metering water meter with water priming volume,
Supplement completion with money, the buzzer call prompt being set in prepayment metering water meter;
5) starting prepayment metering water meter work
Main control MCU uses water preliminary filling magnitude according to deposit, and control valve correctly acts, water meter normal water supply, meanwhile, prepayment
The electronic measurement module taken in metering water meter is tired in the on the basis of progress electronics of the initial pulsed electron stored counts value
Product counts;
6) timely update the related data at backstage water affairs management center;
Pass through channel radio by updated pulsed electron stored counts value, with water preliminary filling magnitude and the running state information
Letter module, palm terminal, internet are sent to backstage water affairs management center.
In the method for the utility model, whether the valve state judges normal through following methods:
1) palm terminal and prepayment metering water meter complete wireless pairing interconnection;
2) valve that main control MCU detection connects with valve control module detects pin OFF-M and ON-M in place, if being simultaneously
When high level, then valve state exception is judged.
In the method for the utility model, whether the environment magnetic disturbance state judges normal through following methods:
1) palm terminal and prepayment metering water meter complete wireless pairing interconnection;
2) main control MCU detects output signal the pin PA-M and PB-M to connect with electronic measurement module sensors, if simultaneously
When for low level, then being judged as surrounding enviroment, there are magnetic disturbance phenomenons.
In the method for the utility model, backstage water affairs management center supplements week with money several according to prepayment metering water meter
The counting error occurred between pulsed electron stored counts value and mechanical character wheel reading in phase analyzes and determines and decides whether to replace
The prepayment metering water meter, or decide whether to install check-valves additional on the prepayment metering water meter inlet duct.
Compared with prior art, the utility model is wireless interconnected using palm terminal and the progress of prepayment metering water meter and will
Related data information is sent to backstage water affairs management center by internet;It can effectively solve water meter electronic counting and mechanical word
Wheel reading it is different supplement with money cycle memory counting error give user's bring unfairness problem;It can be made by palm terminal
User supplements with money online, that is, fills and use, and efficiently solves user and purchases the problems such as water is limited by distance, time.
Specific embodiment
One, the pre-payment water meter system based on Internet of Things of the utility model
The technical concept of the pre-payment water meter system can be applied to the system to pre-payments such as combustion gas, electric power.Below with
With the technical program is described in detail for the payment system of water.
As shown in Figure 1, the pre-payment water meter system by internet, backstage water affairs management center, palm terminal and several
Prepayment metering water meter etc. is constituted.
1, prepayment metering water meter
User is mounted on using end, is the water meter of electromechanical integration, which is used for metering user water consumption, existing
Mechanical count structure, and have electronic counting structure, wherein mechanical count structure is conventional water meter gear assembly.
The electronic counting structure (also referred to as electronic control module) of the prepayment metering water meter of the utility model is except conventional electrometer
It measures outside module and battery power supply module, also there is main control MCU, wireless communication module, valve control module, battery voltage monitoring mould
Block and buzzer cue module, in which:
1) main control MCU (referring to shown in Fig. 3,4), using the control chip of model MSP430FR6972IRGC.
Its main function is to complete the whole list scheduling management such as communication storage, metering, low-power consumption management, specific as follows:
A. the electronics stored counts value for water consumption that storage electronic measurement module is recorded (calls pulsed electron accumulation meter in the following text
Numerical value).
B. it is each it is new supplement the period with money and start when, the pulsed electron accumulation that amendment upper one is recorded when supplementing end cycle with money is counted
Numerical value, prepayment metering water meter is so that the mechanical character wheel of the prepayment metering water meter is read with pulsed electron stored counts value new
Synchronous counting when supplementing period starting with money, last supplement in the period electromechanical counting error with money to injustice caused by user security risk to eliminate.
C. by running state information (the operation shape of updated pulsed electron stored counts value and the prepayment metering water meter
State information includes table end cell voltage, whether environment is with the presence or absence of status informations such as magnetic interferences where normal and water meter for valve)
Module, palm terminal, internet are sent to backstage water affairs management center by wireless communication;
D. valve control module execution is opened or closed and issues correct operation instruction.
2) wireless communication module (shown in Figure 5), using the bluetooth module of model E66_V01.
It acts as:
A. it is interconnected with the bluetooth module wireless pairing that is built in palm terminal, and by the pulse of the prepayment metering water meter
Electronics stored counts value and the running state information upload to palm terminal, and are reached in the water affairs management of backstage by network
The heart realizes prepayment metering water meter Internet of Things, big convenient for the maintenance of prepayment metering water meter, maintenance, maintenance and water affairs management company
Data statistics and analysis.
B. the mechanical character wheel for receiving the prepayment metering water meter obtained from palm terminal by image recognition is read
Value.
C. it receives the user that palm terminal is sent and supplements the purchase water being filled in the period with money (referred to as with water priming volume in new
Value, including it is directed to same user, upper one supplements the period with money because the error of pulsed electron stored counts value and mechanical character wheel reading value is more
That collects the user is mended the pre- filled water amount moved back) it transmits and is stored in main control MCU.
3) valve control module (shown in Figure 6), using the chip of model SPX3010.
The water valve that valve control module U4 controls the prepayment metering water meter opens or closes, wherein the of main control MCU
" 22 " foot (pin leads are entitled " CTLON ") and " 23 " foot (pin leads are entitled " CTLOFF ") control mould with the valve respectively
" 3 " foot and " 2 " foot of block are connected.
The opening and closing of water valve are realized by the following method:
A. valve (i.e. closing water valve is caused by subscriber arrearage, the amount of supplementing with money are finished or nobody uses the reasons such as pause) is closed
Controlling " CTLOFF " is high level (artificially defined), and " CTLON " is low level (artificially defined).
B. valve opening (i.e. opening water valve is caused by after user supplements with money and comes into force)
Controlling " CTLOFF " is low level, and " CTLON " is high level.
C. verification (whether detection water valve opened, closed or in normal condition)
The valve that main control MCU detection connects with valve control module detects (" 24 " of main control MCU pin OFF-M in place
Foot) with ON-M (" 25 " foot of main control MCU), the of " 24 " foot of main control MCU and valve control module motor drive ic
" 5 " foot is connected, and " 25 " foot of main control MCU is connected with " 4 " foot of valve control module motor drive ic.
When main control MCU detects that its " 24 " foot is low level, then it is judged as and closes valve success;Detect that its " 25 " foot is
When low level, then it is judged as valve opening success;If detect " 24 " foot and " 25 " foot while being high level, valve is judged
Abnormal state.
4) in electronic measurement module (shown in Figure 10), the part that U10 and U11 is denoted as in figure is two magnetosensitive members
Part, magneto sensor U10 and U11 generate the mechanical metering pointer rotating cycle pulse of pulse signal acquisition prepayment metering water meter
(acquisition pin is PA and PB), realizes electronic counting.
Electronic measurement module is responsible for realizing dynamoelectric signal conversion for measuring.Power supply control foot VM-M is controlled by main control MCU
(" 42 " foot of main control MCU), while powering to two-way magnetic induction part U10 and U11, PA-M (" 43 " foot of main control MCU)
It is respectively signal detection pin with PB-M (" 44 " foot of main control MCU), when pointer rotates a circle, PA-M and PB-M are first respectively
After detect low level pulse signal, be used for electronic measurement.
The main control MCU output signal pin PA-M (" 43 " foot of main control MCU) that connects with electronic measurement module of detection and
PB-M (" 44 " foot of main control MCU), if be simultaneously low level, being judged as surrounding enviroment, there are magnetic disturbance phenomenons.
5) battery power supply module (shown in Figure 7) is main control MCU, wireless communication module, valve control module and electronics
Metering module provides electric energy.
It is (interior to access U1B chip shown in Fig. 8 after voltage regulator circuit pressure stabilizing by the battery access point VBAT of battery power supply module
Set the filter circuit in main control MCU) four pins DVCC1, DVCC2, DVCC3 and AVCC1 further filter after to master control
MCU power supply.
6) battery voltage monitoring module
As shown in figure 8, being responsible for periodic monitoring cell voltage, there is under-voltage, alarm in time.I.e. main control MCU passes through control
BAT_EN (" 7 " foot of main control MCU) high level enables battery voltage monitoring, then passes through (" 30 " of main control MCU BAT_DEC
Foot) sampling battery voltage.
7) buzzer cue module
As shown in figure 9, being responsible for completing the prompt user such as successful recharging or failure, prepayment metering water meter warning information.
2, palm terminal
The mobile terminal of prepaid application software (also known as pre-payment APP) is installed, can be mobile phone that user uses, flat
The Specialised mobile terminal of plate computer or water affairs management personnel depaly.
The palm terminal represents the address code of the unique identities of the water meter by scan setting on prepayment metering water meter
It can be wireless interconnected with the wireless communication module in the prepayment metering water meter.Address code can be two dimensional code, bar code or RFID
(radio frequency identification code).
The palm terminal is built-in with image recognition software, reads window when being aligned with prepayment metering water meter mechanical character wheel
After being taken pictures, one group of mechanical character wheel reading can be converted to digital information and be sent to the prepayment metering water by palm terminal
Table is simultaneously stored in the main control MCU.
After palm terminal and the completion of prepayment metering water meter are wireless interconnected, main control MCU passes through control in prepayment metering water meter
BAT_EN high level processed enables battery voltage monitoring, then by BAT_DE sampling battery voltage, samples voltage and the early warning of acquisition
Lower limit value comparison, undervoltage alarm state is then generated lower than lower limit value, and main control MCU detection valve detects signal pins OFF-M in place
Judge that valve state exception, main control MCU detect metering module sensor U10's and U11 if being simultaneously high level with ON-M
If output signal pin PA-M and PB-M level signal are low level simultaneously, i.e. two magnetic sensor signals are detected simultaneously by magnetic letter
Number, then it is judged as environment magnetic disturbance state;After the completion of state-detection, the wireless communication module in prepayment metering water meter is pre- by this
Metering water meter of paying includes the running state information hair including battery undervoltage state, valve abnormality and environment magnetic disturbance state
Give the backstage water affairs management center.
3, internet
It can be Intranet, local area network (LAN), wide area network (WAN), wireless network, the storage region based on optical-fibre channel
One or more of network (SAN) and Ethernet.Its effect is by prepayment metering water meter, palm terminal and backstage water utilities pipe
Reason center carries out information interconnection.
4, backstage water affairs management center.
To the use states of several prepayment metering water meters in Internet of Things, supplement management with money and data statistics exercises supervision pipe
Reason and maintenance operation.
Backstage water affairs management center is according to prepayment metering water meter in several pulsed electron stored counts supplemented with money in the period
The counting error occurred between value and mechanical character wheel reading value decides whether to replace the prepayment metering water meter, or in the prepayment
Check-valves is installed additional before expense metering water meter, to solve electronic measurement mould caused by causing water meter to reverse because of water hammer or ductwork pressure deficiency
The larger problem of block measurement error.
The pre-payment water meter system of the utility model has the advantages that
1) truth of a matter (i.e. pulsed electron stored counts value is read with mechanical character wheel) is synchronous in time, when palm terminal is supplemented with money every time
After image procossing of taking pictures, water meter window mechanical character wheel reading is obtained, the truth of a matter is arranged to table end by wireless communication, is guaranteed
Electronical reading (i.e. pulsed electron stored counts value) is synchronous in time with window reading (i.e. mechanical character wheel reading), solves IC card water meter
Cumulative errors problem;
2) it supplements with money online, user fills and uses, user is facilitated quickly to supplement with money, solve by paying on palm terminal line
User purchases the problems such as water is limited by distance, time;
3) user binds, and user uses palm terminal, and scan table panel two dimensional code, bar code or RFID realize that terminal is used
Family and water meter are bound, and prevent to sell water irregularities;
4) remote meter reading and long-range monitoring, table end data and status information are timely when Internet of Things prepayment metering water meter is supplemented with money
Backstage is uploaded to, system of appointing national minority hereditary headmen in the Yuan, Ming and Qing Dynasties's financial settlement and big data management are facilitated, is realized long-range to meter usage remote copying and operating status
Monitoring facilitates the system of appointing national minority hereditary headmen in the Yuan, Ming and Qing Dynasties to carry out repair and maintenance maintenance to bug list in time;
5) cost performance is higher, and the prepayment metering water meter of the utility model is not necessarily to IC card, card reader and LCD, and cost is lower;
6) dosage information is inquired in time, and user can bind water meter by palm terminal inquiry at any time, and inquiry water consumption is gone through
Water management transparency is sold in the information such as history dosage and remaining dosage, raising.
7) big data analysis improves user experience, i.e., when user supplements electromechanical synchronization with money every time, backstage records its current machine
Electric error and status information are differed with electronical reading compared with large user, it is proposed that non-return is installed before table to repeatedly there is mechanical reading
Valve arranges maintenance personnel to replace battery in time if battery undervoltage, improves user experience, solves IC card water meter because state and table are read
Number, which cannot upload, leads to troubleshooting problem not in time.
8) forward purchasing amount benefit is moved back, and even prepayment metering water meter is because pipeline pressure is insufficient, water hammer and phenomena such as rotation lead to table
When electronic measurement numerical value and prepayment metering water meter mechanical character wheel count value being held positive or negative deviation occur, prepayment metering water meter is then
Water can be purchased in advance according to user to occur corresponding in advance or postpone closing valve, i.e., to the more buttons or few button of user's forward purchasing amount;To user
Execute next time prepaying charge when, palm terminal obtain prepayment metering water meter mechanical character wheel count value, and with upper phase machine
Tool character wheel count value and last pre- filled water amount obtain to mend after comparing moves back forward purchasing water, at this time palm terminal should mend water-break amount with
The pre- filled water amount of current period user is filled with prepayment metering water meter together, thoroughly solves customer consumption unfairness caused by electromechanical error and asks
Topic.
Two, the pre-paying method based on Internet of Things water meter system of the utility model
Using the pre-payment water meter system described in the utility model based on Internet of Things, pre-payment is (referring to fig. 2 according to the following steps
It is shown):
1) prepayment metering water meter to be supplemented with money is waken up
Main control MCU (U1A is designated as in Fig. 3) power on first initialization electronic measurement module (i.e. METER metering section) and wirelessly
Communication module U5, subsequently into low-power consumption power down mode.
User or administrative staff are loaded with the whole comprising the palm including mobile phone, Specialised mobile terminal of pre-payment APP under using
End includes address code including the RFID of two dimensional code, bar code or binding being printed on dial plate to prepayment metering water meter into
Row scanning obtains the relevant informations such as address code and is matched, to complete the nothing of the palm terminal Yu the prepayment metering water meter
Line interconnection;
2) data exchange
The pulsed electron stored counts that prepayment metering water meter is accumulated when supplementing end cycle with money for be stored therein upper one
Palm terminal is sent in the running state informations such as value and table end cell voltage state, valve state and environment magnetic disturbance state;
Palm terminal takes pictures to the Current mechanical character wheel reading on prepayment metering water meter window, and then the palm is whole
Prepayment meter end mechanical character wheel reading is extracted by the image recognition software in it in end from picture, and this mechanical character wheel is read
The prepayment metering water meter is transmitted to digital information;
3) electrometer numerical value is corrected, it is ensured that electromechanical count synchronization
The pulsed electron stored counts value that main control MCU in prepayment metering water meter is accumulated when supplementing end cycle with money for upper one
It is updated to the current mechanical character wheel reading that module by wireless communication is obtained from palm terminal, updated pulsed electron accumulation
Count value supplements pulsed electron stored counts value initial in the period with money as new;
4) it supplements with money
Palm terminal obtains prepayment metering water meter mechanical character wheel reading, and pre- with upper phase mechanical character wheel reading and last issue
Filled water amount obtains to mend after comparing moves back forward purchasing water, and palm terminal should mend water-break amount together with the pre- filled water amount of current period user at this time
It is filled with prepayment metering water meter, after the success of table end water-filling, then buzzer call prompts;
5) starting prepayment metering water meter work
Main control MCU is correctly acted according to the deposit with water priming volume, control valve, water meter normal water supply, is controlled to valve
Module issues the instruction for starting prepayment metering water meter work, meanwhile, the electronic measurement module in prepayment metering water meter exists
Electronic counting is carried out on the basis of revised pulsed electron stored counts value in aforementioned " 3) " point;
6) timely update the related data at backstage water affairs management center
By updated pulsed electron stored counts value and table end status information by wireless communication module, palm terminal,
Internet is sent to backstage water affairs management center.