CN2638037Y - Code type intelligent cold water meter - Google Patents

Code type intelligent cold water meter Download PDF

Info

Publication number
CN2638037Y
CN2638037Y CN 03213079 CN03213079U CN2638037Y CN 2638037 Y CN2638037 Y CN 2638037Y CN 03213079 CN03213079 CN 03213079 CN 03213079 U CN03213079 U CN 03213079U CN 2638037 Y CN2638037 Y CN 2638037Y
Authority
CN
China
Prior art keywords
pin
resistance
connects
triode
code
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.)
Expired - Fee Related
Application number
CN 03213079
Other languages
Chinese (zh)
Inventor
阎廷辉
谷庆东
李玉成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 03213079 priority Critical patent/CN2638037Y/en
Application granted granted Critical
Publication of CN2638037Y publication Critical patent/CN2638037Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

A code-type intelligent cold water meter is composed of flowmeter, electric valve, sensor, electronic control circuit, digital keyboard and LCD. The circuit comprises a singlechip, a digital comparator, a voltage detector, a voltage comparator, a driving circuit, a motor, a counting switch, a counting anti-counterfeiting switch, a buzzer and the like. The code encryption is to designate a 16-bit (64-bit) main working key, perform primary DES encryption with 16-bit feature codes, perform DES operation with information to be transmitted to obtain 16-bit hexadecimal codes, convert the 16-bit hexadecimal codes into four groups of decimal codes through a numerical system, and use the four groups of decimal codes as functional codes. The code decryption is completed by the single chip microcomputer.

Description

Code-type intelligence cold-water meter
Technical field
The utility model belongs to the tap water automatic gauge control device that is used for prepaid, specifically is meant code-type intelligence cold-water meter.
Background technology
Known tap water water meter is the machinery metering mostly, and promptly the water yield of Shi Yonging directly is reflected on the counter of water meter, regularly makes a copy of institute's water consumption by the person of checking meter, and locates charge according to quantity by the cashier to the user again.This class water meter management pattern falls behind, wastes a lot of man power and materials.The intellectual water meter that 8 codes are arranged through improved water meter, this table can be realized the water prepaid substantially, more traditional mechanical metering-type water meter has certain progress, but also there are reliability and poor stability, the restriction touch potential (can not surpass 8 times, just locked as surpassing 8 times, must decipher by Running-water Company, very inconvenient), shortcomings such as easy error code.
Summary of the invention
The purpose of this utility model is exactly to provide a kind of code-type intelligence cold-water meter for the problem that overcomes existing water meter existence.
The purpose of this utility model can be achieved through the following technical solutions:
This water meter comprises flowmeter, electrically operated valve, sensor, electronic control circuit, numeric keypad, LCD.Concrete technology is:
Electronic control circuit:
Power supply (4): dc-battery is through filtering output voltage V CC, and it is again through regulator block IC3 and filtering output voltage V CC1;
Voltage comparator (6): triode TN emitter connects triode TP base stage through resistance, resistance series connection stabilivolt again with the resistance parallel connection of connecting, 3,4 pins by IC1 connect the common comparator circuit (7) of forming with IC1 internal simulation comparer again, and comparator circuit connects the TP collector;
Driving circuit (8): the collector of 3 triode TN connects the base stage of 3 triode TP respectively behind resistance, and wherein the collector of 1 TP connects the emitter of 2 TP in addition;
Numeric keypad (9): comprise 1-9 button and " 0 " button and an acknowledgement key and a backspace key, also have " code " key, " demonstration " key;
The pin one of single-chip microcomputer IC1 connects the base stage of the triode TN of voltage comparator through resistance, and the pin two of IC1,5,6 connects the base stage of 3 triode TN of driving circuit respectively behind 3 resistance; The pin 3,4 of IC1 is connected on respectively between resistance in the comparator circuit and the stabilivolt and between resistance and the resistance; The pin 9 of IC1 meets voltage detector IC4; The pin one 0,11,13,16,17,25,26,27,28,33 of IC1 connects numeric keypad; The pin one 2,32,33,35,36,37,38,39 of IC1 connects the pin 6,9,10,12,13,14,15,1 of digital comparator IC2 respectively; The pin two 4 of IC1 meets triode TP through resistance; The pin two 1,22,23 of IC1 meets LCD LCD through resistance respectively; The pin one 3,33,35,37 of IC1 connects respectively and draws resistance; The pin 37,39 of IC1 meets counter switch JK1 respectively and counts false proof switch JK2; Motor M 1 connects the collector of the triode TP in the driving circuit respectively through travel switch XK1 and XK2; IC2 meets voltage VCC1; IC4 meets voltage VCC1; The pin 39 of IC1 meets voltage VCC1 through resistance;
Sensor is made of a series of magnetic switchs (tongue tube) and mechanical switch, is the outside source of single-chip microcomputer.The limit switch of counter switch, false proof, the valve of counting etc. is arranged.
Code encryption and code deciphering:
Encrypt: specify 16 main working keys, do first des encryption with 16 condition codes, ciphertext after the encryption is as dynamic key, do the DES computing with the cleartext information of needs transmission again, the ciphertext of 16 heuristicimal codes after obtaining encrypting is converted to the function code of four groups of decimal codes as intellectual water meter through numeral system.
Deciphering: main working key and 16 condition codes are done first des encryption, ciphertext after the encryption is as dynamic key, does contrary DES computing with the heuristicimal code after the function code conversion of user's input, and former cleartext information is separated out in deciphering, after carrying out the legitimacy differentiation, enter next step data processing.
The purpose of this utility model can also be achieved through the following technical solutions:
IC1 is AVR series monolithic AT90S8515; IC2 is 74HC85.
The utlity model has following advantage:
1, intelligent degree height.
2, examination sign indicating number hit rate is 1,800 100,000,000 1/100000000th.
3, easy to operate, non-fault.
Description of drawings
Fig. 1 is a general illustration of the present utility model, (1) valve body wherein, (2) numeric keypad, (3) LCD.
Fig. 2 is circuit theory diagrams among Fig. 1, (4) power supply wherein, (5) pull-up resistor row, (6) voltage comparator, (7) comparator circuit, (8) driving circuit, (9) numeric keypad.
Fig. 3 is a numeric keypad synoptic diagram among Fig. 1.
Fig. 4 is a liquid crystal display synoptic diagram among Fig. 1.
Fig. 5 is liquid crystal display synoptic diagram when code is imported among Fig. 1.
Fig. 6 is the code encryption flow chart.
Fig. 7 is a code decrypted program block scheme.
Embodiment
This water meter has increased electrically operated valve, sensor and electronic controller newly except the function of measuring with conventional water meter.It is core component that electronic controller adopts advanced at present AVR series monolithic AT90S8515, and numeric keypad and LCD (LCD) are as the data information transfer means.
The user purchases the water yield and administrative authority's steering order in advance all with the form of function code, pass to Single Chip Microcomputer (SCM) system in the table by the keyboard input, separate out corresponding data information by the Single Chip Microcomputer (SCM) system deciphering, and carry out relevant treatment, and then finish relevant control and operations such as surplus water accumulative total, performance maintenance, controlled valve according to the requirement of data message.
The function code of this utility model is to adopt general in the world des encryption technology (by digital encryption standard---the Data Encryption Standard of NBS's announcement), data (key also is 64 bits) to 16 hexadecimal codes (64 bit) are encrypted generation, have very outstanding safety anti-fake performance.The code encryption process is as follows:
Cryptographic calculation is finished by the computer sale management system, computation process: specify 16 (64 bit) main working keys, do first des encryption with 16 condition codes (comprising information such as user number, area code), ciphertext after the encryption is as dynamic key, do the DES computing with the cleartext information (comprising user's forward purchasing amount, maintenance instruction or other utility data information etc.) of needs transmission again, the ciphertext of 16 heuristicimal codes after obtaining encrypting (i.e. 64 bits) is converted to the function code of four groups of decimal codes (5 every group) as intellectual water meter through numeral system.
Decrypt operation is finished by the intellectual water meter Single Chip Microcomputer (SCM) system, process: main working key and 16 condition codes are done first des encryption, ciphertext after the encryption is as dynamic key, do contrary DES computing with the heuristicimal code after the function code conversion of user input, former cleartext information is separated out in deciphering, after carrying out the legitimacy differentiation, enter next step data processing.
The application of des encryption technology on the code-type table strengthens the security of data transfer greatly, cracks probability and is almost 0, need not the examination sign indicating number number of times of limited subscriber.
The employing of the inner AT90S8515 single-chip microcomputer of controller and the design of interlock circuit have constituted the hardware condition of finishing the DES computing, and the calculating process design that embeds single-chip microcomputer constitutes its software condition.
After accepting function code, the electronic controller controls process is as follows: surplus water is not 0 o'clock, and controller control electrically operated valve is opened, and allows user's water.During user's water, provide count signal to controller, the internal data processing unit surplus water of successively decreasing by gage probe.Surplus water reaches when being scheduled to the warning amount, and controller guide sound alarm prompting user purchases water.Surplus water is 1 o'clock, valve closing, and the user can use " demonstration " key Open valve once (LCD shows surplus water simultaneously).When surplus water was 0, valve was closed once more, need this moment input new purchase the water function code after can open.Input is the amount of purchasing code newly, and controller is added to surplus with forward purchasing amount newly automatically.
During intellectual water meter used, when battery electric quantity is not enough or user when illegal operation is arranged (as using strong magnetic interference), valve was closed automatically.Administrative authority changes battery or by after the corresponding maintenance instruction of function code transmission, the controller by-pass valve control is opened.
The operation control procedure of code-type intelligence cold-water meter:
1, code input method
1) by " code " key, enter code input state (display screen manifests screen number and cursor), split screen is imported four groups of data character codes successively then, and every group of input back that finishes is confirmed by " affirmation " key.
2) input character is wrong, re-enters after the deletion of available " backspace " key, and the code input state can be withdrawed from " backspace "+" 0 ".
3) input of four groups of numerical codes finishes, display screen show " residue ", " accumulative total consumption " or " deposit in " etc. information, then to import data correct in explanation; If hear rapid the warning two, display screen shows " E2 ", illustrates that input is wrong, need re-enter: show that " " the expression code lost efficacy E1.
4) at non-input state, by essential information feedback in " demonstration " bond energy indicator gauge, but the correctness of indirect verification input.
2, using method
1) before the intelligence table dispatched from the factory, the internal data store district emptied, and valve is a closed condition.
2) the family sign indicating number is built in input: make the initialization of intelligence table.Screen occurs if display message has " _ XXXXX_ ", represents that this table built the family, and _ XXXXX_ is family number.The follow-up screen content of family number screen is a feedback code.
3) the input amount of purchasing sign indicating number import errorlessly, and intelligence is shown to do System self-test, and state is normal, then valve opening; Display screen shows the forward purchasing value of " depositing in ", and flicker for several times.
4) during water, record automatically in the table.When surplus water is less than 3 cubic inches, the intelligence table provides two acoustic alarms prompting; Remain 1 cubic inch, valve closing, the user can press: " demonstration " key is opened valve, and surplus is 0 o'clock, and valve closing need have the new amount of purchasing sign indicating number input to open.
5) user is once more during the amount of purchasing, and should the feedback code of family number and follow-up screen be read and record by " demonstration " key, feeds back to Running-water Company.After the amount of purchasing, input is the amount of purchasing sign indicating number newly, and the intelligence table is added to surplus with forward purchasing amount newly automatically.
6) when battery electric quantity is not enough or the user illegal operation is arranged, intelligence table automatic-closing valve, and with alarm sound.The user should inform that Running-water Company changes battery or processing (provide and safeguard sign indicating number) is provided, otherwise valve can not be opened.
Circuit:
Single-chip microcomputer IC1 pin one connects the base stage of triode TN10 through resistance R 19, the grounded collector of this pipe, emitter connects the base stage of TP6 through resistance R 20, the emitter of TP6 meets voltage VCC, collector divides two-way, one the tunnel through resistance R 17, R16 ground connection, and another road is connected between TP6 collector (VCC3) and the resistance R 18, the R18 ground connection afterwards of connect with stable pipe ZD1.
IC1 pin 3 is connected between resistance R 17 and the R16.
IC1 pin 4 is connected between resistance R 18 and the stabilivolt ZD1.
The IC1 pin two connects triode TN2 base stage through resistance R 1, and the TN2 collector connects the base stage of TP3 through resistance R 7, and the collector of TP3 connects motor M 1 through socket J2-1 and limit switch XK1.
IC1 pin 5 connects the base stage of TN4 through resistance R 2, and the collector of TN4 connects the base stage of TP2 through resistance R 6, and the collector of TP2 connects motor M 1 through socket 12-2 and limit switch XK2.
IC1 pin 6 connects the base stage of TN6 through resistance R 3, and the collector of TN6 connects the base stage of TP4 through resistance R 8, and the collector of TP4 connects the emitter of TP3 and TP2.
The emitter of TP4 connects the emitter difference ground connection of voltage VCC, TN2, TN6, TN4.
IC1 pin 8 connects the base stage of TN9 through resistance R 5, and the collector of TN9 meets hummer SP, the grounded emitter of TN9, and SP meets voltage VCC.
IC1 pin 9 meets voltage detector IC4, IC4 and connects voltage VCC1 and ground connection, cross-over connection resistance R 15 between IC1 pin 9 and IC4 and the VCC1.
IC1 pin one 0,11,17,16,28,27,26,25,13,33 connects numeric keypad 9.
IC1 pin two 4 connects the base stage of TP1 through resistance R 22, and the emitter of TP1 meets voltage VCC1, and collector meets voltage VCC2.
IC1 pin two 1,22,23 is respectively through resistance R 30, R29, R28, R27, R26, R25 ground connection.
LCD LCD through socket J5-1-5-5 be connected on R30 and R29, R28 and R27,26 and R25 between, LCD is connected between resistance R 24 and ground and R23 and the power supply VCC2.
IC1 pin one 3,33,35,37 connects and draws resistance (5).
IC1 pin 37,39 meets counter switch JK1, the false proof switch JK2 of counting through socket J1-2, J1-3, and pin 39 meets voltage VCC1 through resistance R 21.
IC1 pin one 2,32,33,35,36,37,38,39 connects digital comparator IC2 pin 6,9,10,12,13,14,15,1.
IC2 pin 3 meets power supply VCC, pin 4,2 ground connection.
Direct supply (1) is through filtering and voltage stabilizing output voltage V CC and VCC1.
The circuit working principle:
Under the normal condition, CPU is in dormant state." code " key, " demonstration " key and counter switch and the false proof switch of counting can trigger CPU work.
" code " key triggers: after " code " key triggered CPU, Fig. 5 state appearred in LCD, and all numerical keys and " affirmation " keys such as " backspaces " are activated, can the input function code.In the input process, CPU control display constantly refreshes demonstration.As import correctly, after confirming, display shows related content (as: " depositing in " water yield etc.) shown in Figure 4; As importing wrongly, CPU re-enters by IC1 pin 8 control hummer SP alarms.
" demonstration " key triggers: after CPU was waken up, IC1 pin 24 powered on to LCD through the TP1 switch, by pin 21,22,23 display message was passed to display by CPU and showed.
Counter switch triggers: sensor for countering passes to CPU to count signal and handles, and to data storage, judgement after handling, and then control execution unit (driving circuit, alarm etc.) is carried out corresponding operating.
False proof switch triggering: user's illegal operation information is passed to CPU, and CPU does the information record, and control Driver Circuit is closed electrically operated valve.
Driving circuit: by 2,5,6 controls of IC1 pin, wherein pin 6 powers on by TN6, TP4 control Driver Circuit, pin 2 control TN2, TP3 power up to motor by XK1, and pin 5 control TN4, TP2 power up to motor by XK2, to realize valve opening or closing function respectively.Limit switch XK1, XK2 are respectively applied for and limit valve open and close position, put in place and then cut off being connected of motor and driving circuit.
Voltage comparator: when CPU is waken up, IC1 pin 1 provides a high potential signal, and comparator circuit is powered on, again the comparator circuit through being made up of stabilivolt etc., send normal voltage and actual samples voltage signal back to CPU by IC1 pin 3,4, differentiate by the CPU internal comparator.Be lower than normal voltage as sampled voltage, then " change battery " by display prompts, the prompting of control buzzer warning, and valve-off, otherwise carry out normal running, enter dormant state after finishing.
Digital comparator: be used for expanding CPU fracture (1 expands 4).When trigger pip arrives, relatively differentiate through IC2 earlier, satisfy condition (as A=B) then sends look-at-me by IC2 pin 6 to CPU, and CPU confirms to handle after the trigger pip by inquiry IC1 pin again.
Voltage detector: IC4 monitors whether CPU operating voltage VCC1 is normal, as unusually then providing a reset signal, forces cpu reset, to avoid the CPU faulty operation, can protect internal data effectively.
Under the normal condition, CPU is in dormant state, when code key triggers CPU, and the false proof switch triggering CPU work of counter switch and counting.Occur the C state after code is pressed, all numerical keys all are activated (can use), can input code, and through confirming, as correctly, display just shows related data, the entire circuit normal operating conditions is then reported to the police as input error.
Driving circuit: by IC1 pin 2,5,6 control Driver Circuit, wherein 3,5 controls 2 come control circuit to drive valve opening by TN2, TP3 control travel switch XK1.Pin 5 control TN4, TP2 are through travel switch XK2 control driven by motor valve closing.Pin 6 powers on by TN6, TP4 control.
Display key triggers: after display key triggered, CPU pin 24 powered up to display through the TP1 switch, by CPU pin 21,22,23 display message was passed to display.
Counter switch: count signal is handled to CPU, and the information storage after the processing is got up.
Voltage comparator: CPU gives signal of comparer earlier, and comparator circuit is powered on, and the comparator circuit through being made up of stabilivolt passes to CPU to signal again, if low, battery is changed in prompting, waits for down trigger next time if voltage is suitable.
Digital comparator: main rising expanded fracture (expanding 4) usefulness among the CPU.Trigger pip triggers IC2, and whether IC2 need trigger CPU after judging, just gives cpu signal as needs, and CPU inquires about the IC2 pin conversely again, handles after judging.
Whether voltage detector: IC4 surveys the CPU operating voltage normal, as be lower than the work rated voltage, gives reset signal of CPU, can effectively protect the data of CPU.

Claims (2)

1, a kind of code-type intelligence cold-water meter, it comprises flowmeter, electrically operated valve, sensor, electronic control circuit, numeric keypad, LCD, it is characterized in that:
I, electronic control circuit:
Power supply (4): dc-battery is through filtering output voltage V CC, and it is again through regulator block IC3 and filtering output voltage V CC1;
Voltage comparator (6): triode TN emitter connects triode TP base stage through resistance, resistance series connection stabilivolt again with the resistance parallel connection of connecting, 3,4 pins by IC1 connect the common comparator circuit (7) of forming with IC1 internal simulation comparer again, and comparator circuit connects the TP collector;
Driving circuit (8): the collector of 3 triode TN connects the base stage of 3 triode TP respectively behind resistance, and wherein the collector of 1 TP connects the emitter of 2 TP in addition;
Numeric keypad (9): comprise 1-9 button and " 0 " button and an acknowledgement key and a backspace key, also have " code " key, " demonstration " key;
The pin one of single-chip microcomputer IC1 connects the base stage of the triode TN of voltage comparator through resistance, and the pin two of IC1,5,6 connects the base stage of 3 triode TN of driving circuit respectively behind 3 resistance; The pin 3,4 of IC1 is connected on respectively between resistance in the comparator circuit and the stabilivolt and between resistance and the resistance; The pin 9 of IC1 meets voltage detector IC4; The pin one 0,11,13,16,17,25,26,27,28,33 of IC1 connects numeric keypad; The pin one 2,32,33,35,36,37,38,39 of IC1 connects the pin 6,9,10,12,13,14,15,1 of digital comparator IC2 respectively; The pin two 4 of IC1 meets triode TP through resistance; The pin two 1,22,23 of IC1 meets LCD LCD through resistance respectively; The pin one 3,33,35,37 of IC1 connects respectively and draws resistance; The pin 37,39 of IC1 meets counter switch JK1 respectively and counts false proof switch JK2; Motor M 1 connects the collector of the triode TP in the driving circuit respectively through limit switch XK1 and XK2; IC2 meets voltage VCC1; IC4 meets voltage VCC1; The pin 39 of IC1 meets voltage VCC1 through resistance.
2,, it is characterized in that IC1 is AVR series monolithic AT90S8515 according to the said water meter of claim 1; IC2 is 74HC85.
CN 03213079 2003-05-12 2003-05-12 Code type intelligent cold water meter Expired - Fee Related CN2638037Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03213079 CN2638037Y (en) 2003-05-12 2003-05-12 Code type intelligent cold water meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03213079 CN2638037Y (en) 2003-05-12 2003-05-12 Code type intelligent cold water meter

Publications (1)

Publication Number Publication Date
CN2638037Y true CN2638037Y (en) 2004-09-01

Family

ID=34289579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03213079 Expired - Fee Related CN2638037Y (en) 2003-05-12 2003-05-12 Code type intelligent cold water meter

Country Status (1)

Country Link
CN (1) CN2638037Y (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009065267A1 (en) * 2007-11-19 2009-05-28 Daohua Xu Intelligent automatic water purifier

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009065267A1 (en) * 2007-11-19 2009-05-28 Daohua Xu Intelligent automatic water purifier

Similar Documents

Publication Publication Date Title
CN105354466B (en) A kind of fingerprint identification method and mobile terminal
CN1554047A (en) Device and method for calculating the result of a modular exponentiation
Gurjar et al. VLSI implementation of adders for high speed ALU
CN1075224A (en) Produce and carry out the method for complicated operation process
CN1523807A (en) Optical out-of-band key distribution
CN1700637A (en) A novel elliptic curve password coprocessor
CN2638037Y (en) Code type intelligent cold water meter
CN1241352C (en) Encryption method for information in binary code
CN1900742A (en) Tritium surface pollution monitor
CN107612676A (en) Qi hyperchaos video encryption methods based on FPGA
CN101034986A (en) Method and system for securely using the intelligent secrete key device
CN101304312B (en) Ciphering unit being suitable for compacting instruction set processor
CN107423023A (en) A kind of 16 × 16 digit redundancy decimal multipliers
CN103020544B (en) Encryption and decryption method for shp line-surface graph layer data hierarchy
CN204759430U (en) Random cipher input device
CN117556437A (en) User access authority management and control method, system, device, equipment and storage medium
CN102214092A (en) Software development aided tool bag
Zhang et al. Agile innovation process model based on computer-aided patent knowledge mining and functional analogy
CN1199110C (en) Software protection method
CN2546849Y (en) Digital type pre-payment water or gas meter
CN1269046C (en) Information hidden encrypting/decrypting method and device based on virtual imaging
CN1405678A (en) Enciphering method for externally hung software of integrated circuit
CN206696924U (en) A kind of innovative double-safety coded lock
CN1605702A (en) Cipher input and recognition device for rotating disc type cipher lock
TWM448543U (en) ZigBee-based chaotic cipher lock

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee