Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Upgrade method and the information acquisition system of a seed node function software is provided in the embodiment of the present invention, its core concept is the neighbouring relations utilizing child node, make the child node of lowest version from the child node copy operation software of adjacent highest version, thus the upgrading of function software can be realized.Below be described in detail respectively.
Embodiment one:
The invention provides the upgrade method of a seed node function software, as shown in Figure 1, comprise the following steps:
101, Centroid obtains the function software version information of each child node of the whole network;
In the present embodiment, namely the whole network refers to the Centroid that whole information acquisition system comprises and each child node;
102, the layout of the different operating software version of each child node of the whole network is calculated;
103, distribute at least one adjacent highest version child node to each lowest version child node adjacent with at least one highest version child node according to above-mentioned layout;
In the present embodiment, only the lowest version child node adjacent with at least one highest version child node is distributed, if all adjacent child node of certain lowest version child node is not highest version child node, then this lowest version child node is not distributed; Certainly, only a highest version child node can be distributed to it to each lowest version child node;
104, send to the above-mentioned highest version child node be assigned with the instruction starting upgrading task, to make the above-mentioned highest version child node be assigned with, the function software of himself is sent to above-mentioned lowest version child node;
For adjacent A, B two child nodes, if the function software version of A is higher, then Centroid sends the instruction starting upgrading task to A, after child node A receives instruction, the function software of self is sent to child node B;
105, judge whether each child node of the whole network upgrades complete, if so, end task flow process, if not, performs step 101.
In the upgrade method adopted in the present embodiment, owing to all specifying the object (being limited to the lowest version child node be adjacent) of upgrading task in the upgrade command that Centroid sends to highest version child node Centroid, the problem such as unnecessary replay, channel competition, transmission collision that there will not be broadcast flooding method of the prior art to cause, with a high credibility, compare broadcast flooding method simultaneously, this upgrade method efficiency and reliability higher.
Embodiment two,
The invention provides the upgrade method of a seed node function software, as shown in Figure 2, comprise the following steps:
201, Centroid obtains the function software version information of each child node of the whole network;
202, the layout of the different operating software version of each child node of the whole network is calculated;
203, distribute at least one adjacent highest version child node to each lowest version child node adjacent with at least one highest version child node according to above-mentioned layout;
204, send to the above-mentioned highest version child node be assigned with the instruction starting upgrading task, to make the above-mentioned highest version child node be assigned with, the function software of himself is sent to above-mentioned lowest version child node;
205, judge whether each child node of the whole network upgrades complete, if so, perform step 206, if not, perform step 201;
206, the first child node obtains the version information of the function software of the second child node be adjacent; Above-mentioned first child node and the second child node are respectively any two the adjacent child nodes except Centroid;
When Centroid starts to carry out function software upgrading to each child node of the whole network, first child node may due to transmission reason or its not to be connected at that time in network (under wireless communications environment, this situation ratio is easier to occur), then it realizes the upgrading of function software by the second child node be adjacent;
207, above-mentioned first child node judges that the version of the function software of above-mentioned second child node is whether higher than the function software version of self, if so, performs step 208, otherwise the flow process that ends task;
208, above-mentioned first child node sends the first upgrade request to above-mentioned second child node;
209, above-mentioned first child node receives the function software of above-mentioned second child node that above-mentioned second child node sends.
Embodiment three,
The invention provides the upgrade method of a seed node function software, as shown in Figure 3, comprise the following steps:
301, Centroid obtains the function software version information of each child node of the whole network;
302, Centroid calculates the layout of the different operating software version of each child node of the whole network;
303, Centroid distributes at least one adjacent highest version child node to each lowest version child node adjacent with at least one highest version child node according to above-mentioned layout;
In the present embodiment, highest version child node refers to the child node that the version of function software is relatively high, corresponding lowest version child node refers to the child node that function software version is relatively low, as adjacent with B child node in A child node, and the function software version of A child node is higher than B child node, then A child node is highest version child node, and B child node is lowest version child node;
304, Centroid sends to the above-mentioned highest version child node be assigned with the instruction starting upgrading task, to make the above-mentioned highest version child node be assigned with, the function software of himself is sent to above-mentioned lowest version child node;
305, Centroid judges whether each child node of the whole network upgrades complete, if so, performs step 306, if not, performs step 301;
306, the second child node receives the second upgrade request that the first child node sends; Above-mentioned second upgrade request is to the second upgrade request that above-mentioned second child node sends when the data acquisition environment of above-mentioned first child node changes; Above-mentioned second upgrade request comprises the version information of the function software of above-mentioned first child node needs;
In the present embodiment, first child node and the second child node are any two adjacent child nodes, and the second child node is directly or indirectly connected with Centroid, first child node is indirectly connected with Centroid by the second child node, and namely the transfer of data of the first child node and Centroid need forward through the second child node;
In the present embodiment, when the data acquisition environment of the first child node changes, first child node will send the second upgrade request to the second child node, and wherein " data acquisition environment of the first child node changes " comprises at least one of following situations: when changing appears in the data acquisition equipment of the first child node; When the data acquisition algorithm of the first child node needs Adaptive Modulation; When the information Collection Mode of the data acquisition object of the first child node changes;
307, above-mentioned second child node judges whether the function software version of himself meets the second upgrade request, if so, performs step 308, otherwise performs step 309;
308, the function software of himself is sent to above-mentioned first child node by above-mentioned second child node;
309, above-mentioned second upgrade request forwards to above-mentioned Centroid by above-mentioned second child node;
310, the function software needed for above-mentioned first child node is sent to above-mentioned first child node by above-mentioned Centroid, to respond above-mentioned second upgrade request.
The data acquisition environment of what the present embodiment mainly described is child node changes, the child node method of seeking the upgrading of function software initiatively; When the data acquisition collection of a certain child node changes, first can send upgrade request to its adjacent node, if adjacent node does not have supporting function software, then this upgrade request will be addressed to Centroid, respond this upgrade request by Centroid.
Embodiment four:
The present invention also provides a kind of information acquisition system, and as shown in Figure 4,5, comprise Centroid 10 and at least two child nodes, wherein above-mentioned Centroid 10 comprises:
First acquiring unit 101, for obtaining the function software version information of each child node of the whole network;
Computing unit 102, for calculating the layout of the different operating software version of each child node of the whole network;
Allocation units 103, for distributing at least one adjacent highest version child node to each lowest version child node adjacent with at least one highest version child node according to above-mentioned layout;
First transmitting element 104, is sent to above-mentioned lowest version child node to make the above-mentioned highest version child node be assigned with by the function software of himself for sending the instruction starting upgrading task to the above-mentioned highest version child node be assigned with;
First judging unit 105, for judging whether each child node of the whole network upgrades complete, and is sent to above-mentioned first acquiring unit 101 by judged result.
The information acquisition system provided in the present embodiment, what the controlled system node of Centroid realized adjacent node coerces upgrading, owing to all specifying the object (being limited to the lowest version child node be adjacent) of upgrading task in the upgrade command that Centroid sends to highest version child node Centroid, the problem such as unnecessary replay, channel competition, transmission collision that there will not be broadcast flooding method of the prior art to cause, compare broadcast flooding method simultaneously, this upgrade method efficiency and reliability higher.
Further, as shown in Figure 6, above-mentioned at least two child nodes comprise two child nodes of arbitrary neighborhood: the first child node 20 and the second child node 30, and wherein the first child node comprises:
Second acquisition unit 201, for obtaining the version information of the function software of the second child node 30;
Second judging unit 202, for judging that the version of the function software of above-mentioned second child node 30 is whether higher than the function software version of self;
Second transmitting element 203, for when the judged result of the second judging unit 202 is for being, sends the first upgrade request to the second child node 30;
Receiving element 204, for receiving the function software of the second child node 30 that the second child node 30 sends.
Embodiment five:
The present invention also provides a kind of information acquisition system, and as shown in Figure 7, comprise Centroid 10 and at least two child nodes, wherein above-mentioned Centroid comprises:
First acquiring unit 101, for obtaining the function software version information of each child node of the whole network;
Computing unit 102, for calculating the layout of the different operating software version of each child node of the whole network;
Allocation units 103, for distributing at least one adjacent highest version child node to each lowest version child node adjacent with at least one highest version child node according to above-mentioned layout;
First transmitting element 104, is sent to above-mentioned lowest version child node to make the above-mentioned highest version child node be assigned with by the function software of himself for sending the instruction starting upgrading task to the above-mentioned highest version child node be assigned with;
First judging unit 105, for judging whether each child node of the whole network upgrades complete, and is sent to above-mentioned first acquiring unit 101 by judged result.
In the present embodiment, above-mentioned at least two child nodes comprise adjacent any two child nodes: the first child node 20 and the second child node 30, wherein, second child node 30 can directly or indirectly be connected with Centroid 10 (being represented by dotted lines in figure), the first child node 20 with realized by the second child node indirect connection of Centroid 10.
As shown in Figure 8, the first child node 20 comprises:
3rd judging unit 205, for judging whether the data acquisition environment of himself changes;
3rd transmitting element 206, for when the judged result of the 3rd judging unit 205 is for being, sends the second upgrade request to the second child node 30; Above-mentioned second upgrade request comprises the version information of the function software of the first child node 20 needs;
Above-mentioned second child node 30 comprises:
4th judging unit 301, for judging whether the function software version of himself meets the second upgrade request;
4th transmitting element 302, for when the judged result of above-mentioned 4th judging unit 301 is for being, the function software of himself is sent to above-mentioned first child node, and for when the judged result of described 4th judging unit is no, above-mentioned second upgrade request is forwarded to above-mentioned Centroid.
Further, after Centroid 10 receives the second upgrade request, above-mentioned first transmitting element 104 is also for being sent to the first child node 20 to respond above-mentioned second upgrade request by the function software needed for the first child node 20.
In the information acquisition system that the present embodiment provides, when the data acquisition environment of child node changes, child node initiatively can seek the upgrading of function software, method is: first send upgrade request to its adjacent node, if adjacent node does not have supporting function software, then this upgrade request will be addressed to Centroid, respond this upgrade request by Centroid.
It should be noted that, above in each embodiment, highest version child node refers to the child node that the version of function software is relatively high, corresponding lowest version child node refers to the child node that function software version is relatively low, as adjacent with B child node in A child node, and the function software version of A child node is higher than B child node, then A child node is highest version child node, and B child node is lowest version child node.
It should be noted that, said in above each embodiment " data acquisition environment of child node changes " comprises at least one in following situations: changing appears in the data acquisition equipment of child node; The data acquisition algorithm of child node needs Adaptive Modulation; The information Collection Mode of the data acquisition object of child node changes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-OnlyMemory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above the upgrade method of the child node function software that the embodiment of the present invention provides and information acquisition system are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.