CN100399270C - Automatic installation method of USB device filter drive program - Google Patents
Automatic installation method of USB device filter drive program Download PDFInfo
- Publication number
- CN100399270C CN100399270C CNB2006100786645A CN200610078664A CN100399270C CN 100399270 C CN100399270 C CN 100399270C CN B2006100786645 A CNB2006100786645 A CN B2006100786645A CN 200610078664 A CN200610078664 A CN 200610078664A CN 100399270 C CN100399270 C CN 100399270C
- Authority
- CN
- China
- Prior art keywords
- usb device
- filter drive
- drive program
- watchdog routine
- monitoring program
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000009434 installation Methods 0.000 title claims description 13
- 238000003780 insertion Methods 0.000 claims abstract description 9
- 230000037431 insertion Effects 0.000 claims abstract description 9
- 238000012544 monitoring process Methods 0.000 claims description 5
- 238000012986 modification Methods 0.000 abstract description 2
- 230000004048 modification Effects 0.000 abstract description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention discloses a method for automatically installing a filter driver of USB devices, and the method runs a monitoring program in a computer system, wherein the monitoring program takes charge of installing the filter driver corresponding to the USB devices. The monitoring program automatically loads when a computer starts up; the monitoring program monitors insertion of the USB devices. The monitoring program judges whether the filter driver inserted into the USB devices is installed or not. The monitoring program continually looks for the next USB device and automatically installs all the filter drivers of the USB devices, and all the filter drivers are connected with a host, after the filter driver of the current USB device is installed. The present invention monitors a plug-and-play device connected with the computer by the monitoring program, and automatically installs the filter driver to realize the functions of modification and addition for the plug-and-play device. Thus, the trouble that the filter driver is manually loaded when the plug-and-play device is used each time is overcome; the present invention is convenient for users to use.
Description
Technical field
The present invention relates to a kind of installation method of device driver, relate in particular to a kind of automatic installation method of USB device filter drive program.
Background technology
WDM (Win32 Driver Mode, Win32 driving model) is that Microsoft is a kind of general driver model of the Driver Design of Windows.Along with the upgrading of system, WDM has become the main flow of Windows system driver exploitation.The WDM architecture is carried out layering and is handled, and promptly device drives is divided into: filter drive program, function driver, bus driver.Every layer of driver is divided into simpler request to the I/O request, carries out with the driver of passing to lower floor.Bus driver by hardware abstraction layer, is had an effect with hardware, thereby is finished the I/O solicit operation after receiving the I/O request at last.Under such framework, can under the situation of not changing existing driver, revise, increase the function of existing driver easily by writing filter driver.By writing filter driver, can therefore have very strong actual application value with less cost expansion hardware prior function.
For the particularly widely used USB device of PnP device, adopt the above-mentioned method that existing driver function was revised or increased to filter drive program of writing, each equipment all can produce a key assignments when inserting computing machine, this key assignments can be owing to use different equipment or insert different interfaces and difference, computing machine all will be reinstalled filter drive program to the equipment that each has new key assignments, all want the manual installation filter drive program when promptly equipment inserts ninety-nine times out of a hundred, use very inconvenient.
An ID of dealer must be arranged the device descriptor of each product and by the product IDs of manufacturer's appointment, the INF file of equipment has also comprised this two values in the main frame, and Windows uses these two values to help decision and is written into which driving for this equipment.
Summary of the invention
In order to solve the problem of above-mentioned existence, the invention provides a kind of automatic installation method of USB device filter drive program, the problem of manual loading filter drive program when having overcome each use PnP device.
The present invention realizes by following scheme: a kind of automatic installation method of USB device filter drive program, and watchdog routine of operation in computer system, this watchdog routine is responsible for installing the filter drive program corresponding with USB device.
Insertion in the monitoring of the watchdog routine described in said method USB device.
Judge in the watchdog routine described in the said method whether the filter drive program that inserts USB device is installed.
Just load automatically during in the watchdog routine described in the said method at computer starting.Its automatic loading can be adopted the method that watchdog routine or its shortcut is copied to the self-starting catalogue.The method that also can adopt other start to load automatically.
In the insertion of the monitoring of the watchdog routine described in said method USB device, when enumerating the USB device of new insertion on the usb bus, just write down the hardware correlation parameter of this USB device.
Can also scan corresponding registration table hardware keys in the watchdog routine described in the said method, search new insertion USB device and whether have in registration table whether newly-increased sub-key is arranged under newly-increased hardware keys or the hardware keys major key, when finding newly-increased hardware keys or the newly-increased sub-key of hardware keys, install and the corresponding filter drive program of insertion USB device.
Discern USB device in watchdog routine described in the said method according to the ID of dealer and the product IDs of USB device, and find the filter drive program corresponding, and the filter drive program of USB device is installed with USB device according to ID of dealer and product IDs.
Watchdog routine is after installing the filter drive program of current USB device in said method, continue to seek next USB device, enumerate its key assignments correlation parameter and detect whether new new-added item is arranged, filter drive program is installed, the filter drive program of all USB device that were connected with main frame is installed and so forth, automatically.
The USB device that the present invention links to each other with computing machine by the watchdog routine monitoring, and for it filter drive program is installed automatically, realization is to the modification and the increase of USB device function, thereby the trouble of manual loading filter drive program when having overcome each use USB device, is user-friendly to.
Description of drawings
Fig. 1 is a workflow diagram of the present invention.
Embodiment
Be described in more detail below in conjunction with the workflow of the drawings and specific embodiments watchdog routine of the present invention.
The present invention has utilized the filtration drive technology of existing WDM driver model, and loads the method for filter drive program automatically in conjunction with the watchdog routine of utilizing proposed by the invention, has realized PnP device, particularly the automatic installation of USB device filtration drive.
As shown in Figure 1, after step 100 beginning, load watchdog routine of the present invention during step 101 system boot automatically.Whether step 102 detects has USB device to insert, if do not have, then watchdog routine continues the insertion of monitoring and detection USB device.If detect USB device, then step 103 is carried out the USB device initialization by system, and enumerate the key assignments correlation parameter of this USB device, the corresponding registry entry of step 104 scanning, whether step 105 detects occurrence, whether the hardware keys or the sub-key that are this USB device in the registration table are new new-added item, as be judged as not, newly-increased key assignments item is promptly arranged, then step 106 is according to the ID of dealer and the product IDs identification USB device of USB device, find the corresponding filter drive program of USB device therewith, step 107 is installed the filter drive program of this USB device, and this USB device just can normally have been used behind the installation filter drive program.Whether be judged as step 105 and be, then do not detect newly-increased hardware keys, just the filter drive program of this USB device is a upstate, return step 102 and continue to detect and have USB device to insert.Step 107 is also returned step 102 after filter drive program is installed, and whether continue to detect has USB device to insert, and continues enumerating of next USB device.Detect so repeatedly, watchdog routine of the present invention can be installed all USB device filter drive programs that were connected with main frame automatically.
Specific embodiment of the present invention elaborates summary of the invention.For persons skilled in the art, any conspicuous change of under the prerequisite that does not deviate from the principle of the invention it being done can not exceed the protection domain of the application's claims.
Claims (4)
1. the automatic installation method of a USB device filter drive program is characterized in that, may further comprise the steps:
Automatically load watchdog routine when a, computer starting;
The insertion of b, watchdog routine monitoring USB device;
C, watchdog routine judge whether the filter drive program that inserts USB device is installed;
D, watchdog routine are searched hardware keys or the sub-key of hardware keys that inserts USB device, install and the corresponding filter drive program of insertion USB device.
2. the automatic installation method of USB device filter drive program as claimed in claim 1 is characterized in that: described watchdog routine is installed the filter drive program of USB device according to the ID of dealer and the product IDs identification USB device of USB device.
3. the automatic installation method of USB device filter drive program as claimed in claim 1, it is characterized in that: described watchdog routine is after installing the filter drive program of current USB device, continue to seek next USB device, the filter drive program of all USB device that were connected with main frame is installed automatically.
4. the automatic installation method of USB device filter drive program as claimed in claim 3 is characterized in that: described watchdog routine scanning registration table hardware keys, the filter drive program of all USB device that were connected with main frame is installed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100786645A CN100399270C (en) | 2006-04-30 | 2006-04-30 | Automatic installation method of USB device filter drive program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100786645A CN100399270C (en) | 2006-04-30 | 2006-04-30 | Automatic installation method of USB device filter drive program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1834920A CN1834920A (en) | 2006-09-20 |
CN100399270C true CN100399270C (en) | 2008-07-02 |
Family
ID=37002683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100786645A Expired - Fee Related CN100399270C (en) | 2006-04-30 | 2006-04-30 | Automatic installation method of USB device filter drive program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100399270C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049402A (en) * | 2012-11-21 | 2013-04-17 | 大唐移动通信设备有限公司 | Method and device for controlling universal serial bus (USB) device |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101593114B (en) * | 2008-05-30 | 2014-01-22 | 深圳艾科创新微电子有限公司 | Device driven by USB video class (UVC) application automatic replacing system |
CN102262600B (en) * | 2010-05-25 | 2013-12-25 | 安凯(广州)微电子技术有限公司 | Method and system for recognizing USB (Universal Serial Bus) equipment |
CN102750164B (en) * | 2012-05-29 | 2016-01-20 | 湖北盛天网络技术股份有限公司 | A kind of method of automatic configuration device driver |
CN103677812A (en) * | 2013-11-29 | 2014-03-26 | 北京深思数盾科技有限公司 | Hardware equipment state adaptive method and device |
CN104834526A (en) * | 2015-05-16 | 2015-08-12 | 深圳众为兴技术股份有限公司 | Manufacturing method for motion control card driver installation package |
CN105912921A (en) * | 2015-11-09 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Method and system for authorizing plug and play of USB device |
CN110825332B (en) * | 2019-11-15 | 2023-05-26 | 江苏江波信息科技股份有限公司 | Method for enabling printer device to plug and play in windows operating system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1595352A (en) * | 2003-09-11 | 2005-03-16 | 扬智科技股份有限公司 | Method for processing data of data processing system |
-
2006
- 2006-04-30 CN CNB2006100786645A patent/CN100399270C/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1595352A (en) * | 2003-09-11 | 2005-03-16 | 扬智科技股份有限公司 | Method for processing data of data processing system |
Non-Patent Citations (10)
Title |
---|
USB2.0总线监测程序设计. 闫波,苏日裕,李广军.实验科学与技术,第3期. 2004 |
USB2.0总线监测程序设计. 闫波,苏日裕,李广军.实验科学与技术,第3期. 2004 * |
USB外设过滤驱动程序设计. 张克非,陈涛,张朝辉.重庆工学院学报,第18卷第2期. 2004 |
USB外设过滤驱动程序设计. 张克非,陈涛,张朝辉.重庆工学院学报,第18卷第2期. 2004 * |
USB接口监控技术研究. 李文东.中国科技信息,第16期. 2005 |
USB接口监控技术研究. 李文东.中国科技信息,第16期. 2005 * |
基于Windows2000 的过滤器驱动程序设计. 田宇,任曦平.现代电子技术,第162期. 2003 |
基于Windows2000 的过滤器驱动程序设计. 田宇,任曦平.现代电子技术,第162期. 2003 * |
文件过滤驱动及应用. 李民,方勇,刘林超,熊帆.信息与电子工程,第3卷第4期. 2005 |
文件过滤驱动及应用. 李民,方勇,刘林超,熊帆.信息与电子工程,第3卷第4期. 2005 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049402A (en) * | 2012-11-21 | 2013-04-17 | 大唐移动通信设备有限公司 | Method and device for controlling universal serial bus (USB) device |
Also Published As
Publication number | Publication date |
---|---|
CN1834920A (en) | 2006-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100399270C (en) | Automatic installation method of USB device filter drive program | |
US20070061818A1 (en) | Detection of devices during operating system setup | |
US8621452B2 (en) | Device driver rollback | |
EP2598991B1 (en) | Method of usb device enumeration including detecting operating system type of usb host | |
CN1384931A (en) | Method, system and computer readable storage medium for automatic device driver | |
CN101014936B (en) | Method and system for automatic installation of functional unit driver on a host | |
CN102331958A (en) | Method for starting hard disk under Linux system | |
CN103677887B (en) | A kind of information processing method and a kind of electronic equipment | |
CN104679540A (en) | Computer system and computer system starting method | |
US20050262271A1 (en) | Methods, peripheral devices and computer program products for loading I/O device drivers | |
US20100049961A1 (en) | Update method for basic input/output system and update system thereof | |
CN103593281A (en) | Test system and test method | |
CN102609290B (en) | The method for upgrading software of electronic product | |
CN1154920C (en) | Intelligent hardware installing method | |
CN102890662A (en) | Method for identifying host operating system by executing enumeration twice on USB (Universal Serial Bus) HID (Human Interface Device) | |
CN106126277A (en) | Multi-microprocessor and the upgrade method of external memory system | |
CN101853142B (en) | Identification method of USB device with virtual drive | |
US7694296B1 (en) | Preventing unauthorized installs and uninstalls of software modules | |
CN1755628A (en) | Method of automatically installing software during operation system startup | |
CN101615127B (en) | Automatic installing method of operating system based on strategy | |
CN101373457B (en) | Hard disk write-protection lock based on USB equipment under Windows environment | |
CN103064767A (en) | Driver backup method, driver backup device, driver restoring method and driver restoring device | |
CN101751353A (en) | Data card upgrading method and device | |
US20100049749A1 (en) | System of synchronizing data between storage devices and method thereof | |
US20090210589A1 (en) | Dynamic Vital Product Data Update Based on an Installed Feature Card |
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 | ||
C56 | Change in the name or address of the patentee |
Owner name: FEITIAN TECHNOLOGIES CO., LTD. Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN TECHNOLOGY CO., LTD. |
|
CP03 | Change of name, title or address |
Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer Patentee after: Feitian Technologies Co.,Ltd. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 40 research, 7A building, 5 floor Patentee before: FEITIAN TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080702 |
|
CF01 | Termination of patent right due to non-payment of annual fee |