CN1127019C - Method for hot switching of peripherals in single IDE interface - Google Patents

Method for hot switching of peripherals in single IDE interface Download PDF

Info

Publication number
CN1127019C
CN1127019C CN 00134803 CN00134803A CN1127019C CN 1127019 C CN1127019 C CN 1127019C CN 00134803 CN00134803 CN 00134803 CN 00134803 A CN00134803 A CN 00134803A CN 1127019 C CN1127019 C CN 1127019C
Authority
CN
China
Prior art keywords
utility appliance
ide
peripherals
bios
interface
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
Application number
CN 00134803
Other languages
Chinese (zh)
Other versions
CN1355479A (en
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.)
Getac Technology Corp
Original Assignee
Mitac Technology 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 Mitac Technology Corp filed Critical Mitac Technology Corp
Priority to CN 00134803 priority Critical patent/CN1127019C/en
Publication of CN1355479A publication Critical patent/CN1355479A/en
Application granted granted Critical
Publication of CN1127019C publication Critical patent/CN1127019C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention belongs to a method for thermally switching a peripheral device on a single IDE interface. Under the use state of a computer, another peripheral device is connected with the single IDE interface or is extracted out of the single IDE interface, computer hardware does not need resetting to zero, and then an operation system is started or a drive program is removed. The present invention has the advantage of convenient operation.

Description

Method at single IDE interface hot-swap peripherals
The invention belongs to a kind of method at single IDE interface hot-swap peripherals, can be applicable to have the PC at single IDE interface, the user connects in single IDE interface or pulls out another peripherals, the computer hardware return-to-zero can must not made os starting or removes its driver.
Usually computer system all comprises peripherals such as printer, disk drive, magnetic tape station, CD drive or mouse, and the communicating device between peripherals and computer is interface (interface).
On the motherboard of PC (personal computer is called for short PC) many bus slots are arranged, can install various interface card (interface card) above additional, via various interface card, the function of PC is able to unlimited extension.Some interface has become the standard interface of computer system, for example: the RS-232 interface of serial transmission, the printerfacing of parallel transmission, keyboard interface, AT-SUS interface, floppy disk interface etc. because often use.
The IDE interface is a kind of of computer interface, abbreviation for " integrated driving electronic interface " (Integrated DriveElectronics), it is a kind of interface of 8 or 16 control peripheral devices, its control chip is usually located on the peripherals, because of interface card itself simpler, price is lower, is main product in the market.
On 16 AT; the IDE INTERFACE DESIGN is used for and the transmission of peripherals; so be also referred to as ATA (ATAttachment); Gai Liang second generation ATA-2 has also supported 2.5 inches small harddisk machine (ATA-2 is also referred to as E-IDE or Fast is IDE) after a while; newer third generation ATA-3 then has the message transmission rate of 33 MBps; support DMA mode 2; in addition; it can also do crc check, cryptoguard, the battery saving mode of data transmission, and up-to-date ATA-4 then can reach the data transmission period of 120us.
ATAPI interface (IBM PC/AT Attachment Packet Interface) for PC when in and the interface linked up of disk drive or CD drive, this interface is linked up by peripherals and CPU with 16 isa bus, support simultaneously " plug and play ", ability with the parallel I/O of disk drive, the IDE interface can be supported fully by the ATA improvement in this interface.
PC provides two groups of IDE interfaces at most, and each IDE interface can connect two peripherals.The main equipment (Master Device) and utility appliance (Slave Device) bus shared (BUS) that connect same IDE interface must could operate down simultaneously in principal and subordinate's agreement (Master Slave Diagnostic protocol); And this agreement only starts when start (Power On) or hardware return-to-zero (Hardware Reset).Therefore, under the computer user mode, connect another peripherals, the computer hardware return-to-zero just can must be made operating system (Operation System is called for short OS) start its driver (Driver), and peripherals all can be acted at single IDE interface.Similarly, under the computer user mode, pull out another peripherals of single IDE interface, must just can make operating system remove its driver the computer hardware return-to-zero, unlikely other application programs are produced be disturbed.
Under the computer user mode, to connect or pull out another peripherals at single IDE interface, the computer hardware return-to-zero just can must be made os starting or removes its driver, this mode of operation is inconvenience rather.
The present invention proposes a kind of under the computer user mode, connect at single IDE interface or pull out another peripherals, the computer hardware return-to-zero can must not made os starting yet or removes its driver, that is in the method for single IDE interface hot-swap (Hot Swap) peripherals.
The object of the present invention is achieved like this:
A kind of method at single IDE interface hot-swap peripherals, the method that wherein connects peripherals comprise following step:
When booting computer, detect input and the output of IDE by EC;
Input and output by IDE judge whether utility appliance exists;
If the result of above-mentioned judgement has utility appliance to exist, then start power supply and the bus of IDE, and direct notifying operation system start-up driver;
If the result of above-mentioned judgement is that utility appliance does not exist, then close power supply and the bus of IDE;
In computer uses, regularly detect the pin signal whether the IDE interface connects utility appliance;
If when detecting the pin signal that does not connect utility appliance, wait for, and proceed whether to connect the pin signal judgment of utility appliance; :
Wait until that always EC detects the IDE interface when pin signal that connects utility appliance is arranged, send system management interrupt signal SMI, SMI notifies BIOS;
Judge that BIOS detects the operating state of main equipment;
If above-mentioned judgement main equipment is at operating state, shelve SMI, wouldn't handle, and notice EC retransmits SMI after the set time, proceed BIOS and detect main equipment whether in the judgement of operating state;
Wait until that always above-mentioned judgement main equipment not when operating state, then starts the IDE bus and the power supply of utility appliance, and make main equipment and utility appliance finish principal and subordinate's agreement: and
BIOS notifying operation system, the driver of startup utility appliance.
A kind of method at single IDE interface hot-swap peripherals, the method for wherein pulling out peripherals comprises the steps:
In computer used, EC regularly detected and does not receive the pin signal of pulling out utility appliance;
If judge that EC does not receive the pin signal of pulling out utility appliance, wait for, and proceed not receive the pin signal judgment of pulling out utility appliance;
Wait until always when EC detects the pin signal of pulling out utility appliance that send system management interrupt signal SMI, SMI notifies BIOS;
BIOS cuts off the IDE bus and the power supply of former this equipment of connection, and the notifying operation system removes the driver of this equipment.
Effect of the present invention: the present invention proposes a kind of under the computer user mode, connect in single IDE interface or pull out another peripherals, must be with the computer hardware return-to-zero, also can make os starting or remove its driver, that is, have and operate advantage easily in the method for single IDE interface hot-swap (Hot Swap) peripherals.
Relevant detailed content of the present invention and technology, conjunction with figs. is described as follows:
Fig. 1 is the process flow diagram that connects peripherals according to embodiments of the invention;
Fig. 2 is for pulling out the process flow diagram of peripherals according to embodiments of the invention.
Symbol description among the figure:
100 starts
101EC checks IDE I/O
Do 102 have utility appliance to exist?
103 start IDE power supply and bus
104 close IDE power supply and bus
Does 105EC receive the connection signal?
106 time delays
107 with SMI notice BIOS
In the action of 108 main equipments?
109 time delays
110 start IDE power supply and bus
111 main equipments and the return-to-zero of utility appliance hardware
112 os starting drivers
200 beginnings
201EC: receive and pull out signal?
202 time delays
203 with SMI notice BIOS
204 close IDE power supply and bus
205 operating systems remove driver
The present invention provides a kind of method of finishing hot-swap peripherals at single IDE interface.Connect at single IDE interface or pull out another peripherals, the computer hardware return-to-zero can must not made os starting yet or removes its driver.
The present invention is included in the method and the method for pulling out peripherals that single IDE interface connects another peripherals.
See also Fig. 1, for connect the process flow diagram of another peripherals at single IDE interface.
Step 100: booting computer;
Step 101: when booting computer, detect input and the output of IDE by EC;
Step 102: input and output by IDE judge whether utility appliance exists step 102:
Step 103: if the result that step 102 is judged has utility appliance to exist, then power supply and the bus of IDE moved in the back, and directly enters step 112, notifying operation system start-up driver;
Step 104:, then close power supply and the bus of IDE if the result that step 102 is judged is that utility appliance does not exist;
Step 105: in computer used, EC regularly detected the pin signal that connects utility appliance;
Step 106: when detecting the pin signal that does not connect utility appliance, wait for, and proceed the judgement of step 105 as if EC in the step 105;
Step 107: wait until always when EC detects the pin signal that connects utility appliance in the step 105 that send system management interrupt signal SMI, SMI notifies BIOS;
Whether step 108:BIOS detects main equipment at operating state, and its detection mode is to go into state according to the output at interface, and for example: state is gone in the output of ATA or ATAPI standard interface, whether detects main equipment at operating state;
Step 109: at operating state, shelve SMI if judge main equipment in the step 108, wouldn't handle, and notify EC after the set time, to retransmit SMI, proceed the judgement of step 108:
Step 110: wait until in the step 108 always and to judge main equipment not when operating state, the storage main equipment is all states now, treat that its everything is finished after, start the IDE bus and the power supply of utility appliance;
Step 111: make the equal return-to-zero of main equipment and utility appliance, to finish principal and subordinate's agreement;
Step 112: notifying operation system start-up driver.
See also Fig. 2, Fig. 2 is for pulling out the process flow diagram of another peripherals at single IDE interface.
Step 200: beginning;
Step 201; In computer used, EC regularly detected the pin signal that connects utility appliance;
Step 202: if judge in the step 201 that EC does not receive the pin signal of pulling out utility appliance, waits for, and proceeds the judgement of step 201;
Step 203; Wait until always when EC detects the pin signal of pulling out utility appliance that send system management interrupt signal SMI, SMI notifies BIOS;
Step 204:BIOS cuts off the IDE bus and the power supply of former this equipment of connection;
Step 205: the notifying operation system removes driver.

Claims (7)

1, a kind of method at single IDE interface hot-swap peripherals, the method that it is characterized in that connecting peripherals comprise following step:
When booting computer, detect the input and the output at IDE interface by EC;
Input and output by IDE judge whether utility appliance exists;
If the result of above-mentioned judgement has utility appliance to exist, then start power supply and the bus of IDE, and direct notifying operation system start-up driver;
If the result of above-mentioned judgement is that utility appliance does not exist, then close power supply and the bus of IDE;
In computer uses, regularly detect the pin signal whether the IDE interface connects utility appliance;
If when detecting the pin signal that does not connect utility appliance, wait for, and proceed whether to connect the pin signal judgment of utility appliance;
Wait until that always EC detects after the IDE interface connects utility appliance the pin signal is arranged, send system management interrupt signal SMI, SMI notifies BIOS;
Judge that BIOS detects the operating state of main equipment;
If above-mentioned judgement main equipment is at operating state, shelve SMI, wouldn't handle, and notice EC retransmits SMI after the set time, proceed BIOS and detect main equipment whether in the judgement of operating state;
Wait until that always above-mentioned judgement main equipment not at operating state, then starts the IDE bus and the power supply of utility appliance, and make main equipment and utility appliance finish principal and subordinate's agreement; And
The driver of BIOS notifying operation system start-up utility appliance.
2, the method at single IDE interface hot-swap peripherals as claimed in claim 1 is characterized in that described pin signal by EC detection IDE interface connection utility appliance is regularly to detect.
3, the method at single IDE interface hot-swap peripherals as claimed in claim 1 is characterized in that described BIOS detects the operating state of main equipment, and its detection mode is whether to go into the state-detection main equipment at operating state by BIOS according to the output at interface.
4, the method at single IDE interface hot-swap peripherals as claimed in claim 3, it is characterized in that whether described BIOS goes into the state-detection main equipment at operating state according to the output at interface, be meant that whether BIOS goes into the state-detection main equipment at operating state according to the output of ATA/ATAPI standard interface.
5, the method at single IDE interface hot-swap peripherals as claimed in claim 1, the method that it is characterized in that described connection peripherals also comprises: B1OS detects main equipment not when operating state, before the IDE bus that starts utility appliance, store all states of IDE bus, and finish the action of IDE bus.
6, the method at single IDE interface hot-swap peripherals as claimed in claim 1 is characterized in that the method for described connection peripherals also comprises: when principal and subordinate's agreement was finished, BIOS notice EC stopped to send system management interrupt signal SMI.
7, a kind of method at single IDE interface hot-swap peripherals is characterized in that the method for pulling out peripherals comprises the steps:
In computer used, EC regularly detected and does not receive the pin signal of pulling out utility appliance;
If judge that EC does not receive the pin signal of pulling out utility appliance, wait for, and proceed not receive the pin signal judgment of pulling out utility appliance;
Wait until always when EC detects the pin signal of pulling out utility appliance that send system management interrupt signal SMI, SMI notifies BIOS;
B10S cuts off the IDE bus and the power supply of former this equipment of connection, and the notifying operation system removes the driver of this equipment.
CN 00134803 2000-12-01 2000-12-01 Method for hot switching of peripherals in single IDE interface Expired - Fee Related CN1127019C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 00134803 CN1127019C (en) 2000-12-01 2000-12-01 Method for hot switching of peripherals in single IDE interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 00134803 CN1127019C (en) 2000-12-01 2000-12-01 Method for hot switching of peripherals in single IDE interface

Publications (2)

Publication Number Publication Date
CN1355479A CN1355479A (en) 2002-06-26
CN1127019C true CN1127019C (en) 2003-11-05

Family

ID=4596425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 00134803 Expired - Fee Related CN1127019C (en) 2000-12-01 2000-12-01 Method for hot switching of peripherals in single IDE interface

Country Status (1)

Country Link
CN (1) CN1127019C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004943B (en) * 2007-01-17 2011-04-20 深圳华普数码有限公司 Switching method, device and apparatus for DVD video disc machine external storage device
CN105677606B (en) * 2014-11-21 2019-03-19 杭州华为数字技术有限公司 The hot-plug method and bus unit of bus apparatus

Also Published As

Publication number Publication date
CN1355479A (en) 2002-06-26

Similar Documents

Publication Publication Date Title
US5944831A (en) Power management apparatus and method for managing power application to individual circuit cards
US20070156942A1 (en) Method and apparatus for independently managing a chipset-integrated bus controller
CN101493786B (en) Computer virtual machine system and equipment accessing method
EP3844628B1 (en) Slave-to-slave direct communication
CN101770389B (en) Computer and method for managing hardware device
US20060236139A1 (en) Method for transmitting the system command of a computer system
CN1940884A (en) Computer system, computer network and method
CN214670566U (en) Computer wake-up circuit and computer
CN101051242A (en) Power supply control method and device for computer system
US6496938B1 (en) Enhanced PCI clock control architecture
JP3259935B2 (en) Method of restoring peripheral device to normal operable state
CN1127019C (en) Method for hot switching of peripherals in single IDE interface
CN1278203C (en) Method for PCI express power management using a PCI PM mechanism in a computer system
TW594466B (en) Power management method for microprocessor
WO2011076064A1 (en) Data card upgrading method and device
CN112347017A (en) PS/2 keyboard dual-host plug-in system with LPC bus interface and switching method
CN1438582A (en) USB control circuit suitable to computer-to-computer transmission and its operation method
CN1186721C (en) Method for detecting host controller transmission rate for USB device
CN114860520A (en) USB slave equipment extraction detection circuit
TWI236587B (en) Power-saving apparatus and method for operation of peripherals
CN1912822A (en) Device and method for providing intelligent card interface by large scale storage equipment
CN1278204C (en) Power source management state control method
US8065547B2 (en) Control method and computer system for advanced configuration and power interface
TWI363969B (en) A computer system with data accessing bridge circuit
CN100454254C (en) Method for enhancing intelligent key equipment easy applied performance and equipment thereof

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20031105

Termination date: 20121201