Summary of the invention
The present invention has overcome the deficiency of prior art; The method that provides a kind of network equipment to obtain and upgrade configuration, this method can be saved authentication and communication encryption, does not need configuration of IP simultaneously; So very convenient, simple, solved the technical matters that exists in the prior art.
A kind of network equipment obtains and upgrades the method for configuration, and being divided into has the people's management mode or the mode of unmanned management, and the described people's of having management mode comprises the steps:
Steps A 1 is connected to terminal with the network equipment, and the corresponding driving program is installed;
Steps A 2; Network device management program on the terminal detects the network equipment; Connect to the network equipment through USB and to send the essential information query statement, essential information comprises but is not limited to the information of the designation equipment identity of MAC Address, unit type, sequence number;
Steps A 3 is after the network equipment is received instruction, to the essential information described in the terminal forwarding step A2;
Steps A 4, terminal are received the essential information of the network equipment, after these information are handled, present to the keeper through the user interface of program;
Steps A 5, the keeper selects in following three kinds of possibilities:
Option A: continue the various information of more this network equipment of inquiry, promptly get into steps A 6;
Option B: whether the network configuration parameters that detects this network equipment and this terminal is compatible, if incompatible, then revises the network configuration parameters of this terminal; Directly get into steps A 7 then,
Option C: the parameter that this network equipment is set; Get into steps A 9.
Steps A 6: inquiry can be divided into the essential information inquiry; Parameter and state that Wi-Fi connects; The parameter of lan network interface and state, the parameter of WAN network interface and state, the parameter and the state of DHCP service; The parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer the state and the information of user configured parameter and report current network equipment operation; Get back to steps A 5 after the completion;
Steps A 7; The interface function of routine call terminal operating system obtains all identity informations; Include but not limited to the title and the MAC Address of network interface card, the network interface card of network interface card that lets the keeper select the network interface card that is connected with the network equipment or give tacit consent to unique connection for being connected with the network equipment;
Steps A 8, program are based on keeper's selection, and the interface function that calls terminal operating system obtains the configuration information of this network interface card; Send relevant parameters (lan network interface parameters for example to this network equipment then; The Wi-Fi parameter) query statement, draw the parameter that this terminal needs after, call the interface function of terminal operating system; With these parameter configuration network interface cards, arrive steps A 5 after accomplishing;
Steps A 9, program be according to keeper's selection, converts user instruction the configuration-direct of the network equipment to, connects to the network equipment through USB and send these configuration-directs;
Steps A 10; After the network equipment receives the instruction of terminal transmission; According to the requirement change relevant parameters of instruction, and the module of indication network device interior (for example Wi-Fi module, DHCP module etc.) obtains the result that module is carried out then according to new parameter operation; The result is sent to terminal through the USB connection;
Steps A 11, terminal connects the result obtain returning through USB, these information are carried out certain processing after, present to the keeper through the user interface of program, get back to steps A 5 after the completion.
Further be:
The described mode of unmanned management may further comprise the steps:
Step B1 is connected to terminal with the network equipment, and the corresponding driving program is installed;
Step B2, the network device management program on the terminal detects the network equipment, connects to the network equipment through USB and sends the essential information query statement, and essential information comprises but is not limited to MAC Address, unit type, the information of designation equipment identity such as sequence number;
Step B3 after the network equipment is received instruction, sends essential information to terminal;
Step B4, the information that the terminal utilization obtains engages some rules of system in advance, and drawing also needs further information inquiring (not needing people's participation), and terminal is used to connect the network interface card information of the network equipment; 1 query statement is selected in further inquiry if desired, arrives step B5 then; Need not arrive step B6;
Step B5, inquiry can be divided into essential information inquiry, parameter and state that Wi-Fi connects; The parameter of lan network interface and state, the parameter of WAN network interface and state, the parameter and the state of DHCP service; The parameter and the state of UPnP service; A series of network equipments such as network real-time traffic information may offer the state and the information of user configured parameter and the operation of report current network equipment, this moment similar step B2-B3, just query statement possibly not be the essential information query statement; But the query statement of the rule-based selection of program arrives step B4 after accomplishing;
Step B6, the information that the terminal utilization obtains is through handling some parameters that need reconfigure that back automatic (not needing people's participation) draws the network equipment, if the parameter that need not dispose arrives step B11;
Step B7, terminal converts the configuration parameter of these network equipments the configuration-direct of the network equipment to, connects to the network equipment through USB and sends these configuration-directs;
After step B8, the network equipment received the instruction of terminal transmission, according to the requirement change relevant parameters of instruction, and the module of indication network device interior (for example Wi-Fi module, DHCP module etc.) was according to new parameter operation; The result is sent to terminal through the USB connection;
Step B9, terminal obtains return results through the USB connection, judges whether the network equipment has normally carried out aforementioned instruction; If normal, to step B10, if undesired can the trial once more executed instruction; Perhaps through other means report users: equipment has fault, finishes then;
Step B10; According to front all operations return results and the rule of formulating in advance, terminal is judged the parameter compatibility whether of parameter and the network interface card of the network equipment, if incompatible; The parameter of the network equipment is calculated; After drawing the parameter of network interface card needs, call the interface function of terminal operating system, with these parameter configuration network interface cards;
Step B11, terminal further check the situation that is connected of the network interface card and the network equipment, if undesiredly can attempt step B2-step B11 once more, perhaps through other means report users: equipment has fault, finishes then.
Described terminal is terminal A, promptly adopts the USBHOST pattern connection network equipment and disposes Ethernet card and the personal computer of Wi-Fi network interface card (Personal Computer), in the described steps A 7; The interface function of routine call terminal operating system obtains all identity informations, includes but not limited to the title and the MAC Address of Ethernet card and Wi-Fi network interface card, lets the keeper select one of Ethernet card or Wi-Fi network interface card network interface card for being connected with the network equipment; If it is the Wi-Fi network interface card that the keeper selects, then described steps A 8 comprises that specifically program is according to keeper's selection; The interface function that calls terminal operating system obtains the configuration information of this network interface card, sends the parameter query instruction of lan network interface then to this network equipment, also need send the instruction of Wi-Fi parameter query simultaneously; Specify the parameter of network interface card to compare result who obtains and keeper; Whether detection is compatible, if incompatible, will calculate from the parameter that the network equipment is obtained; After drawing the parameter of these terminal needs; Call the interface function of terminal operating system,, arrive steps A 5 after accomplishing with these parameter configuration network interface cards.
Described terminal is terminal B; Promptly adopt the USBHOST pattern to connect the network equipment and dispose the panel computer of Wi-Fi network interface card; Described steps A 7 is: the interface function of routine call terminal operating system obtains all identity informations; Include but not limited to the title and the MAC Address of Wi-Fi network interface card, acquiescence Wi-Fi network interface card is the network interface card that is connected with the network equipment.
Described terminal is terminal C; Promptly adopt USB DEVICE pattern Microsoft Loopback Adapter to connect the panel computer (be attached thereto network equipment USB interface as USB HOST Microsoft Loopback Adapter this moment) of the network equipment; Described steps A 7 is: the interface function of routine call terminal operating system obtains all identity informations; Include but not limited to the title and the MAC Address of USB Microsoft Loopback Adapter, acquiescence USB Microsoft Loopback Adapter is the network interface card that is connected with the network equipment.Adopting the USB Microsoft Loopback Adapter is a kind of typical module, uses other modes, and for example prior art such as the virtual UART of USB also is fine.
Described terminal is terminal A or terminal B, promptly disposes the computing machine of Ethernet card and Wi-Fi network interface card or the panel computer of employing USB holotype and Wi-Fi network interface card, and 1 of described steps A specifically comprises:
Steps A 1-1: the network equipment is connected to terminal as USB device through USB interface;
Steps A 1-2: terminal A or terminal B detect this USB device, start USB and connect process and the informing network equipment set up;
Steps A 1-3: after the network equipment has notice, USB is driven and supervisory routine is mapped to terminal with the form of virtual CD;
Steps A 1-4: terminal A or terminal B install USB and drive and the network device management program, and working procedure.
Described terminal is terminal C, promptly adopts the panel computer of USB driving and USB Microsoft Loopback Adapter, and then steps A 1 specifically comprises:
Steps A 1-A: corresponding USB is installed on terminal C drives and the network device management program, and working procedure;
Steps A 1-B network equipment is connected to terminal C as usb host through USB interface.
Described terminal is terminal A or terminal B, promptly disposes the computing machine of Ethernet card and Wi-Fi network interface card or the panel computer of employing USB holotype and Wi-Fi network interface card, and then step B1 specifically comprises:
Step B1-1: the network equipment is connected to terminal as USB device through USB interface;
Step B1-2: terminal A or terminal B detect this USB device, start USB and connect process and the informing network equipment set up;
Step B1-3: after the network equipment has notice, USB is driven and supervisory routine is mapped to terminal with the form of virtual CD;
Step B1-4: terminal A or terminal B install USB and drive and the network device management program, and working procedure.
Described terminal is terminal C, promptly adopts the panel computer of USB driving and USB Microsoft Loopback Adapter, and then described step B1 comprises:
Step B1-A: corresponding USB is installed on terminal C drives and the network device management program, and working procedure;
Step B1-B: the network equipment is connected to terminal C as usb host through USB interface.
In the abovementioned steps USB is replaced to IEEE 1394, its effect is identical, and also within protection scope of the present invention, unique difference is that IEEE 1394 connection two ends are equality, does not resemble USB and will be divided into host and device.
Compared with prior art, the invention has the beneficial effects as follows:
Do not resemble other universal networks 1.USB reach IEEE 1394, have other equipment and spy upon, so can save authentication and communication encryption.And; USB and IEEE 1394 transmission ranges are not far; And general networking equipment can be as the general communication means, so can think that being connected to equipment through USB and IEEE 1394 just proves and can touch equipment by physics, just should have the control to equipment.
2. do not need configuration of IP, so convenient configuration.In fact USB and IEEE 1394 can have a lot of means to invent network interface card (Network Interface Card); Do not need configuration of IP not represent and do not use IP; Because can need still to guarantee that this IP can not have influence on the proper communication of this machine through the IP at certain protocol negotiation or configuration two ends.Can really not use IP-based means of communication yet.
3.USB the two ends that need to connect are respectively device and host.Opertaing device is as host, and the network equipment is as device; Perhaps opertaing device is as device, and the network equipment can be realized this scheme as host.
Embodiment
Again specific embodiment of the present invention is described in detail below.
The method that the present invention relates to comprises two kinds of configuration modes, and the people's management mode and the mode of unmanned management are arranged.
Wherein have people's management mode to need the keeper to participate in, but simplified keeper's burden, even configuration error can also reconfigure the typical application environment: average family uses the network equipments such as broadband router, Wi-Fi router.
The mode of unmanned management does not need the keeper, the typical application environment: configuration automatically under the particular network environment.
Implement 1:
Someone management mode: terminal is terminal A (PC connects the network equipment as usb host, and the configuration ethernet card adds the Wi-Fi network interface card):
Comprise following concrete steps:
S001. the network equipment is connected to terminal A as USB device (sub device) through USB interface.
S002. terminal A detects this USB device, starts USB and connects process and the informing network equipment set up.
S003. after the network equipment has notice, USB is driven and supervisory routine is mapped on the terminal A with the form of virtual CD.
S004. terminal A installs USB driving and network device management program, and working procedure.
S005. the network device management program on the terminal A detects the network equipment, connects to the network equipment through USB and sends the essential information query statement.Essential information refers to MAC Address, unit type, the information of designation equipment identity such as sequence number.
S006. after the network equipment is received instruction, send essential information to terminal A.
S007. terminal A receives the essential information of the network equipment, these information are carried out certain processing after, present to the keeper through the user interface of program.
S008. the keeper can select: A continues the various information of more this network equipment of inquiry; Whether the network configuration parameters that B detects this network equipment and this terminal compatibility, if incompatible, can revise the network configuration parameters of this terminal; C can be provided with the parameter of this network equipment.Select A,, select B, select C to s012 to s010 to s009.
S009. inquiry can be divided into the essential information inquiry; Parameter and state that Wi-Fi connects; The parameter of lan network interface and state, the parameter and the state of WAN (Internet) network interface, the parameter and the state of DHCP service; The parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer the state and the information of user configured parameter and report current network equipment operation.This moment similar s005-s007, just query statement possibly not be the essential information query statement, but the corresponding query statement of selecting according to the keeper.Arrive s008 after accomplishing.
S010. the interface function of routine call terminal A operating system obtains the identity information such as title and MAC Address of all Ethernet cards and Wi-Fi network interface card, lets the keeper select a network interface card that is connected with the network equipment.
S011. program is according to keeper's selection, and the interface function that calls terminal A operating system obtains the configuration information of this network interface card, sends the parameter query instruction of lan network interface then to this network equipment; If what the keeper selected is the Wi-Fi network interface card, also need send the instruction of Wi-Fi parameter query, the result who obtains is specified the parameter comparison of network interface card in the keeper; Whether compatiblely detect; If incompatible, will calculate from the parameter that the network equipment is obtained, draw the parameter that this terminal needs after; Call the interface function of terminal A operating system, with these parameter configuration network interface cards.Arrive s008 after accomplishing.
S012. program is according to keeper's selection, converts user instruction the configuration-direct of the network equipment to, connects to the network equipment through USB and sends these configuration-directs.
S013. after the network equipment receives the instruction of terminal A transmission; Requirement change relevant parameters according to instruction; And modules such as the Wi-Fi module of indication network device interior, DHCP according to new parameter operation according to new parameter operation, obtain the result that module is carried out then; The result is sent to terminal A through the USB connection.
S014. terminal A connects the result obtain returning through USB, these information are carried out certain processing after, present to the keeper through the user interface of program.Arrive s008 after accomplishing.
Embodiment 2:
Someone management mode with terminal is terminal B (panel computer connects the network equipment as usb host, configuration Wi-Fi network interface card):
Concrete steps: with the terminal category-A seemingly, no longer detail.Just when s010,, can omit the step that lets the keeper select network interface card, and be defaulted as unique Wi-Fi network interface card because have only a Wi-Fi network interface card.
Embodiment 3:
Someone square tube reason pattern, with terminal C (panel computer connects the network equipment as usb device, configuration usb Microsoft Loopback Adapter):
S001-s004 is replaced as above step: S101-S102, all the other similar terminal A.Just when s010,, can omit the step that lets the keeper select network interface card, and be defaulted as unique usb Microsoft Loopback Adapter because have only a usb Microsoft Loopback Adapter.
S101., corresponding USB is installed on terminal C drives and the network device management program, and working procedure.
S102. the network equipment is connected to terminal C as usb host (usb host) through USB interface.
Embodiment 4:
The mode of unmanned management, terminal are terminal C (panel computer connects the network equipment as usb device, configuration usb Microsoft Loopback Adapter):
S201., corresponding USB is installed on terminal C drives and the network device management program, and working procedure.
S202. the network equipment is connected to terminal C as usb host (usb host) through USB interface.
S203. the network device management program on the terminal C detects the network equipment, connects to the network equipment through USB and sends the essential information query statement.Essential information refers to MAC Address, unit type, the information of designation equipment identity such as sequence number.
S204. after the network equipment is received instruction, send essential information to terminal C.
S205. terminal C utilizes the information that obtains, and engages some rules of formulating in advance, and drawing also needs further information inquiring (not needing people's participation), and terminal C is used to connect the network interface card information of the network equipment.1 query statement is selected in further inquiry if desired, to s206; Need not arrive s207.
S206. inquiry can be divided into the essential information inquiry; Parameter and state that Wi-Fi connects; The parameter of lan network interface and state, the parameter and the state of WAN (Internet) network interface, the parameter and the state of DHCP service; The parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer the state and the information of user configured parameter and report current network equipment operation.This moment similar s203-s204, just query statement possibly not be the essential information query statement, but the query statement that program is selected according to rule.Arrive s205 after accomplishing.
S207. terminal C utilizes the information obtain, through after certain processing automatically (not needing people's participation) draw some parameters that need reconfigure of the network equipment, if the parameter that need not dispose, to s212.
S208. terminal C converts the configuration parameter of these network equipments the configuration-direct of the network equipment to, connects to the network equipment through USB and sends these configuration-directs.
S209. after the network equipment received the instruction that terminal C sends, according to the requirement change relevant parameters of instruction, and modules such as the Wi-Fi module of indication network device interior, DHCP obtained the result that module is carried out then according to new parameter operation; The result is sent to terminal C through the USB connection.
S210. terminal C obtains return results through the USB connection, judges whether the network equipment has normally carried out aforementioned instruction, if normal, to s211.If undesired can the trial once more executed instruction, perhaps through other means report users: equipment has fault, finishes then.
S211. according to front all operations return results and the rule of formulating in advance; Terminal C judges whether the parameter of parameter and network interface card of the network equipment is compatible; If incompatible, the parameter of the network equipment is calculated, draw the parameter that network interface card needs after; Call the interface function of terminal C operating system, with these parameter configuration network interface cards.
S212. terminal C further checks the situation that is connected of the network interface card and the network equipment, if undesiredly can attempt s203-s212 once more, perhaps through other means report users: equipment has fault, finishes then.
Embodiment 5:
The mode of unmanned management, terminal are terminal A (PC connects the network equipment as usb host, and the configuration ethernet card adds the Wi-Fi network interface card):
S201-s202 replaces with s001-s004 with step, the mode of unmanned management of all the other similar terminal C.
Embodiment 6:
The mode of unmanned management, terminal are terminal B (panel computer connects the network equipment as usb host, configuration Wi-Fi network interface card)
Method and terminal category-A seemingly no longer detail.