CN1247346A - Set-up method for installing plug-and-play devices - Google Patents

Set-up method for installing plug-and-play devices Download PDF

Info

Publication number
CN1247346A
CN1247346A CN 98119137 CN98119137A CN1247346A CN 1247346 A CN1247346 A CN 1247346A CN 98119137 CN98119137 CN 98119137 CN 98119137 A CN98119137 A CN 98119137A CN 1247346 A CN1247346 A CN 1247346A
Authority
CN
China
Prior art keywords
class
equipment
new
hardware
identification unit
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.)
Pending
Application number
CN 98119137
Other languages
Chinese (zh)
Inventor
刘军
陈玄同
林光信
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN 98119137 priority Critical patent/CN1247346A/en
Publication of CN1247346A publication Critical patent/CN1247346A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A set-up method for insatlling plug-and-play devices features that the device ID is directly read by configuration file (INF), its driver file is copied to correspondent directory and the ID of original hardware device and all device classes associated with the original hardware device are deleted. When the computer is restarted, windows system displays that the new device is found and creates a correct link to its driver and the ID and class of the new device. Thus,the new device can work normally.

Description

The establishing method of PnP device is installed
The present invention relates to a kind of establishing method that PnP device is installed, be particularly related to the PnP device that a kind of non-WIN95/97/98 carries driver, when mounted, can borrow method step of the present invention, has versatility, applied widely, and operating process is simple, is not subjected to the restriction of system version simultaneously, makes this equipment normally work.
In message area now, carry the PnP device of driver to giving non-WIN95/97/98 (hereinafter to be referred as WIN95), when the WIN95 system is installed, it is unknown device that this system can carry this driver settings, after treating this system's installation, this PnP device but can't operate as normal, in addition, when some had installed this PnP device under the WIN95 system, the driver disk of this equipment of insertion can be pointed out by this system, as selecting " not installing; do not reresent later on ", system also can be set at unknown device with this PnP device, if there is the driver with this hardware compatibility in the WIN95 system, and equipment that then can deletion error is provided with from the control desktop, automatically finish installation later on, if no, then the interface that can't be provided by the WIN95 system makes this equipment work.
The solution of typical hardware manufacturer is when this WIN95 system of installation, need pull out the hardware of this PnP device earlier, after treating that the WIN95 system installs, again the hardware of this equipment is loaded onto, yet this kind method is obviously very inconvenient, and to pull out the hardware of this PnP device also dangerous to giving the layman.
In addition, under the WIN95 system, operating system is when system start-up, this system can search current PnP device automatically, in information registration shelves (Registry) 60 in the identification unit (ID) of each equipment and the WIN95 system, among the index key Hkey-Local-Machine/ recognition of devices unit (ID) in the sub-key of Enumn compares, do not find if, then think and find a new equipment 40, referring to shown in Figure 4, then the driver 41 of this new equipment 40 is inserted in prompting, reach these driver 41 files of copy to corresponding catalogue 50, and in information registration shelves (Registry) 60, add recognition of devices unit (ID) 61 and device class (Class) 62, set up the corresponding relation of this new equipment 40 and this driver device class (Class) 62 simultaneously, otherwise operating system thinks that promptly this new equipment 40 installed this driver.
But, the reason of above-mentioned PnP device cisco unity malfunction, be when this WIN95 operating system when for the first time finding this new equipment 40, but be not provided with correct, cause in the future this operating system to think that but the setting of last time is correctly, and then this equipment 40 can not be worked, also can't make amendment, even if the method for the mounting equipment driving program (DDK) that trial employing Microsoft provides, copy this driver to Windows system catalogue 50, and in these information registration shelves (Registry) 60, add device class (Class) 62, or: adopt interpolation and the install driver (Add/Remove Hardware) of deleting new hardware in the Control Panel instrument, reach the method that adopts deletion error equipment among the System Manager, revise the setting (UnKnown Device) of its mistake, but equipment 40 can't be worked correctly all still.
Because the various shortcomings of above-mentioned known technology, the inventor is through the permanent research and experiment of making great efforts, and development and Design goes out the establishing method of installation PnP device of the present invention finally.
Purpose of the present invention, be that a kind of establishing method that PnP device is installed is being provided, it is direct copying equipment driver file and configuration file (INF) is installed to corresponding catalogue, and deletion information registration shelves (Registry) Central Plains hardware device identification unit (ID) all devices classification (Class) relevant with this former hardware device, treat when restarting this computing machine next time, this Windows system shows the discovery new equipment, and set up the correct corresponding relation that is connected of new equipment identification unit (ID) and new equipment classification (Class) automatically with its previous driver of installing, so, this new equipment then can normally be worked, but not the driver of the former installation of detection of known method, and use newer driver to replace former driver, and the corresponding relation of middle recognition of devices unit (ID) of modification information registration shelves (Registry) and device class (Class), revise Windows configuration file (INF) again, new hardware is set, because Windows does not provide the software of " revising Windows configuration file (IFN) ", therefore, also be to use all complicated in the extreme technically, the present invention then provides an operating process simple, has versatility, and not limited by system version, almost be applicable to the method for all PnP devices simultaneously.
For enabling to purpose of the present invention, shape constructing apparatus feature and function thereof, further to be familiar with and to understand, now cooperate diagram for embodiment, be described in detail as follows:
Fig. 1 is information registration shelves (Registry) synoptic diagram in the Windows of the present invention system.
Fig. 2 is a basic execution schematic flow sheet of the present invention.
Fig. 3 is an embodiments of the invention operating process synoptic diagram.
Fig. 4 is information registration shelves (Registry) synoptic diagram in the public Windows system.
Referring to Fig. 1,2, shown in 3, the present invention is a kind of establishing method that PnP device is installed, it is under WIN95/97/98 (hereinafter to be referred as Windows) system, (INF) directly obtains recognition of devices unit by configuration file, and copy this driver file (as shown in Figure 1) to the corresponding catalogue, in Windows information registration shelves (Registry) 12, search this new equipment 10 (ID) 123 of identification unit, and delete former hardware device and discern (ID) 121 of unit, delete former hardware device identification (ID) 121 of unit again, the incorrect link classification of being set up (UnKown Device) 122, and the deletion all devices classification relevant with this former hardware device, at this moment, do not set up " the correct connection of this new equipment 10 identification (ID) 123 of unit and new equipment classification (Class) 124 ", treat when restarting this computing machine next time, this Windows system shows discovery new equipment 10, and set up the correct corresponding relation that is connected of new equipment 10 identification (ID) 123 of unit and new equipment classification (Class) 124 with its previous driver of installing, so, 10 of this new equipments can normally be worked.
Among the present invention, its concrete manner of execution following (as shown in Figure 2):
Step 201 is at first opened the installation configuration file (INF) of these new equipment 10 hardware drive programs;
Step 202 is installed from this hardware and is read its hardware device identification (ID) 123 of unit in the configuration file (INF);
Step 203 is installed in the configuration file (INF) from this hardware and is read its hardware device classification (Class) 124;
Step 204 is called out mounting equipment driving program function (DDK), and copy this newer driver file to Windows the system catalogue, and copy install configuration file (INF) to Windows the INF catalogue;
Step 205 is searched this new equipment 10 hardware identification units (ID) 123 in Windows information registration shelves (Registry) 12, and deletes former hardware device identification (ID) 121 of unit;
Step 206 is got a device class (Class) in Windows information registration shelves (Registry) 12 with in first (ID) the 121 corresponding equipment classifications (Class) of original equipment identification;
Step 207 has judged whether to get its device class (Class), if it is desirable not had miscellaneous equipment classification (Class), then arrive step 210, machine to be calculated restarts the correct corresponding relation that is connected that can set up new equipment 10 identification (ID) 123 of unit and new equipment classification (Class) 124 automatically with the previous driver of installing, so, 10 of this new equipments can normally be worked, and then continue the following step if having:
Step 208 judges whether this original equipment identification unit (ID) 121 is identical with new hardware device identification (ID) 123 of unit that will install, and if not, then arrives step 206 and continues next step, up to having got all devices classification (Class);
If step 209 is then deleted this original equipment identification (ID) 121 of unit, and continues next step to step 206, up to having got all devices classification (Class).
Now adopt sound blaster 30 embodiment of a PRO chip that method of the present invention following (as shown in Figure 3) is described with a Pentium (Pentium) family computer;
Step 301 at first, open these sound blaster 30 hardware drive programs the installation configuration file (that this sound blaster 30 is installed configuration files is by name-OEMSETUP.INF);
Step 302 from this sound blaster 30 install read in configuration files (OEMSETUP.INF) its recognition of devices unit (ID) 31 (these sound blaster 30 identification units for-PROXXXXXX);
Step 303 from this sound blaster 30 install read in configuration files (OEMSETUP.INF) its device class (Class) 32 (these sound blaster 30 device classes for-MEDIA);
Step 304 is called out mounting equipment driving program function (DDK), in the present embodiment, use DiInstall copy these sound blaster 30 hardware drive program files to Windows the system catalogue, and copy install configuration file (OEMSETUP.INF) to Windows the INF catalogue;
Step 305 is searched this sound blaster 30 (ID) 31 of identification unit in Windows information registration shelves (Registry) 12, and deletes former hardware device identification unit (ID);
Step 306 is got a device class (Class) in Windows information registration shelves (Registry) 12 with in original equipment identification unit's (ID) corresponding equipment classification (Class);
Step 307 has judged whether to get miscellaneous equipment classification (Class), then continue next step if having, if it is desirable not had miscellaneous equipment classification (Class), then arrive step 310, machine to be calculated restarts the correct corresponding relation that is connected that can set up sound blaster 30 identification (ID) 31 of unit and device class (Class) 32 automatically with the previous driver of installing, so, 30 of this sound blasters can normally be worked;
Whether this original equipment identification unit (ID) of step 308 is identical with sound blaster 30 (ID) 31 of identification unit that will install, and if not, then arrives step 306 and continues next step, up to having got all devices classification (Class);
If step 309 is then deleted this original equipment identification unit (ID), and continues next step to step 306, up to having got all devices classification (Class).
In sum, the present invention is only in order to illustrate one of the present invention possible embodiments, and to one skilled in the art, the variation when carrying out various equivalences to its thin portion shape all should be included in spirit of the present invention and the scope.

Claims (5)

1. establishing method that PnP device is installed, it is the method that a new hardware device is installed on a computer system, this method comprises the following steps:
(1) at first, open the installation configuration file (INF) of this new equipment hardware drive program;
(2) this hardware is installed and is read its hardware device identification unit (ID) in the configuration file (INF) certainly;
(3) this hardware is installed in the configuration file (INF) and is read its hardware device classification (Class) certainly;
(4) call out mounting equipment driving program function (DDK), and copy this newer driver file and configuration file (INF) is installed to corresponding catalogue;
(5) in Windows information registration shelves (Registry), search this new equipment hardware identification unit (ID), and delete former hardware device identification unit (ID);
(6) in Windows information registration shelves (Registry) with in original equipment identification unit's (ID) corresponding equipment classification (Class), get a device class (Class);
(7) judged whether to get its device class (Class), if it is desirable not had miscellaneous equipment classification (Class), then restart computing machine, machine to be calculated restarts the correct corresponding relation that is connected that can set up new equipment identification unit (ID) and new equipment classification (Class) automatically with the previous driver of installing, so, this new equipment then can normally be worked, if get, then continues the following step:
(8) judge that whether this original equipment identification unit (ID) is identical with the new hardware device identification unit (ID) that will install, if not, then arrives step (6) and continues, up to having got all devices classification (Class);
(9) if then delete this original equipment identification unit (ID), and continue, up to having got all devices classification (Class) to step (6);
So, when new hardware device is installed, can borrow above-mentioned method step, the key of installation is added in the information registration shelves (Registry) by copy, change the error message of equipment in the deletion information registration shelves (Registry) into, and dispose automatically by system, this equipment can normally be worked.
2. the establishing method of installation PnP device as claimed in claim 1, wherein this new hardware device can be a PnP device.
3. the establishing method of installation PnP device as claimed in claim 1, wherein this new hardware device can be a sound blaster.
4. the establishing method of installation PnP device as claimed in claim 1, wherein copy this newer driver file to Windows the system catalogue.
5. the establishing method of installation PnP device as claimed in claim 1, wherein copy this installation configuration file (INF) to Windows the INF catalogue.
CN 98119137 1998-09-10 1998-09-10 Set-up method for installing plug-and-play devices Pending CN1247346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 98119137 CN1247346A (en) 1998-09-10 1998-09-10 Set-up method for installing plug-and-play devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 98119137 CN1247346A (en) 1998-09-10 1998-09-10 Set-up method for installing plug-and-play devices

Publications (1)

Publication Number Publication Date
CN1247346A true CN1247346A (en) 2000-03-15

Family

ID=5226287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 98119137 Pending CN1247346A (en) 1998-09-10 1998-09-10 Set-up method for installing plug-and-play devices

Country Status (1)

Country Link
CN (1) CN1247346A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117589B2 (en) 2002-05-01 2006-10-10 Prolific Technology Inc. Method of installing a plug and play device driver
CN1323353C (en) * 2002-02-14 2007-06-27 佳能株式会社 Information processor, control method and storage medium for said information processor
CN100382058C (en) * 2003-03-07 2008-04-16 索尼株式会社 Device management method and device management system
CN100452001C (en) * 2005-01-19 2009-01-14 三星电子株式会社 Method and device for confirming sort of USB apparatus
WO2010057380A1 (en) * 2008-11-20 2010-05-27 华为终端有限公司 A method, device and data card for recovering from the abnormity of the data card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1323353C (en) * 2002-02-14 2007-06-27 佳能株式会社 Information processor, control method and storage medium for said information processor
US7117589B2 (en) 2002-05-01 2006-10-10 Prolific Technology Inc. Method of installing a plug and play device driver
CN100382058C (en) * 2003-03-07 2008-04-16 索尼株式会社 Device management method and device management system
CN100452001C (en) * 2005-01-19 2009-01-14 三星电子株式会社 Method and device for confirming sort of USB apparatus
WO2010057380A1 (en) * 2008-11-20 2010-05-27 华为终端有限公司 A method, device and data card for recovering from the abnormity of the data card

Similar Documents

Publication Publication Date Title
US6345319B2 (en) Method for installing plug-n-play device by copying INF files to a corresponding directory and deleting device ID and all related device class of an original device
US7475396B2 (en) Method and apparatus for defining, building and deploying pluggable and independently configurable install components
US20060123409A1 (en) Method and apparatus for creating a pluggable, prioritized configuration engine to be used for configuring a software during installation, update and new profile creation
US20010014968A1 (en) Automatic upgrade of software
CN1319800A (en) Method and device for installing alowed application program
US20040098419A1 (en) Method and apparatus for a migration assistant
CN1834915A (en) Method of updating firmware in computer server systems
JP3024094B2 (en) How to load the operating system
US6760862B1 (en) Methods and apparatus for performing a maintenance procedure on a data storage system
CN1384931A (en) Method, system and computer readable storage medium for automatic device driver
CN100583041C (en) Device and method for configuring software in computer system
US6269377B1 (en) System and method for managing locations of software components via a source list
CN1266599C (en) Drive program installing process
JP3715478B2 (en) Apparatus and method for installation recovery system
CN1247346A (en) Set-up method for installing plug-and-play devices
CN1834920A (en) Automatic installation method of USB device filter drive program
CN1512381A (en) Network accession method of automatic matching net card
US20020042911A1 (en) Uninstall of an attached device
CN101226480A (en) Method and system for upgrading electronic apparatus
CN1180869A (en) Apparatus and method for controlling computer system having hot-swapping function
CN1173269C (en) Monitor method for reverse mounting
CN100336036C (en) Multiple operating system boot loading method
CN1170224C (en) Computer system starting method able to run initiator
CN1261872C (en) Method for detecting computer operating system normal start
CN1578202A (en) Communication system program fault detecting method

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication