CN1873632A - Identification system and method for hot plug peripheral unit - Google Patents

Identification system and method for hot plug peripheral unit Download PDF

Info

Publication number
CN1873632A
CN1873632A CN 200510075547 CN200510075547A CN1873632A CN 1873632 A CN1873632 A CN 1873632A CN 200510075547 CN200510075547 CN 200510075547 CN 200510075547 A CN200510075547 A CN 200510075547A CN 1873632 A CN1873632 A CN 1873632A
Authority
CN
China
Prior art keywords
peripheral unit
hot plug
slot
unit
peripheral
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 200510075547
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 200510075547 priority Critical patent/CN1873632A/en
Publication of CN1873632A publication Critical patent/CN1873632A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method of periphery equipment identifier system, applying to sever installing operation system. The sever shell is provided with slot to connect with periphery equipment. First, it is necessary to setup an interrupt cell installed in slot; when periphery equipment connects or disengages the slot, the interrupt will send an interrupt signal; it is necessary to inspect periphery equipment state through the interrupt signal and execute scan program through detected result to identify periphery equipment.

Description

The peripheral unit recognition system and the method thereof of hot plug
Technical field
The present invention relates to a kind of system and method thereof of automatic identification peripheral unit, relate in particular to a kind of general I/O (GPIO) interruption detection peripheral unit that utilizes, carry out the system and the method thereof of the peripheral unit identification of hot plug.
Background technology
The hot plug function allows the user in shutdown system not exactly, takes out under the situation of not cutting off the electricity supply and changes the parts such as hard disk, power supply or integrated circuit board that damage, thereby improved timely recovery capability, extendability and the dirigibility etc. of system to disaster.Hot plug can be saved the time that computer shutdown restarts, and can also reduce the excessive impact that hardware is caused of switching on and shutting down computer-chronograph starting current, so enjoy favor in the high level computer user.Hot plug commonly used at present has USB (universal serial bus) (USB) equipment, USB (universal serial bus) (USB) bus has become the standard interface of personal computer, the standardization of its driver, so USB (universal serial bus) (Universal Serial Bus is being installed, USB) during equipment, it is directly inserted interface, system can recognize this equipment, then the user does not need extra manual installation step, just can equally use with the operation local hard drive.Therefore USB (universal serial bus) (USB) equipment is a kind of with celebrated hot plug easy for installation.But USB (universal serial bus) (USB) equipment generally is applicable to the common computer that volume of transmitted data is less relatively, transmission rate request is slow, and, need to install slim calculator system interface (SCSI), serial advanced technology attachment feeder apparatus interface server hard disc equipment such as (SATA) usually at those server systems that big data quantity, high load capacity, high-speed etc. had higher requirements.Mainly towards carrying out mission critical and the very heavy file server of working load, its load is equivalent to people more than 50 and conducted interviews simultaneously in one day 24 hours, and the workstation of high request is also arranged towards video, cartoon making etc. simultaneously for high-performance server and workstation.Server hard disc almost is ceaselessly running in 24 hours, is bearing huge workload, therefore towards above-mentioned be the timely operating system of target with the continuous working, its hard disc apparatus need adopt the design of hot plug.By prior art as can be known, under a stable condition of operating system and mainboard support, serial advanced technology attachment feeder apparatus interface (SATA) and slim calculator system interface (SCSI) hard disk also can be realized the function of hot plug.The hard disc apparatus of above-mentioned hot plug all can use in system under the situation of (start), optionally carries out hard disc extracting and changing at any time, and need not turn off total system.
Though serial advanced technology attachment feeder apparatus interface (SATA) also can be realized the function of hot plug with slim calculator system interface (SCSI) hard disc apparatus, but still has certain limitation: the one, support on the prior art that the mainboard of above-mentioned hard disk hot-plug is very limited; The 2nd, even suitable support mainboard is arranged, prerequisite also must need the user to carry out the scanning of manual hard disk, and the hard disk of installing until detecting just can be realized the hot plug of above-mentioned external hard drive device, hard disk is increased or shifts out from system.Otherwise system can point out and can not find hard disk, and this has just increased user's burden, has also increased the risk that user's misoperation causes, and therefore realization and the use to said apparatus hot plug function brings some inconvenience.How between operating system and the scanning of hot plug hard disc apparatus, set up a pipeline of getting in touch, realize identification automatically, need not user intervention and arbitrarily use the hot plug hard disc apparatus, become industry problem anxious to be solved then the hot plug hard disc apparatus.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of peripheral unit recognition methods of hot plug, need not user intervention and realizes identification to this hot plug hard disc apparatus automatically and easily, to solve the problem that prior art was brought.
Therefore, for reaching above-mentioned purpose, the peripheral unit recognition methods of disclosed hot plug is applied on the server of executive operating system, server has the slot that can connect a plurality of peripheral units, and method comprises the following step: an interrupt response unit that is connected in slot is set; When peripheral unit connected or break away from slot, the interrupt response unit sent look-at-me; Current peripheral unit state according to look-at-me monitoring slot; And according to monitoring result notice execution scanning sequence, with the identification peripheral unit.In addition, this method more includes the step of status information in the system journal of record peripheral unit.Wherein, the interrupt response unit can be general I/O (GPIO) chip.
The present invention is owing to be provided with the interrupt response unit between the slot of operating system and hot plug peripheral unit, thereby make operating system can in time recognize the insertion of hot plug peripheral unit and remove action, choose and carry out the required scanning sequence of peripheral unit, make operating system be able to identification automatically and insert the hot drawing peripheral unit.And choose general I/O chip as the interrupt response unit, not only can produce look-at-me fast, and can carry out record whether there being peripherals in the current slot.
In addition, the interrupt response unary system is arranged in the backboard, thereby can realize that backboard exist to connect or break away from this slot action to peripheral unit the time, gives corresponding circuit protection.
The present invention also provides a kind of peripheral unit recognition system of hot plug, be used for a server, this server has a plurality of slots that can connect a plurality of peripheral units, this system includes: an interrupt response unit, be connected in this slot, in order to when this peripheral unit connects or breaks away from this slot, to send a look-at-me; One peripheral unit monitoring means is in order to realize the current peripheral unit status monitoring of this slot according to this look-at-me; And a peripheral unit service unit, in order to carry out the one scan program, to discern this peripheral unit according to the monitoring result notice.
Relevant characteristics and implementation of the present invention, conjunction with figs. is described in detail as follows as most preferred embodiment now.
Description of drawings
Fig. 1 is the peripheral unit recognition methods process flow diagram of hot plug of the present invention;
Fig. 2 is the peripheral unit recognition system framework map of hot plug of the present invention; And
Fig. 3 is the stitch definition figure of general I/O (GPIO) crystal of the peripheral unit recognition methods of hot plug of the present invention and system.
Wherein, description of reference numerals is as follows:
Step 101 setting is connected in an interrupt response unit of this slot
When step 102 connected or breaks away from this slot when this peripheral unit, this interrupt response unit sent a look-at-me
Step 103 is monitored the current disk state of this slot according to this look-at-me
Step 104 is carried out the one scan program according to the monitoring result notice, to discern this peripheral unit
The status information of this peripheral unit of step 105 record is in a system journal
201 slots, 202 backboards
203 interrupt response unit, 204 peripheral unit monitoring means
205 peripheral unit service units, 206 operating system nucleuss
207 system journals, 208 system boards
Embodiment
The invention provides a kind of peripheral unit recognition system and method thereof of hot plug, by between the slot 201 of system board 208 and hot plug peripheral unit, being provided with an interrupt response unit 203, thereby make operating system can in time recognize the insertion of hot plug peripheral unit and remove action, and in operating system nucleus the driven sweep program, to discern this hot plug peripheral unit automatically.As shown in Figure 1, an interrupt response unit (step 101) that is connected in slot at first is set; When peripheral unit connected or break away from slot, the interrupt response unit sent look-at-me (step 102); Current peripheral unit state (step 103) according to look-at-me monitoring slot; Carry out scanning sequence according to the monitoring result notice, with identification peripheral unit (step 104); And the status information (step 105) in the system journal of record peripheral unit.
Below in conjunction with the peripheral unit recognition system of Fig. 2 hot plug of the present invention, describe the peripheral unit recognition methods of above-mentioned hot plug in detail.As shown in Figure 2, interrupt response unit 203 is connected between a plurality of slots 201 and the system board 208, and wherein response unit 203 is arranged in the backboard 202, corresponding circuit protection when backboard can be realized hot plug.Whether response unit 203 is used for writing down current each hot plug slot here has peripheral unit to exist, and when the action of hot plug peripheral unit is arranged, produces look-at-me reporting system mainboard 208.Be provided with a peripheral unit monitoring means 204, peripheral unit service unit 205 and operating system 206 in the system board 208.After the user inserts from slot or removes a hot plug peripheral unit, look-at-me is sent in general I/O, peripheral unit monitoring means 204 in the reporting system mainboard 208, then peripheral unit monitoring means 204 begins to handle, and mainly current peripheral unit state is monitored.The monitoring operation comprises two parts, the one, and whether detect has peripheral unit to exist on the current slot; The 2nd, the Plug Action of monitoring peripheral unit, and the current peripheral unit state information notification peripheral unit service unit 205 that in time will monitor.Peripheral unit service unit 205 is after the notice that gets access to peripheral unit monitoring means 204, and the notifying operation system carries out scanning sequence, with the identification peripheral unit.And current peripheral unit status information is recorded in the system journal.
Fig. 3 is the stitch definition figure of the general I/O crystal of the peripheral unit recognition methods of hot plug of the present invention and system.Here the slot number of selecting for use is 6, and 83601 chips are adopted in general I/O, supports 6 hot plug peripheral units.This 83601 general I/O chip comprises that offset address is 0,8,10 and 11 register, and Bit0-Bit7 represents register-bit information, is not limited to this embodiment but should understand the present invention.Wherein each stitch is defined as follows: HD#x: expression slot x current peripheral unit exist (x:1,2 ... 6), 1 expression peripheral unit exists; #x int represent slot x have the peripheral unit Plug Action (x:1,2 ... 6), 1 expression has a Plug Action; (n/a) string representation: do not have functional definition.The action that removes at a hot plug peripheral unit is described the peripheral unit recognition methods course of work of hot plug of the present invention below.After the user pulled out the hot plug peripheral unit from slot 6, general I/O 203 produces to be interrupted, and look-at-me is sent to peripheral unit monitoring means 204, and then peripheral unit monitoring means 204 begins to monitor.At first peripheral unit monitoring means 204 is checked 83601 registers 10 (301) ﹠amp; 11 (304), judge whether the peripheral unit that slot 6 is connected has Plug Action, find that #6int (303) signal is 1, promptly there is Plug Action; Check the 5th (Bit5) (304) of register 8 then, find that current peripheral unit does not exist.Peripheral unit monitoring means 204 will obtain encloses the interrupting information that device is removed about 6 extras and is notified to peripheral unit service unit 205.What peripheral unit service unit 205 will be received encloses the information notifying operation system that device is removed about 6 extras, and then operating system is carried out scanning sequence in examining within it, to discern this peripheral unit.And the information that will remove records in the system journal.
Though the present invention discloses as above with aforesaid preferred embodiment, yet it is not in order to qualification the present invention, and any those skilled in the art without departing from the spirit and scope of the present invention, change and retouching when doing some.

Claims (12)

1, a kind of peripheral unit recognition methods of hot plug is applied to carry out on the server of an operating system, and this server has a plurality of slots that can connect a plurality of peripheral units, and this method comprises the following step:
Setting is connected in an interrupt response unit of this slot;
When this peripheral unit connected or breaks away from this slot, this interrupt response unit sent a look-at-me;
Monitor the current peripheral unit state of this slot according to this look-at-me; And
Carry out the one scan program according to the monitoring result notice, to discern this peripheral unit.
2, the peripheral unit recognition methods of hot plug according to claim 1, the step of wherein carrying out this scanning sequence is to finish in the kernel of this operating system.
3, the peripheral unit recognition methods of hot plug according to claim 1, wherein this interrupt response unit is a general I/O chip.
4, the peripheral unit recognition methods of hot plug according to claim 1, wherein this interrupt response unit is arranged in the backboard, to realize that this peripheral unit connects or corresponding circuit protection when breaking away from this slot.
5, the peripheral unit recognition methods of hot plug according to claim 3, wherein this general I/O chip is arranged in the backboard, to realize that this peripheral unit connects or corresponding circuit protection when breaking away from this slot.
6, the peripheral unit recognition methods of hot plug according to claim 1, the status information that more includes this peripheral unit of record is in a system journal.
7, a kind of peripheral unit recognition system of hot plug is used for a server, and this server has a plurality of slots that can connect a plurality of peripheral units, and this system includes:
One interrupt response unit is connected in this slot, in order to send a look-at-me when this peripheral unit connects or breaks away from this slot;
One peripheral unit monitoring means is in order to realize the current peripheral unit status monitoring of this slot according to this look-at-me; And
One peripheral unit service unit is in order to carry out the one scan program according to the monitoring result notice, to discern this peripheral unit.
8, the peripheral unit recognition system of hot plug according to claim 7, wherein this scanning sequence is arranged in an operating system nucleus.
9, the peripheral unit recognition system of hot plug according to claim 7, wherein this interrupt response unit is a general I/O chip.
10, the peripheral unit recognition system of hot plug according to claim 7, wherein this interrupt response unit is arranged in the backboard, to realize that this peripheral unit connects or corresponding circuit protection when breaking away from this slot.
11, the peripheral unit recognition system of hot plug according to claim 9, wherein this general I/O chip is arranged in the backboard, to realize that this peripheral unit connects or corresponding circuit protection when breaking away from this slot.
12, the peripheral unit recognition system of hot plug according to claim 7 more includes a system journal, in order to write down the status information of this peripheral unit.
CN 200510075547 2005-06-03 2005-06-03 Identification system and method for hot plug peripheral unit Pending CN1873632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510075547 CN1873632A (en) 2005-06-03 2005-06-03 Identification system and method for hot plug peripheral unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510075547 CN1873632A (en) 2005-06-03 2005-06-03 Identification system and method for hot plug peripheral unit

Publications (1)

Publication Number Publication Date
CN1873632A true CN1873632A (en) 2006-12-06

Family

ID=37484111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510075547 Pending CN1873632A (en) 2005-06-03 2005-06-03 Identification system and method for hot plug peripheral unit

Country Status (1)

Country Link
CN (1) CN1873632A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472122B (en) * 2007-12-29 2011-05-04 Tcl集团股份有限公司 Method for sharing resource through digital audio/video interface
CN101375801B (en) * 2007-08-31 2012-04-11 深圳迈瑞生物医疗电子股份有限公司 Device and method for testing actions for inserting and pulling probe
CN104932993A (en) * 2014-03-21 2015-09-23 中兴通讯股份有限公司 Stable hot plug driving method and apparatus as well as hot plugging supporting device
WO2016086582A1 (en) * 2014-12-02 2016-06-09 中兴通讯股份有限公司 Signal detection method and device
CN106933575A (en) * 2017-02-27 2017-07-07 郑州云海信息技术有限公司 A kind of system and method with outer identification server assets information
CN107688523A (en) * 2017-09-07 2018-02-13 郑州云海信息技术有限公司 A kind of intelligent control method and device
CN107765990A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 A kind of system disk management method and device
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN108646876A (en) * 2018-07-11 2018-10-12 深圳市同泰怡信息技术有限公司 A kind of fixed structure of PCIe card

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101375801B (en) * 2007-08-31 2012-04-11 深圳迈瑞生物医疗电子股份有限公司 Device and method for testing actions for inserting and pulling probe
CN101472122B (en) * 2007-12-29 2011-05-04 Tcl集团股份有限公司 Method for sharing resource through digital audio/video interface
CN104932993A (en) * 2014-03-21 2015-09-23 中兴通讯股份有限公司 Stable hot plug driving method and apparatus as well as hot plugging supporting device
WO2015139431A1 (en) * 2014-03-21 2015-09-24 中兴通讯股份有限公司 Stable hot plugging driving method and apparatus and hot plugging-supporting equipment
WO2016086582A1 (en) * 2014-12-02 2016-06-09 中兴通讯股份有限公司 Signal detection method and device
CN107765990A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 A kind of system disk management method and device
CN106933575A (en) * 2017-02-27 2017-07-07 郑州云海信息技术有限公司 A kind of system and method with outer identification server assets information
CN106933575B (en) * 2017-02-27 2020-08-14 苏州浪潮智能科技有限公司 System and method for identifying asset information of server out of band
CN107688523A (en) * 2017-09-07 2018-02-13 郑州云海信息技术有限公司 A kind of intelligent control method and device
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN108646876A (en) * 2018-07-11 2018-10-12 深圳市同泰怡信息技术有限公司 A kind of fixed structure of PCIe card

Similar Documents

Publication Publication Date Title
CN1873632A (en) Identification system and method for hot plug peripheral unit
CN100359480C (en) Method and system for fast system recovery via degraded reboot
JP4886601B2 (en) Apparatus and method for operating USB interface equipment
CN112286709B (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN101930411B (en) Information processing apparatus, and method for controlling the same
CN102880527B (en) Data recovery method of baseboard management controller
CN101599035A (en) USB port proving installation and method
CN102331959A (en) Server system
CN102339236B (en) Method for detecting pluggable storage device and electronic device
US20090138740A1 (en) Method and computer device capable of dealing with power fail
CN103870367A (en) SAS (Serial Attached SCSI (small computer system interface)) expander automatic switching system and method
CN111581021B (en) Application program starting abnormality repairing method, device, equipment and storage medium
CN115878356A (en) Disk failure prediction method and device
US20090106584A1 (en) Storage apparatus and method for controlling the same
CN1979444A (en) System for ensuring servo programe non-interrupted operation and method therefor
CN109086081B (en) Method, system and medium for instantly prompting in-place change of SATA (Serial advanced technology attachment) and NVMe (network video recorder) equipment
JP5768503B2 (en) Information processing apparatus, log storage control program, and log storage control method
KR20050120856A (en) A method for upgrading and restoring embeded systems by using usb memory device
CN101741600B (en) Server system, recording equipment
CN110442388A (en) Intellectual computing device crash state is restarted automatically method
CN102385525A (en) Virtual machine system and method for uninstalling docking station equipment in virtual machine system
CN101452333A (en) Method and computer device capable of processing abnormity of power supply
CN2470879Y (en) Voice-sound apparatus with function telling fault reson
CN101201756A (en) Method for detecting fault due to abnormal electrifying and shutting down
CN202632270U (en) Hard disk data reading device based on universal serial bus (USB) 3.0

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication