Digital checking meter by directly reading device based on the BUS bus
One, technical field: the utility model relates to a kind of meter-copy device, particularly relates to the digital checking meter by directly reading device in a kind of remote auto meter reading system that is mainly used in civilian water, electricity, gas isopulse gauging table meter.
Two, background technology: the umber of pulse of former general gauging table meter of remote meter reading device, because detect, transmission line is longer, make it be vulnerable to external interference, cause and remote meter reading value and the inconsistent situation of on-the-spot window value often occur, cause the user that the accuracy and the reliability of remote meter reading data are thrown doubt upon, conflict between the supvr of even the both sides that cause the supply and demand of commodities---economic interests opposition and the consumer, be unfavorable for concentrated charge of industry and use and management.Some remote meter reading devices of Chu Xianing afterwards, some is by adopting wireless or the wire communication network carries out data transmission, because the circuit more complicated, cost is higher, causes it to be not easy to promote; Occur some more afterwards and contained telemetering meter reading device just like RS485 bus, RS232 bus interface, because circuit structure is simple, cost is low, implement easily and be subjected to user and gerentocratic welcome, but the shortcoming that this class technology exists, be exactly that the power supply of data transmission and meter-copy device needs two line conductors, it is traditional four-wire system connected mode, increase construction wiring difficulty and installation cost in the application, the classification that also needs during use to distinguish lead is connected with polarity is corresponding, increase Operating Complexity, it is inconvenient to use.
A kind of network controlled that discloses Chinese invention patent: patent No. ZL 03112614.6 (Granted publication CN1238823C) open circuit the ammeter ' s reading meter device and the power unit network terminal: the network controlled ammeter ' s reading meter device that opens circuit: be provided with the CPU microprocessor, this processor is connected with network by modulator-demodular unit, also be provided with the interface of count pulse induction type machinery ammeter or full electronic ammeter, interface is connected with CPU by the count pulse shaping circuit, also be connected with data-carrier store on the CPU, power circuit is provided with the electric current mutual inductance transducer, the dropout switch of the ionic switch and the circuit of cutting off the electricity supply, CPU is through optoisolator spare, controllable silicon, solenoid is connected with the dropout switch.The present invention can adapt to the ammeter of all size standard of generally using now, and it is low to promote cost.The design can realize prepaid ammeter automatic data logging, the control of user's isolating switch, the examination of the end instrument case system failure etc. by the CEBus network.Do not solve the problem of above-mentioned existence.
Three, utility model content:
The purpose of this utility model is: at the deficiency of the present meter-copy device existence of background technology, a kind of digital checking meter by directly reading device based on the BUS bus is proposed, can with the supporting use of existing pulse measurement utensil, perhaps with the integrated design of on-the-spot pulse detection table meter, the window value that the umber of pulse of the scene being examined by plug-in is converted into the table meter is stored and is uploaded, effectively avoided external interference, it is consistent with the on-the-spot window value of table meter to reach remote meter reading numerical value.
The technical solution adopted in the utility model:
A kind of digital checking meter by directly reading device based on the BUS bus, contain the pulse collection input interface that is connected with on-the-spot detection pulse meter pulse output interface, described meter-copy device or detect the pulse meter integrated design with the scene, the window value of utilizing the inner setting program that the detected pulse meter in scene output umber of pulse is converted into the table meter is stored and is uploaded, described meter-copy device comprises host CPU module and BUS bus communication/power module, the I/O input interface of host CPU module CPU connects the pulse input end of pulse collection input interface, described BUS bus communication/power module is inner to be connected with CPU by corresponding serial communication interface, its bus data input/output interface connects the external communication bus, utilize the BUS bus communication technology to realize the power supply and the communication of meter-copy devices, described bus data IO interface or connect with the nonpolarity of external communication bus by preposition electric bridge realization meter-copy device by two common wirings.
Described digital checking meter by directly reading device CPU can adopt the erasable cpu chip of PIC16F648 dual inline type, described BUS bus communication/power module can adopt integrated circuit (IC) chip CMT001 or TSS721, the grounding leg of CPU connects power supply ground, power supply connects power supply VCC, the I/O input interface of CPU connects the pulse input end RB0 of pulse collection input interface, the MCLR of CPU, PGC, PGD connects the program voltage input end of DLL (dynamic link library) respectively, Mbus input end and programming data input end, the external clock interface of CPU connect the X1 end of crystal oscillator respectively, the X2 end; The corresponding serial communication interface that connects CPU of the serial communication interface of bus communication power module CMT001 or TSS721, the communication interface RXD of CMT001 or TSS721 connects power supply VCC by pull-up resistor R7, the be connected in parallel direct current output plus terminal of preposition electric bridge of two bus interface of CMT001 or TSS721, two ac input ends of preposition electric bridge connect the two-wire system external bus, the direct current output negativing ending grounding of preposition electric bridge, the direct current output plus terminal of preposition electric bridge is connected the power supply input pin of CMT001 or TSS721 simultaneously with resistance by diode, and by chip energy storage filter capacitor ground connection.
Described CPU also can adopt any one single-chip microcomputer of 8 of MICROCHIIP series; Perhaps adopt the AT80C2051 of 51 series that atmel corp produces and the ATmega48 of AVR series; And the compatible single-chip microcomputer of the P87LPC761 of the LPC700 of PHILIPS company series; 16 single-chip microcomputers of MSP430F147 series of the MC68HC16 of CPU or employing Motorola Inc. or TI company.
Described digital checking meter by directly reading device, BUS bus communication/power module wherein is connected with the reserve working power, the I/O input interface of host CPU module CPU connects working power voltage and detects input end RA1, realizes meter-copy device battery-powered metering under sleep state; Described CPU can connect the LCD display module by the interface card that its corresponding I/O interface connects.
Described digital checking meter by directly reading device, for realizing arrearage forbidding and remote control function, be provided with valve or switch control output module, it is the master control device that valve or switch control output module adopt bidirectional triode thyristor BT136, realize the strong and weak electricity isolation by optocoupler 3021, optocoupler 3021 power inputs connect power supply, its control input end connects the I/O output interface of host CPU module CPU, the output terminal control linkage bidirectional triode thyristor of optocoupler 3021, the working power of the output terminal control linkage user's valve of described bidirectional triode thyristor or the control coil of automatic control switch.
Positive beneficial effect of the present utility model:
1, the utility model numeral checking meter by directly reading device, by processor window value that pulse meter output umber of pulse is converted into the table meter being detected at the scene stores and uploads by the BUS bus, avoided original because the long extraneous factor that causes of transmission line is disturbed, improved the accuracy and the reliability of metering.The output signal of on-the-spot pulsimeter scale meter inserts the utility model meter-copy device, pulse by meter-copy device plug-in paired pulses gauging table meter is by the calculation of parameter of setting and the window value of storage table, and, be applicable to the remote concentrated ammeter reading of various water, electricity, gas isopulse gauging table meters by the transmission of BUS bus realization teledata.
2, the utility model numeral checking meter by directly reading device, utilize the BUS bus communication technology to realize power supply and communication function simultaneously to digital checking meter by directly reading device by two common wirings, and nonpolarity connection has improved the power supply and the communication of RS485 mode bus greatly and has carried out the restriction that polarity connects by two pairs of electric wires.
3, the utility model numeral checking meter by directly reading device is provided with additional control function: realized arrearage forbidding and working service function by valve or switch control output module; Be provided with standby power supply, make meter-copy device have low-power consumption sleep and communication arousal function: when not needing to upload data, system is in sleep state automatically, battery-powered realization pulse detection function of measuring under the sleep pattern, paired pulses measures and stores, and transfers normal operation mode when detecting host computer and send signal automatically to.
Four, description of drawings:
Fig. 1: the utility model numeral checking meter by directly reading device host CPU modular circuit principle schematic
Fig. 2: the utility model numeral checking meter by directly reading device bus communication power module and reserve battery circuit theory synoptic diagram
Fig. 3: the utility model numeral checking meter by directly reading device valve or switch control output module circuit theory synoptic diagram
Fig. 4: the utility model numeral checking meter by directly reading device pulse collection and DLL (dynamic link library) modular circuit principle schematic
Fig. 5: the utility model numeral checking meter by directly reading device structure block diagram
Five, embodiment:
Embodiment one: referring to Fig. 5, be the utility model numeral checking meter by directly reading device structure block diagram.The utility model is based on the digital checking meter by directly reading device of BUS bus, contain host CPU module and BUS bus communication/power module, the I/O input interface of host CPU module CPU connects the on-the-spot pulse meter meter pulse signal output end that detects, the MCLR of described CPU, PGC, the PGD interface connects the program voltage input end of DLL (dynamic link library) respectively, Mbus input end and programming data input end, BUS bus communication/power module is inner to be connected with CPU by corresponding serial communication interface, its bus data IO interface connects the external communication bus, utilize the BUS bus communication technology to realize the power supply and the communication of meter-copy devices, described bus data IO interface or connect with the nonpolarity of external communication bus by preposition electric bridge realization meter-copy device by two common wirings.The utility model meter-copy device can with the supporting use of existing pulse measurement utensil, perhaps with the integrated design of on-the-spot pulse detection table meter, utilize the inner setting program that window value that pulse meter output umber of pulse is converted into the table meter is detected at the scene and store and upload.
The described digital checking meter by directly reading implement body circuit structure of present embodiment is referring to Fig. 1, Fig. 2, Fig. 4, CPU adopts the erasable cpu chip of PIC16F648 dual inline type, BUS bus communication power module adopts integrated circuit (IC) chip CMT001 or TSS721, the 5th pin of CPU connects power supply ground, the 14th pin connects power supply VCC, the 6th pin of CPU connects the pulse input end RB0 of pulse collection input interface, the 4th, 12,13 pin connect the program voltage input end of DLL (dynamic link library) respectively, Mbus input end and programming data input end, the 15th of CPU, 16 pin connect the X1 end of crystal oscillator respectively, X2 holds (may be selected to be external clock), among Fig. 1, C2 is a decoupling capacitance; C8, C9 are the crystal oscillator matching capacitance; R8, R9 are divider resistances; R14, R15 are current-limiting resistances, prevent from that crystal oscillator from crossing to shake; The corresponding I/O interface of described CPU can connect the LCD display module by LCD display module interface card.
Communication function is to be that the C_MBUS communication module that core is formed is realized with CMT001 or TSS721 communication chip, and provide the host CPU working power, the reception RXD/ of bus communication power module CMT001 or TSS721 sends TXD data pin corresponding reception RXD/ transmission TXD pin direct respectively and host CPU and links, the communication interface RXD of CMT001 or TSS721 connects power supply VCC by pull-up resistor R7 simultaneously, be defaulted as BUS dual power supply pattern under the normal condition, the be connected in parallel direct current output plus terminal of preposition electric bridge of two bus interface of CMT001 or TSS721, two ac input ends of preposition electric bridge connect the two-wire system external bus, the direct current output negativing ending grounding of preposition electric bridge, the direct current output plus terminal of preposition electric bridge is connected the power supply input pin of CMT001 or TSS721 simultaneously with resistance by diode, and by chip energy storage filter capacitor ground connection.The bus communication power module is connected with the reserve working power, I/O input interface of CPU connects CMT001 or TSS721 output power supply voltage detecting input end RA1, and when CMT001 or TSS721 stopped power supply, meter-copy device was in sleep state, power consumption is very low, battery-powered metering this moment.Among Fig. 2, R1, R2, R3 are the communication protective resistance, and D7 is the protection diode, D1, and D2 and BT1 form back-up source, and C1, C3 are decoupling capacitances, and C15, C16 are power filtering capacitors.In the pulse collection of Fig. 3 and the DLL (dynamic link library) circuit, draw or pull-down circuit on J3 and R5 composition are selectable, J2 is the pulse collection input interface; J5 is the serial programming interface, and R6 is a protective resistance.Wherein CPU can adopt 8 or 16 s' single-chip microcomputer, and for example 8 single-chip microcomputers also can adopt MICROCHIIP company series; Perhaps adopt the AT80C2051 of atmel corp's 51 series and the ATmega48 of AVR series; And the compatible single-chip microcomputers such as P87LPC761 of the LPC700 of PHILIPS company series; Any one 16 single-chip microcomputers of MSP430F147 series that MC68HC16 that CPU or employing Motorola Inc. produce or TI company produce.
Embodiment two: referring to Fig. 5, Fig. 1~4, present embodiment numeral checking meter by directly reading device, different with embodiment one is: be to realize arrearage forbidding and remote control function, be provided with valve or switch control output module, it is the master control device that valve or switch control output module adopt controllable silicon BT136, realize the strong and weak electricity isolation by optocoupler 3021, optocoupler 3021 power inputs connect power supply, its control input end connects the I/O output terminal of host CPU module CPU, the output terminal control linkage bidirectional triode thyristor of optocoupler 3021, the working power of the output terminal control linkage user's valve of bidirectional triode thyristor or the control coil of automatic control switch.When being water or combustion gas, heating installation metering, closing water supply or supply combustion gas, heating installation valve by control circuit; When connecting pulse electricity meter metering electric weight, can realize arrearage forbidding and remote control function by the cut-out battery main switch of registering one's residence.Among Fig. 3, R10, R11, R12 are current-limiting resistance, and the RA3 of valve control output module connects the 2nd pin of host CPU, lead when the 2nd pin of host CPU and put when low optocoupler conducting, BT136 conducting; When the 2nd pin of host CPU is put when high not conducting of optocoupler, not conducting of BT136,1,2 pin of OUT, IN corresponding plug.