Scale based on wireless sense network supports fowl environment automatic control system
Technical field
The utility model belongs to network communication technology field, and in particular to a kind of foster fowl ring of the scale based on wireless sense network
Border automatic control system.
Background technology
In recent years, poultry epidemic disease constantly outburst and propagation, the row of many diseases is constantly disliked with its breeding environment
Change in close relations.However, pouity dwelling place environment composition is complicated, system composition is huge, closed there are the time variation of height and multivariable lotus root etc.
Feature so that many conventional monitoring means and control method cannot meet the demand for development of foster fowl.
Invention content
In order to allow user that can more accurately and rapidly obtain the real-time change and trend of poultry farming environment, right
On the basis of above-mentioned technical problem analysis, the utility model proposes a kind of scales based on sensor network technology to support fowl environment
Automatic control system, the system carry out data acquisition using various kinds of sensors, and data are carried out by ZigBee wireless communication techniques
Transmission using the data that microcontroller is received as core processing unit Macro or mass analysis, and controls external execution equipment to adjust poultry
Environment in house, to realize the automatic monitoring and regulation and control of poultry farming environment.
To achieve the above object, the technical solution adopted in the utility model is:Scale based on wireless sense network supports fowl ring
Border automatic control system, including multiple terminal node modules, multiple routing node modules, coordinator node module and outside are held
Row equipment, each terminal node module include acquiring the sensor assembly of environmental data in fowl house, coordinator node module packet
Data processing unit is included, outside executes equipment and connect with the data processing unit, multiple terminal node modules and corresponding road
It is connected by ZigBee wireless sensor networks by node module, multiple routing node modules pass through with coordinator node module
ZigBee wireless sensor networks connect, and the collected environmental data of sensor assembly is transmitted to the routing node module,
The data are sent to the coordinator node module by routing node module again, and then controls the external equipment that executes and works.
Further, each terminal node module further includes signal conditioning circuit, the first power management module, first
CC2530 modules and the antenna being connect with the first CC2530 modules, the first power management module are connect with sensor assembly, and first
Power management module is also connect by DC-CD converters with the first CC2530 modules, sensor assembly and signal conditioning circuit
Input terminal connects, and the output end of signal conditioning circuit is connect with the first CC2530 modules, and terminal node module is passed through by antenna
The data that first CC2530 modules export are radioed to routing node module by Zigbee wireless sensor networks.
Further, the sensor assembly includes Temperature Humidity Sensor, optical sensor, carbon dioxide sensor or ammonia
At least one of gas sensor.
Further, each routing node module include second source management module, the 2nd CC2530 modules and respectively with
Reception antenna, the transmitting antenna of 2nd CC2530 modules connection, second source management module are connected with the 2nd CC2530 modules, road
By node module by reception antenna receive terminal node module transmission come data, and by transmitting antenna pass through Zigbee without
The data that 2nd CC2530 modules export are radioed to coordinator node module by line sensing network.
Further, coordinator node module further includes third power management module, the 3rd CC2530 modules and and third
The connected antenna of CC2530 modules, third power management module are connected with the 3rd CC2530 modules and data processing unit respectively,
The output end of 3rd CC2530 modules is connected with data processing unit, and coordinator node module receives routing node mould by antenna
The data of block transmission.
Further, which further includes host computer, and data processing unit is connect with host computer.
Further, which further includes display module, data memory module, input module and warning circuit, at data
Reason unit is connect with display module, data memory module, input module and warning circuit respectively.
Further, data processing unit selects MSP430F149 microcontrollers.
Further, the external equipment that executes includes at least one of wind turbine, air-conditioning, lamps and lanterns or cascade.
Further, MAX232 chips are housed on the data processing unit, are used as data processing unit and host computer
Between data communicate RS-232 serial communication interfaces.
The scale based on wireless sense network of the utility model supports fowl environment automatic control system, first by terminal node
Various kinds of sensors acquisition fowl house in environmental data, such as temperature, humidity, intensity of illumination, gas concentration lwevel;It is sensing
After device terminal node collects data, in order to avoid being limited by transmission range, routing node can be first sent data to;
Then coordinator node is sent data to by ZigBee wireless sensor networks by routing node again, coordinator node is on the one hand
Data are received, handled and store, on the one hand by MAX232 chips, are sent data to as RS-232 serial communication interfaces
Host computer shows and stores the environmental data in current fowl house at the same time, when environmental data is more than system originally in pouity dwelling place
When the parameter threshold of setting, warning circuit will act and control external equipment will work, and carry out adjusting ambient situation, until environment is joined
The standard that number reaches predetermined threshold value has reached to realize acquisition, transmission, analyzing processing and the storage to data to environment
The purpose of auto-control.
Compared with prior art, the utility model has the beneficial effects that:
1, wireless sense network has the characteristics that low cost, low-power consumption, easy care and intelligent;
2, using ZigBee sensor network technologies, using MSP430F149 microcontrollers as control core, CC2530 modules
As data communication core, system power dissipation is effectively reduced, and simple and reliable, networking flexibility is convenient with designing
Advantage;
3, using wireless sense network as technological core, this system is easy to dispose, and has higher flexibility, maintainability and can
Expand
Malleability reduces system design cost, improves production efficiency.
Description of the drawings
Fig. 1 is system overall network architecture figure.
Fig. 2 is terminal node module hardware structure diagram.
Fig. 3 is coordinator node module hardware schematic diagram.
Fig. 4 is terminal node module work flow diagram.
Fig. 5 is coordinator node module work flow diagram.
Specific implementation mode
With reference to specific embodiment, the utility model is expanded on further.It should be understood that these embodiments are merely to illustrate this
Utility model rather than limitation the scope of the utility model.In addition, it should also be understood that, in the content for having read the utility model instruction
Later, those skilled in the art can make various changes or modifications the utility model, and such equivalent forms equally fall within this Shen
It please the appended claims limited range.
The embodiments of the present invention are described in further detail below in conjunction with the accompanying drawings.
As shown in Figs. 1-3, the scale based on wireless sense network of the utility model supports the hard of fowl environment automatic control system
Part part includes mainly:Multiple terminal node modules, multiple routing node modules and coordinator node module, this three big module
For core element using CC2530 chips, it combines the powerful performance of RF transceivers and enhanced 8051 list of industrywide standard
Piece machine has excellent wireless receiving and dispatching performance, ultralow power consumption, ultralow cost and good expansion.Multiple terminal sections
Point module is connected with corresponding routing node module by ZigBee wireless sensor networks, multiple routing node modules and coordinator
Node module is connected by ZigBee wireless sensor networks, and the collected environmental data of sensor assembly is transmitted to the road
By node module, the data are then sent to the coordinator node module by routing node module again, and then control outer
Portion executes equipment work.
The function of routing node module is that the data forwarding for the terminal node module that will be received gives coordinator node module,
Play the role of expanding data transmission range as " go-between ", core element still uses the 2nd CC2530 modules, and hardware
Schematic diagram is similar with the coordinator node module of one-chip computer module is removed, therefore does not repeat.
The hardware configuration of terminal node module is as shown in Fig. 2, the function of terminal node is by the collected environment of sensor
Parameter is sent to routing node, mainly by sensor assembly, signal conditioning circuit, the first power management module, the first CC2530
Module and antenna composition.First power management module is connect with sensor assembly, and the first power management module also passes through DC-CD
Converter is connect with the first CC2530 modules, the input terminal connection of sensor assembly and signal conditioning circuit, signal conditioning circuit
Output end connect with the first CC2530 modules.Wherein, sensor assembly refers mainly to all kinds of acquisition sensors, such as:Humiture passes
Sensor, optical sensor, carbon dioxide sensor, ammonia gas sensor etc..In view of the particularity of terminal node working environment, no
It is suitble to the wiring of tediously long complexity, uses lithium battery power supply, the first power management module steady by XC6210 chips generation 5V herein
On the one hand voltage source provides 5V voltages for sensor assembly, it is first on the one hand to generate 3.3V voltages by DC-DC converter
CC2530 module for power supply, since the voltage signal of sensor assembly is 5V, and the voltage signal that the first CC2530 modules can be handled
For 3.3V, so collected data-signal should be handled by signal conditioning circuit first, finally by the first CC2530 moulds
The A/D converter of block converts analog quantity to digital quantity, then sends data to coordination by antenna by RF radio-frequency communication modules
Device node.Wherein, the first CC2530 modules are specially the first CC2530 chips.
Coordinator node hardware elementary diagram is as shown in figure 3, include mainly the 3rd CC2530 modules, data processing unit etc..
The system further includes host computer, and data processing unit is connect with host computer.The system further includes display module, data storage mould
Block, input module and warning circuit, data processing unit respectively with display module, data memory module, input module and alarm
Circuit connects.Data processing unit selects Texas Instrument herein in line with low-power consumption, high-precision feature(TI)Company
MSP430F149 microcontrollers are mainly used to data transmit-receive and the processing of control node as processing unit.Particular hardware schematic diagram
As shown in Fig. 3.In Fig. 3, the 3rd CC2530 modules send data to MSP430F149 microcontrollers, number of the microcontroller to reception
According to carrying out analyzing processing and preserve to data memory module, while by data to include on LED LCD MODULEs:User can be with
The threshold value of systemic presupposition is adjusted by keyboard input module, to adapt to different weather conditions.When collected data
When more than system thresholds, system alarm circuit operation triggering, buzzer will alarm at this time, remind user environment parameter exceeded,
Meanwhile MSP430F149 microcontrollers control outside executes equipment work, such as the work of wind turbine, air-conditioning, lamps and lanterns and cascade equipment
Make, the function of environment in automatic adjustment pouity dwelling place is realized with this, when the data received again are when within threshold value, outside executes
Equipment will be stopped, buzzer stop alarm, and whole system resets.Since coordinator node module not only carries to acquisition
The function of antenna reception, the data processing of data, also carries task of serial communication is carried out with host computer.For the ease of realizing
MSP430F149 microcontrollers and host computer(PC)The data of machine communicate, and are serially led to as RS-232 using MAX232 chips in Fig. 3
The interface of letter.
In terminal node module, Software for Design is mainly the networking for completing node, data upload, reception routing node forwards
Coordinator node instruction etc., specific workflow is as shown in Figure 4.In Fig. 4, terminal node just starts after electrification reset
Whether there is network coordinator in search designated channel, has sent out connection request after searching immediately.After successful connection, terminal section
Point receives 16 network short addresses from coordinator node, and by the timing of this address that each sensor is collected
Data are sent to coordinator node, non-slot CSMA-CA mechanism are then used, to coordination by way of competition on channel
Device node sends the data information of sensor acquisition.After terminal node is connected to network, AD conversion mouth is initialized first
Setting, judges whether that timer interruption is caused to wake up at this time, and if there is then environmental data is collected in sensor start-up operation, node is held
Row data acquisition program, and data are temporarily stored into register, and coordinator section is sent to by ZigBee networks
Point, then judge whether that causing ZigBee to interrupt wakes up, if any response procedure is then executed, suspend mode will be entered after execution, will be waited for
The acquisition instructions of a new round.In systems, the major function of coordinator node includes the networking of wireless sensor network, management network
Terminal node and routing node, transmitting-receiving and store digital information, control outside execute equipment and are communicated with the data of host computer.
Fig. 5 gives coordinator node work flow diagram.In Fig. 5, coordinator node is after networking, according to data sampling time sequence to terminal
Node sends the instructions such as sensor wakes up, data acquire.When coordinator node timer causes to interrupt, system is waken up and connects
Terminal node data are received, if in threshold value, data to be stored and are uploaded to it is first determined whether within the scope of threshold restriction
Host computer analyzing processing, subsequently into dormant state:When the data received exceed threshold value, then warning circuit action is triggered,
And warning message is sent to control centre, while control outside is executed into equipment work, environmental parameter is regulated and controled, then passes through
Warning message is sent to host computer with the serial communication of host computer.Meanwhile executing reception data command again and being judged, directly
To threshold range is met, suspend mode is eventually entered into.
Undeclared part involved in the utility model is same as the prior art or is realized using the prior art.