CN101236495A - Second generation personal system device recognition method and its method for loading driver - Google Patents

Second generation personal system device recognition method and its method for loading driver Download PDF

Info

Publication number
CN101236495A
CN101236495A CNA2007100061804A CN200710006180A CN101236495A CN 101236495 A CN101236495 A CN 101236495A CN A2007100061804 A CNA2007100061804 A CN A2007100061804A CN 200710006180 A CN200710006180 A CN 200710006180A CN 101236495 A CN101236495 A CN 101236495A
Authority
CN
China
Prior art keywords
driver
server
system service
service program
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.)
Pending
Application number
CNA2007100061804A
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.)
Elan Microelectronics Corp
Original Assignee
R & D Department K Tech Devices 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 R & D Department K Tech Devices Corp filed Critical R & D Department K Tech Devices Corp
Priority to CNA2007100061804A priority Critical patent/CN101236495A/en
Publication of CN101236495A publication Critical patent/CN101236495A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present invention discloses a recognition method of a second generation personal system devices and an installation method for a driver of the recognition method. In the startup process of a server operating system or after the startup program is completed, the present invention executes a software program to call a system service program in the server operating system, loads a driver supporting a PS/2 transmission interface through the system service program, sends detection instructions to a PS/2 device through the driver supporting the PS/2 transmission interface, can recognize the PS/2 device according to the hardware property data returned by the PS/2 device, and install a device driver corresponding to the device.

Description

The recognition methods of second generation ps device and the installation method of driver thereof
Technical field
The invention relates to a kind of recognition methods of device and the installation method of driver thereof, and particularly relevant for a kind of second generation ps (Personal System/2, PS/2) installation method of Zhuan Zhi recognition methods and driver thereof.
Background technology
The PS/2 interface is a kind of interface compatible with computer system, and its title is the PC PS/2 series that comes from 1987 IBM released.The PS/2 interface normally is used for linking keyboard and mouse, and wherein, the mouse interface of PS/2 is commonly used to replace old-fashioned sequence mouse interface (DB-9 or RS-232); The keyboard interface of PS/2 then is to be used for replacing tradition to be IBM advanced technology (Advanced Technology, AT) the designed large-scale 5-pin DIN interface of PC.The keyboard of PS/2 and mouse interface are very similar on electrical specification, and its main difference is that keyboard interface needs two-way communication.Therefore, if keyboard and mouse are installed on opposite interface, most computer can't identify keyboard and mouse.
Yet, the PS/2 interface is not the interface that belongs to plug and play, therefore mouse, the keyboard of PS/2 interface as input/output interface used in collocation, or even Trackpad (Touch Pad, TP) etc. device is when being connected with system, system can't tell the hardware attributes of these devices immediately, also just can't drive product and carry out function.
At this point, the existing practice must be mounted in the system by first driver with product, can drive product and carry out function.Wherein, when installing or upgrade the driver of PS/2 device, also must know the kind and the manufacturer of PS/2 device earlier, can select correct driver to install or upgrade.Yet, because each tame manufacturer all can be to some special instructions of its product design, the user must utilize these special instructions that its product is issued an order, and just can tell the PS/2 device, the method is concerning the user who is unfamiliar with product design, and not only trouble also is difficult to reach.In addition, after the manufacturer that tells the PS/2 device, also must prepare corresponding driver so that original driver is carried out more new element.That is to say, when product uses the PS/2 device of consanguinity manufacturer not, need to prepare corresponding driver, so repeat identification, installation, recognized action, time-consuming and effort.
Summary of the invention
In view of this, purpose of the present invention is exactly in the recognition methods that a kind of second generation ps device is provided, detect instruction to the PS/2 device by sending one group, and the data identification PS/2 device of the hardware attributes of replying according to the PS/2 device, do not need first install driver, just start-up routine and identify any PS/2 device that is connected to system at any time.
A further object of the present invention provides a kind of installation method of PS/2 device driver, recognition result by the PS/2 device, select corresponding driver is installed, and do not need to know earlier the product attribute and the manufacturer of PS/2 device, save the trouble of manual installation driver.
For reaching above-mentioned or other purposes, the present invention proposes a kind of recognition methods of PS/2 device, is useful in PS/2 device of identification under the server OS, and the method comprises the following steps: at first to carry out a software program putting into this server OS.Then go the calling system service routine will support the driver of PS/2 transmission interface to be written into by this software program.And then send one group by driver by this PS/2 transmission interface and detect instruction to the PS/2 device.Last then more thus driver pass the data of reception back by the hardware attributes of replying from the PS/2 device, and pass software program back, discern the PS/2 device according to this.
According to the recognition methods of the described PS/2 device of preferred embodiment of the present invention, above-mentioned system service program is to automatically perform when server OS is started shooting, or is selected to carry out by the user in server OS start back.
Recognition methods according to the described PS/2 device of preferred embodiment of the present invention, wherein the step of the system service program of call server operating system comprises: carry out the software program of putting into Windows, then be linked to service control and management person (the Service Control Manager of server OS, SCM), so that open a service database.And then select a system service program to carry out in the service database thus.This system service program then is driver service (Driver service) program.
Recognition methods according to the described PS/2 device of preferred embodiment of the present invention, wherein driver sends with the access architecture of PS/2 transmission interface and detects instruction and comprise detections instructed to the step of PS/2 device and write a port 60h, and the data of the hardware attributes that reception PS/2 device is replied, the step of discerning the PS/2 device according to this then comprises by the PS/2 device gives port 60h with the data response of its hardware attributes, and then reads the data of the hardware attributes of being responded by the PS/2 device from port 60h.
Recognition methods according to the described PS/2 device of preferred embodiment of the present invention, wherein driver sends by this PS/2 transmission interface and detects instruction and comprise to the step of PS/2 device and write a plurality of error detecting codes in regular turn in port 60h, and these error detecting codes are E6, E6, E6 and E9 in regular turn.
The present invention proposes a kind of installation method of PS/2 device driver in addition, be useful in identification PS/2 device under the server OS, and the device driver of this PS/2 device is installed, the method comprises the following steps: at first to carry out the software program in the server OS.Then then thus the system service program in the software program call server operating system will support that the driver of PS/2 transmission interface is written into.Yet send one group by driver by this PS/2 transmission interface again and detect instruction, and receive the data of the hardware attributes of replying, discern the PS/2 device according to this by the PS/2 device to the PS/2 device.Last then by software program according to the PS/2 device of being discerned, the driver that the device manufacturer of correspondence is provided is mounted to the PS/2 device.
Installation method according to the described PS/2 device driver of preferred embodiment of the present invention, wherein according to the PS/2 device of being discerned, the step that the device driver of correspondence is mounted to the PS/2 device then comprises the hardware attributes data of replying according to the PS/2 device, seek the associated documents path of its corresponding device driver, the data of associated documents path reading device driver from then on just then are to be mounted to device driver in the PS/2 device.
The present invention is at the beginning of system boot, the driver that utilizes software program for execution to go the calling system service routine will have PS/2 transmission interface framework is written into, and driver writes the PS/2 device with one group of preset detection sign indicating number thus, and the hardware attributes data by PS/2 device passback, identify the PS/2 device and select for use suitable driver to be installed on the PS/2 device, and do not need to know earlier the attribute of PS/2 device, driver by particular vendor provided need be installed in system, can identify the PS/2 device, also can save the step of manual installation driver.
For above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. is described in detail below.
Description of drawings
Fig. 1 is the recognition methods process flow diagram of the PS/2 device that illustrates according to preferred embodiment of the present invention.
Fig. 2 is the installation method process flow diagram of the PS/2 device driver that illustrates according to preferred embodiment of the present invention.
Embodiment
Each tame manufacturer is at development second generation ps (Personal System/2, all can corresponding special instruction be set when PS/2) installing to its product, yet, in the application of reality, if these PS/2 devices are sent a general detection instruction, and the hardware attributes data recording that different PS/2 devices is responded is got up, send identical detection instruction backward when treating to start shooting again, can identify the PS/2 device and corresponding driver is installed by comparison hardware attributes data.The present invention promptly is based on above-mentioned notion and develops the recognition methods of a cover PS/2 device that and the installation method of driver thereof.In order to make content of the present invention more clear, below the example that can implement according to this really as the present invention especially exemplified by embodiment.
Fig. 1 is second generation ps (Personal System/2, PS/2) Zhuan Zhi the recognition methods process flow diagram that illustrates according to preferred embodiment of the present invention.Please refer to Fig. 1, present embodiment is useful in identification PS/2 device under the server OS, and this server OS for example is the operating systems such as form (Windows) NT/2000/XP/VISTA of Microsoft, and does not limit its scope.
At first call out system's service routine (step S110) of this server OS.Wherein, the present invention puts into server OS with a software program, and when server OS is carried out boot program, promptly carries out the system service program of this software program call server operating system.Therefore, above-mentioned system service can be before any user logins windows system, is just automatically performed when starting shooting by system, even if do not have the user to login windows system after the start, system also can automatically perform this system service; In addition, the present invention is also included within after the server OS start, just by the user as required, selects the system service program of software program for execution call server operating system.
Above dual mode promptly invests the elasticity of user on identification PS/2 device, no matter is in the process of start or is after start, when connecting new PS/2 device, all can software program for execution identify the PS/2 device, and is quite convenient.What deserves to be mentioned is, if the user is when just needing to discern the PS/2 device of new connection after start, then can utilize the input media (keyboard or mouse) of the old PS/2 that has driven or other interfaces (for example universal serial bus (USB) interface), in the form of server OS, select software program for execution to discern the PS/2 device.Certainly, the present invention does not limit the mode of this software program for execution yet.
Therefore hold above-mentionedly,, need continue to carry out and the software relevant in background, will make system service in fact usually with the systemic hierarchial function because system service does not need user's accessing system can carry out yet.And system service is by service control and management person (Service Control Manager, SCM) start, must be at the beginning of the execution to service control and management person registration, therefore the mode of executive system service routine comprises the service control and management person who is linked to server OS earlier in the present embodiment, to open a service database, just from then on select the system service program of required execution then in the service database.And the system service program of the selected use of present embodiment for example is one of them driver service (Driver service) program, and it is useful in the Windows start and the time automatically performs, or can select to carry out by the user, the present invention does not all limit its scope.
Then then the driver of PS/2 transmission interface of supporting provided by the present invention is written into (step S120) by this system service program.This driver is that it can send general first detection by the PS/2 transmission interface and instruct to PS/2 device (step S130) at the designed general driver of a cover of the product of each tame manufacturer.This detects instruction for example is in regular turn error detecting code E6, E6, E6 and E9 to be write inbound port 60h, this error detecting code for example is by dealer's test in advance, and be applicable to a general error detecting code of each tame product, and error detecting code shown here only for convenience of description, be not in order to restriction the present invention, then can be optionally in practical application, change or adjust its content and order, and reach the purpose of differentiating the PS/2 device.
At last, driver provided by the present invention can receive the data of the hardware attributes of being replied by the PS/2 device, and goes out PS/2 device (step S140) according to this hardware attributes data identification.In detail, corresponding to the above-mentioned detection instruction of writing inbound port 60h, the PS/2 device then can be given port 60h by corresponding data response with hardware attributes after receiving this detection instruction.And driver provided by the present invention can read the hardware attributes data that the PS/2 device is responded from port 60h, and identifies the PS/2 device according to this.
For instance, suppose to mainly contain on the market the Trackpad of three tame manufacturers produce PS/2, and in order to provide the dealer of system when using the PS/2 Trackpad, can tell the affiliated manufacturer of PS/2 Trackpad immediately, then can test these three kinds of PS/2 Trackpads in advance, utilize to send a succession of error detecting code (E6 for example, E6, E6 and E9) mode of giving the PS/2 Trackpad, respectively these three kinds of PS/2 Trackpads are tested, suppose that by the corresponding hardware attributes data that detect the instruction passback of S manufacturer be 00,03,64, and the hardware attributes data of A manufacturer passback are 03,64,64, the hardware attributes data that returned by E manufacturer are 3c, 03, c8.These will be recorded in the software program of the present invention by hardware attributes data and the corresponding manufacturer's information thereof that the PS/2 Trackpad is returned.Therefore, when the user connects new PS/2 Trackpad in system, can identify the manufacturer of PS/2 Trackpad by the hardware attributes data of comparison PS/2 Trackpad.
Except the above-mentioned method of utilizing hardware attributes data identification PS/2 device, the present invention also comprises according to the PS/2 device that is identified, and its pairing device driver is installed, and describes in detail for an embodiment with next again.
Fig. 2 is the installation method process flow diagram of the PS/2 device driver that illustrates according to preferred embodiment of the present invention.Please refer to Fig. 2, present embodiment system is in order to identifying a PS/2 device under server OS, and a device driver of corresponding this PS/2 device is installed.Wherein, this server OS for example is form (Windows) NT/2000/XP/VISTA of Microsoft, and this PS/2 device then for example is an input media such as mouse, keyboard or Trackpad, does not all limit its scope.
As described in the same embodiment, present embodiment is included in the process of this server OS start or after the start, carries out the system service program (step S210) that software program provided by the present invention goes to call out this server OS.This moment, system service program promptly can support the driver of PS/2 transmission interface to be written into (step S220) with provided by the present invention.Then driver thus then, send the detection instruction to PS/2 device (step S230) by the PS/2 transmission interface, system then can receive the data of the hardware attributes of being replied by the PS/2 device, and goes out PS/2 device (step S240) according to this hardware attributes data identification.Above step is all same or similar with preceding embodiment, so its detailed content does not repeat them here.
Different with preceding embodiment is that present embodiment also comprises according to the PS/2 device of being discerned after identifying the PS/2 device, and corresponding device driver (step S250) is installed on server OS.In this step, for example be earlier according to the hardware attributes data, seek the file path of the device driver of PS/2 device correspondence therewith, the data of file path reading device driver from then on just then are with the erecting device driver.
By the installation method of above-mentioned PS/2 device driver, even the user does not know the manufacturer of the PS/2 device that uses at present, also can correctly install or newer driver more, save the required numerous and diverse action of many install drivers.
In sum, have following advantage at least in the recognition methods of PS/2 device of the present invention and the installation method of PS/2 device driver:
1. by the PS/2 device being assigned the general detection instruction of PS/2 transmission interface, and according to the hardware attributes data identification PS/2 device of PS/2 device passback, do not need to install in advance the driver that product manufacturer provides, just can correctly tell the PS/2 device of various manufacturers.
2. after telling the PS/2 device, also comprise further and select corresponding driver to install, save the program of manual installation driver according to the hardware attributes data of PS/2 device passback.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly has the knack of this skill person, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.

Claims (10)

1. the recognition methods of a second generation ps device is useful in identification one PS/2 device under the server OS, and this recognition methods comprises the following steps:
Call out the system service program in this server OS;
Be written into a driver of supporting a PS/2 transmission interface by this system service program;
Send one by this driver by this PS/2 transmission interface and detect instruction to this PS/2 device; And
Receive the data of a hardware attributes of this PS/2 device answer, discern this PS/2 device according to this.
2. the recognition methods of PS/2 device as claimed in claim 1 is characterized in that, this system service program is to automatically perform when this server OS start.
3. the recognition methods of PS/2 device as claimed in claim 1 is characterized in that, this system service program is to be selected to carry out by the user in this server OS start back.
4. the recognition methods of PS/2 device as claimed in claim 1 is characterized in that, the step of calling out this system service program of this server OS comprises:
Be linked to a service control and management person of this server OS, to open a service database; And
By selecting to carry out this system service program in this service database.
5. the recognition methods of PS/2 device as claimed in claim 1 is characterized in that, this system service program is a driver service routine.
6. the installation method of a PS/2 device driver is useful in identification one PS/2 device under the server OS, and a device driver of this PS/2 device is installed, and this installation method comprises the following steps:
Call out a system service program of this server OS;
Be written into a driver of supporting a PS/2 transmission interface by this system service program;
Send one by this driver by this PS/2 transmission interface and detect instruction to this PS/2 device;
Receive the data of a hardware attributes of this PS/2 device answer, discern this PS/2 device according to this; And
According to this PS/2 device of being discerned, this corresponding device driver is installed.
7. the installation method of PS/2 device driver as claimed in claim 6 is characterized in that, this system service program is to automatically perform when this server OS start.
8. the installation method of PS/2 device driver as claimed in claim 6 is characterized in that, this system service program is to be selected to carry out by the user in this server OS start back.
9. the installation method of PS/2 device driver as claimed in claim 6 is characterized in that, the step of calling out this system service program of this server OS comprises:
Be linked to a service control and management person of this server OS, to open a service database; And
By selecting to carry out this system service program in this service database, wherein this system service program is a driver service routine.
10. the installation method of PS/2 device driver as claimed in claim 6 is characterized in that, according to this PS/2 device of being discerned, the step that this corresponding device driver is installed comprises:
According to these hardware attributes data, seek an associated documents path of this device driver of its correspondence; And
Read the data of this device driver from this associated documents path, so that this device driver to be installed.
CNA2007100061804A 2007-01-29 2007-01-29 Second generation personal system device recognition method and its method for loading driver Pending CN101236495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100061804A CN101236495A (en) 2007-01-29 2007-01-29 Second generation personal system device recognition method and its method for loading driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100061804A CN101236495A (en) 2007-01-29 2007-01-29 Second generation personal system device recognition method and its method for loading driver

Publications (1)

Publication Number Publication Date
CN101236495A true CN101236495A (en) 2008-08-06

Family

ID=39920141

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100061804A Pending CN101236495A (en) 2007-01-29 2007-01-29 Second generation personal system device recognition method and its method for loading driver

Country Status (1)

Country Link
CN (1) CN101236495A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653995A (en) * 2015-09-01 2016-06-08 刘晓建 Repeatedly-use dependable computing apparatus of common computer man-computer interaction equipment
CN106020917A (en) * 2016-07-06 2016-10-12 北京金山安全软件有限公司 Software installation method and device and user terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653995A (en) * 2015-09-01 2016-06-08 刘晓建 Repeatedly-use dependable computing apparatus of common computer man-computer interaction equipment
CN106020917A (en) * 2016-07-06 2016-10-12 北京金山安全软件有限公司 Software installation method and device and user terminal
CN106020917B (en) * 2016-07-06 2019-12-03 珠海豹趣科技有限公司 A kind of software installation method and device, user terminal

Similar Documents

Publication Publication Date Title
CN109086203B (en) Page detection method and device
US7802082B2 (en) Methods and systems to dynamically configure computing apparatuses
CN102713843B (en) Method of USB device enumeration including detecting operating system type of USB host
US20020174264A1 (en) System and method for obtaining driver software and documentation for a detected hardware and software configuration
CN103412769A (en) External card parameter configuration method, equipment and system
CN101751329B (en) Method and system for realizing automatic testing
US20130227356A1 (en) Apparatus and method for handling rebooting of mobile terminal
CN104881314A (en) Method for installing driver and driver installation device
KR20140095882A (en) Test system for evaluating mobile device and driving method thereof
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
US20130268744A1 (en) Method for detecting hardware
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN103593281A (en) Test system and test method
CN110135130A (en) A kind of embedded device software tamper-resistant method and system
CN112860325B (en) Automatic and rapid hardware drive preassembling method and system in diskless environment
CN103064767B (en) Drive backup, the method recovered and device
CN104834526A (en) Manufacturing method for motion control card driver installation package
US20070094427A1 (en) System and method for verifying the coupled locations of computer devices
US20100268925A1 (en) System and method for populating a dedicated system service repository for an information handling system
CN101006430A (en) Error response by a data processing system and peripheral device
CN101236495A (en) Second generation personal system device recognition method and its method for loading driver
CN102937902A (en) Method and device for installing driver
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN105446758A (en) Method for installing operating system
CN102455958A (en) Test system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: YILONG ELECTRIC ELECTRONICS CO LTD

Free format text: FORMER OWNER: YIFA TECHNOLOGY CO., LTD.

Effective date: 20090403

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090403

Address after: Taiwan, Hsinchu, China Science and Industry Park, Baoshan County, Hsinchu Province, innovation, No. 12

Applicant after: Yilong Electronic Co., Ltd.

Address before: China Taiwan Taipei county and Liancheng Road, No. 2, No. 6, building 192

Applicant before: R. & D. Dept K. Tech Devices Corp.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080806