Summary of the invention
The Long-distance Control metering system that the purpose of this invention is to provide a kind of real-time response and low-power consumption.
This Long-distance Control metering system provided by the invention, comprise intelligent wireless gauge table and hand-held intelligent terminal, the intelligent wireless gauge table comprises base table, processor module, data acquisition module, memory module, valve control module, power module, wireless awakening module and radio-frequency communication module, the wireless awakening module links to each other with the I/O port of processor by serial ports, be used for receiving extraneous rf wireless signal, wake radio-frequency communication module work up by processor module; Radio-frequency communication module links to each other with the I/O port of processor module by serial ports, and this module is also carried out radio communication by antenna and hand-held intelligent terminal, is used for communicating with hand-held intelligent terminal the transmission data;
Hand-held intelligent terminal comprises terminal handler module, wire communication module, display module, Keysheet module, power module, wireless communication module and IC-card module for reading and writing, wireless communication module links to each other with the I/O port of terminal handler module by serial ports, carry out radio communication by antenna and intelligent wireless gauge table simultaneously, be used for finishing the data communication with the intelligent wireless gauge table; The IC-card module for reading and writing links to each other with the I/O port of terminal handler module by FPDP.
Described wireless awakening module comprises the TPM transmitting chip, the N_WAKEUP pin that wakes up of this chip links to each other with the P1.0 pin of MCU1 in the described processor module, its data N_DATA pin links to each other with the P1.1 pin of described MCU1, its replacement RESET pin links to each other with the P1.2 pin of described MCU1, described replacement RESET pin is by resistance R 14 ground connection, described public connection VSS pin ground connection, its induction coil COIL pin passes through to link to each other with power Vcc behind the inductance L 1 series connection RC pi type filter, its chip operating voltage VDD pin links to each other with power Vcc by the RC pi type filter, between its induction coil COIL pin and chip operating voltage VDD pin, also be connected to capacitor C 1, power supply VCC is by lithium battery ground connection, and described RC pi type filter is by resistance R 1, filter capacitor C2 and filter capacitor C3 form.
Described radio-frequency communication module comprises radio frequency chip U3 and antenna, the data output GDO2 pin of radio frequency chip U3 links to each other with the P2.6 pin of MCU1 in the described processor module, the data output GDO0 pin of this chip links to each other with the P2.4 pin of described MCU1, the clock sclk pin of this chip links to each other with the P5.3 pin of described MCU1, the output SO pin of this chip links to each other with the P5.2 pin of described MCU1, the input SI pin of this chip links to each other with the P5.1 pin of described MCU1, the sheet of this chip selects the CSn pin to link to each other with the P5.0 pin of described MCU1, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin all links to each other with antenna.
Described wireless communication module comprises radio frequency chip U9, antenna, USB control chip and 3G communication module, the data output GDO2 pin of radio frequency chip U9 links to each other with the P2.6 pin of MCU2 in the described terminal handler module, the data output GDO0 pin of this chip links to each other with the P2.4 pin of described MCU2, the clock sclk pin of this chip links to each other with the P5.3 pin of described MCU2, the output SO pin of this chip links to each other with the P5.2 pin of described MCU2, the input SI pin of this chip links to each other with the P5.1 pin of described MCU2, the sheet of this chip selects the CSn pin to link to each other with the P5.0 pin of described MCU2, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin all links to each other with antenna; The clock SCL pin of USB control chip links to each other with the P3.3 pin of described MCU2, the data SDA pin of this chip links to each other with the P3.1 pin of described MCU2, the input SIN pin of this chip links to each other with the P3.4 pin of described MCU2, the output SOUT pin of this chip links to each other with the P3.5 pin of described MCU2, the replacement RESET pin of this chip links to each other with the P3.0 pin of described MCU2, the clock output CLKOUT pin of this chip links to each other with the XT2IN pin of described MCU2, and this chip links to each other with the 3G communication module by USB interface.
Described IC-card module for reading and writing comprises the IC-card interface, the sheet of this interface selects the CS pin to link to each other with the P1.4 pin of MCU2 in the described terminal handler module, the clock CLK pin of this interface links to each other with the P1.5 pin of described MCU2, the data input DI pin of this interface links to each other with the P1.6 pin of described MCU2, the data output DO pin of this interface links to each other with the P1.7 pin of described MCU2, power Vcc pin, NC pin and ORG pin all link to each other with power Vcc, the P1.3 pin of described MCU2 links to each other the public connection Vss pin ground connection of this interface by K switch 1 with power Vcc.
Compare with prior art, the work that only in needs communication, just is activated of the wireless communication module of intelligent wireless gauge table of the present invention, other mosts of the time are in sleep state, saved the power consumption of intelligent wireless gauge table effectively, prolonged the operating time of its battery greatly, not only efficiently solve the problem of energy dissipation in the prior art, also solved the problem of communication delay simultaneously; Be the operating position of the water of in time grasping the user, gas, heat energy etc., and realize corresponding control function providing technical support energetically; For making major contribution in low-power consumption and the real-time high-efficiency aspect of whole metering system.
Embodiment
The present invention includes intelligent wireless gauge table and hand-held intelligent terminal.
As shown in Figure 1, the intelligent wireless gauge table comprises base table, processor module, wireless awakening module, data acquisition module, memory module, valve control module, radio-frequency communication module and power module.
The valve control module links to each other with processor module; The valve control module also links to each other with the valve of base table, the Push And Release of control base table valve.Base table links to each other with the input of data acquisition module by tongue tube, and the output of data acquisition module links to each other with the I/O port of processor module.The DIO port of wireless awakening module links to each other with the I/O port of processing by serial ports.The serial line interface of radio-frequency communication module links to each other with the I/O port of processor module by spi bus.Memory module links to each other with the I/O port of processor module.Power module is responsible for giving above-mentioned all module for power supply.
Processor module is used for realizing data processing and logical operation.Data acquisition module is used for gathering continuous data.Memory module is used for the continuous data of storage of collected gained and information and the state parameter of intelligent wireless gauge table.The valve control module is used for the instruction of receiving processor, conducting and the blocking-up of control base table.The wireless awakening module is used for receiving extraneous rf wireless signal, the work of wake on wireless communication module.Wireless communication module is used for communicating with hand-held intelligent terminal, the transmission data.Power module is used for providing the intelligent wireless gauge table the required energy, and voltage detecting and early warning.
As shown in Figure 2, hand-held intelligent terminal comprises terminal handler module, IC-card module for reading and writing, wireless communication module, wire communication module, display module, Keysheet module and power module.
The serial line interface of wireless communication module links to each other with the I/O port of terminal handler module by spi bus.The IC-card module for reading and writing links to each other with the I/O port of terminal handler module.The serial data port of wire communication module links to each other with the I/O port of terminal handler module.Keysheet module links to each other with the I/O port of terminal handler module by parallel input string line output shift register.Display module links to each other with the I/O port of terminal handler module.Power module is responsible for giving above-mentioned all module for power supply.
The terminal handler module is used for finishing data processing and the logical operation of hand-held intelligent terminal.The IC-card module for reading and writing is used for finishing the operations such as read-write to IC-card.Wire communication module is used for finishing the data communication with remote computer.Wireless communication module, be used for finishing with the data communication of intelligent wireless gauge table and with the data communication of remote computer.Keysheet module is used for receiving user instruction and being sent to the terminal handler module, and the terminal handler module is carried out corresponding operating according to user instruction.Display module is used for display user's information, gauge table information and other information.
Function to each module of intelligent wireless gauge table of the present invention realizes being described further below.
As shown in Figure 3, the processor module of intelligent wireless gauge table comprises MCU1.MCU1 can adopt the mixed-signal processor chip of Texas Instruments, and its model is MSP430F417.
The wireless awakening module of intelligent wireless gauge table comprises TPM transmitting chip U1, and the DIO port of this chip links to each other with the I/O port of processor module by serial ports, is used for chip and wakes up; The FPDP of this chip links to each other with the I/O port of processor module by serial ports.
The wireless awakening module comprises the TPM transmitting chip.The N_WAKEUP pin that wakes up of this chip links to each other with the P1.0 pin of the MCU1 of this gauge table, the data N_DATA pin of this chip links to each other with the P1.1 pin of this MCU1, its replacement RESET pin links to each other with the P1.2 pin of this MCU1, this replacement RESET pin is by resistance R 14 ground connection, the public connection VSS pin ground connection of this chip, its induction coil COIL pin passes through to link to each other with power Vcc behind the inductance L 1 series connection RC pi type filter, its chip operating voltage VDD pin links to each other with power Vcc by the RC pi type filter, between its induction coil COIL pin and chip operating voltage VDD pin, also be connected to capacitor C 1, power supply VCC is by lithium battery ground connection, and this RC pi type filter is by resistance R 1, filter capacitor C2 and filter capacitor C3 form.
Above-mentioned TPM transmitting chip can adopt the TPM transmitting chip of atmel corp, and its model is ATA5238 or ATA5276.
The radio-frequency communication module of intelligent wireless gauge table comprises radio frequency chip U3 and antenna.The FPDP of radio frequency chip U3 links to each other with processor module by the SPI interface, and its clock port also links to each other with processor module by the SPI interface; Antenna links to each other with radio-frequency (RF) transceiver.
Radio-frequency communication module comprises radio frequency chip U3 and antenna, the data output GDO2 pin of radio frequency chip U3 links to each other with the P2.6 pin of MCU1 in the described processor module, the data output GDO0 pin of this chip links to each other with the P2.4 pin of described MCU1, the clock sclk pin of this chip links to each other with the P5.3 pin of described MCU1, the output SO pin of this chip links to each other with the P5.2 pin of described MCU1, the input SI pin of this chip links to each other with the P5.1 pin of described MCU1, the sheet of this chip selects the CSn pin to link to each other with the P5.0 pin of described MCU1, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin all links to each other with antenna.
It is the radio frequency chip of CC2500 or CC2420 that radio frequency chip U3 can adopt model.
The valve control module of intelligent wireless gauge table links to each other with the valve of base table with connector J2 by connector J1; Its valve control pin all links to each other with the I/O port of the MCU1 of processor module.
This valve control module comprises NPN triode Q1, PNP triode Q2, NPN triode Q3, NPN triode Q4, PNP triode Q5, NPN triode Q6, connector J1 and connector J2.1 pin of this triode Q1 links to each other with the P3.0 pin of processor module MCU1 by resistance R 2, is used for transmitting valve complete shut-down control signal Cul_Motor_Close.1 pin of NPN triode Q6 links to each other with the P3.1 pin of MCU1 by resistance R 6, is used for transmitting valve wide open control signal Cul_Motor_Open.After linking to each other with 3 pin of NPN triode Q4,3 pin of PNP triode Q2 link to each other with 2 pin of connector J1; Power supply connects POWER_L1 and also links to each other with 2 pin of this connector J1.After linking to each other with 3 pin of PNP triode Q5,3 pin of NPN triode Q3 link to each other with 1 pin of connector J1; Power supply connects POWER_L2 and also links to each other with 1 pin of this connector J1.1 pin of connector J2 links to each other with the P3.6 pin of MCU1, is used for transmitting closing valve control signal Motor_C.3 pin of this connector link to each other with the P3.5 pin of MCU1, are used for transmitting opening valve control signal Motor_O.1 pin of this connector and 3 pin are connected behind the resistance respectively and are connect, and link to each other with the P3.4 pin of MCU1 again, are used for transmitting sense enable signal EN_CHECK.
The data acquisition module of intelligent wireless gauge table links to each other with base table by tongue tube; The impulsive measurement control port of this module and pulse verification port all link to each other with the I/O port of MCU1.
Data acquisition module comprises hydraulic pressure interface S1, resistance R 10 and resistance R 11.3 pin of hydraulic pressure interface S1 link to each other with the P4.0 pin of MCU1 by resistance R 10, are used for transmitting measurement enable signal EN_M.3 pin of this interface S1 link to each other with the P4.1 pin of MCU1, are used for transmitting impulsive measurement signal measure_Pulse1.4 pin of this interface S1 link to each other with the P1.5 pin of MCU1, are used for transmitting verification impulsive measurement signal verify_Pulse2.4 pin of this interface S1 link to each other with the P4.2 pin of MCU1 by resistance R 11, are used for transmitting verification enable signal EN_V.
The memory module of intelligent wireless gauge table can adopt the FLASH memory of Samsung, and its model is K9F1G08U0M.
Function to each module of hand-held intelligent terminal of the present invention realizes being described further below.
As shown in Figure 4, the terminal handler module of hand-held intelligent terminal comprises MCU2.MCU2 can adopt the mixed-signal processor chip of Texas Instruments, and its model is MSP430F417.
The wireless communication module of hand-held intelligent terminal comprises radio frequency chip U9, antenna, USB control chip and 3G communication module, the data output GDO2 pin of radio frequency chip U9 links to each other with the P2.6 pin of MCU2, the data output GDO0 pin of this chip links to each other with the P2.4 pin of MCU2, the clock sclk pin of this chip links to each other with the P5.3 pin of MCU2, the output SO pin of this chip links to each other with the P5.2 pin of MCU2, the input SI pin of this chip links to each other with the P5.1 pin of MCU2, the sheet of this chip selects the CSn pin to link to each other with the P5.0 pin of MCU2, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin all links to each other with antenna; The clock SCL pin of USB control chip links to each other with the P3.3 pin of MCU2, the data SDA pin of this chip links to each other with the P3.1 pin of MCU2, the input SIN pin of this chip links to each other with the P3.4 pin of MCU2, the output SOUT pin of this chip links to each other with the P3.5 pin of MCU2, the replacement RESET pin of this chip links to each other with the P3.0 pin of MCU2, the clock output CLKOUT pin of this chip links to each other with the XT2IN pin of MCU2, and this chip links to each other with the 3G communication module by USB interface.
The wireless communication module of hand-held intelligent terminal carries out downlink communication by radio frequency chip and intelligent wireless gauge table communicates by letter, and this wireless communication module carries out uplink communication by 3G module and centralized meter-reading system.
It is the radio frequency chip of CC2500 or CC2420 that radio frequency chip U9 can adopt model.
The IC-card module for reading and writing of hand-held intelligent terminal comprises IC-card interface U5, the sheet of this interface selects the CS pin to link to each other with the P1.4 pin of MCU2, the clock CLK pin of this interface links to each other with the P1.5 pin of MCU2, the data input DI pin of this interface links to each other with the P1.6 pin of MCU2, the data output DO pin of this interface links to each other with the P1.7 pin of MCU2, power Vcc pin, NC pin and ORG pin all link to each other with power Vcc, the P1.3 pin of MCU2 links to each other the public connection Vss pin ground connection of this interface by K switch 1 with power Vcc.
The wire communication module of hand-held intelligent terminal comprises network interface card U4.The FPDP SD of network interface card U4 links to each other with the P7 port with the P4 port of MCU2; Its input and output are read the IOR pin and are linked to each other with the P8.3 pin of MCU2; Its input and output are write the IOW pin and are linked to each other with the P8.4 pin of MCU2; Its X1_25M pin connects the 25MHz signal; Network interface card U4 links to each other with the RJ-45 interface by isolating transformer.
This network interface card U4 can adopt single-chip Fast Ethernet mac controller, and its model is DM9000.
The memory module of hand-held intelligent terminal can adopt the FLASH memory of Samsung, and its model is K9F1G08U0M.
It is the Liquid Crystal Module of LCM128645ZK that the display module of hand-held intelligent terminal can adopt model.
The Keysheet module of hand-held intelligent terminal comprises keyboard and shift register, and keyboard links to each other with MCU2 by shift register.
It is the 8 parallel-by-bit input string line output shift registers of 74HC165 that this shift register can adopt model.
The intelligent wireless gauge table is only finished collection and the storage operation of continuous data at ordinary times, and its wireless communication module is in sleep state.After the user gives an order by hand-held intelligent terminal, the wireless communication module of hand-held intelligent terminal sends wireless signal, wireless awakening module in the intelligent wireless gauge table receives wake on wireless communication module behind this wireless signal, wireless communication module in wireless communication module in the hand-held intelligent terminal and the intelligent wireless gauge table is all in running order, therefore can realize communicating by letter between hand-held intelligent terminal and the intelligent wireless gauge table, finish control to the intelligent wireless gauge table by exchanges data.
The operating state of wireless communication module is activated by the wireless awakening module, and after communication finished, the sleep state of wireless communication module was controlled by processor module.Because the wireless communication module in the intelligent wireless gauge table only just activates work in needs communication, other mosts of the time are in sleep state, have saved power consumption, have prolonged the operating time of battery.
Hand-held intelligent terminal adopts big capacity chargeable lithium cell power supply, if the no user operation then enters holding state automatically in the certain hour, can effectively reduce the use power consumption in the running.This terminal adopts the voltage that detects on lithium battery to realize that battery electric quantity detects and shows that the prompting user in time charges when battery electric quantity is not enough, will be in good time when the battery electric quantity wretched insufficiency automatically shutdown with protection battery useful life; When shutting down or starting shooting charging, can detect in real time battery temperature and electric current, stop charging immediately automatically in order to avoid work the mischief during as if generation battery excess temperature, over-current phenomenon avoidance.
Hand-held intelligent terminal communicates by wireless mode and intelligent wireless gauge table, with finish initialization to the intelligent wireless gauge table, check meter, remote operation such as switch valve.In addition, it can be used as intermediary, and data and base table information are uploaded in the remote computer system.