Summary of the invention
In view of this, the present invention according to peripheral hardware information products configuration information update in real time and intelligent demand, the method and system of a kind of peripheral hardware information products and brand-new its configuration information of renewal are provided.
According to a first aspect of the invention, provide a kind of peripheral hardware information products, having comprised:
Bootstrap module is at the vectoring phase of peripheral hardware information products initialization network interface card and be configured the renewal of information according to new configuration information;
Network interface card is connected to network with bootstrap module;
Wherein, initiatively send out access end in the detection packet inquiry network by network interface card, and when the new configuration information that receives from access end, be configured the renewal of information at the vectoring phase of peripheral hardware information products bootstrap module.
Preferably, the configuration information of described renewal peripheral hardware information products comprises one or more in the firmware of revising in dominant frequency, MAC Address, the network address and upgrading access end address, the upgrading FLASH.
According to a second aspect of the invention, a kind of method of upgrading peripheral hardware information products configuration information is provided, the peripheral hardware information products comprise bootstrap module and network interface card, and link to each other with network through network interface card, it is characterized in that described method is included in the following steps of the vectoring phase of peripheral hardware information products:
Behind bootstrap module initialization network interface card, bootstrap module is initiatively sent out access end in the detection packet inquiry network by network interface card;
Reception is replied from access end, and described replying is after receiving described detection packet by access end, according to what the configuration needs of peripheral hardware information products was made; Described replying comprise, when new configuration needs need be upgraded the configuration information of peripheral hardware information products, sends configuration information under the new configuration needs for described bootstrap module;
According to new configuration information, bootstrap module is configured the renewal of information.
Preferably, the updating steps that described bootstrap module is configured information comprises when new configuration information that the peripheral hardware information products return according to access end upgrades, the step that former configuration information is backed up; When described method is included in the configuration information update failure, reactivate the step of former configuration information.
Preferably, when upgrading access end address need be upgraded, after the new configuration information that bootstrap module returns from described access end also upgrades upgrading access end address, further according to new upgrading access end address, by the new access end of network interface card visit, obtain the renewal that needed new configuration information is also finally finished configuration information.
According to a third aspect of the invention we, provide a kind of system that upgrades peripheral hardware information products configuration information, having comprised:
Include the peripheral hardware information products of bootstrap module and network interface card or network interface card functional module, bootstrap module is at the vectoring phase of peripheral hardware information products initialization network interface card, and network interface card is connected to network with bootstrap module, and bootstrap module is configured the renewal of information by network interface card;
At least one access end, this access end is in the network, and comprises the required configuration information of peripheral hardware information products renewal;
Wherein, initiatively send out access end in the detection packet inquiry network by network interface card, and when the new configuration information that receives from access end, be configured the renewal of information at the vectoring phase of peripheral hardware information products bootstrap module.
According to the present invention, a kind of new peripheral hardware information products are provided and provide a kind of new method and system for the renewal of peripheral hardware information products configuration information.The configuration information update of peripheral hardware information products has been realized active mode and intellectuality, and the peripheral hardware information products adapt to the external environment condition configuration needs in real time, and are more convenient, more laborsaving.
Embodiment
In order to realize the real-time intelligent renewal of peripheral hardware information products configuration information, the invention provides a kind of peripheral hardware information products and upgrade the method and system of its configuration information.Next be example with IP Camera, specify this configuration information update method and system.
Fig. 1 illustrates configuration information update flow chart of the present invention.As shown in Figure 1,101 steps begin, and the bootstrap module of IP Camera starts, and network interface card is carried out initialization.Then, in 102 steps, IP Camera initiatively sends detection packet by network interface card and has or not new configuration needs to access end inquiry outside.Judge that in 103 steps the external reference end has or not new configuration needs,, its inquiry made reply and enter 105 steps if having; If there is not new configuration needs, enter 104 steps, start the system that comprises former configuration information.
In 106 steps, access end sends the bootstrap module of configuration information to IP Camera by network interface card, to be configured renewal.
In 107 steps, according to the requirement in the configuration information, operations such as the dominant frequency of making amendment, MAC Address, upgrading access end address and firmware updating enter 108 steps then, according to new configuration information, carry out the new system after upgrading.
After 104 steps or 108 step relevant works are finished, enter 109 steps and finish.
In the peripheral hardware information products of other and IP Camera similar, the update method of this configuration information all can be used.The main feature of its structure is, comprises a network interface card or has the module of network interface card function, upgrades its configuration information and need be undertaken by network interface.
In one embodiment, when the new configuration information that IP Camera returns according to access end upgrades, former configuration information is backed up, when configuration information update is failed, reactivate former configuration information.In reality was implemented, the configuration information update failure mainly was meant in the burning process when upgrading firmware mistake to occur, so that burning failure.The former configuration information after the backup and the configuration information of renewal have constituted dual system, to guarantee the fail safe and the reliability of configuration information update upgrading.
To this, next illustrate storage and shared relation between the dual system with chart.System one and system two carry out the subregion storage, and wherein, system one comprises new configuration information, and system two comprises the former configuration information of backup.In the following table, partition name and the order on the flash represented on the subregion hurdle; The initial physical address of corresponding subregion on flash represented on the initial address hurdle; The size of corresponding subregion is represented on the partition size hurdle, and unit is a byte; Maximum bad piece is counted the bad piece number that the hurdle represents that corresponding section post allows, and this is special at nand flash, because bad piece of physics can appear in this type flash.
| Subregion | Initial address | Partition size | Maximum bad piece number |
| bootloader1 | 0x0 | 0x20000 | 0 |
| param | 0x20000 | 0x10000 | 1 |
| kerne11 | 0x30000 | 0x200000 | 8 |
| libapp | 0x230000 | 0x400000 | 8 |
| root1 | 0x630000 | 0x1600000 | 8 |
| kerne12 | 0x1C30000 | 0x200000 | 8 |
| root2 | 0x1e30000 | 0x1600000 | 8 |
| user | 0x3430000 | 0xA00000 | 8 |
| bootloader2 | 0x3E30000 | 0x1D0000 | 1 |
Wherein, Bootloaer: bootstrap module;
The parameter subregion of Parm:bootIoader;
Kernel: kernel subregion [read-only];
Libapp: application layer library file subregion [read-only];
Root: root file system subregion [read-only];
User: user partition, the user can read and write data to this subregion.
As can be seen from the table, system one comprises: bootloader1/kernel1/root1 and system two comprise: bootloader2/kernel2/root2, wherein, two shared subregions of system are param/libapp/user.When system one upgraded the configuration information failure, system two still was complete, can finish configuration and driving to hardware by system two.
Fig. 2 illustrates the flow chart that Fig. 1 upgrades upgrading access end address.As shown in Figure 2,201 steps begin, and the bootstrap module of IP Camera starts, and network interface card is carried out initialization.In 202 steps, IP Camera initiatively sends detection packet by network interface card and has or not new configuration needs to access end inquiry outside.
Judge that in 203 steps the external reference end has or not new configuration needs,, its inquiry made reply and enter 205 steps if having; If there is not new configuration needs, enter 204 steps, start the system that comprises former configuration information.
In 206 steps, access end sends the bootstrap module of configuration information to IP Camera by network interface card, to be configured renewal.
In 207 steps, the renewal in the judgement configuration information has or not the renewal of upgrading access end address, if do not have, directly carries out 210 steps, according to new configuration information, carries out new system, if there has been renewal upgrading access end address, then enters 208 steps.
In 208 steps, according to new upgrading access end address, visit this access end, further finish the renewal of the available configuration information of this access end.Enter 209 steps then, whether judgement has the further renewal of upgrading access end address in the configuration information update of this access end, if have then repeat 207 steps, finish the further renewal of configuration information, all be met and upgrade until all configuration information demands; If there is not upgrading access end address in the renewal, order enters step 210, according to according to new configuration information, carries out the new system after upgrading.
After 210 steps or 204 step relevant works are finished, enter step 211 and finish.
Situation among Fig. 2 that is to say when upgrading the configuration information of IP Camera, and there has been variation upgrading access end address.For the configuration needs of outside, its desired whole configuration informations also promptly are scattered on a plurality of access end entities not on same access end.Have only visit successively and further upgrade configuration information, finally could intactly realize the renewal of configuration information, all satisfy outside configuration needs at the access end of being visited.This is the more new situation to a peripheral hardware information products configuration information.
Be exactly that the renewal upgrading of the configuration information of a plurality of peripheral hardware information products also is the situation of streamline upgrading, is described in detail for example below in addition:
The partial data of upgrading usefulness has been stored in streamline upgrading, promptly a plurality of access ends respectively, so a plurality of information products and a plurality of access end will form the streamline upgrading.In the present invention, upgrade data is meant the configuration information of peripheral hardware information products.Such as upgrade data is respectively A, B, C, and access end is respectively A1, A2, A3, and the peripheral hardware information products are respectively D1, D2, D3.The order of upgrade data is A, B, and C, when D1 upgrades C on A3 so, the D2 B that can on A2, upgrade, the D3 A that can on A1, upgrade.Streamline upgrading has effectively utilized the visit of peripheral hardware information products and upgrades the Internet resources of configuration information and improved time efficiency at access end.
Fig. 3 illustrates system construction drawing of the present invention.As shown in Figure 3, the system of this renewal configuration information comprises IP Camera and external reference end, and wherein, the external reference end is not unique entity entirely.IP Camera 300 comprises bootstrap module 312, the network interface card 320 that is stored among the flash310.
In the vectoring phase of IP Camera, be arranged in the bootstrap module 312 initialization network interface cards 320 of flash310, send detection packet by network interface card 320 then and inquire to access end 350, see if there is new exterior arrangement demand.
Access end 350 is after the inquiry of receiving bootstrap module 312, make and replying, if there is not new configuration needs, return to bootstrap module 312 by network interface card 320 replying, bootstrap module 312 is after receiving that it replys, start the system that comprises original configuration information, order is carried out kernel 314 and root file 316 etc.; If new configuration needs is arranged, then configuration needs being described also is that configuration information sends network interface card 320 to, and network interface card 320 is stored in new configuration information in the memory 330 under the control of processor controls 340.
If renewal has also taken place in upgrading access end address, communicate by letter by network interface card with the access end of needs visit successively by bootstrap module 312, and required whole configuration informations are downloaded and left in the memory 330.Under the control of processor controls 340, after the system backup that comprises former configuration information, bootstrap module 312 usefulness are stored in the profile update system that the need in the memory upgrade.
What need supplementary notes is, this network interface card can be replaced by the functional module with network interface card function, and the solution of the present invention is as the criterion with the functional module with network interface card function.
In one embodiment, network interface card in the described peripheral hardware information products or network interface card functional module adopt adaptive mode.
More than specific descriptions of the present invention are intended to illustrate the implementation of specific embodiments can not be interpreted as it is limitation of the present invention.Those of ordinary skills can make various variants on the basis of the embodiment that describes in detail under instruction of the present invention, these variants all should be included within the design of the present invention.The present invention's scope required for protection is only limited by described claims.