Summary of the invention
The present invention has overcome the deficiencies in the prior art, provide a kind of network equipment to obtain and the method for Reconfigurations, the method can be saved authentication and communication encryption, does not need configuration of IP simultaneously, so very convenient, simple, solved the technical matters existing in prior art.
The network equipment obtains and the method for Reconfigurations, is divided into and has people's management mode or the mode of unmanned management, and the described people's management mode that has comprises the steps:
Steps A 1, is connected to terminal by the network equipment, and corresponding driver is installed;
Steps A 2, network device management program on terminal detects the network equipment, by USB, connected to the network equipment and sent 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, the network equipment is received after instruction, to the essential information described in terminal forwarding step A2;
Steps A 4, terminal is received the essential information of the network equipment, after these information are processed, by the user interface of program, presents to keeper;
Steps A 5, keeper selects in following three kinds of possibilities:
Option A: continue the various information of more this network equipment of inquiry, enter steps A 6;
Option B: whether the network configuration parameters that detects this network equipment and this terminal is compatible, if incompatible, revises the network configuration parameters of this terminal; Then directly enter steps A 7,
Option C: the parameter that this network equipment is set; Enter steps A 9.
Steps A 6: 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, parameter and the state of DHCP service, parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer state and the information of user configured parameter and the operation of report current network equipment; After completing, get back to steps A 5;
Steps A 7, the interface function of routine call terminal operating system obtains all identity informations, include but not limited to title and the MAC Address of network interface card, allow keeper select the network interface card being connected with the network equipment or the network interface card of the giving tacit consent to unique connection network interface card for being connected with the network equipment;
Steps A 8, program is according to keeper's selection, the interface function that calls terminal operating system obtains the configuration information of this network interface card, then to this network equipment, send corresponding parameter (lan network interface parameters for example, Wi-Fi parameter) query statement, draws after the parameter of these terminal needs, calls the interface function of terminal operating system, with these parameter configuration network interface cards, after completing, arrive steps A 5;
Steps A 9, program, according to keeper's selection, converts user instruction to the configuration-direct of the network equipment, by USB, is connected to the network equipment and is sent these configuration-directs;
Steps A 10, the network equipment receives after the instruction of terminal transmission, according to the requirement of instruction, change corresponding parameter, and the module of indication network device interior (such as Wi-Fi module, DHCP module etc.) is according to new parameter operation, then obtains the result that module is carried out; Result is connected and sent to terminal by USB;
Steps A 11, terminal connects the result that obtains returning by USB, these information are carried out, after certain processing, by the user interface of program, presenting to keeper, gets back to steps A 5 after completing.
Further:
The described mode of unmanned management comprises the following steps:
Step B1, is connected to terminal by the network equipment, and corresponding driver is installed;
Step B2, the network device management program on terminal detects the network equipment, by USB, is connected to the network equipment and is sent essential information query statement, and essential information comprises but is not limited to MAC Address, unit type, the information of the designation equipment identity such as sequence number;
Step B3, the network equipment is received after instruction, to terminal, sends essential information;
Step B4, the information that terminal utilization obtains, engages some rules of system in advance, draw and also need the further information (not needing people's participation) of inquiry, and terminal is for the network interface card information of interconnection network equipment; If need further inquiry, select 1 query statement, then arrive step B5; Do not need 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, parameter and the state of DHCP service, parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer state and the information of user configured parameter and the operation of report current network equipment, similar step B2-B3 now, just query statement may not be essential information query statement, but program is according to the query statement of rules selection, after completing, arrive step B4,
Step B6, the information that terminal utilization obtains, draws some parameters that need to reconfigure of the network equipment by processing rear (not needing people's participation) automatically, if do not need the parameter of configuration, to step B11;
Step B7, terminal converts the configuration parameter of these network equipments to the configuration-direct of the network equipment, by USB, is connected to the network equipment and is sent these configuration-directs;
Step B8, the network equipment receives after the instruction of terminal transmission, according to the requirement of instruction, changes corresponding parameter, and the module of indication network device interior (such as Wi-Fi module, DHCP module etc.) is according to new parameter operation; Result is connected and sent to terminal by USB;
Step B9, terminal is connected and is returned results by USB, judges whether the network equipment has normally carried out aforementioned instruction, if normal, to step B10, if undesired, can again attempt carrying out instruction, or by other means, report user: equipment has fault, then finishes;
Step B10, according to the rule that all operations returns results and formulates in advance above, terminal judges that whether the parameter of the network equipment and the parameter of network interface card be compatible, if incompatible, the parameter of the network equipment is calculated, draw after 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 checks the connection of network interface card and the network equipment, can again attempt step B2-step B11 if undesired, or reports user by other means: equipment has fault, then finishes.
Described terminal is terminal A, adopt USBHOST pattern interconnection network equipment and dispose Ethernet card and the personal computer of Wi-Fi network interface card (Personal Computer), in described steps A 7, the interface function of routine call terminal operating system obtains all identity informations, include but not limited to title and the MAC Address of Ethernet card and Wi-Fi network interface card, allow 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 Wi-Fi network interface card that keeper selects, described steps A 8 specifically comprises, program is according to keeper's selection, the interface function that calls terminal operating system obtains the configuration information of this network interface card, then to this network equipment, send the parameter query instruction of lan network interface, also need to send the instruction of Wi-Fi parameter query simultaneously, specify the parameter of network interface card to compare the result obtaining and keeper, whether compatiblely detect, if incompatible, the parameter obtaining from the network equipment is calculated, draw after the parameter of these terminal needs, call the interface function of terminal operating system, with these parameter configuration network interface cards, after completing, arrive steps A 5.
Described terminal is terminal B, adopt USBHOST pattern interconnection 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 title and the MAC Address of Wi-Fi network interface card, acquiescence Wi-Fi network interface card is the network interface card being connected with the network equipment.
Described terminal is terminal C, adopt the panel computer (being now attached thereto network equipment USB interface as USB HOST Microsoft Loopback Adapter) of USB DEVICE pattern Microsoft Loopback Adapter interconnection 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 title and the MAC Address of USB Microsoft Loopback Adapter, acquiescence USB Microsoft Loopback Adapter is the network interface card being connected with the network equipment.Adopting USB Microsoft Loopback Adapter is a kind of typical module, uses other modes, such as prior aries such as the virtual UART of USB, is also fine.
Described terminal is terminal A or terminal B, 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 described of steps A specifically comprises:
Steps A 1-1: the network equipment is connected to terminal as USB device by USB interface;
Steps A 1-2: terminal A or terminal B detect this USB device, starts USB and connects process of establishing informing network equipment;
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 optical disk;
Steps A 1-4: terminal A or terminal B install USB and drive and network device management program, and working procedure.
Described terminal is terminal C, adopts the panel computer of USB driving and USB Microsoft Loopback Adapter, and steps A 1 specifically comprises:
Steps A 1-A: corresponding USB is installed on terminal C and drives and network device management program, and working procedure;
Steps A 1-B network equipment is connected to terminal C as usb host by USB interface.
Described terminal is terminal A or terminal B, 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 step B1 specifically comprises:
Step B1-1: the network equipment is connected to terminal as USB device by USB interface;
Step B1-2: terminal A or terminal B detect this USB device, starts USB and connects process of establishing informing network equipment;
Step B1-3: after the network equipment has notice, USB is driven and supervisory routine is mapped to terminal with the form of virtual optical disk;
Step B1-4: terminal A or terminal B install USB and drive and network device management program, and working procedure.
Described terminal is terminal C, adopts the panel computer of USB driving and USB Microsoft Loopback Adapter, and described step B1 comprises:
Step B1-A: corresponding USB is installed on terminal C and drives and network device management program, and working procedure;
Step B1-B: the network equipment is connected to terminal C as usb host by USB interface.
In 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:
1.USB and IEEE 1394 do not resemble other universal networks, may have other equipment to 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 general communication means, thus can think by USB and IEEE 1394 be connected to equipment just proof can physical contact to equipment, just should have the control to equipment.
2. do not need configuration of IP, so configuration is convenient.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, by the IP at certain protocol negotiation or configuration two ends, still need to guarantee that this IP can not have influence on the proper communication of the machine.Can really not use IP-based means of communication yet.
The two ends that 3.USB need to connect are respectively device and host.Opertaing device is as host, and the network equipment is as device; Or opertaing device is as device, and the network equipment can be realized this scheme as host.
Embodiment
Again specific embodiments of the invention are described in detail below.
The method the present invention relates to comprises two kinds of configuration modes, has people's management mode and the mode of unmanned management.
Wherein there is people's management mode to need keeper to participate in, but simplified keeper's burden, even if configuration error can also reconfigure, typical applied environment: average family is used the network equipments such as broadband router, Wi-Fi router.
The mode of unmanned management does not need keeper, typical applied environment: configuration automatically under particular network environment.
Implement 1:
Someone management mode: terminal is terminal A (PC, as usb host interconnection network equipment, configuration ethernet card adds Wi-Fi network interface card):
Comprise following concrete steps:
S001. the network equipment is connected to terminal A as USB device (sub device) by USB interface.
S002. terminal A detects this USB device, starts USB and connects process of establishing informing network equipment.
S003., after the network equipment has notice, USB is driven and supervisory routine is mapped on terminal A with the form of virtual optical disk.
S004. terminal A installs USB driving and network device management program, and working procedure.
S005. the network device management program on terminal A detects the network equipment, by USB, is connected to the network equipment and is sent essential information query statement.Essential information refers to MAC Address, unit type, the information of the designation equipment identity such as sequence number.
S006. the network equipment is received after instruction, to terminal A, sends essential information.
S007. terminal A receives the essential information of the network equipment, and these information are carried out, after certain processing, by the user interface of program, presenting to keeper.
S008. keeper can select: A continues the various information of more this network equipment of inquiry; Whether B detects the network configuration parameters of this network equipment and this terminal compatible, if incompatible, can revise the network configuration parameters of this terminal; C can arrange the parameter of this network equipment.Select A, to s009, select B to s010, select C to s012.
S009. inquiry can be divided into essential information inquiry, parameter and state that Wi-Fi connects, the parameter of lan network interface and state, WAN(Internet) parameter of network interface and state, parameter and the state of DHCP service, parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer state and the information of user configured parameter and the operation of report current network equipment.Similar s005-s007 now, just query statement may not be essential information query statement, but the corresponding query statement of selecting according to keeper.After completing, arrive s008.
S010. the interface function of routine call terminal A operating system obtains the identity informations such as the title of all Ethernet cards and Wi-Fi network interface card and MAC Address, allows keeper select the network interface card being connected with the network equipment.
S011. program is according to keeper's selection, the interface function that calls terminal A operating system obtains the configuration information of this network interface card, then to this network equipment, send the parameter query instruction of lan network interface, if what keeper selected is Wi-Fi network interface card, also need to send the instruction of Wi-Fi parameter query, the result obtaining is specified to the parameter comparison of network interface card in keeper, whether compatiblely detect, if incompatible, the parameter obtaining from the network equipment is calculated, draw after the parameter of these terminal needs, call the interface function of terminal A operating system, with these parameter configuration network interface cards.After completing, arrive s008.
S012. program, according to keeper's selection, converts user instruction to the configuration-direct of the network equipment, by USB, is connected to the network equipment and is sent these configuration-directs.
S013. the network equipment receives after the instruction of terminal A transmission, according to the requirement of instruction, change corresponding parameter, and the module such as the Wi-Fi module of indication network device interior, DHCP according to new parameter operation according to new parameter operation, then obtain the result that module is carried out; Result is connected and sent to terminal A by USB.
S014. terminal A connects the result that obtains returning by USB, and these information are carried out, after certain processing, by the user interface of program, presenting to keeper.After completing, arrive s008.
Embodiment 2:
Someone management mode, take terminal as, terminal B (panel computer, as usb host interconnection network equipment, configuration Wi-Fi network interface card):
Concrete steps: with terminal category-A seemingly, no longer describe in detail.Just, when s010, because only have a Wi-Fi network interface card, can omit the step that allows keeper select network interface card, and be defaulted as unique Wi-Fi network interface card.
Embodiment 3:
Someone side's management mode, with terminal C (panel computer, as usb device interconnection network equipment, configuration usb Microsoft Loopback Adapter):
S001-s004 is replaced to as above step: S101-S102, all the other similar terminal A.Just, when s010, because only have a usb Microsoft Loopback Adapter, can omit the step that allows keeper select network interface card, and be defaulted as unique usb Microsoft Loopback Adapter.
S101., corresponding USB is installed on terminal C and drives and network device management program, and working procedure.
S102. the network equipment is connected to terminal C as usb host (usb host) by USB interface.
Embodiment 4:
The mode of unmanned management, terminal is terminal C (panel computer, as usb device interconnection network equipment, configures usb Microsoft Loopback Adapter):
S201., corresponding USB is installed on terminal C and drives and network device management program, and working procedure.
S202. the network equipment is connected to terminal C as usb host (usb host) by USB interface.
S203. the network device management program on terminal C detects the network equipment, by USB, is connected to the network equipment and is sent essential information query statement.Essential information refers to MAC Address, unit type, the information of the designation equipment identity such as sequence number.
S204. the network equipment is received after instruction, to terminal C, sends essential information.
S205. terminal C utilizes the information obtaining, and engages some rules of formulating in advance, draw and also need the further information (not needing people's participation) of inquiry, and terminal C is for the network interface card information of interconnection network equipment.If need further inquiry, select 1 query statement, to s206; Do not need s207.
S206. inquiry can be divided into essential information inquiry, parameter and state that Wi-Fi connects, the parameter of lan network interface and state, WAN(Internet) parameter of network interface and state, parameter and the state of DHCP service, parameter and the state of UPnP service, a series of network equipments such as network real-time traffic information may offer state and the information of user configured parameter and the operation of report current network equipment.Similar s203-s204 now, just query statement may not be essential information query statement, but program is according to the query statement of rules selection.After completing, arrive s205.
S207. terminal C utilizes the information obtain, by certain processing afterwards automatically (not needing people's participation) draw some parameters that need to reconfigure of the network equipment, if do not need the parameter of configuration, to s212.
S208. terminal C converts the configuration parameter of these network equipments to the configuration-direct of the network equipment, by USB, is connected to the network equipment and is sent these configuration-directs.
S209. the network equipment receives after the instruction that terminal C sends, and according to the requirement of instruction, changes corresponding parameter, and the module such as the Wi-Fi module of indication network device interior, DHCP is according to new parameter operation, then obtains the result that module is carried out; Result is connected and sent to terminal C by USB.
S210. terminal C is connected and is returned results by USB, judges whether the network equipment has normally carried out aforementioned instruction, if normal, to s211.If undesired, can again attempt carrying out instruction, or report user by other means: equipment has fault, then finishes.
S211. the rule that returns results and formulate in advance according to all operations above, terminal C judges that whether the parameter of the network equipment and the parameter of network interface card be compatible, if incompatible, the parameter of the network equipment is calculated, draw after the parameter of network interface card needs, call the interface function of terminal C operating system, with these parameter configuration network interface cards.
S212. terminal C further checks the connection of network interface card and the network equipment, if undesired, can again attempt s203-s212, or reports user by other means: equipment has fault, then finishes.
Embodiment 5:
The mode of unmanned management, terminal is terminal A(PC, as usb host interconnection network equipment, configuration ethernet card adds Wi-Fi network interface card):
Step s201-s202 is replaced with to s001-s004, the mode of unmanned management of all the other similar terminal C.
Embodiment 6:
The mode of unmanned management, terminal is terminal B (panel computer, as usb host interconnection network equipment, configures Wi-Fi network interface card)
Method and terminal category-A seemingly, no longer describe in detail.