Embodiment
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, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Upgrade method and the information acquisition system of a kind of child node function software are provided in the embodiment of the present invention, its core concept is to utilize the neighbouring relations of child node, make the child node of lowest version can be from the child node copy operation software of adjacent highest version, thereby realize the upgrading of function software.Below be elaborated respectively.
Embodiment mono-:
The upgrade method that the invention provides a kind of child node function software, as shown in Figure 1, comprises the following steps:
101, Centroid obtains the function software version information of each child node of the whole network;
In the present embodiment, the whole network refers to Centroid and each child node that whole information acquisition system comprises;
102, calculate the layout of the different operating software version of each child node of the whole network;
103, according to above-mentioned layout, distribute at least one adjacent highest version child node to each and at least one the adjacent lowest version child node of highest version child node;
In the present embodiment, only the lowest version child node adjacent with at least one highest version child node distributed, if all adjacent child node of certain lowest version child node is not highest version child node, this lowest version child node is not distributed; Certainly, to each lowest version child node, can only to it, distribute a highest version child node;
104, the instruction that sends startup upgrading task to the above-mentioned highest version child node being assigned with is so that the above-mentioned highest version child node being assigned with is sent to above-mentioned lowest version child node by the function software of himself;
Take adjacent A, two child nodes of B is example, if the function software version of A is higher, Centroid sends the instruction that starts 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 completely, and if so, the flow process that ends task, if not, performs step 101.
In the upgrade method adopting in the present embodiment, in upgrade command Centroid being sent to highest version child node due to Centroid, all specified the object (being limited to the lowest version child node being adjacent) of upgrading task, there will not be the problems such as unnecessary replay that broadcast flooding method of the prior art causes, channel competition, transmission collision, with a high credibility, compare broadcast flooding method, this upgrade method efficiency and reliability are higher simultaneously.
Embodiment bis-,
The upgrade method that the invention provides a kind of child node function software, as shown in Figure 2, comprises the following steps:
201, Centroid obtains the function software version information of each child node of the whole network;
202, calculate the layout of the different operating software version of each child node of the whole network;
203, according to above-mentioned layout, distribute at least one adjacent highest version child node to each and at least one the adjacent lowest version child node of highest version child node;
204, the instruction that sends startup upgrading task to the above-mentioned highest version child node being assigned with is so that the above-mentioned highest version child node being assigned with is sent to above-mentioned lowest version child node by the function software of himself;
205, judge whether each child node of the whole network upgrades completely, if so, performs step 206, if not, performs step 201;
206, the first child node is obtained the version information of the function software of the second child node being adjacent; Above-mentioned the first child node and the second child node are respectively any two the adjacent child nodes except Centroid;
When Centroid starts each child node of the whole network to carry out function software upgrading, the first child node may not be connected to (this situation ratio is easier to occur under wireless communications environment) in network at that time due to transmission reason or its, and it can realize by the second child node being adjacent the upgrading of function software;
207, the version of function software that above-mentioned the first child node judges above-mentioned the second child node, whether higher than the function software version of self, if so, performs step 208, otherwise the flow process that ends task;
208, above-mentioned the first child node sends the first upgrade request to above-mentioned the second child node;
209, above-mentioned the first child node receives the function software of above-mentioned second child node of above-mentioned the second child node transmission.
Embodiment tri-,
The upgrade method that the invention provides a kind of child node function software, as shown in Figure 3, comprises 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 and at least one the adjacent lowest version child node of highest version child node according to above-mentioned layout;
In the present embodiment, highest version child node refers to the relatively high child node of version of function software, 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, A child node is highest version child node, and B child node is lowest version child node;
304, the instruction that Centroid sends startup upgrading task to the above-mentioned highest version child node being assigned with is so that the above-mentioned highest version child node being assigned with is sent to above-mentioned lowest version child node by the function software of himself;
305, Centroid judges whether each child node of the whole network upgrades completely, 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; Second upgrade request of above-mentioned the second upgrade request for sending to above-mentioned the second child node when the data acquisition environment of above-mentioned the first child node changes; Above-mentioned the second upgrade request comprises the version information of the function software of above-mentioned the first child node needs;
In the present embodiment, the first child node and the second child node are any two adjacent child nodes, and the second child node is to be directly or indirectly connected with Centroid, the first child node is to be indirectly connected with Centroid by the second child node, and 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, the first child node will send the second upgrade request to the second child node, and wherein " the data acquisition environment of the first child node changes " comprises at least one of following situations: when the data acquisition equipment appearance change 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 the second child node judges that whether the function software version of himself meets the second upgrade request, if so, performs step 308, otherwise performs step 309;
308, above-mentioned the second child node is sent to above-mentioned the first child node by the function software of himself;
309, above-mentioned the second child node forwards above-mentioned the second upgrade request to above-mentioned Centroid;
310, above-mentioned Centroid is sent to above-mentioned the first child node by the required function software of above-mentioned the first child node, to respond above-mentioned the second upgrade request.
What the present embodiment was mainly described is that the data acquisition environment of working as child node changes, the method for the child node upgrading of seeking function software initiatively; When the data acquisition collection of a certain child node changes, can first to its adjacent node, send upgrade request, if adjacent node does not have supporting function software, this upgrade request will be addressed to Centroid, by Centroid, respond this upgrade request.
Embodiment tetra-:
The present invention also provides a kind of information acquisition system, as shown in Figure 4,5, comprises Centroid 10 and at least two child nodes, and wherein above-mentioned Centroid 10 comprises:
The 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 and at least one the adjacent lowest version child node of highest version child node according to above-mentioned layout;
The first transmitting element 104, the instruction that sends startup upgrading task for the above-mentioned highest version child node to being assigned with is so that the above-mentioned highest version child node being assigned with is sent to above-mentioned lowest version child node by the function software of himself;
The first judging unit 105, for judging that whether each child node of the whole network upgrades completely, and is sent to above-mentioned the first acquiring unit 101 by judged result.
The information acquisition system providing in the present embodiment, the controlled system node of Centroid is realized the upgrading of coercing of adjacent node, in upgrade command Centroid being sent to highest version child node due to Centroid, all specified the object (being limited to the lowest version child node being adjacent) of upgrading task, there will not be the problems such as unnecessary replay that broadcast flooding method of the prior art causes, channel competition, transmission collision, compare broadcast flooding method, this upgrade method efficiency and reliability are higher simultaneously.
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 second child node 30 function software;
The second judging unit 202, for the version that judges above-mentioned the second child node 30 function software whether higher than self function software version;
The second transmitting element 203, for when judgment result is that of the second judging unit 202 is, sends the first upgrade request to the second child node 30;
Receiving element 204, the second child node 30 function software sending for receiving the second child node 30.
Embodiment five:
The present invention also provides a kind of information acquisition system, as shown in Figure 7, comprises Centroid 10 and at least two child nodes, and wherein above-mentioned Centroid comprises:
The 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 and at least one the adjacent lowest version child node of highest version child node according to above-mentioned layout;
The first transmitting element 104, the instruction that sends startup upgrading task for the above-mentioned highest version child node to being assigned with is so that the above-mentioned highest version child node being assigned with is sent to above-mentioned lowest version child node by the function software of himself;
The first judging unit 105, for judging that whether each child node of the whole network upgrades completely, and is sent to above-mentioned the 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, the second child node 30 can directly or indirectly be connected (in figure, being represented by dotted lines) with Centroid 10, the first child node 20 with realize indirect the connection by the second child node of Centroid 10.
As shown in Figure 8, the first child node 20 comprises:
The 3rd judging unit 205, for judging whether the data acquisition environment of himself changes;
The 3rd transmitting element 206, for when judgment result is that of the 3rd judging unit 205 is, sends the second upgrade request to the second child node 30; Above-mentioned the second upgrade request comprises the version information of the function software of the first child node 20 needs;
Above-mentioned the second child node 30 comprises:
The 4th judging unit 301, for judging whether the function software version of himself meets the second upgrade request;
The 4th transmitting element 302, for when judgment result is that of above-mentioned the 4th judging unit 301 is, the function software of himself is sent to above-mentioned the first child node, and when the determination result is NO when described the 4th judging unit, above-mentioned the second upgrade request is forwarded to above-mentioned Centroid.
Further, at Centroid 10, receive after the second upgrade request, above-mentioned the first transmitting element 104 is also for being sent to the first child node 20 to respond above-mentioned the second upgrade request by the first required function software of child node 20.
In the information acquisition system that the present embodiment provides, when the data acquisition environment of child node changes, child node can initiatively be sought the upgrading of function software, method is: first to its adjacent node, send upgrade request, if adjacent node does not have supporting function software, this upgrade request will be addressed to Centroid, by Centroid, respond this upgrade request.
It should be noted that, above in each embodiment, highest version child node refers to the relatively high child node of version of function software, 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, and 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 " when the data acquisition environment of child node changes " comprises at least one in following situations: when change appears in the data acquisition equipment of child node; When the data acquisition algorithm of child node needs Adaptive Modulation; When 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 whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Upgrade method and the information acquisition system of the child node the function software above embodiment of the present invention being provided are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , 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 meanwhile.