Summary of the invention
The object of this invention is to provide a kind of real-time response and the Long-distance Control metering system of low-power consumption.
This Long-distance Control metering system provided by the invention, comprise intelligent wireless gauge table and hand-held intelligent terminal, 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, wireless awakening module is connected with the I/O port of processor by serial ports, for receiving extraneous rf wireless signal, wake radio-frequency communication module work up by processor module; Radio-frequency communication module is connected with the I/O port of processor module by serial ports, and this module also carries out radio communication by antenna and hand-held intelligent terminal, for communicating with hand-held intelligent terminal, and 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 is connected with the I/O port of terminal handler module by serial ports, carry out radio communication by antenna and intelligent wireless gauge table, for completing the data communication with intelligent wireless gauge table simultaneously; IC-card module for reading and writing is connected with the I/O port of terminal handler module by FPDP.
Described wireless awakening module comprises TPM transmitting chip, the N_WAKEUP pin that wakes up of this chip is connected with the P1.0 pin of MCU1 in described processor module, its data N_DATA pin is connected with the P1.1 pin of described MCU1, it resets RESET pin and is connected with the P1.2 pin of described MCU1, described replacement RESET pin is by resistance R14 ground connection, described public connection VSS pin ground connection, its induction coil COIL pin is connected after RC pi type filter by inductance L 1 and is connected with power Vcc, its chip operating voltage VDD pin is connected with power Vcc by RC pi type filter, electric capacity C1 is also connected between its induction coil COIL pin and chip operating voltage VDD pin, power supply VCC is by lithium battery ground connection, described RC pi type filter is by resistance R1, filter capacitor C2 and filter capacitor C3 forms.
Described radio-frequency communication module comprises radio frequency chip U3 and antenna, the data of radio frequency chip U3 export GDO2 pin and are connected with the P2.6 pin of MCU1 in described processor module, the data of this chip export GDO0 pin and are connected with the P2.4 pin of described MCU1, the clock sclk pin of this chip is connected with the P5.3 pin of described MCU1, the output SO pin of this chip is connected with the P5.2 pin of described MCU1, the input SI pin of this chip is connected with the P5.1 pin of described MCU1, the sheet of this chip selects CSn pin to be connected with the P5.0 pin of described MCU1, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin is all connected with antenna.
Described wireless communication module comprises radio frequency chip U9, antenna, USB control chip and 3G communication module, the data of radio frequency chip U9 export GDO2 pin and are connected with the P2.6 pin of MCU2 in described terminal handler module, the data of this chip export GDO0 pin and are connected with the P2.4 pin of described MCU2, the clock sclk pin of this chip is connected with the P5.3 pin of described MCU2, the output SO pin of this chip is connected with the P5.2 pin of described MCU2, the input SI pin of this chip is connected with the P5.1 pin of described MCU2, the sheet of this chip selects CSn pin to be connected with the P5.0 pin of described MCU2, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin is all connected with antenna, the clock SCL pin of USB control chip is connected with the P3.3 pin of described MCU2, the data SDA pin of this chip is connected with the P3.1 pin of described MCU2, the input SIN pin of this chip is connected with the P3.4 pin of described MCU2, the output SOUT pin of this chip is connected with the P3.5 pin of described MCU2, the replacement RESET pin of this chip is connected with the P3.0 pin of described MCU2, the clock of this chip exports CLKOUT pin and is connected with the XT2IN pin of described MCU2, and this chip is connected with 3G communication module by USB interface.
Described IC-card module for reading and writing comprises IC-card interface, the sheet of this interface selects CS pin to be connected with the P1.4 pin of MCU2 in described terminal handler module, the clock CLK pin of this interface is connected with the P1.5 pin of described MCU2, the data input DI pin of this interface is connected with the P1.6 pin of described MCU2, the data of this interface export DO pin and are connected with the P1.7 pin of described MCU2, power Vcc pin, NC pin are all connected with power Vcc with ORG pin, the P1.3 pin of described MCU2 is connected with power Vcc by K switch 1, the public connection Vss pin ground connection of this interface.
Compare with prior art, the wireless communication module of intelligent wireless gauge table of the present invention is only just activated when needs communication work, other mosts of the time are in sleep state, effectively save the power consumption of intelligent wireless gauge table, substantially prolongs the operating time of its battery, not only efficiently solve the problem of energy dissipation in prior art, also solve the problem of communication delay simultaneously; For grasping the service condition of the water, gas, heat energy etc. of user in time, and realize corresponding controlling functions, technical support is energetically provided; For major contribution is made in the low-power consumption of whole metering system and real-time high-efficiency aspect.
Embodiment
The present invention includes intelligent wireless gauge table and hand-held intelligent terminal.
As shown in Figure 1, 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.
Valve control module is connected with processor module; Valve control module is also connected with the valve of base table, controls the Push And Release of base table valve.Base table is connected with the input of data acquisition module by tongue tube, and the output of data acquisition module is connected with the I/O port of processor module.The DIO port of wireless awakening module is connected with the I/O port of process by serial ports.The serial line interface of radio-frequency communication module is connected with the I/O port of processor module by spi bus.Memory module is connected with the I/O port of processor module.Power module is responsible for above-mentioned all module for power supply.
Processor module is used for realizing data processing and logical operation.Data acquisition module, for gathering continuous data.Memory module, for the continuous data of storage of collected gained and the information of intelligent wireless gauge table and state parameter.Valve control module, for the instruction of receiving processor, controls conducting and the blocking-up of base table.Wireless awakening module, for receiving extraneous rf wireless signal, wake on wireless communication module works.Wireless communication module, for communicating with hand-held intelligent terminal, transmission data.Power module, for providing the energy needed for intelligent wireless gauge table, 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 is connected with the I/O port of terminal handler module by spi bus.IC-card module for reading and writing is connected with the I/O port of terminal handler module.The serial data port of wire communication module is connected with the I/O port of terminal handler module.Keysheet module is connected with the I/O port of terminal handler module by parallel in serial Output Shift Register.Display module is connected with the I/O port of terminal handler module.Power module is responsible for above-mentioned all module for power supply.
Terminal handler module, for completing data processing in hand-held intelligent terminal and logical operation.IC-card module for reading and writing, for completing operations such as the read-writes of IC-card.Wire communication module, for completing the data communication with remote computer.Wireless communication module, for completing and the data communication of intelligent wireless gauge table and the data communication with remote computer.Keysheet module, for receiving user instruction and being sent to terminal handler module, terminal handler module performs corresponding operating according to user instruction.Display module, for display user's information, gauge table information and other information.
Below the functional realiey of each module of intelligent wireless gauge table of the present invention is described further.
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 is connected with the I/O port of processor module by serial ports, wakes up for chip; The FPDP of this chip is connected with the I/O port of processor module by serial ports.
Wireless awakening module comprises TPM transmitting chip.The N_WAKEUP pin that wakes up of this chip is connected with the P1.0 pin of the MCU1 of this gauge table, the data N_DATA pin of this chip is connected with the P1.1 pin of this MCU1, it resets RESET pin and is connected with the P1.2 pin of this MCU1, this replacement RESET pin is by resistance R14 ground connection, the public connection VSS pin ground connection of this chip, its induction coil COIL pin is connected after RC pi type filter by inductance L 1 and is connected with power Vcc, its chip operating voltage VDD pin is connected with power Vcc by RC pi type filter, electric capacity C1 is also connected between its induction coil COIL pin and chip operating voltage VDD pin, power supply VCC is by lithium battery ground connection, this RC pi type filter is by resistance R1, filter capacitor C2 and filter capacitor C3 forms.
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 is connected with processor module by SPI interface, and its clock port is also connected with processor module by SPI interface; Antenna is connected with radio-frequency (RF) transceiver.
Radio-frequency communication module comprises radio frequency chip U3 and antenna, the data of radio frequency chip U3 export GDO2 pin and are connected with the P2.6 pin of MCU1 in described processor module, the data of this chip export GDO0 pin and are connected with the P2.4 pin of described MCU1, the clock sclk pin of this chip is connected with the P5.3 pin of described MCU1, the output SO pin of this chip is connected with the P5.2 pin of described MCU1, the input SI pin of this chip is connected with the P5.1 pin of described MCU1, the sheet of this chip selects CSn pin to be connected with the P5.0 pin of described MCU1, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin is all connected with antenna.
Radio frequency chip U3 can adopt model to be the radio frequency chip of CC2500 or CC2420.
The valve control module of intelligent wireless gauge table is connected with the valve of base table with connector J2 by connector J1; Its Valve controlling pin is all connected 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 is connected with the P3.0 pin of processor module MCU1, for transmitting valve complete shut-down control signal Cul_Motor_Close by resistance R2.1 pin of NPN triode Q6 is connected, for transmitting valve wide open control signal Cul_Motor_Open by the P3.1 pin of resistance R6 and MCU1.Be connected with 2 pin of connector J1 after 3 pin of PNP triode Q2 are connected with 3 pin of NPN triode Q4; Power supply connects POWER_L1 and is also connected with 2 pin of this connector J1.Be connected with 1 pin of connector J1 after 3 pin of NPN triode Q3 are connected with 3 pin of PNP triode Q5; Power supply connects POWER_L2 and is also connected with 1 pin of this connector J1.1 pin of connector J2 is connected with the P3.6 pin of MCU1, for transmitting closing valve control signal Motor_C.3 pin of this connector are connected with the P3.5 pin of MCU1, for transmitting valve opening gate control signal Motor_O.1 pin of this connector and 3 pin to be connected respectively after a resistance and are connect, then are connected with the P3.4 pin of MCU1, for transmitting sense enable signal EN_CHECK.
The data acquisition module of intelligent wireless gauge table is connected with base table by tongue tube; The impulsive measurement control port of this module and pulse verification port are all connected with the I/O port of MCU1.
Data acquisition module comprises hydraulic pressure interface S1, resistance R10 and resistance R11.3 pin of hydraulic pressure interface S1 are connected by the P4.0 pin of resistance R10 and MCU1, measure enable signal EN_M for transmitting.3 pin of this interface S1 are connected with the P4.1 pin of MCU1, for transmitting pulsed measuring signals measure_Pulse1.4 pin of this interface S1 are connected with the P1.5 pin of MCU1, verify pulsed measuring signals verify_Pulse2 for transmitting.4 pin of this interface S1 are connected by the P4.2 pin of resistance R11 and MCU1, verify enable signal EN_V for transmitting.
The memory module of intelligent wireless gauge table can adopt the FLASH memory of Samsung, and its model is K9F1G08U0M.
Below the functional realiey of each module of hand-held intelligent terminal of the present invention is described further.
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 of radio frequency chip U9 export GDO2 pin and are connected with the P2.6 pin of MCU2, the data of this chip export GDO0 pin and are connected with the P2.4 pin of MCU2, the clock sclk pin of this chip is connected with the P5.3 pin of MCU2, the output SO pin of this chip is connected with the P5.2 pin of MCU2, the input SI pin of this chip is connected with the P5.1 pin of MCU2, the sheet of this chip selects CSn pin to be connected with the P5.0 pin of MCU2, the negative RF signal RF_N pin of this chip, positive RF signal RF_P pin is all connected with antenna, the clock SCL pin of USB control chip is connected with the P3.3 pin of MCU2, the data SDA pin of this chip is connected with the P3.1 pin of MCU2, the input SIN pin of this chip is connected with the P3.4 pin of MCU2, the output SOUT pin of this chip is connected with the P3.5 pin of MCU2, the replacement RESET pin of this chip is connected with the P3.0 pin of MCU2, the clock of this chip exports CLKOUT pin and is connected with the XT2IN pin of MCU2, and this chip is connected with 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 and communicates, and this wireless communication module carries out uplink communication by 3G module and centralized meter-reading system.
Radio frequency chip U9 can adopt model to be the radio frequency chip of CC2500 or CC2420.
The IC-card module for reading and writing of hand-held intelligent terminal comprises IC-card interface U5, the sheet of this interface selects CS pin to be connected with the P1.4 pin of MCU2, the clock CLK pin of this interface is connected with the P1.5 pin of MCU2, the data input DI pin of this interface is connected with the P1.6 pin of MCU2, the data of this interface export DO pin and are connected with the P1.7 pin of MCU2, power Vcc pin, NC pin are all connected with power Vcc with ORG pin, the P1.3 pin of MCU2 is connected with power Vcc by K switch 1, the public connection Vss pin ground connection of this interface.
The wire communication module of hand-held intelligent terminal comprises network interface card U4.The P4 port of FPDP SD and the MCU2 of network interface card U4 is connected with P7 port; Its input and output are read IOR pin and are connected with the P8.3 pin of MCU2; Its input and output are write IOW pin and are connected with the P8.4 pin of MCU2; Its X1_25M pin connects 25MHz signal; Network interface card U4 is connected with 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.
The display module of hand-held intelligent terminal can adopt model to be the Liquid Crystal Module of LCM128645ZK.
The Keysheet module of hand-held intelligent terminal comprises keyboard and shift register, and keyboard is connected with MCU2 by shift register.
This shift register can adopt model to be the 8 parallel-by-bit incoming serial Output Shift Registers of 74HC165.
Intelligent wireless gauge table only completes collection and the storage operation of continuous data at ordinary times, and its wireless communication module is in sleep state.After user is given an order by hand-held intelligent terminal, the wireless communication module of hand-held intelligent terminal sends wireless signal, wireless awakening module in intelligent wireless gauge table receives wake on wireless communication module after this wireless signal, wireless communication module in wireless communication module in hand-held intelligent terminal and intelligent wireless gauge table is all in running order, therefore can realize the communication between hand-held intelligent terminal and intelligent wireless gauge table, complete the control to intelligent wireless gauge table by exchanges data.
The operating state of wireless communication module is by wireless awakening module activation, and after communication, the sleep state of wireless communication module is controlled by processor module.Because the wireless communication module in intelligent wireless gauge table only just activates work when needs communication, other mosts of the time are in sleep state, have saved power consumption, extend the operating time of battery.
Hand-held intelligent terminal, adopts Large Copacity chargeable lithium cell to power, if no user operation in certain hour in running, automatically enters holding state, can effectively reduce use power consumption.This terminal adopts the voltage detected on lithium battery to realize battery electric quantity and detects and display, and when battery electric quantity is not enough, prompting user charges in time, when battery electric quantity wretched insufficiency by good time automatic shutdown to protect battery; When carrying out shutting down or start shooting charging, can detect in real time battery temperature and electric current, if automatically stop charging in order to avoid work the mischief when there is battery excess temperature, over-current phenomenon avoidance immediately.
Hand-held intelligent terminal, wirelessly communicates with intelligent wireless gauge table, completing initialization to intelligent wireless gauge table, check meter, the remote operation such as switch valve.In addition, it can be used as intermediary, data and base table information is uploaded in remote computer system.