Method for adding hardware
Abstract
A method for adding hardware is provided, which is adapted for connecting a plug-and-play device to a computer through a USB port. In the method, an enumeration process is activated. According to the enumeration process, a filter driver identifies a device type of the plug-and-play device. When the device type is an allowable device type, the enumeration process proceeds to add the plug-and-play device onto the computer. When the device type is an excluded device type, a name and a password inputted by the user are received. It is then verified whether the name and the password are correct. When the name and the password are incorrect, the filter driver terminates the enumeration process. When the name and the password are correct, the enumeration process proceeds to add the plug-and-play device onto the computer.
Claims
exact text as granted — not AI-modified1 . A method for adding hardware, which is adapted for at least one universal serial bus port of a computer, the computer comprising a plug-and-play manager and a filter driver, the method comprising:
connecting a plug-and-play device to the universal serial bus port; activating an enumeration process by the plug-and-play manager to produce a query device relation, the query device relation being configured for query of a hierarchy relation of the plug-and-play device in a device tree; and identifying a device type of the plug-and-play device by the filter driver according to the query device relation, wherein,
when the identified device type is an allowable device type, the enumeration process proceeds to add a device node corresponding to the plug-and-play device into the device tree according to the hierarchy relation;
when the identified device type is an excluded device type, a name and a password inputted by a user are received;
it is verified whether the inputted name and the inputted password are correct;
the enumeration process is terminated when the inputted name and the inputted password are incorrect; and
the enumeration process proceeds to add a device node corresponding to the plug-and-play device into the device tree according to the hierarchy relation when the inputted name and the inputted password are correct.
2 . The method for adding hardware according to claim 1 , further comprising, before receiving the password inputted by the user, generating a dialog box for the user to input the name and the password.
3 . The method for adding hardware according to claim 1 , further comprising, after receiving the inputted password, encrypting the inputted password.
4 . The method for adding hardware according to claim 3 , wherein verifying whether the inputted password is correct comprises:
acquiring an encrypted preset password from a password file; and comparing the encrypted preset password with the inputted password.
5 . The method for adding hardware according to claim 1 , wherein the plug-and-play manager maintains the device tree.
6 . The method for adding hardware according to claim 1 , wherein terminating the enumeration process further comprises stopping establishing a physical device object corresponding to the plug-and-play device by a universal serial bus hub driver.
7 . The method for adding hardware according to claim 1 , wherein terminating the enumeration process further comprises stopping searching a device driver corresponding to the plug-and-play device by the plug-and-play manager.
8 . The method for adding hardware according to claim 1 , wherein identifying the device type of the plug-and-play device further comprises classifying the plug-and-play device into an excluded device type and an allowable device type according to a customized condition.
9 . The method for adding hardware according to claim 1 , wherein a user interface displayed on a display of the computer does not show a device removal indication when the enumeration process is being terminated.
10 . A method for adding hardware which is adapted for connecting a plug-and-play device to a computer through a universal serial bus port, the computer comprising a filter driver, the method comprising:
activating an enumeration process; and identifying a device type of the plug-and-play device by the filter driver according to the enumeration process, wherein,
when the identified device type is an allowable device type, the enumeration process proceeds to add the plug-and-play device to the computer;
when the identified device type is an excluded device type, a name and a password inputted by a user are received;
it is verified whether the inputted name and the inputted password are correct;
the enumeration process is terminated by the filter driver when the inputted name and the inputted password are incorrect; and
the enumeration process proceeds to add the plug-and-play device to the computer when the inputted name and the inputted password are correct.
11 . The method for adding hardware according to claim 10 , further comprising, before receiving the password inputted by the user, generating a dialog box for the user to input the name and the password.
12 . The method for adding hardware according to claim 10 , further comprising, after receiving the inputted password, encrypting the inputted password.
13 . The method for adding hardware according to claim 12 , wherein verifying whether the inputted password is correct comprises:
acquiring an encrypted preset password from a password file; and comparing the encrypted preset password with the inputted password.
14 . The method for adding hardware according to claim 10 , wherein terminating the enumeration process further comprises stopping establishing a physical device object corresponding to the plug-and-play device by a universal serial bus hub driver.
15 . The method for adding hardware according to claim 10 , wherein terminating the enumeration process further comprises stopping searching a device driver corresponding to the plug-and-play device.
16 . The method for adding hardware according to claim 10 , wherein identifying the device type of the plug-and-play device further comprises classifying the plug-and-play device into an excluded device type and an allowable device type according to a customized condition.
17 . The method for adding hardware according to claim 10 , wherein a user interface displayed on a display of the computer does not show a device removal indication when the enumeration process is being terminated.Join the waitlist — get patent alerts
Track US2010056270A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.