CN105759647A - Pig farm environment monitoring method based on patrol car and address borrowing routing algorithm - Google Patents

Pig farm environment monitoring method based on patrol car and address borrowing routing algorithm Download PDF

Info

Publication number
CN105759647A
CN105759647A CN201610095387.2A CN201610095387A CN105759647A CN 105759647 A CN105759647 A CN 105759647A CN 201610095387 A CN201610095387 A CN 201610095387A CN 105759647 A CN105759647 A CN 105759647A
Authority
CN
China
Prior art keywords
node
address
routing
network
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610095387.2A
Other languages
Chinese (zh)
Other versions
CN105759647B (en
Inventor
朱伟兴
张建飞
李新城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University
Original Assignee
Jiangsu University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu University filed Critical Jiangsu University
Priority to CN201610095387.2A priority Critical patent/CN105759647B/en
Publication of CN105759647A publication Critical patent/CN105759647A/en
Application granted granted Critical
Publication of CN105759647B publication Critical patent/CN105759647B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a pig farm environment monitoring method based on a patrol car and an address borrowing routing algorithm. First, a pig farm environment monitoring system based on a patrol car and an address borrowing routing algorithm is built, comprising a pig farm wireless sensor network with mobile coordinator nodes constructed based on a ZigBee wireless communication technology, a pig farm embedded field control center, and a user remote control center. Second, in view of isolated network points caused by limited transmission range of the ZigBee protocol, a new network address borrowing routing algorithm based on two-hop neighbors is adopted, the existing address borrowing routing algorithm is optimized, the address borrowing range of a father node is set to two-hop neighbor nodes, and addresses are borrowed from descendant nodes of the same branch first. On one hand, the problem of isolated network points is relieved, the network access rate of network nodes is improved, and the networking time and energy loss are reduced. On the other hand, efficient network access of isolated network nodes under the pig farm environment monitoring system taking coordinators as mobile nodes is realized.

Description

A kind of based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm
Technical field
The present invention relates to embedded technology, technology of wireless sensing network, be specifically related to that there is routing inspection trolley and the pig farm environment method by means of address routing algorithm.
Background technology
The domestic industry of raising pigs is in Rapid development stage, and to scale, modernization development, tackles the market quotation of growing production cost and fluctuation with efficient production.But, intelligence cultivation is still suffered from that feeding facility automatization level is low, labor intensity is big, environmental unit is simple and crude, lack of wisdom, can not meet information-based cultivation demand and the low inferior problem of production efficiency.
Pig farm environmental monitoring system is based on radio sensing network and monitors all kinds of environmental index intelligentized control method various kinds of equipment in real time.Radio sensing network is applied in live pig environmental monitoring and substantially increases production efficiency, improve live pig health by external environmental condition and increase productivity, utilize the wireless network node control to pig farm equipment, and the sound-detection gear on MT-AR robot routing inspection trolley, all kinds of environmental parameter sensor and the photographic head monitor in real time to pig farm internal medium, carry out intelligent control pig farm environment, to reach the pig farm internal medium of a suitable live pig health fast-growth.Coordinator node and field controller are arranged on dolly by the present invention, it is easily installed on dolly on the one hand and real-time for the audio and video information collected is sent in field controller by on-the-spot photographic head, simultaneously, coordinator node owing to being arranged on dolly is removable node, improves the motility of tree network networking on the spot.Further, coordinator node can by the direct battery power on dolly, and it has the energy of abundance, it is possible to extend the life-span of this node.Owing to Zigbee protocol transmission range is typically in the range of between 10~100m, so the routing node being directly connected with coordinator node when beyond transmission range will carry out node disconnection process.When routing node disconnects with network, the node that all subtrees of this routing node comprise all becomes isolated node.For ensureing the Real-time Collection of pig farm site environment parameter, isolated node needs to rejoin tree network.But, the ZigBee communication agreement acquiescence that radio sensing network adopts uses distributed address assignment mechanism mechanism to distribute address.Traditional distributed address assignment mechanism algorithm makes the success rate that isolated node adds network reduce.
Currently for network acnode problem, there has been correlational study both at home and abroad.The YANG et al. the method by terminal unit being converted to routing node, increasing the network depth of tree route, this algorithm extends network coverage territory, but adds complexity and the cost of former terminal node, extendible it is limited in scope, is appropriate only for the terminal node that minority network depth is not deep.Giri et al. proposes one and borrows address arithmetic, namely the father node not having idle address can borrow location to network coordinator, and then child node is distributed in the address borrowed by father node, decreases network acnode, but the address space that network coordinator can be used is limited, this algorithm is appropriate only for the less occasion of node.Yao Yukun et al. proposes a kind of based on the efficient address assignment algorithm by means of address, and is improve, with minor matters point, the problem of detouring lonely for route node by means of location scope first-selection, but location scope can be borrowed less, and node adds the success rate of network to be reduced.The existing location of borrowing borrowing address routing algorithm default route node based on distributed address assignment mechanism mechanism ranges for a hop neighbor node, topology optimization problem is not taken into account when selecting to borrow location node, thus causing the waste of network depth, and routing node is difficult to find and suitable borrows location node, and the location scope of borrowing of routing node is set to two-hop neighbor node by the present invention, father node can obtain the address information of the neighbor node in double bounce communication range, and can pay the utmost attention to same branch descendant nodes by means of location.Therefore, what the present invention proposed borrows address arithmetic to borrow location scope to improve the efficiency of address distribution between node by expanding, and effectively optimizes network topology, it is to avoid the waste of network depth, it is adaptable to coordinator is as the pig farm radio sensing network of mobile node.
Summary of the invention
For above-mentioned prior art produced problem, coordinator node and field controller are arranged on dolly by the present invention, it is easily installed on dolly on the one hand and real-time for the audio and video information collected is sent in field controller by on-the-spot photographic head, simultaneously, coordinator node owing to being arranged on dolly is removable node, improves the motility of tree network networking on the spot.Further, coordinator node can by the direct battery power on dolly, and it has the energy of abundance, it is possible to extend the life-span of this node.In the networking process of radio sensing network, networking difficult deficiency to overcome existing radio sensing network to there will be isolated node, the present invention also proposes a kind of new to borrow address routing algorithm.When an isolated node attempts adding a father node not having idle address space, this father node will inquire that the neighbor node within its double bounce is to use address space, it is achieved the networking of isolated node.By the location scope of borrowing of routing node is set to two-hop neighbor node, and it is set to borrow the first-selected node of address with minor matters point so that the isolated node in pig farm can realize networking rapidly, decreases the energy consumption of routing node simultaneously.Native system can efficiently reduce network isolated node, improves node networking rate, extends the life-span of pig farm radio sensing network.
This invention address that its technical problem is adopted the technical scheme that: a kind of based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, comprise the following steps:
Step 1, build based on routing inspection trolley and the pig farm environmental monitoring system by means of address routing algorithm, including: what ZigBee wireless communication technology was set up has the pig farm radio sensing network of moving hormany device node, pig farm embedded field control centre and user's remote control center;The pig farm radio sensing network with moving hormany device node includes removable coordinator node, routing node and terminal node;Removable coordinator node and pig farm embedded field control centre are arranged on routing inspection trolley;By Zigbee protocol stack, by the convergence that collects to removable coordinator node, removable coordinator node is by the direct battery power on routing inspection trolley, and realizes data by serial communication interface with embedded field control centre and exchange;Embedded field control centre includes field controller, and embedded field control centre is connected with user's remote control center by Network Access Point and wireless network card;User's remote control center includes computer, Network Access Point and wireless network card, and user's remote control center is connected into internet access field controller by Internet network agreement;
Step 2, for the limited network acnode problem caused of Zigbee protocol transmission range, adopts a kind of new network based on two-hop neighbors to borrow address routing algorithm, and this algorithm includes two parts:
New borrows address routing algorithm, what first estimate network isolated node borrows location space size, again the location scope of borrowing of routing node being set to two-hop neighbor node, father node can obtain the address information of the neighbor node in double bounce communication range, can pay the utmost attention to simultaneously and borrow location to same branch descendant nodes;
By means of the Route Selection of address arithmetic, namely first the type of destination node is judged by tree route, then carries out the forwarding of packet.
Further, in described step 1, pig farm radio sensing network is mainly made up of the ZigBee node being distributed in each swinery, and ZigBee node connects humiture and harmful gas concentration sensor, infrared monitoring camera and standard ventilation one's intention as revealed in what one says machine, evaporative cooling pad pump, negative-pressure air fan, air stove, electric hot plate etc. and controls equipment;By the audio sensor on the humiture on node and harmful gas concentration sensor and routing inspection trolley and photographic head, user can to the environment of pig house, sow just before giving birth and children pig animation carry out real-time monitoring, wherein, audio sensor on routing inspection trolley, all kinds of environmental parameter sensor and photographic head can be arbitrarily mobile on the routing inspection trolley magnetic stripe track preset in pig farm, by all kinds of environmental parameter sensor on mobile routing inspection trolley, monitoring system obtains pig farm internal medium parameter;After each information gathering, node sends data message to coordinator, and coordinator node is connected with field controller by serial ports, the data collected is transmitted to field controller;User's remote control center is connected into the Internet by Internet network agreement, and long-distance user logs in field controller by browser, and real-time monitored pig house also can regulate and control pig house environment at any time.
Further, in described step 2, the new detailed process borrowing address routing algorithm is:
Step 2.1, nodes X sends an idle Address requests to routing node Y, and routing node Y judges oneself whether available free address, if available free address, then assigns address to nodes X;Otherwise, routing node Y enters and borrows address function;
Step 2.2, routing node Y sends the information containing network depth dy to nodes X, it is desirable to network depth dx is set to dy+1 by nodes X, and the child node as Y adds network;
Step 2.3, routing node Y sends one and responds to nodes X, it is desirable to X calculates the address space size of its application, then nodes X needs to calculate its child node address space size;If nodes X is full-function device FFD, then calculating child node address space is o (x), and as by means of location bag, o (x)+x is sent to routing node Y;If nodes X is half function device RFD, then child node address space o (x)=0, and o (x)+x is sent to routing node Y as by means of location bag;
Step 2.4, routing node Y receive nodes X borrow location bag after, within the scope of its two-hop neighbors node forward borrow location bag, receive by means of location bag neighbor node make reply according to the address space left space of oneself;Meeting, if do not find herein, the neighbor node required by means of location, then return step 2.1, nodes X again sends to new routing node and borrows location request;
Step 2.5, routing node Y receive neighbor node borrow location reply bag after, Y will determine that and meets the same minor matters point whether having oneself in the node by means of location condition, if having, then selects the more node of address space left in the descendant nodes under same branch as by means of location node;If no, then selecting the more node of address space left in meeting the neighbor node by means of location condition as by means of location node;Then the address space used is distributed to nodes X, then by nodes X, following child node is distributed in idle address;If said process can not complete to borrow location operation, then wait when removable coordinator node arrives in transmission range, complete the networking request of isolated node again through distributed address assignment mechanism algorithm.
Further, in described step 2, the detailed process by means of the Route Selection of address arithmetic is:
Tree is routed through the type of destination node is judged, if destination node is routing node itself, then directly accepts packet;If destination node is the sub-route node of routing node, then it is sent directly to qualified sub-route node after calculating next hop address;If destination node is the sub-terminal unit of routing node, then transfer a packet to sub-terminal unit;If above-mentioned condition does not comply with, then this packet is sent to its father node by routing node, its father node continue to forward this packet according to above-mentioned path selection process.
Further, in described step 1, user's remote control center can use PC as monitor supervision platform, by controller S3C6410 development board at the scene is transplanted SQLite data base, BOA server and write cgi script, parameter is sent to Internet, by Internet ambient parameter on the pig farm of display monitoring in time on PC, manager can pass through browser remote access data, and the data simultaneously gathered will be stored in SQLite data base, it is simple to manager's enquiry of historical data.
The invention has the beneficial effects as follows:
ZigBee radio network technique adopts a kind of new network based on two-hop neighbors to borrow address arithmetic, and the method that this algorithm uses idle address by father node to the neighbor node within double bounce alleviates acnode problem.For network acnode problem, existing routing algorithm is many suitable in the less tree network of node, and adds the networking problem with energy loss consuming time.For the deficiency of existing route algorithm, the present invention has improved by means of address arithmetic and tree routing algorithm original.New borrow address arithmetic to formulate detailed to borrow address step, namely when a network isolated node attempts adding a father node not having idle address, first this node estimates the size by means of space, location, now father node sends to two-hop neighbor node and borrows location request, and obtain the address information of neighbor node in double bounce communication range, pay the utmost attention to simultaneously and borrow location to same branch descendant nodes, then the address space borrowed is distributed to isolated node.
By coordinator node and field controller are installed on robot car, make to be arranged on dolly and on-the-spot camera collection to audio and video information can be real-time be sent in field controller, coordinator node is by direct battery power simultaneously, extends node lifetime.For the limited network acnode problem caused of Zigbee protocol transmission range, existing by means of address routing algorithm by optimizing design, the location scope of borrowing of father node is set to two-hop neighbor node, pay the utmost attention to simultaneously and borrow location to same branch descendant nodes, on the one hand network acnode problem is alleviated, improve the networking rate of network node, reduce that networking is consuming time and energy loss, achieve the coordinator efficient networking as the pig farm environmental monitoring system lower network isolated node of mobile node on the other hand.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Fig. 1 is the master-plan block diagram of system
Fig. 2 is the mobile node design frame chart on robot car
Fig. 3 is based on the network of two-hop neighbors and borrows address routing algorithm block diagram
Fig. 4 is pig farm radio sensing network node scattergram
Fig. 5 is Route Selection block diagram
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
Technical scheme is further illustrated below in conjunction with accompanying drawing 1,2,3,4,5.
The overall framework borrowing the pig farm environmental monitoring system of address assignment algorithm based on ZigBee-network is made up of three parts: what ZigBee wireless communication technology was set up has the pig farm radio sensing network of moving hormany device node, pig farm embedded field control centre (routing inspection trolley) and user's remote control center.The master-plan block diagram of system is as shown in Figure 1.Wherein pig farm radio sensing network is mainly made up of the ZigBee terminal node being distributed in each swinery.Place in plant's zones of different with various kinds of sensors terminal node, the temperature of the plant of monitoring in real time surrounding, humidity and harmful gas concentration.The data collected will be sent to coordinator node by ZigBee wireless network, transmit data in field controller S3C6410 (ARM+Linux) then through by 232 serial ports.By the data base transplanted on S3C6410 platform and server, real time data can be carried out remote access and inquiry by the Internet by user.Once the data of system acquisition are beyond the healthy early warning boundary set in computer, control system just can automatically identify, and manager can find in time.Now culture control system then automatically adjusts the environment of optimum children pig growth by the operation of the equipment such as the negative-pressure air fan in control plant, evaporative cooling pad pump, negative-pressure air fan, air stove, electric hot plate.In this regulator control system, have employed MT-AR robot routing inspection trolley simultaneously, routing inspection trolley is integrated with sound-detection gear, all kinds of environmental parameter sensor and all kinds of photographic head, it is mounted with coordinator node and field controller simultaneously, and in pig farm, lay the magnetic stripe track that dolly is advanced in advance, such manager can be real-time the animation observing children pig to judge the behavior whether exception of pig, the mobile node design frame chart on robot routing inspection trolley is as shown in Figure 2.This utilize ZigBee technology that the terminal node being placed in conservation pigsty in each swinery, routing node, coordinator node are set up into a Radio Network System, achieve dispersion observing and controlling and centralized management so that each swinery environment can be carried out long-range precision Intelligent adjustment by manager.
1, the pig farm radio sensing network with moving hormany device node that ZigBee wireless communication technology is set up
In the environmental monitoring system of pig farm, removable coordinator node and field controller are arranged on routing inspection trolley, on the one hand it is easily installed on routing inspection trolley and real-time for the audio and video information collected is sent in field controller by on-the-spot photographic head, simultaneously, coordinator node owing to being arranged on routing inspection trolley is removable node, improves the motility of tree network networking on the spot.Further, removable coordinator node can by the direct battery power on routing inspection trolley, and it has the energy of abundance, it is possible to extend the life-span of this node.In the networking process of radio sensing network, adopt ZigBee radio network technique that the terminal node in swinery and routing node are formed a wireless network.By Zigbee protocol stack, the data collected are sent to coordinator node, and pass through serial communication interface, transfer data in field controller, ZigBee-network node is fed back information to after field controller analytical data, node controls the running of pig farm relevant device by the Guan Bi of relay, and above procedure achieves the data interaction of field controller and radio sensing network.Selecting the wireless communication module being suitable for, it is possible to reduce the construction cycle of node, save overhead, reducing system energy consumption, thus improving system entirety life span.Based on requirements above, select integrated CC2430 chip as the wireless communication module of this monitoring system.
By the audio sensor on the humiture on ZigBee node and harmful gas concentration sensor and routing inspection trolley and all kinds of photographic head, user can to the environment of pig house, sow just before giving birth and children pig animation carry out real-time monitoring, some of which node, owing to Zigbee protocol transmission range is typically in the range of between 10~100m, so the routing node being directly connected with coordinator node when beyond transmission range will carry out node disconnection process.When routing node disconnects with network, the node that all subtrees of this routing node comprise all becomes isolated node.For ensureing the Real-time Collection of pig farm site environment parameter, isolated node needs to rejoin tree network.Network if these isolated nodes can not pass through new father node, may result in the generation of network acnode.
According to DAAM algorithm principle, AmRepresent the maximum address of distribution, as shown in formula (1):
Am=Cskip(0)×Rm+Cm-Rm(1)
Wherein Cskip(0) the address offset amount of to be network depth the be routing node of 0, as shown in formula (2):
C s k i p ( d ) = 1 + C m × ( L m - d - 1 ) , R m = 1 ; 1 + C m - R m - C m × R m ( L m - d - 1 ) 1 - R m , R m ≠ 1 - - - ( 2 )
Work as RmWhen=1, Am=(1+Cm×(Lm-1))×Rm+Cm-Rm=Cm×Lm, thus formula is it can be seen that address space AmWith network depth LmLinear.Due to Rm=1 and communication radius identical, so every node layer number is equal to Nc, so address utilization rate ArConstant it is Nc/Cm
Work as RmWhen ≠ 1, A m = 1 + C m - R m - C m × R m ( L m - 1 ) 1 - R m × R m + C m - R m , This seasonal Lm2-Lm1=1, Am2-Am1It is Lm2The address space of layer, arranges:
The area coverage of the every node layer of tree network can be similar to and regard radius as is Lm, central angle is the annulus of α, then annulus areaMaking node density is μ, then nodes NcAs follows:
Nc=α (2Lm+1)×μ
So address utilization rateBecause Lm2-Lm1=1, Rm> 1, Lm>=1 and be positive integer, namely A r 1 - A r 2 = α μ R m L m 2 × C m × ( 2 R m × L m 1 - 2 L m 2 + R m - 1 ) > 0 , It can thus be appreciated that network depth is more big, address utilization rate is more low, and namely address space left is more many.So being set to the descendant nodes of same minor matters point borrow the first-selected node of address can improve by means of location success rate.
The present invention is analyzing on the basis of reason, it is proposed to a kind of new network based on two-hop neighbors borrows address arithmetic, it is achieved that the efficient networking of network acnode in pig farm.Specific algorithm is as follows.
New borrows address routing algorithm, what first estimate network isolated node borrows location space size, again the location scope of borrowing of routing node being set to two-hop neighbor node, father node can obtain the address information of the neighbor node in double bounce communication range, can pay the utmost attention to simultaneously and borrow location to same branch descendant nodes;
By means of the Route Selection of address arithmetic, namely first the type of destination node is judged by tree route, then carries out the forwarding of packet.
(1) new address arithmetic is borrowed
The location of borrowing borrowing address routing algorithm default route node based on distributed address assignment mechanism mechanism ranges for a hop neighbor node, and the location scope of borrowing of routing node is set to the neighbor node within double bounce by the present invention, father node can obtain the address information of the neighbor node in double bounce communication range.By to the improvement by means of address mode, set forth herein that the new network based on two-hop neighbors borrows address arithmetic, the detailed step of this algorithm is as follows.
1) nodes X sends an idle Address requests to routing node Y.Routing node Y judges oneself whether available free address, if available free address, then assigns address to nodes X;Otherwise, routing node Y enters and borrows address function.
2) routing node Y sends the information containing network depth dy to nodes X, it is desirable to network depth dx is set to dy+1 by nodes X, and the child node as Y adds network.
3) routing node Y sends one and responds to nodes X, it is desirable to X calculates the address space size of its application, then nodes X needs to calculate its child node address space size.If nodes X is full-function device FFD, then calculating child node address space is o (x), and as by means of location bag, o (x)+x is sent to routing node Y;If nodes X is half function device RFD, then child node address space o (x)=0, and o (x)+x is sent to routing node Y. as by means of location bag
4) routing node Y receive nodes X borrow location bag after, within the scope of its two-hop neighbors node forward borrow location bag.Receive the neighbor node by means of location bag and make reply according to the address space left space of oneself.Meet, if do not find herein, the neighbor node required by means of location, then return step 1), nodes X again sends to new routing node and borrows location request.
5) routing node Y receive neighbor node borrow location reply bag after, Y will determine that and meets the same minor matters point whether having oneself in the node by means of location condition, if having, then selects the more node of address space left in the descendant nodes under same branch as by means of location node;If no, then selecting the more node of address space left in meeting the neighbor node by means of location condition as by means of location node.Then the address space used is distributed to nodes X, then by nodes X, following child node is distributed in idle address.Network based on two-hop neighbors borrows address routing algorithm block diagram as shown in Figure 3.If said process can not complete to borrow location operation, then wait when removable coordinator node arrives in transmission range, complete the networking request of isolated node again through distributed address assignment mechanism algorithm.
As shown in Figure 4, robot car travels to swinery n place from swinery 1, beyond ZigBee transmission range between hot-air blower node and the coordinator node at swinery 1 place, now hot-air blower node will carry out network disconnection with coordinator node, and the node that all subtrees of hot-air blower node comprise all becomes isolated node.Routing node and terminal node in swinery 1 need to apply for nearby networking, electric hot plate node outside such as swinery 1 is as the father node not having idle address, location step is borrowed according to above, from two-hop neighbors scope, namely the Temperature Humidity Sensor node place in swinery 2 borrows address and distributes to hot-air blower node and its child node.Isolated node networks successfully, and network acnode problem is addressed.
(2) by means of the Route Selection of address arithmetic
Detailed process by means of the Route Selection of address arithmetic is: tree is routed through the type of destination node is judged, if destination node is routing node itself, then directly accepts packet;If destination node is the sub-route node of routing node, then it is sent directly to qualified sub-route node after calculating next hop address;If destination node is the sub-terminal unit of routing node, then transfer a packet to sub-terminal unit;If above-mentioned condition does not comply with, then this packet is sent to its father node by routing node, its father node continue to forward this packet according to above-mentioned path selection process.
In pig farm monitoring system wireless sensing network, the address of routing node Y is A, and network depth is d, and when node Y receives a packet with destination address D, tree routing algorithm path selection process is as shown in Figure 5.
1) if destination node is routing node Y itself, i.e. A=D, then node Y directly accepts this packet, stops forwarding.
2) if destination node is the sub-route node of routing node Y, i.e. A < D≤A+Rmax·Cskip(d-1), then node Y will calculate A+1+{ [D-(A+1)]/Cskip(d)}·CskipD () is as next hop address, and this packet sends to the sub-route node meeting next hop address.
3) if destination node is the sub-terminal unit of routing node Y, i.e. A+Rmax·Cskip(d) < A < A+Cskip(d-1), then this packet is sent to sub-terminal unit.
4) if above-mentioned condition does not comply with, then this packet is sent to its father node by routing node Y, its father node continue to forward this packet according to above-mentioned path selection process.
Borrowing address arithmetic based on new, as shown in Figure 4, the hot-air blower node in swinery 1 is isolated node, and electric hot plate node borrows location as its father node to the descendant nodes Temperature Humidity Sensor node under same branch, and the address borrowed is distributed to hot-air blower node.According to tree routing algorithm, in wireless sensor network, the source node of certain on optional position to send packet to the hot-air blower node in swinery 1, packet transmission path must first pass through and be resent to destination node by means of location node, so prioritizing selection borrows location to avoid path detour problem to the double bounce descendant nodes under same branch.New algorithm not only achieves tree routed path selection course, and by carrying out topology optimization in by means of location process, decreases the energy consumption of routing node, so new borrows address arithmetic mutually compatible with tree routing algorithm.
Test result indicate that, the coordinator node being arranged on dolly in the monitoring system of the present invention is removable node, coordinator node is by the direct battery power on dolly simultaneously, extend the life-span of this node, address routing algorithm is borrowed again through new, improve the motility of tree network networking on the spot, reduce that networking is consuming time and energy loss.This system can accurately and timely obtain the ambient parameter on pig farm, and the animation of live pig can be carried out real-time observation, there is the features such as real-time, stability and high efficiency, effectively achieve monitoring and the control of pig farm environment, pig farm environmental monitoring system is served good effect.
2, pig farm embedded field control centre
Microcontroller is the core of whole system, gathers and processes data, carries out communication with wireless communication module and determines when transmission and accept these data.S3C6410 processor is 32 8-digit microcontrollers, supports ARM, can perform java bytecode and some DSP instruction set, adopts 32/64 internal bus framework.S3C6410 can extend multiple external memory storage by built-in 2 external memory storage ports, is internally integrated many equipment interfaces, so greatly reduces global design cost, eliminates the expense that configuration is extra, improves whole system function.S3C6410 processor is cheap, and oneself power consumption is low.Comprehensive above advantage, this monitoring system data processing module selects S3C6410.
Scene, pig farm embedded controller S3C6410 obtains, by serial ports, the environmental information that ZigBee radio sensing network gathers, after preservation and automatically analyze data.The running of each equipment in pig farm is automatically controlled by analyzing result.In order to realize the remote real-time monitoring of pig farm environment, the function such as system possesses data acquisition, image acquisition, storage manage, analyze and process, automatically control, Web Publishing.Adopt lightweight built-in Linux operating system, and transplant embedded database, WEB server etc..Wherein embedded database adopts for Embedded lightweight SQLite data base, and WEB server adopts embedded BOA server.Adopting CGI (CGI(Common gateway interface)) to make webpage have interactive function, interpretation process is from the input information of list, and produces corresponding process at server, or corresponding information is fed back to browser.Control centre can preset the scope of the ambient parameters such as humiture, overruns and automatically sends control command to relevant device through row adjustment.
3, user's remote control center
User's remote control center can use PC as monitor supervision platform.By transplanting SQLite data base on S3C6410 development board, BOA server and write cgi script, parameter is sent to Internet, by Internet ambient parameter on the pig farm of display monitoring in time on PC, manager can pass through browser remote access data, the data simultaneously gathered will be stored in SQLite data base, it is simple to manager's enquiry of historical data.If the real time environmental data of system acquisition exceedes setting value, control system can timely automated identify, manager also is able to timely discovery, now controls system and is then automatically adjusted the environment of optimum pig growth by the operation of the equipment such as negative-pressure air fan in control pig farm.
Adopting BOA framework WEB server, design B/S remote management mode, B/S structure is a kind of browser/server structure, namely only installs and safeguards a server, and client adopts browser execution software.In B/S structure, user is filed a request to the server being distributed on network with hypertext form by browser, and server utilizes cgi script to process after accepting request.CGI(Common gateway interface) CGI makes the page have interactive function, and design cgi script processes the command information that user browser is submitted to, and is carried out the feedback of result by html format.Adopt WIFI wireless communication technology, it is achieved the Internet of pig farm field controller connects so that long-distance user can use the equipment such as computer, smart mobile phone obtain pig farm real time data information whenever and wherever possible and manage pig farm.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " illustrative examples ", " example ", " concrete example " or " some examples " etc. means in conjunction with this embodiment or example describe are contained at least one embodiment or the example of the present invention.In this manual, the schematic representation of above-mentioned term is not necessarily referring to identical embodiment or example.And, the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiments or example.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: these embodiments can being carried out multiple change, amendment, replacement and modification when without departing from principles of the invention and objective, the scope of the present invention is limited by claim and equivalent thereof.

Claims (5)

1. one kind based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, it is characterised in that comprise the following steps:
Step 1, build based on routing inspection trolley and the pig farm environmental monitoring system by means of address routing algorithm, including: what ZigBee wireless communication technology was set up has the pig farm radio sensing network of moving hormany device node, pig farm embedded field control centre and user's remote control center;The pig farm radio sensing network with moving hormany device node includes removable coordinator node, routing node and terminal node;Removable coordinator node and pig farm embedded field control centre are arranged on routing inspection trolley;By Zigbee protocol stack, by the convergence that collects to removable coordinator node, removable coordinator node is by the direct battery power on routing inspection trolley, and realizes data by serial communication interface with embedded field control centre and exchange;Embedded field control centre includes field controller, and embedded field control centre is connected with user's remote control center by Network Access Point and wireless network card;User's remote control center includes computer, Network Access Point and wireless network card, and user's remote control center is connected into internet access field controller by Internet network agreement;
Step 2, for the limited network acnode problem caused of Zigbee protocol transmission range, adopts a kind of new network based on two-hop neighbors to borrow address routing algorithm, and this algorithm includes two parts:
New borrows address routing algorithm, what first estimate network isolated node borrows location space size, again the location scope of borrowing of routing node being set to two-hop neighbor node, father node can obtain the address information of the neighbor node in double bounce communication range, can pay the utmost attention to simultaneously and borrow location to same branch descendant nodes;
By means of the Route Selection of address arithmetic, namely first the type of destination node is judged by tree route, then carries out the forwarding of packet.
2. according to claim 1 based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, it is characterized in that, in described step 1, pig farm radio sensing network is mainly made up of the ZigBee node being distributed in each swinery, and ZigBee node connects humiture and harmful gas concentration sensor, infrared monitoring camera and standard ventilation one's intention as revealed in what one says machine, evaporative cooling pad pump, negative-pressure air fan, air stove, electric hot plate etc. and controls equipment;By the audio sensor on the humiture on node and harmful gas concentration sensor and routing inspection trolley and photographic head, user can to the environment of pig house, sow just before giving birth and children pig animation carry out real-time monitoring, wherein, audio sensor on routing inspection trolley, all kinds of environmental parameter sensor and photographic head can be arbitrarily mobile on the routing inspection trolley magnetic stripe track preset in pig farm, by all kinds of environmental parameter sensor on mobile routing inspection trolley, monitoring system obtains pig farm internal medium parameter;After each information gathering, node sends data message to coordinator, and coordinator node is connected with field controller by serial ports, the data collected is transmitted to field controller;User's remote control center is connected into the Internet by Internet network agreement, and long-distance user logs in field controller by browser, and real-time monitored pig house also can regulate and control pig house environment at any time.
3. according to claim 1 based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, it is characterised in that in described step 2, the new detailed process borrowing address routing algorithm is:
Step 2.1, nodes X sends an idle Address requests to routing node Y, and routing node Y judges oneself whether available free address, if available free address, then assigns address to nodes X;Otherwise, routing node Y enters and borrows address function;
Step 2.2, routing node Y sends the information containing network depth dy to nodes X, it is desirable to network depth dx is set to dy+1 by nodes X, and the child node as Y adds network;
Step 2.3, routing node Y sends one and responds to nodes X, it is desirable to X calculates the address space size of its application, then nodes X needs to calculate its child node address space size;If nodes X is full-function device FFD, then calculating child node address space is o (x), and as by means of location bag, o (x)+x is sent to routing node Y;If nodes X is half function device RFD, then child node address space o (x)=0, and o (x)+x is sent to routing node Y as by means of location bag;
Step 2.4, routing node Y receive nodes X borrow location bag after, within the scope of its two-hop neighbors node forward borrow location bag, receive by means of location bag neighbor node make reply according to the address space left space of oneself;Meeting, if do not find herein, the neighbor node required by means of location, then return step 2.1, nodes X again sends to new routing node and borrows location request;
Step 2.5, routing node Y receive neighbor node borrow location reply bag after, Y will determine that and meets the same minor matters point whether having oneself in the node by means of location condition, if having, then selects the more node of address space left in the descendant nodes under same branch as by means of location node;If no, then selecting the more node of address space left in meeting the neighbor node by means of location condition as by means of location node;Then the address space used is distributed to nodes X, then by nodes X, following child node is distributed in idle address;If said process can not complete to borrow location operation, then wait when removable coordinator node arrives in transmission range, complete the networking request of isolated node again through distributed address assignment mechanism algorithm.
4. according to claim 1 based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, it is characterised in that in described step 2, the detailed process by means of the Route Selection of address arithmetic is:
Tree is routed through the type of destination node is judged, if destination node is routing node itself, then directly accepts packet;If destination node is the sub-route node of routing node, then it is sent directly to qualified sub-route node after calculating next hop address;If destination node is the sub-terminal unit of routing node, then transfer a packet to sub-terminal unit;If above-mentioned condition does not comply with, then this packet is sent to its father node by routing node, its father node continue to forward this packet according to above-mentioned path selection process.
5. according to claim 1 based on routing inspection trolley with by means of the pig farm environment control method of address routing algorithm, it is characterized in that, in described step 1, user's remote control center can use PC as monitor supervision platform, by controller S3C6410 development board at the scene is transplanted SQLite data base, BOA server and write cgi script, parameter is sent to Internet, by Internet ambient parameter on the pig farm of display monitoring in time on PC, manager can pass through browser remote access data, the data simultaneously gathered will be stored in SQLite data base, it is easy to manager's enquiry of historical data.
CN201610095387.2A 2016-02-22 2016-02-22 It is a kind of based on routing inspection trolley with borrow address routing algorithm pig farm environment control method Expired - Fee Related CN105759647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610095387.2A CN105759647B (en) 2016-02-22 2016-02-22 It is a kind of based on routing inspection trolley with borrow address routing algorithm pig farm environment control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610095387.2A CN105759647B (en) 2016-02-22 2016-02-22 It is a kind of based on routing inspection trolley with borrow address routing algorithm pig farm environment control method

Publications (2)

Publication Number Publication Date
CN105759647A true CN105759647A (en) 2016-07-13
CN105759647B CN105759647B (en) 2019-03-05

Family

ID=56330907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610095387.2A Expired - Fee Related CN105759647B (en) 2016-02-22 2016-02-22 It is a kind of based on routing inspection trolley with borrow address routing algorithm pig farm environment control method

Country Status (1)

Country Link
CN (1) CN105759647B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550223A (en) * 2017-01-13 2017-03-29 湖南理工学院 A kind of dead fish supervising device and monitoring method for aquaculture
CN108040886A (en) * 2017-11-03 2018-05-18 江苏大学 A kind of intensive live pig healthy aquaculture intelligence system and method based on Internet of Things
CN109977813A (en) * 2019-03-13 2019-07-05 山东沐点智能科技有限公司 A kind of crusing robot object localization method based on deep learning frame
CN113009944A (en) * 2021-03-08 2021-06-22 西北农林科技大学 Intelligent temperature regulating system for animal house

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6963582B1 (en) * 1997-07-03 2005-11-08 Utstarcom, Incorporated Applying modified mobile internet protocol (IP) in a wireless mobile data network interface
CN102497390A (en) * 2011-11-18 2012-06-13 江苏大学 Visualized regulation and control system for pigsty nursing environment based on internet of things
CN103995509A (en) * 2014-05-13 2014-08-20 北京华科数能科技发展有限公司 Robot for poultry house environment monitoring and monitoring method and system thereof
CN104049602A (en) * 2014-05-12 2014-09-17 江苏大学 Nursing hog house monitoring system of multi-path routing algorithm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6963582B1 (en) * 1997-07-03 2005-11-08 Utstarcom, Incorporated Applying modified mobile internet protocol (IP) in a wireless mobile data network interface
CN102497390A (en) * 2011-11-18 2012-06-13 江苏大学 Visualized regulation and control system for pigsty nursing environment based on internet of things
CN104049602A (en) * 2014-05-12 2014-09-17 江苏大学 Nursing hog house monitoring system of multi-path routing algorithm
CN103995509A (en) * 2014-05-13 2014-08-20 北京华科数能科技发展有限公司 Robot for poultry house environment monitoring and monitoring method and system thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘阳春 等: "畜禽养殖环境远程监控系统研究", 《机器人技术与应用》 *
吴许俊 等: "基于两跳邻居的ZigBee网络借地址分配算法", 《科学技术与工程》 *
朱伟兴 等: "基于物联网的保育猪舍环境监控系统", 《农业工程学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550223A (en) * 2017-01-13 2017-03-29 湖南理工学院 A kind of dead fish supervising device and monitoring method for aquaculture
CN108040886A (en) * 2017-11-03 2018-05-18 江苏大学 A kind of intensive live pig healthy aquaculture intelligence system and method based on Internet of Things
CN109977813A (en) * 2019-03-13 2019-07-05 山东沐点智能科技有限公司 A kind of crusing robot object localization method based on deep learning frame
CN109977813B (en) * 2019-03-13 2022-09-13 山东沐点智能科技有限公司 Inspection robot target positioning method based on deep learning framework
CN113009944A (en) * 2021-03-08 2021-06-22 西北农林科技大学 Intelligent temperature regulating system for animal house

Also Published As

Publication number Publication date
CN105759647B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
Feng et al. Study of wireless communication technologies on Internet of Things for precision agriculture
CN102307222B (en) Intelligent greenhouse demonstration measurement and control system based on Internet of things technology
CN202602714U (en) Intelligent greenhouse monitoring system based on internet of things and cloud computing technology
Feng Research on water-saving irrigation automatic control system based on internet of things
CN105759647A (en) Pig farm environment monitoring method based on patrol car and address borrowing routing algorithm
CN102736599A (en) Real-time interaction intelligent terminal control system based on internet of things technology
CN106961772B (en) Instant lighting control system and instant lighting control method
CN106993059A (en) A kind of agriculture feelings monitoring system based on NB IoT
CN103984316A (en) Energy management device and system
CN103676886A (en) Standardized henhouse environment and breeding information monitoring and managing system
CN202995383U (en) Real-time interactive intelligent terminal control system based on internet-of-things technology
CN107168083A (en) Home equipment management control system based on cloud computing
CN103907571B (en) A kind of silkworm room based on Internet of Things hasten the hatching of silkworms control method and system
CN102664960A (en) Energy consumption managing system and method for large-sized public building
Zhang Real-time detection of energy consumption of IoT network nodes based on artificial intelligence
Saxena et al. Improved the efficiency of IoT in agriculture by introduction optimum energy harvesting in WSN
CN204331419U (en) A kind of plant factor&#39;s automatic monitored control system based on Internet of Things
Han et al. Impacts of traveling paths on energy provisioning for industrial wireless rechargeable sensor networks
Al-Adwan et al. The use of zigbee wireless network for monitoring and controlling greenhouse climate
CN201905101U (en) Remote orchard intelligent irrigation system based on ZigBee and GPRS (general packet radio service)
CN106789915A (en) A kind of heat supply network intelligence managing and control system
Kavra et al. Systematic study of topology control methods and routing techniques in wireless sensor networks
Zhu et al. A virtual grid-based real-time data collection algorithm for industrial wireless sensor networks
CN104049602A (en) Nursing hog house monitoring system of multi-path routing algorithm
CN105682179A (en) Pig house monitoring method based on mobile coordination node and data temporary storage mechanism

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190305

Termination date: 20200222