CN101778378A - Firmware node updating method, device and system - Google Patents
Firmware node updating method, device and system Download PDFInfo
- Publication number
- CN101778378A CN101778378A CN200910045276A CN200910045276A CN101778378A CN 101778378 A CN101778378 A CN 101778378A CN 200910045276 A CN200910045276 A CN 200910045276A CN 200910045276 A CN200910045276 A CN 200910045276A CN 101778378 A CN101778378 A CN 101778378A
- Authority
- CN
- China
- Prior art keywords
- node
- firmware
- target firmware
- transmitting
- update
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a firmware node updating method, which comprises the following steps: an update request frame is transmitted, and a returned update request response frame is received; an IP address of a target firmware node contained in the update request response frame is recorded, retransmission times and retransmission time interval during the transmission process of the firmware update file are set up, and the firmware update files are transmitted; and when all firmware update files are transmitted, an update result list is generated. The invention also discloses a firmware node updating device and a system. The firmware node updating method, device and system directly perform the multi-time transmission of each package after receiving the update request response frame returned by the target firmware node, are free from confirming the successful transmission of each package, and mark the target firmware node which does not return the update success response frame as the update failure after all update package is transmitted so as to realize the rapid and high-efficient updating of a great amount of firmware nodes.
Description
Technical field
The present invention relates to wireless communication technology, be specifically related to a kind of firmware node updating method, device and system.
Background technology
Along with radio communication and WLAN (wireless local area network) (Wireless Local Access Network; WLAN) fast development of technology; the cycle of new product development and the speed of technology innovation are more and more faster, and radio reception device manufacturer carries out software upgrading or renewal through regular meeting to the firmware node in the wireless network access device.This renewal can be carried out usually in two ways: for the personal user who buys and use its network access equipment, can upgrade by the mode of obtaining (as downloading) firmware update file and writing (as Nand Flash or Nor Flash) the nonvolatile memory of firmware node again, and need the target firmware interstitial content that upgrades less usually from network; And, carry out the software upgrading of firmware node if desired for equipment manufacturers or Virtual network operator, then often need once a large amount of target firmware nodes to be operated.
The current device that upgrades for firmware node all is to adopt man-to-man update mode, and it forms structure as shown in Figure 1, mainly comprises fever writes 110 and target firmware node 120; Fever writes 110 is habitual addresses of those skilled in the art, mainly comprises: controller 111, memory 112 and transceiver 113; Its middle controller 111 links to each other respectively with transceiver 113 with memory 112; 113 of transceivers carry out communication by wireless network and target firmware node 120;
When carrying out firmware update at every turn, preserve this in the memory 112 in advance and upgrade the firmware update file that needs use; Controller 111 sends the firmware update claim frame by transceiver 113 to target firmware node 120, the firmware update claim frame that 120 pairs of target firmware nodes receive carries out verification, when verification by after then return the firmware update acknowledgement frame to controller 111 by transceiver 113;
After fever writes 110 receives the firmware update acknowledgement frame that returns, send to target firmware node 120 with needing again after the firmware update file encapsulation packing of programming, and in described firmware update document transmission process, adopt and reply and retransmission mechanism, be exactly specifically: one of every transmission is new data packets more, need to wait for that target firmware node 120 correctly receives this packet and returns a feedback of confirming reception, and then carry out the transmission of next packet; Cause packet to send failure if mistake in transmission course, occurs---for example fever writes 110 transmissions are failed or target firmware node 120 takes defeat or make mistakes etc., fever writes 110 will be initiated to retransmit, correctly receive this packet and return the feedback of confirming reception up to target firmware node 120, perhaps reached predefined maximum retransmission up to the number of times that retransmits.
If number of retransmissions reaches maximum retransmission and still fails this packet is sent to target firmware node 120, then this upgrades failure.If the entire packet of firmware update file all successfully sends to target firmware node 120, then target firmware node 120 uses the firmware update file that receives to upgrade, the success back is returned to fever writes 110 and is upgraded successful acknowledgement frame, and fever writes 110 receives the successful acknowledgement frame of described renewal and indicates that then this firmware update completes successfully.
Understand easily, this every more new data packets affirmation and the mechanism that retransmits when failure can farthest guarantee the success rate that firmware node upgrades, but, correspondingly also can be owing to the complicated renewal speed that causes on the flow process is slower.Therefore, this update mode of firmware node one to one of prior art comparatively is fit to the few firmware node of quantity is upgraded.And carry out a fairly large number of firmware node when upgrading when needs, if adopt this man-to-man firmware node update mode, Hua Fei cost undoubtedly can be very huge in time, and visible prior art still can't provide a kind of a large amount of firmware nodes are carried out method for updating rapidly and efficiently.
Summary of the invention
The embodiment of the invention provides a kind of firmware node updating method, device and system, can upgrade a large amount of firmware nodes quickly and efficiently.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of firmware node updating method, set in advance configuration file and firmware update file, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit, this method comprises:
Setting this according to configuration file upgrades employed transmitting-receiving port, respectively receives and dispatches the corresponding relation of port and IP network segment limit and respectively receive and dispatch port and the corresponding relation of firmware update file;
The transmitting-receiving port of utilize setting sends the update request frame, receives the update request acknowledgement frame that comprises the target firmware node IP address that each target firmware node of this transmitting-receiving port correspondence returns;
Write down the target firmware IP addresses of nodes that comprises in the described update request acknowledgement frame, set number of retransmissions and retransmission time interval in the firmware update document transmission process;
Each firmware update file is divided into a plurality of more new data packets, with each more new data packets send according to number of retransmissions and the retransmission time interval set from the transmitting-receiving port of correspondence;
When the firmware update file all send finish after, receives the renewal success acknowledgement frame that the target firmware node that successfully upgrades returns, the target firmware vertex ticks of echo reply frame not for upgrading the firmware node of failing, and is generated final renewal the results list.
The method of the number of retransmissions in the described setting firmware update document transmission process comprises:
When the transmitting-receiving port that described utilization is set sent the update request frame, further record sent to the moment of the update request frame of each target firmware node; Each target firmware node of this transmitting-receiving port correspondence of described reception returns when comprising the update request acknowledgement frame of target firmware node IP address, and further the moment of update request acknowledgement frame is returned in recorder to each target firmware node; The moment according to record obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and obtain wherein the longest transmitting-receiving time t
g, the described retransmit interval time is set to 0.75t
g
The method of the retransmission time interval in the described setting firmware update document transmission process comprises:
Further comprise the current signal strength signal intensity that receives of this target firmware node in the update request acknowledgement frame that comprises the target firmware node IP address that described each target firmware node returns;
According to the current signal strength signal intensity that receives of each target firmware node number of retransmissions when this target firmware node sends firmware update file is set, the signal strength signal intensity that all target firmware nodes that perhaps will receive return is averaged, and according to this mean value unification number of retransmissions when each target firmware node sends firmware update file is set then.
A kind of firmware node updating device, this device comprises: upgrade configuration module, main controller module and at least one transmitting-receiving port;
Upgrade configuration module, be used to preserve the configuration file and the firmware update file that set in advance, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit;
Main controller module, be used for reading configuration file and the firmware update file that the renewal configuration module is preserved, set this according to configuration file and upgrade employed transmitting-receiving port, each receives and dispatches the corresponding relation of port and IP network segment limit, and the corresponding relation of respectively receiving and dispatching port and firmware update file, send the update request frame and receive the update request acknowledgement frame that comprises the target firmware node IP address that the transmitting-receiving port returns to the transmitting-receiving port, write down all target firmware IP addresses of nodes, set number of retransmissions and retransmission time interval in the firmware update document transmission process, each firmware update file is divided into a plurality of more new data packets and sends to and respectively receive and dispatch port according to number of retransmissions of setting and retransmission time interval, after all firmware update files transmissions finish, receive the renewal success acknowledgement frame that the transmitting-receiving port returns, according to final renewal the results list of all target firmware IP addresses of nodes generations of successful acknowledgement frame of described renewal and record;
The transmitting-receiving port be used for the update request frame that main controller module sends is transmitted to target firmware node in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node is returned is transmitted to main controller module; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module sends is transmitted to the target firmware node, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module.
Described main controller module, be further used for writing down and respectively receive and dispatch port sends the moment from the update request frame to the target firmware node, and record respectively receives and dispatches port and receives the moment that described target firmware node returns the update request acknowledgement frame, obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draw wherein the longest transmitting-receiving time t
g, and the described retransmit interval time be set to 0.75t
g
Described main controller module, send to the transmitting-receiving port after being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
The transmitting-receiving port, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to the target firmware node, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module.
A kind of firmware node update system, this system comprises: comprise firmware node updating device and at least one target firmware node, wherein the firmware node updating device further comprises the renewal configuration module, main controller module and at least one transmitting-receiving port;
Upgrade configuration module, be used to preserve the configuration file and the firmware update file that set in advance, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit;
Main controller module, be used for reading configuration file and the firmware update file that the renewal configuration module is preserved, set this according to configuration file and upgrade employed transmitting-receiving port, each receives and dispatches the corresponding relation of port and IP network segment limit, and the corresponding relation of respectively receiving and dispatching port and firmware update file, send the update request frame and receive the update request acknowledgement frame that comprises the target firmware node IP address that the transmitting-receiving port returns to the transmitting-receiving port, write down all target firmware IP addresses of nodes, set number of retransmissions and retransmission time interval in the firmware update document transmission process, each firmware update file is divided into a plurality of more new data packets and sends to and respectively receive and dispatch port according to number of retransmissions of setting and retransmission time interval, after all firmware update files transmissions finish, receive the renewal success acknowledgement frame that the transmitting-receiving port returns, according to final renewal the results list of all target firmware IP addresses of nodes generations of successful acknowledgement frame of described renewal and record;
The transmitting-receiving port be used for the update request frame that main controller module sends is transmitted to target firmware node in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node is returned is transmitted to main controller module; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module sends is transmitted to the target firmware node, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module;
The target firmware node is used to receive the update request frame of transmitting-receiving port transmission and returns the update request acknowledgement frame to described transmitting-receiving port; The more new data packets that reception transmitting-receiving port sends is also returned the successful acknowledgement frame of renewal to the transmitting-receiving port after renewal completes successfully.
Described main controller module, be further used for writing down and respectively receive and dispatch port sends the moment from the update request frame to the target firmware node, and record respectively receives and dispatches port and receives the moment that described target firmware node returns the update request acknowledgement frame, obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draw wherein the longest transmitting-receiving time t
g, and the described retransmit interval time be set to 0.75t
g
Described main controller module, send to the transmitting-receiving port after being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
The transmitting-receiving port, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to the target firmware node, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module;
Simultaneously, the target firmware node is further used for receiving the described update request frame that adds signal strength signal intensity request command word, the information of this node current demand signal intensity level is added to returning to the transmitting-receiving port in the update request acknowledgement frame.
As seen from the above technical solutions, this firmware node updating method, device and the system of the embodiment of the invention, after the fever writes termination is received the update request acknowledgement frame that the target firmware node returns, directly carry out repeatedly sending of every packet and no longer carry out the affirmation of every data packet transmission success, and send at the update all packet and will not return the target firmware vertex ticks that upgrades successful acknowledgement frame after finishing for upgrading failure, thereby realized renewal quickly and efficiently to firmware node in enormous quantities.
Description of drawings
Fig. 1 is the composition structural representation of firmware node updating device in the prior art.
Fig. 2 is the schematic flow sheet of firmware node updating method provided by the invention.
Fig. 3 is the composition structural representation of firmware node updating device provided by the invention.
Fig. 4 is the composition structural representation of firmware node update system provided by the invention.
The composition structure chart of the concrete firmware node updating device that Fig. 5 provides for the embodiment of the invention.
The schematic flow sheet that Fig. 6 carries out firmware update for the firmware node side that the embodiment of the invention provides.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The embodiment of the invention provides a kind of firmware node updating method, its flow process as shown in Figure 2, comprising:
Step 201: set this according to the configuration file that sets in advance and upgrade employed transmitting-receiving port, respectively receive and dispatch port and Internet protocol (Internet Protocol, IP) corresponding relation of network segment scope and respectively receive and dispatch port and the corresponding relation of firmware update file;
The information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit;
In embodiments of the present invention, described configuration file is that the affiliated IP network segment limit of target firmware node that carries out firmware update is in advance as required set, again because the firmware update file of the firmware node correspondence in the same network segment scope is identical, therefore by the transmitting-receiving port that uses in the config update process and the corresponding relation of each port and IP network segment limit, again according to the file name of the employed firmware update file of target firmware node in this IP network segment limit, just can receive and dispatch the unique corresponding relation that port is set up itself and IP network segment limit and firmware update file to each.
Step 202: the transmitting-receiving port of utilize setting sends the update request frame, receives the update request acknowledgement frame that comprises the target firmware node IP address that each target firmware node of this transmitting-receiving port correspondence returns;
Wherein, can't correctly transfer to the target firmware node for fear of described update request frame, the transmitting-receiving port of utilize setting in the step 202 send the update request frame method can for: utilize the transmitting-receiving port of setting that described update request frame is repeated to send 3 times, each 1 second time interval.Certainly, the number of times and the time interval that described update request frame repeats to send also can be set at other values, specifically can determine according to the signal quality and the transmission speed of wireless network.
Step 203: write down the target firmware IP addresses of nodes that comprises in the described update request acknowledgement frame, set number of retransmissions and retransmission time interval in the firmware update document transmission process;
Wherein, in step 202, can also further write down the moment of the update request frame that sends to each target firmware node, and further recorder is returned the moment of update request acknowledgement frame to each target firmware node in step 203, finishes the needed time t of the process of once receiving and dispatching between port and each the target firmware node thereby obtain receiving and dispatching
i, wherein i represents to return the number of the target firmware node of update request acknowledgement frame, establishes each t
iIn the longest transmitting-receiving time be t
g, then preferably, can the retransmit interval time be set to 0.75t
gCertainly, need to prove that described 0.75tg is one and does not represent to limit in order to guarantee the experience value of follow-up firmware update file transfer success rate, also can be adjusted into other values according to the factors such as signal quality of wireless network in the practical application;
In addition, the value of number of retransmissions can be predefined in the firmware update document transmission process---for example preestablish number of retransmissions and be fixed value such as whenever more new data packets retransmit 3 times, also can be an interval value---such as the number of retransmissions that preestablishes every more new data packets maximum 5 times, minimum 2 times, when step 203 is set number of retransmissions, then select a value at random or select a suitable number of retransmissions according to the signal strength signal intensity of wireless network.Correspondingly, when number of retransmissions need be selected according to the signal strength signal intensity of wireless network, in step 202, should further comprise the current signal strength signal intensity that receives of this target firmware node in the update request acknowledgement frame that described each target firmware node returns, at this moment, both can to each firmware node respectively according to its current signal strength signal intensity of receiving select to this firmware node send more the number of retransmissions that uses during new data packets, also the signal strength signal intensity that all target firmware nodes that receive can be returned is averaged, and selects the unified number of retransmissions that uses in the data transmission procedure according to this mean value then.
Understand easily, each firmware node is met the current network condition of each target firmware node most on the theoretical method according to its current signal strength signal intensity selection number of retransmissions that receives respectively, but block up owing to network instantaneous sometimes or unstablely produce bigger error, cause waste of network resources; And select number of retransmissions according to mean value, then can avoid the interference of above-mentioned error to a certain extent.
Step 204: each firmware update file is divided into a plurality of more new data packets, with each more new data packets send according to number of retransmissions and the retransmission time interval set from the transmitting-receiving port of correspondence;
Step 205: after all firmware update files transmissions finish, receive the renewal success acknowledgement frame that the target firmware node that successfully upgrades returns, the target firmware vertex ticks of echo reply frame not for upgrading the firmware node of failure, and is generated final renewal the results list.
Owing in step 203, write down all and returned the target firmware IP addresses of nodes of update request acknowledgement frame, therefore understand easily, in step 205, the target firmware node that success is upgraded returns when upgrading successful acknowledgement frame, just can identify the successful acknowledgement frame of described renewal is which target firmware node returns, thereby, in step 203, go on record and in step 205, do not return the target firmware node that upgrades successful acknowledgement frame and be the target firmware node that renewal is failed, at last, with upgrading successfully or upgrade the target firmware node listing of failure, just can obtain final renewal the results list.
Need benly be, the embodiment of the invention is in renewal process, each transmitting-receiving port is all unique corresponding with an IP network section, but all may comprise one or more target firmware nodes under each IP network section simultaneously, therefore each target firmware node is all unique corresponding to a transmitting-receiving port, but transmitting-receiving port then may be corresponding one or simultaneously corresponding to a plurality of target firmware nodes.
The embodiment of the invention also provides a kind of firmware node updating device, and it forms structure as shown in Figure 3, comprises upgrading configuration module 310 main controller module 320 and at least one transmitting-receiving port 330;
Transmitting-receiving port 330 be used for the update request frame that main controller module 320 sends is transmitted to target firmware node in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node is returned is transmitted to main controller module 320; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module 320 sends is transmitted to the target firmware node, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module 320.
Preferably, described main controller module 320, be further used for writing down and respectively receive and dispatch port 330 sends the moment from the update request frame to the target firmware node, and record respectively receives and dispatches port 330 and receives described target firmware node and return the moment of update request acknowledgement frame, finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draws wherein the longest transmitting-receiving time t thereby obtain receiving and dispatching
g, and the described retransmit interval time be set to 0.75t
gCertainly, need to prove described 0.75t
gBe one and do not represent to limit, also can be adjusted into other values in the practical application according to the factors such as signal quality of wireless network in order to guarantee the experience value of follow-up firmware update file transfer success rate;
In addition, preferably, described main controller module 320, send to transmitting-receiving port 330 after can also being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port 330 returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
Correspondingly, receive and dispatch port 330 this moment, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to the target firmware node, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module 320.
On the basis of described firmware node updating method and device, the embodiment of the invention also further provides a kind of firmware node update system, and it forms structure as shown in Figure 4, comprises firmware node updating device 400 and at least one target firmware node 440; Wherein, described firmware node updating device 400 further comprises: upgrade configuration module 410, main controller module 420 and at least one transmitting-receiving port 430;
Transmitting-receiving port 430, be used for the update request frame that main controller module 420 sends is transmitted to target firmware node 440 in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node 440 is returned is transmitted to main controller module 420; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module 420 sends is transmitted to target firmware node 440, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module 420;
Preferably, described main controller module 420, be further used for writing down and respectively receive and dispatch port 430 sends the moment from the update request frame to target firmware node 440, and record respectively receives and dispatches port 430 and receives described target firmware node 440 and return the moment of update request acknowledgement frame, finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draws wherein the longest transmitting-receiving time t thereby obtain receiving and dispatching
g, and the described retransmit interval time be set to 0.75t
gCertainly, need to prove that described 0.75tg is one and does not represent to limit in order to guarantee the experience value of follow-up firmware update file transfer success rate, also can be adjusted into other values according to the factors such as signal quality of wireless network in the practical application;
In addition, preferably, described main controller module 420, send to transmitting-receiving port 430 after can also being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port 430 returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
Correspondingly, receive and dispatch port 430 this moment, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to target firmware node 440, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module 420;
Simultaneously, target firmware node 440 is further used for receiving the described update request frame that adds signal strength signal intensity request command word, the information of this node current demand signal intensity level is added to returning to transmitting-receiving port 430 in the update request acknowledgement frame.
Understand easily, the setting of described retransmit interval time, and all can in main controller module 420 and target firmware node, realize by software according to the method that target firmware node signal intensity is set number of retransmissions.
In order further to show spirit of the present invention, to describe the course of work of described firmware node update system by a specific embodiment in detail below, the composition structure of described firmware node update system as shown in Figure 5, comprising: master controller 510, memory 520, transceiver 530, power supply 540 and at least one target firmware node 550;
Wherein, master controller 510 and memory 520 are arranged on the same motherboard, and this motherboard is commonly referred to fever writes; It is to be noted, in the present embodiment, the mode that to be transceiver 530 be arranged with master controller 510 and memory in 520 minutes that adopts---promptly, transceiver 530 is divided into n transmitting-receiving socket 531 and n the corresponding transmitting-receiving daughter board 532 that comprises wireless communication chips, to receive and dispatch socket 531 and master controller 510, memory 520 and power supply 540 are arranged on the fever writes motherboard, the transmitting-receiving daughter board is then relatively independent, when carrying out firmware update at every turn as required coupling part or whole transmitting-receiving daughter board to motherboard, thereby realize using more flexibly---for example, 8 transmitting-receiving sockets are set on the motherboard, if this only needs the firmware node of 4 network segments is upgraded, then only need to connect 4 transmitting-receiving daughter boards and to motherboard, get final product.Understand easily, when adopting the separate type set-up mode, the combination of described transmitting-receiving socket 531 and transmitting-receiving daughter board 532 promptly is equivalent to the transmitting-receiving port 430 among Fig. 4.Simultaneously, master controller 510 is promptly corresponding to the main controller module among Fig. 4 420 at this moment, and memory 520 is promptly corresponding to the renewal configuration module 410 among Fig. 4; Certainly, can adopt the mode of integrated form equally---promptly, with master controller 510, memory 520 and transceiver 530 all are arranged on the same motherboard, and this belongs to the distortion that those skilled in the art expect easily, and concrete structure is introduced no longer in detail.
In actual applications, master controller 510 is the microprocessor (MCU) according to pre-set programs work, and it links to each other with memory 520 by memory bus, links to each other with transceiver 530 by data/address bus; 540 of power supplys are to each power devices on the whole fever writes motherboard; Transceiver 530 links to each other with target firmware node 550 by wireless network.
When carrying out the target firmware node updates, master controller 510 reads configuration file and firmware update file from memory 520, according to described configuration file this is set and upgrades which the transmitting-receiving socket (one or more or whole) that uses in the transceiver 530, and the IP network section of each socket correspondence and corresponding firmware update file; Afterwards, the wireless communication chips on the master controller 510 control transmitting-receiving daughter boards 532 sends the update request frame to target firmware node 550; When master controller 510 receives the update request acknowledgement frame that target firmware node 550 returns by described wireless communication chips after, to more according to number of retransmissions of setting and retransmission time interval, new data packets sends to target firmware node 550, return to master controller 510 by described wireless communication chips again after described target firmware node 550 upgrades and completes successfully and upgrade successful acknowledgement frame, thereby finish firmware update.
Of particular note, described firmware updating device is in renewal process, each transmitting-receiving port is all unique corresponding with an IP network section, but all may comprise one or more target firmware nodes under each IP network section simultaneously, therefore each target firmware node is all unique corresponding to a transmitting-receiving port, but transmitting-receiving port then may be corresponding one or simultaneously corresponding to a plurality of target firmware nodes.Therefore in Fig. 4 and Fig. 5, what in fact represent with the corresponding target firmware node of each transmitting-receiving port (being each transceiver among Fig. 5) is the set of interior all the target firmware nodes of an IP network section, not should be understood to receive and dispatch the corresponding one by one of port and target firmware node.
Further, in actual applications, the workflow of target firmware node 550 is to match with the workflow of fever writes side to carry out, and its implementation is not limited to specific a certain mode, take a single example herein, but should be understood that this example should not be construed as the qualification to target firmware node working method, this flow process specifically comprises as shown in Figure 6:
Step 601: the target firmware node receives the update request frame and carries out verification, if verification is passed through, then execution in step 602, otherwise stop this flow process;
Step 602: the target firmware node is contained in self IP address packet in the update request acknowledgement frame and sends;
Step 603: start self timer, if before timer expired, receive more new data packets, whether effective, if effectively then execution in step 604, if invalid then with timer clear 0 and return and re-execute step 603 if then suspending this packet of described timer and verification; If timer expired is not received more new data packets yet, then stop this flow process;
Step 604: further whether the described more new data packets of verification repeats with the more new data packets that has received, if repeat, then abandon this packet and return execution in step 603, if do not repeat, then this packet is saved in the buffer memory of firmware node self, and continues execution in step 605;
Step 605: judge whether current more new data packets is last, if then execution in step 606, otherwise with timer clear 0 and return step 603;
Step 606: original firmware file of preserving in target update firmware erasing self memory, carry out the programming renewal with the firmware update file programming in the buffer memory in described memory;
Step 607: complete successfully if programming is upgraded, then send and upgrade successful acknowledgement frame, otherwise process ends.
By as seen above-mentioned, the firmware node updating method that the embodiment of the invention provides, device and system, after the fever writes termination is received the update request acknowledgement frame that the target firmware node returns, directly carry out repeatedly sending of every packet and no longer carry out the affirmation of every data packet transmission success, and after the transmission of update all packet finishes, will not return the target firmware vertex ticks that upgrades successful acknowledgement frame and fail, thereby realized firmware node in enormous quantities is upgraded quickly and efficiently for upgrading.
At last; understand easily, the above is preferred embodiment of the present invention only, is not to be used to limit spirit of the present invention and protection range; equivalent variations that any those of ordinary skill in the art made or replacement all should be considered as being encompassed within protection scope of the present invention.
Claims (9)
1. firmware node updating method, it is characterized in that, set in advance configuration file and firmware update file, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit, this method comprises:
Setting this according to configuration file upgrades employed transmitting-receiving port, respectively receives and dispatches the corresponding relation of port and IP network segment limit and respectively receive and dispatch port and the corresponding relation of firmware update file;
The transmitting-receiving port of utilize setting sends the update request frame, receives the update request acknowledgement frame that comprises the target firmware node IP address that each target firmware node of this transmitting-receiving port correspondence returns;
Write down the target firmware IP addresses of nodes that comprises in the described update request acknowledgement frame, set number of retransmissions and retransmission time interval in the firmware update document transmission process;
Each firmware update file is divided into a plurality of more new data packets, with each more new data packets send according to number of retransmissions and the retransmission time interval set from the transmitting-receiving port of correspondence;
When the firmware update file all send finish after, receives the renewal success acknowledgement frame that the target firmware node that successfully upgrades returns, the target firmware vertex ticks of echo reply frame not for upgrading the firmware node of failing, and is generated final renewal the results list.
2. method according to claim 1 is characterized in that, the method for the number of retransmissions in the described setting firmware update document transmission process comprises:
When the transmitting-receiving port that described utilization is set sent the update request frame, further record sent to the moment of the update request frame of each target firmware node; Each target firmware node of this transmitting-receiving port correspondence of described reception returns when comprising the update request acknowledgement frame of target firmware node IP address, and further the moment of update request acknowledgement frame is returned in recorder to each target firmware node; The moment according to record obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and obtain wherein the longest transmitting-receiving time t
g, the described retransmit interval time is set to 0.75tg.
3. method according to claim 1 and 2 is characterized in that, the method for the retransmission time interval in the described setting firmware update document transmission process comprises:
Further comprise the current signal strength signal intensity that receives of this target firmware node in the update request acknowledgement frame that comprises the target firmware node IP address that described each target firmware node returns;
According to the current signal strength signal intensity that receives of each target firmware node number of retransmissions when this target firmware node sends firmware update file is set, the signal strength signal intensity that all target firmware nodes that perhaps will receive return is averaged, and according to this mean value unification number of retransmissions when each target firmware node sends firmware update file is set then.
4. a firmware node updating device is characterized in that, this device comprises: upgrade configuration module, main controller module and at least one transmitting-receiving port;
Upgrade configuration module, be used to preserve the configuration file and the firmware update file that set in advance, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit;
Main controller module, be used for reading configuration file and the firmware update file that the renewal configuration module is preserved, set this according to configuration file and upgrade employed transmitting-receiving port, each receives and dispatches the corresponding relation of port and IP network segment limit, and the corresponding relation of respectively receiving and dispatching port and firmware update file, send the update request frame and receive the update request acknowledgement frame that comprises the target firmware node IP address that the transmitting-receiving port returns to the transmitting-receiving port, write down all target firmware IP addresses of nodes, set number of retransmissions and retransmission time interval in the firmware update document transmission process, each firmware update file is divided into a plurality of more new data packets and sends to and respectively receive and dispatch port according to number of retransmissions of setting and retransmission time interval, after all firmware update files transmissions finish, receive the renewal success acknowledgement frame that the transmitting-receiving port returns, according to final renewal the results list of all target firmware IP addresses of nodes generations of successful acknowledgement frame of described renewal and record;
The transmitting-receiving port be used for the update request frame that main controller module sends is transmitted to target firmware node in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node is returned is transmitted to main controller module; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module sends is transmitted to the target firmware node, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module.
5. device according to claim 4, it is characterized in that, described main controller module, be further used for writing down and respectively receive and dispatch port sends the moment from the update request frame to the target firmware node, and record respectively receives and dispatches port and receives the moment that described target firmware node returns the update request acknowledgement frame, obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draw wherein the longest transmitting-receiving time t
g, and the described retransmit interval time be set to 0.75t
g
6. according to claim 4 or 5 described devices, it is characterized in that, described main controller module, send to the transmitting-receiving port after being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
The transmitting-receiving port, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to the target firmware node, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module.
7. firmware node update system, it is characterized in that, this system comprises: comprise firmware node updating device and at least one target firmware node, wherein the firmware node updating device further comprises the renewal configuration module, main controller module and at least one transmitting-receiving port;
Upgrade configuration module, be used to preserve the configuration file and the firmware update file that set in advance, the information that comprises in the described configuration file comprises: IP network segment limit under each target firmware node and corresponding transmitting-receiving port thereof, and the file name of the employed firmware update file of target firmware node in each IP network segment limit;
Main controller module, be used for reading configuration file and the firmware update file that the renewal configuration module is preserved, set this according to configuration file and upgrade employed transmitting-receiving port, each receives and dispatches the corresponding relation of port and IP network segment limit, and the corresponding relation of respectively receiving and dispatching port and firmware update file, send the update request frame and receive the update request acknowledgement frame that comprises the target firmware node IP address that the transmitting-receiving port returns to the transmitting-receiving port, write down all target firmware IP addresses of nodes, set number of retransmissions and retransmission time interval in the firmware update document transmission process, each firmware update file is divided into a plurality of more new data packets and sends to and respectively receive and dispatch port according to number of retransmissions of setting and retransmission time interval, after all firmware update files transmissions finish, receive the renewal success acknowledgement frame that the transmitting-receiving port returns, according to final renewal the results list of all target firmware IP addresses of nodes generations of successful acknowledgement frame of described renewal and record;
The transmitting-receiving port be used for the update request frame that main controller module sends is transmitted to target firmware node in the IP network segment limit of this port correspondence, and the update request acknowledgement frame that described target firmware node is returned is transmitted to main controller module; According to number of retransmissions of setting and retransmission time interval the more new data packets that main controller module sends is transmitted to the target firmware node, receives the successful acknowledgement frame of renewal that the target firmware node that successfully upgrades returns and be transmitted to main controller module;
The target firmware node is used to receive the update request frame of transmitting-receiving port transmission and returns the update request acknowledgement frame to described transmitting-receiving port; The more new data packets that reception transmitting-receiving port sends is also returned the successful acknowledgement frame of renewal to the transmitting-receiving port after renewal completes successfully.
8. system according to claim 7, it is characterized in that, described main controller module, be further used for writing down and respectively receive and dispatch port sends the moment from the update request frame to the target firmware node, and record respectively receives and dispatches port and receives the moment that described target firmware node returns the update request acknowledgement frame, obtains receiving and dispatching and finishes the needed time of the process of once receiving and dispatching between port and each the target firmware node and draw wherein the longest transmitting-receiving time t
g, and the described retransmit interval time be set to 0.75t
g
9. according to claim 7 or 8 described systems, it is characterized in that, described main controller module, send to the transmitting-receiving port after being further used in the update request frame, adding signal strength signal intensity request command word, and the update request acknowledgement frame that has target firmware node current demand signal intensity level that port returns is received and dispatched in reception, current demand signal intensity level according to each target firmware node is set the number of retransmissions that upgrades in the transmission of data packets, perhaps calculate after the mean value of all target firmware node current demand signal intensity levels, set the number of retransmissions that upgrades in the transmission of data packets according to this mean value;
The transmitting-receiving port, be further used for the described update request frame that has added signal strength signal intensity request command word is transmitted to the target firmware node, the update request acknowledgement frame that has described node current demand signal intensity level that the receiving target firmware node returns also is transmitted to main controller module;
Simultaneously, the target firmware node is further used for receiving the described update request frame that adds signal strength signal intensity request command word, the information of this node current demand signal intensity level is added to returning to the transmitting-receiving port in the update request acknowledgement frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910045276 CN101778378B (en) | 2009-01-14 | 2009-01-14 | Firmware node updating method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910045276 CN101778378B (en) | 2009-01-14 | 2009-01-14 | Firmware node updating method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101778378A true CN101778378A (en) | 2010-07-14 |
CN101778378B CN101778378B (en) | 2013-03-13 |
Family
ID=42514661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910045276 Active CN101778378B (en) | 2009-01-14 | 2009-01-14 | Firmware node updating method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101778378B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693181A (en) * | 2011-03-25 | 2012-09-26 | 鸿富锦精密工业(深圳)有限公司 | Firmware update-write system and method |
CN102937904A (en) * | 2012-10-24 | 2013-02-20 | 华为技术有限公司 | Multi-node firmware updating method and device |
CN103701942A (en) * | 2012-09-28 | 2014-04-02 | 中国移动通信集团公司 | Method, device and system for preventing client from frequently initiating IP (Internet protocol) address allocation request |
CN105551262A (en) * | 2015-12-23 | 2016-05-04 | 青岛海信网络科技股份有限公司 | Vehicle detection method based on wireless geomagnetic detector and apparatus thereof |
CN107370613A (en) * | 2016-05-13 | 2017-11-21 | 公牛集团有限公司 | A kind of radio firmware programming method and apparatus |
CN107885520A (en) * | 2017-11-29 | 2018-04-06 | 郑州云海信息技术有限公司 | A kind of RAID card firmware batch refreshing apparatus and method |
CN107979480A (en) * | 2016-10-25 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of method that Jbod firmwares are updated by RMC |
CN108990020A (en) * | 2017-06-02 | 2018-12-11 | 苹果公司 | Update the configuration file of secondary wireless device |
CN109614118A (en) * | 2018-11-23 | 2019-04-12 | 信利光电股份有限公司 | A kind of SPI Flash firmware burning method and device |
CN110362965A (en) * | 2019-06-12 | 2019-10-22 | 创芯工坊科技(深圳)有限公司 | Firmware processing method, device, system, equipment and the medium of IC chip |
US20220206779A1 (en) * | 2020-12-25 | 2022-06-30 | Honda Motor Co.,Ltd. | Control system, moving object, control method, and computer-readable storage medium |
JP2022120453A (en) * | 2021-02-05 | 2022-08-18 | Necプラットフォームズ株式会社 | Maintenance control apparatus, maintenance control method, maintenance control system, and maintenance control program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003025742A2 (en) * | 2001-09-17 | 2003-03-27 | Soma Networks, Inc. | Software update method, apparatus and system |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
US20080028385A1 (en) * | 2006-07-26 | 2008-01-31 | Dell Products L.P. | Apparatus and Methods for Updating Firmware |
CN101252458A (en) * | 2008-01-30 | 2008-08-27 | 深圳市共进电子有限公司 | Firmware batch upgrading method |
-
2009
- 2009-01-14 CN CN 200910045276 patent/CN101778378B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003025742A2 (en) * | 2001-09-17 | 2003-03-27 | Soma Networks, Inc. | Software update method, apparatus and system |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
US20080028385A1 (en) * | 2006-07-26 | 2008-01-31 | Dell Products L.P. | Apparatus and Methods for Updating Firmware |
CN101252458A (en) * | 2008-01-30 | 2008-08-27 | 深圳市共进电子有限公司 | Firmware batch upgrading method |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693181A (en) * | 2011-03-25 | 2012-09-26 | 鸿富锦精密工业(深圳)有限公司 | Firmware update-write system and method |
CN103701942A (en) * | 2012-09-28 | 2014-04-02 | 中国移动通信集团公司 | Method, device and system for preventing client from frequently initiating IP (Internet protocol) address allocation request |
CN103701942B (en) * | 2012-09-28 | 2017-05-31 | 中国移动通信集团公司 | Prevent client from frequently initiating the methods, devices and systems of IP address distribution request |
CN102937904A (en) * | 2012-10-24 | 2013-02-20 | 华为技术有限公司 | Multi-node firmware updating method and device |
CN105551262A (en) * | 2015-12-23 | 2016-05-04 | 青岛海信网络科技股份有限公司 | Vehicle detection method based on wireless geomagnetic detector and apparatus thereof |
CN107370613A (en) * | 2016-05-13 | 2017-11-21 | 公牛集团有限公司 | A kind of radio firmware programming method and apparatus |
CN107979480A (en) * | 2016-10-25 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of method that Jbod firmwares are updated by RMC |
CN108990020A (en) * | 2017-06-02 | 2018-12-11 | 苹果公司 | Update the configuration file of secondary wireless device |
CN108990020B (en) * | 2017-06-02 | 2021-07-30 | 苹果公司 | Updating a profile of a secondary wireless device |
CN107885520A (en) * | 2017-11-29 | 2018-04-06 | 郑州云海信息技术有限公司 | A kind of RAID card firmware batch refreshing apparatus and method |
CN109614118A (en) * | 2018-11-23 | 2019-04-12 | 信利光电股份有限公司 | A kind of SPI Flash firmware burning method and device |
CN109614118B (en) * | 2018-11-23 | 2022-05-06 | 信利光电股份有限公司 | SPI Flash firmware burning method and device |
CN110362965A (en) * | 2019-06-12 | 2019-10-22 | 创芯工坊科技(深圳)有限公司 | Firmware processing method, device, system, equipment and the medium of IC chip |
US20220206779A1 (en) * | 2020-12-25 | 2022-06-30 | Honda Motor Co.,Ltd. | Control system, moving object, control method, and computer-readable storage medium |
US11886859B2 (en) * | 2020-12-25 | 2024-01-30 | Honda Motor Co., Ltd. | Control system, moving object, control method, and computer-readable storage medium |
JP2022120453A (en) * | 2021-02-05 | 2022-08-18 | Necプラットフォームズ株式会社 | Maintenance control apparatus, maintenance control method, maintenance control system, and maintenance control program |
Also Published As
Publication number | Publication date |
---|---|
CN101778378B (en) | 2013-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101778378B (en) | Firmware node updating method, device and system | |
US11223525B2 (en) | Gateway device, firmware update method, and recording medium | |
CN104579719B (en) | A kind of upgrade method and system, host computer and optical module of firmware | |
CN103559066B (en) | Embedded software upgrade method based on CANOPEN agreement | |
WO2018202177A1 (en) | Method and device for upgrading firmware of zigbee devices | |
CN109842523A (en) | A kind of firmware upgrade method, device, equipment and storage medium | |
AU2011298473B2 (en) | Parallel programming and updating of lighting bus subscribers | |
CN103942080B (en) | Electronic device information transmission method | |
CN112947977B (en) | Online software upgrading method and system | |
EP1410181A1 (en) | Embedded software update system | |
CN106909352A (en) | A kind of firmware upgrade method of embedded device | |
CN106886438A (en) | System remote update method based on FPGA | |
CN104503796A (en) | IAP (Internet Access Provider) based configurable full-network remote node firmware upgrading method | |
CN104102519A (en) | Firmware updating method of rack-mounted server and device thereof | |
JP2009020886A (en) | System and method for ota programming | |
CN106713044B (en) | Data upgrading method and device | |
CN105812413A (en) | Communication method and device | |
CN114153485B (en) | Multiprocessor program upgrading method and device based on high-speed port | |
CN105320534B (en) | BOOT remote upgrading method, device and system for single board | |
CN114416135A (en) | Internet of things cloud platform remote terminal upgrading system and method | |
JP5500332B2 (en) | IC chip, information processing apparatus, software module control method, information processing system and method, and program | |
CN105407003B (en) | A kind of data of 1553 bus add discharging method | |
CN113190259B (en) | Data programming method and device, internet module and storage medium | |
CN113626139B (en) | High-availability virtual machine storage method and device | |
CN111371799B (en) | Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190424 Address after: 100085 Huarun Qingcai Street 68, Haidian District, Beijing, two stage, 9 floor, 01 rooms. Patentee after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd. Address before: No. 7 Guiqing Road, Xuhui District, Shanghai, 2003 Patentee before: Inventec Appliances (Shanghai) Co.,Ltd. |