The utility model content
For the deficiency that exists on the prior art, the utility model purpose is to be to provide a kind of low-power consumption greenery patches Soil Moisture Monitoring network gateway based on ZigBee, has good flexibility, extensibility, the ability of self-organizing network, input cost is low, monitoring range is wide, and has extremely low power consumption.
To achieve these goals, the utility model is to realize by the following technical solutions:
A kind of low-power consumption greenery patches Soil Moisture Monitoring network gateway based on ZigBee, it is characterized in that, it comprises the gateway circuit base plate, is arranged on GPRS wireless communication module, data memory module, power management module and ZigBee radio-frequency (RF) transceiver module on the gateway circuit base plate; Described ZigBee radio-frequency (RF) transceiver module is by the ZigBee wireless sensor network and carry out the transmitting-receiving of wireless data, and carries out communication by asynchronous serial port module and GPRS wireless communication module; Be provided with for the photovoltaic cell interface that connects external dc power at described gateway circuit base plate, described photovoltaic cell interface connects power management module, described data memory module and power management module all are connected with the GPRS wireless communication module, described power management module also connects described ZigBee radio-frequency (RF) transceiver module, give ZigBee radio-frequency (RF) transceiver module, data memory module power supply on GPRS wireless communication module power supply and the backplane circuit, and the mains switch of GPRS wireless communication module and data storage is subject to the I/O control of ZigBee radio-frequency (RF) transceiver module.Described power management module is controlled by wireless radiofrequency transceiver module and GPRS wireless communication module, comes the power supply of other modules of switch.
Described ZigBee radio-frequency (RF) transceiver module comprises ZigBee processor, antenna circuit and filter circuit, described antenna circuit all is connected with the ZigBee processor with filter circuit, described ZigBee processor adopting be CC2530 online programmable chip, this CC2530 online programmable chip also is connected with the resonance crystal oscillating circuit.
Described power management module comprises photovoltaic module and low noise linear voltage regulator, the low noise linear voltage regulator comprises for the first low noise linear voltage regulator that ZigBee radio-frequency (RF) transceiver module is powered with for the second low noise linear voltage regulator to GPRS wireless communication module and data memory module power supply, described photovoltaic module output connects respectively the input of the first low noise linear voltage regulator and the second low noise linear voltage regulator, described ZigBee radio-frequency (RF) transceiver module connects described the second low noise linear voltage regulator, and the output of described the second low noise linear voltage regulator connects respectively the input of GPRS wireless communication module.
Described photovoltaic module connects the photovoltaic cell interface, and described DC power supply voltage is 3.7-4.2V, and described DC power supply is solar energy photovoltaic panel or lithium battery group.
What described the first low noise linear voltage regulator and the second low noise linear voltage regulator all adopted is MIC5205 low noise linear voltage regulator, described MIC5205 low noise linear voltage regulator is provided with the power input pin, the ground wire pin, device enables input pin, bypass low reference pin and stabilized voltage power supply output pin, described power input pin is connected the output that input pin all connects photovoltaic module with device, also be connected with a shunt capacitance C1 between the output of described power input pin and photovoltaic module, the function of this electric capacity is the indigenous energy memory as device.Described ground wire pin links to each other with the GND of whole gateway circuit base plate piece.
In order further to reduce noise, also be connected with a decoupling capacitor at described stabilized voltage power supply output pin; The output voltage of described stabilized voltage power supply output pin is 3.3V.
The utility model is applied to the ZigBee wireless sensor network in the Soil Moisture Monitoring system of urban green space, wireless data transmission technology is applied in the monitoring of greenery patches soil moisture content, ageing and the accuracy of greenery patches soil moisture content data successfully just, the monitoring personnel also need not to carry the mobile moisture in the soil equipment collection of being in the action of surveying; And the expansion of wireless network do not need to carry out a large amount of wirings and hardware installation work, only need lay in place wireless communication node and get final product.And the environmental information by various transducer Real-time Collections greenery patches, by embedded system it is processed, in the multi-hop relay mode communication is arrived the outer safety monitoring center of well by ad hoc deployed wireless networks, can remedy the defective of wireline equipment, have inexpensive, portable, safety, reliability high, be easy to the advantages such as expansion.
Embodiment
For technological means, creation characteristic that the utility model is realized, reach purpose and effect is easy to understand, below in conjunction with embodiment, further set forth the utility model.
Referring to Fig. 1, the utility model the greenery patches Soil Moisture Monitoring network webmaster based on the ZigBee wireless sensor network, have good flexibility, extensibility, the ability of self-organizing network, and have extremely low power consumption.The present networks gateway can be set up a flexibly ZigBee wireless network, and can be with year 250 child nodes, comprises sensor node and router node.This network gateway has been made improvement for the existing deficiency of ZigBee gateway on transfer of data; Existing ZigBee gateway generally adopts RS232 or CAN bus mode to the server the transmission of data, and this ZigBee wireless sensor network is mainly used in the urban green space, be not suitable for adopting wired mode to connect, so this gateway adopt wireless mode to report data to the host computer server.This network gateway has the GPRS communication function by the GPRS wireless communication module, and the data that sensor node and router node can be reported send on the server of wide area network by GPRS network through after gathering.
Referring to Fig. 1, a kind of low-power consumption greenery patches Soil Moisture Monitoring network gateway based on ZigBee that the utility model provides, it comprises the gateway circuit base plate, is arranged on GPRS wireless communication module, data memory module, power management module and ZigBee radio-frequency (RF) transceiver module on the gateway circuit base plate; Described ZigBee radio-frequency (RF) transceiver module is by the ZigBee wireless sensor network and carry out the transmitting-receiving of wireless data, and carries out communication by asynchronous serial port module and GPRS wireless communication module; Be provided with for the photovoltaic cell interface that connects external dc power at described gateway circuit base plate, described photovoltaic cell interface connects power management module, described data memory module and power management module all are connected with the GPRS wireless communication module, described power management module also connects described ZigBee radio-frequency (RF) transceiver module, give ZigBee radio-frequency (RF) transceiver module, data memory module power supply on GPRS wireless communication module power supply and the backplane circuit, and the mains switch of GPRS wireless communication module and data storage is subject to the I/O control of ZigBee radio-frequency (RF) transceiver module.Described power management module is controlled by wireless radiofrequency transceiver module and GPRS wireless communication module, comes the power supply of other modules of switch.
This GPRS wireless communication technology can both realize connecting at any time and any place quickly and easily, and it has following advantage:
(1) high speed data transfer: fast 10 times than GSM of the speed of GPRS network, can also stably transmit jumbo high quality audio and video file.
(2) always online: as almost to need not any time (namely need not to establish call connection for the access of every secondary data) owing to setting up new connection, thereby all can keep in touch with network at any time.
(3) only by the data traffic charging: namely come charging according to the data volume of transmission, always online, also need not to pay.
What the utility model was realized is a kind of wireless sensor network gateway based on the ZigBee wireless communication technology, take the ZigBee radio-frequency receiving-transmitting as the basis, this ZigBee radio-frequency (RF) transceiver module has the function of setting up ZigBee-network, and cooperation GPRS wireless communication module, make node itself can add the ZigBee wireless sensor network and carry out the transmitting-receiving of wireless data, and carry out communication by asynchronous serial port module and GPRS wireless communication module, data in ZigBee the territory net are sent in the wide area network, solved the problem of low-power consumption.Network gateway of the present utility model adopts the modularization separate design, and different modules according to separately design of function, is about to the hardware circuit design of disparate modules on different pcb boards.The present embodiment need to have the ZigBee radio communication function, thereby, need to possess antenna and bandwidth-limited circuit thereof, the Zigbee protocol stack need to run on to have on the single-chip microcomputer that adapts to the ZigBee characteristic, therefore the present embodiment is with antenna circuit, the integrated independent circuit module of filter circuit and ZigBee processor module, with it called after ZigBee radio-frequency (RF) transceiver module (referring to Fig. 2), described antenna circuit all is connected with the ZigBee processor with filter circuit, this ZigBee radio-frequency (RF) transceiver module has the ability of independent operating, namely this module can be set up a ZigBee-network, is not subjected to the restriction of other modules.
In utility model, also the important pin of ZigBee processor in this module must be drawn as interface, for example DEBUG emulator interface, universal input/output interface and asynchronous serial communication interface.In actual design, adopt the ZigBee type of a comparative maturity of TI company release to adapt to chip CC2530 online programmable chip, this chip internal is except possessing ZigBee radio-frequency receiving-transmitting function, 8051 core microprocessors that also possess an enhancement mode, it has 3 different memory headrooms can directly pass through bus access, be respectively specified register space (SFR), data space (DATA) and static random memory space (SRAM), can move ZigBee PRO protocol stack fully.
In addition, CC2530 online programmable chip also comprises a debugging interface and 18 tunnel outside input interrupt locations.It also comprises a debugging interface and 18 tunnel outside input interrupt locations; Its interrupt control unit can be 18 interrupt source services, and wherein being divided into is 6 groups of interruptions, and each interrupt source can be distributed 1 in 4 priority.The memory arbitration circuit of this CC2530 online programmable chip is the core of whole system, and it is connecting CPU by the physical memory space and is being connected with DMA and connects other peripheral modules by the SFR register.The 8KB static state of this CC2530 online programmable chip immediately storage space S RAM has been shone upon the external data space of whole data space and part, this SRAM is a kind of space of super low-power consumption, even it still can keep and being connected of other modules behind the power-off of numerical portion.
The CC2530 online programmable chip of the present embodiment also has the flash memory space of the highest 256KB, and it can provide the programmable nonvolatile internal memory that powers on, and can be mapped enters CODE space and XDATA space.Because this internal memory can keep program code and content, so it can also recover to use the various data of once preserving after device is restarted.The digital core of CC2530 online programmable chip and peripheral module are by the low-dropout regulator power supply of a 1.8V.
In addition, CC2530 online programmable chip has also comprised a power management functional module, because therefore it can make CC2530 work several months under the keeping of a batteries for different power modules distributes using portion.
The typical circuit principle of this wireless transceiver module as shown in Figure 2, as seen this circuit only need to be to the power supply of the power pins of CC2530 online programmable chip, and an external resonance crystal oscillating circuit and an antenna circuit can work.
In the present embodiment, the GPRS wireless communication module is take the capable transparent transmission module of DTU as the basis, and it provides an interface of supporting RS232, can be directly by this module of UART1 interface driver of ZigBee wireless transceiver module.At this moment, between ZigBee wireless transceiver module and the DTU transparent transmission module, realize various functions with a cover AT order, the various functions of GPRS all depend on the ZigBee wireless transceiver module and realize to the order that DTU sends, therefore, the AT order can be regarded as the software interface between ZigBee wireless transceiver module and the GPRS wireless communication module.The utility model has the 2.5G wireless communication function by being connected with DTU type GPRS wireless communication module, the ZigBee-network data can be gathered and be transferred in the server of wide area network.This GPRS wireless communication module communicates by SCI Asynchronous Serial Interface and ZigBee radio-frequency (RF) transceiver module, independence and the uniformity of modules have so just been realized, independence is that the function between each module does not possess common factor, only by simple numeral or analog electrical signal as connecting interface; And uniformity is in case they are combined into a circuit of finishing, can give play to more powerful function, coordinate operation between each module promotes the operational efficiency of present networks gateway greatly, and the lifting of operational efficiency can bring the reduction of power consumption and the raising of general stability from the side.
It should be noted that, as shown in Figure 3 and Figure 4, the power management module of this enforcement is the power consumption control core of this hardware platform, and this module is responsible for the power supply voltage stabilizing work of whole circuit modules on the one hand, and this module also is responsible for the mains switch of modules on the other hand.This module is mainly controlled by wireless radiofrequency transceiver module and GPRS wireless communication module, comes the power supply of other modules of switch.The described power management module of the present embodiment comprises photovoltaic module and low noise linear voltage regulator, the low noise linear voltage regulator comprises for the first low noise linear voltage regulator that ZigBee radio-frequency (RF) transceiver module is powered with for the second low noise linear voltage regulator to GPRS wireless communication module and data memory module power supply, described photovoltaic module output connects respectively the input of the first low noise linear voltage regulator and the second low noise linear voltage regulator, described ZigBee radio-frequency (RF) transceiver module connects described the second low noise linear voltage regulator, and the output of described the second low noise linear voltage regulator connects respectively the input of GPRS wireless communication module.
Namely the first low noise linear voltage regulator and the second low noise linear voltage regulator all adopt voltage voltage stabilizing chip in the power management module of the present embodiment is the MIC5205 low noise linear voltage regulator that MICREL company produces, this MIC5205 low noise linear voltage regulator is a kind of low noise of high conversion efficiency, the device of low pressure drop type, and its power supply precision of voltage regulation can be up to 1%.This voltage stabilizing chip is mainly and hand-held set or provide voltage stabilizing based on battery powered equipment, and the input control that MIC5205 inside has comprised a CMOS or TTL compatible enables.When being in stop mode, the power-dissipation-reduced of chip is near 0.Behind the Voltage-output terminal shortcircuit, the ground line current of this pressurizer advances to have small increase, can effectively protect the circuit of battery-end.In floor module, adopt two MIC5205 pressurizers that cell output voltage is carried out voltage stabilizing.Wherein U1 powers for ZigBee radio-frequency (RF) transceiver module specially, U2 then powers for GPRS wireless communication module and other modules, consider that GPRS wireless communication module and other circuit modules are not real-time working, therefore the work Enable Pin of U2 enables control by the I/O pin V3.3_2_EN of ZigBee radio-frequency (RF) transceiver module, in the time of when not needing the U2 power supply, V3.3_2_EN is low level, MIC5205 does not export the 3.3V stabilized voltage power supply, when needs microprocessor and other module operating rooms, V3.3_2_EN then is high level, MIC5250 output 3.3V voltage.
U1 in Fig. 3 and circuit thereof are as example.Wherein the 1st pin of MIC5205 is power input, has met a shunt capacitance C1 before this pin input, and the function of this electric capacity is the indigenous energy memory as device.This element can not provide DC power supply, because they can only store a small amount of electric energy.The function of this indigenous energy memory is the electric current demand of at a terrific speed response change, from hundreds of kilo hertz in the frequency range of hundreds of megahertzes, electric capacity can be at several milliseconds between the nanosecond, effectively keep supply voltage, for the variation that exceeds this scope, decoupling capacitor is helpless [xx] then.For example, if the electric current demand of device improves suddenly in several microseconds, so, before electric capacity can provide extra electric weight to device, the voltage of this device will descend to some extent.If the electric current demand of device has changed, and in several milliseconds, keep new level, so, will effectively take over these electric capacity with the voltage stabilizing circuit of shunt capacitance parallel running, and regulate the output voltage of oneself, satisfy new electric current demand.The 2nd pin of U1 is the ground wire pin, links to each other with the GND of whole floor module.The 3rd pin is that device enables input pin, and logic Gao Shiwei enables, during logic low for stopping.For U1, it is powered for ZigBee radio-frequency (RF) transceiver module, be not subjected to the control of any logical block, therefore the 3rd pin one direct power supply input Vin of U1 gets final product, for U2, whether it exports the control whether power supply is subject to ZigBee radio-frequency (RF) transceiver module, therefore need to connect relevant I/O mouth and control.The 4th pin of U1 has two different functions for the MIC5205 of different model, and for the model that is output as fixed voltage, the 4th pin is the bypass low reference pin, and the electric capacity of an external 470pF reduces the noise of output voltage between needs and the ground wire.For the model that is output as variable voltage, the 4th pin is the adaptation feedback discrepancy end of pressurizer, as long as connect the output voltage range that a divider resistance can be regulated MIC5205.In this application, the present embodiment adopts the standard output voltage of 3.3V, and therefore selecting model is that the chip of MIC5205-3.3BM can outputting standard voltage.
The 5th pin of U1 is the stabilized voltage power supply output pin, this pin in the situation that chip enable can outputting standard 3.3V voltage, in order further to reduce noise, also be connected with the decoupling capacitor of a 2.2uF at described stabilized voltage power supply output pin.
Power management module also has the function of other each several part modular power source switches of management except having voltage stabilizing function.Above-mentioned U2 had both had the power supply voltage stabilizing function, can control again the switch of power supply simultaneously.In the mains switch interlock circuit, mainly adopt metal-oxide-semiconductor to come the power supply of switch related device.Adopt metal-oxide-semiconductor as the switch of power supply following advantage to be arranged, adopt metal-oxide-semiconductor more much smaller than the loss of triode as mains switch; Metal-oxide-semiconductor is voltage driven type, and drive circuit is fairly simple, and triode is the current mode driving; The temperature characterisitic of metal-oxide-semiconductor is better than triode.In an embodiment, power switching devices adopts the IRF7329 of IR company production as the switch MOS pipe of each module.This MOS adopts trench technique, has ultralow conducting resistance, and it is minimum that this device takies circuit area, the small IC encapsulation of encapsulation SOIC-8, and each IRF7329 has the P-MOS pipe in double hook road.According to the characteristic curve of Fig. 4 as can be known, in 25 degrees centigrade environment, this metal-oxide-semiconductor has extremely low conducting voltage and leakage current ability, look into its curve chart as can be known according to the power parameter of this circuit, at VGS be-3.3V in, be gate pole input 0V, the VDS of IRF7329 when being 3.3V, the output current of ID can up to more than the 10A, be enough to drive the load of each modular circuit.
Mains switch in the present embodiment is divided into and is two parts, and a part is the mains switch of other IC chips, and another part is the mains switch of sensor interface.Although this switch is responsible for the power supply of disparate modules, the same during its basic circuit, be the schematic diagram of one of them power switch circuit such as Fig. 5.Wherein U12 is the encapsulation figure of IRF7239, and this device has 8 pins, and 1,2,7,8 are respectively S, G, the D utmost point of first P-MOS pipe, and 3,4,5,6 are respectively three electrodes of second P-MOS pipe.3.3V supply voltage by the input of the source electrode of metal-oxide-semiconductor, drain electrode output.The grid of metal-oxide-semiconductor is pulled to supply voltage by one 100 kilo-ohms resistance.Because IRF7239 is the metal-oxide-semiconductor of P raceway groove, the purpose of therefore doing like this is to make the power on grid of rear metal-oxide-semiconductor of whole circuit can keep high level, so that the DS two ends of metal-oxide-semiconductor are cut-off state, not output current.The grid of metal-oxide-semiconductor is directly connected to the I/O mouth of GPRS wireless communication module, when the I/O of correspondence mouth becomes low level, and the conducting of DS two ends, corresponding module can work.
As shown in Figure 7, the power supply source of whole power management module input is by the photovoltaic module power supply, and this photovoltaic module connects DC power supply between the outside 3.7-4.2V by the photovoltaic cell interface, and this DC power supply can make solar energy photovoltaic panel, also can make the lithium battery group.In a word, this power supply is other circuit outside the whole hardware platform, only is connected to this hardware platform by power interface.This DC power supply is by i.e. the first low noise linear voltage regulator and the second low noise linear voltage regulator voltage stabilizing to 3 of two MIC5205,3V gives respectively the power supply of the data memory module on wireless radiofrequency transceiver module, GPRS wireless communication module power supply and the backplane circuit, and the mains switch of GPRS wireless communication module and data storage is subject to the I/O control of wireless radiofrequency transceiver module.Power management module has not only been grasped the powered operation of whole hardware platform as seen from Figure 6, also has the whether function of power-on of control modules, by the effective power consumption of the whole circuit of control of software programming.
Above-mentioned ZigBee is a kind of wireless connections, can be operated on 2.4GHz, 868MHz and the 915 MHz3 frequency range, the transmission rate that has respectively the highest 250kbit/s, 20kbit/s and 40kbit/s, its transmission range but can continue to increase in the scope of 10-75m.As a kind of wireless communication technology, ZigBee has following features:
(1) low-power consumption: because the transmission rate of ZigBee is low, transmitting power is 1mW only, and has adopted park mode, and is low in energy consumption, so the very power saving of ZigBee equipment.It is estimated, ZigBee equipment only depends on No. 5 batteries of two joints just can keep the service time that reaches about 6 months to 2 years, and this is that other wireless device is too far behind to catch up.
(2) cost is low: the initial cost of ZigBee module estimate can drop to 1.5-2.5 dollars soon, and Zigbee protocol is exempted from patent fee at 6 dollars.Low-cost also is the factor of a key for ZigBee.
(3) time delay is short: communication delay and all very short from the time delay of resting state activation, and typical search equipment time delay 30ms, the time delay that dormancy activates is 15ms, the time delay of vehicular equipment channel access is 15ms.Therefore the controlled in wireless (such as the Industry Control occasion etc.) that is applicable to the delay requirement harshness of ZigBee technology is used.
(4) network capacity is large: the Zigbee network of a hub-and-spoke configuration can hold at most 254 from equipment and a main equipment, can have simultaneously maximum 100 ZigBee-networks in the zone, and network forms flexibly.
(5) reliable: as to have taked the collision avoidance strategy, simultaneously for to need the communication service of fixed-bandwidth to reserve dedicated time slot, avoided sending competition and the conflict of data.The MAC layer has adopted the data-transmission mode of full confirmation, and the packet of each transmission must be waited for recipient's affirmation information.Can retransmit if go wrong in the transmission course.
(6) safety: ZigBee provides the packet integrity checking function based on cyclic redundancy check (CRC) (CRC), supports authentication and authentication, has adopted the cryptographic algorithm of AES-128, and each application can be determined its security attribute flexibly.
In sum, the utility model is applied to the ZigBee wireless sensor network in the Soil Moisture Monitoring system of urban green space, wireless data transmission technology is applied in the monitoring of greenery patches soil moisture content, ageing and the accuracy of greenery patches soil moisture content data successfully just, the monitoring personnel also need not to carry the mobile moisture in the soil equipment collection of being in the action of surveying; And the expansion of wireless network do not need to carry out a large amount of wirings and hardware installation work, only need lay in place wireless communication node and get final product.And the environmental information by various transducer Real-time Collections greenery patches, by embedded system it is processed, in the multi-hop relay mode communication is arrived the outer safety monitoring center of well by ad hoc deployed wireless networks, can remedy the defective of wireline equipment, have inexpensive, portable, safety, reliability high, be easy to the advantages such as expansion.
Above demonstration and described basic principle of the present utility model and principal character and advantage of the present utility model.The technical staff of the industry should understand; the utility model is not restricted to the described embodiments; that describes in above-described embodiment and the specification just illustrates principle of the present utility model; under the prerequisite that does not break away from the utility model spirit and scope; the utility model also has various changes and modifications, and these changes and improvements all fall in claimed the utility model scope.The claimed scope of the utility model is defined by appending claims and equivalent thereof.