Background technology
CD-ROM device is the important accessories of main frame such as computing machine, and required electric power needs to supply with via main frame, and occupies certain electricity consumption ratio.Let the energy-conservation and effective utilization electric power of CD-ROM device, both can alleviate the electric load of main frame, more can increase electricity usage time of portable electronic product.
As shown in Figure 1, be prior art multimedia state of agreement handoff relation figure.This prior art is No. 291686 patent case of this country's bulletin; Disclosing CD-ROM device reaches an agreement on according to multimedia; Can be between idle (Idle), standby (Standby), dormancy (Sleep), use (Active) and shutdown states such as (OFF); Assign instruction by control system and switch, to save the electric power of CD-ROM device.General CD-ROM device is using and holding state, and electric power maintains normal condition.And after idle a period of time, this prior art forces control system instruction CD-ROM device to get into dormant state.CD-ROM device is closed inner motor during dormancy, reduces the generation of noise and heat.Part electronic component on the CD-ROM device internal circuit board also can be closed thereupon simultaneously, to save electric power.
Yet in order to wake CD-ROM device at any time up, the central processing unit dispatch control system of this prior art host side and CD-ROM device end microprocessor dispatch control system still must partly be kept electric power, with the contact of retentive control signal.Though other has the bulletin I255449 of this country patent case, discloses when CD-ROM device gets into dormant state; Further close more CD-ROM device inner bodies, with the more electric power of saving, but in order to wake CD-ROM device at any time up; Still need keep partly electric power, and can't close the power supply of CD-ROM device fully.Therefore, convention managing optical drive power supply mode can not satisfy actual needs, still has problem to need to be resolved hurrily.
Summary of the invention
The object of the invention is providing a kind of managing optical drive power supply device, through connecting the pin of interface, is connected to moving back the sheet key and advancing the sheet sensor of CD-ROM device respectively, utilizes and detects the variation of moving back the sheet key and advancing the sheet sensor, starts the CD-ROM device power supply, to save electric power.
Another purpose of the present invention is providing a kind of managing optical drive power supply method; Surpass Preset Time at CD-ROM device and do not use CD-ROM device, close the CD-ROM device power supply fully, utilize to detect to be connected to move back the sheet key and advance sheet sensor pin signal just to change; Start the CD-ROM device power supply once again, with effective utilization electric power.
In order to reach the purpose of aforementioned invention, managing optical drive power supply device of the present invention connects main frame and CD-ROM device by the connection interface with a plurality of pins.Move back the sheet key and be connected in pin one end of the Equipment Inspection line that connects interface.Advance pin one end that the sheet sensor is connected in the manufacturing diagnostics lines that connects interface.Electric power loop is supplied with the CD-ROM device power supply, and receives host computer control switch CD-ROM device power supply through said connection interface.Surpass Preset Time at timer timing CD-ROM device unused time; By microprocessor notice Host Shutdown CD-ROM device power supply; And supply with the pin that weak current is moved back the sheet key to connection and advanced the sheet sensor by main frame, and detect and move back the sheet key and advance the change of sheet sensor, open the CD-ROM device power supply.
Managing optical drive power supply method of the present invention is at first opened the CD-ROM device power supply, lets CD-ROM device at power supply state; The inspection CD-ROM device surpasses Preset Time not to be used, and then cuts off the CD-ROM device power supply fully, supplies with weak current by main frame and is moved back the sheet key and advance the sheet sensor; Reexamine through main frame and use CD-ROM device, push to move back the sheet key or touch sheet sensor etc. the attempt of using CD-ROM device is arranged, open the CD-ROM device power supply again.
Embodiment
Relevant the present invention is for reaching above-mentioned purpose, and technological means that is adopted and effect thereof are lifted preferred embodiment now, and cooperates graphic the explanation as follows.
Regulation according to specifications; Each pin of the SATA interface (Serial AT Atachment II) of slim CD-ROM device (Slim Optical Disk Drive) all has specific function; So that produce specific being connected with main frame such as computing machine; Accept the power supply supply of main frame, and through SATA interface transmission signals, so as with the main frame concerted action.As shown in Figure 2, be the annexation of CD-ROM device 1 with main frame 2.The SATA interface connector 3 of CD-ROM device 1; Mainly can divide into signaling zone 3a (Singal Segment) and power supply area 3b (Power Segment); Wherein signaling zone 3a has the signal wire (Signals) and ground wire Gnd (Ground) of two pairs of different pins; Power supply area 3b pin then include two pairs of power leads (+5V) with ground wire (Ground); And Equipment Inspection line DP (Device Present Line is called for short the DP detection line) and manufacturing diagnostics lines MD (Manufacturing Diagnostical Line is called for short the MD diagnostics lines).Main frame 2 has the connector 4 of corresponding binding; Can divide into signaling zone 4a and power supply area 4b equally; Wherein signaling zone 4a pin also has two pairs of different signal lines and ground wire; And power supply area 4b pin also has two pairs of power leads and ground wire, and an Equipment Inspection line DP and makes diagnostics lines MD.
As long as CD-ROM device 1 is connected on the connector of main frame 2 arbitrary identical definition, let signaling zone to signaling zone, power supply area is connected to power supply area, just can form correct binding with main frame 2.The central processing unit 5 control power supply area 4b of main frame 2 provide the power supply area 3b of power supply to CD-ROM device 1, and power supply transfers to the electric power loop 6 of CD-ROM device 1 again, is given each dynamic component and the microprocessor 7 that needs electric power in the CD-ROM device 1 by electric power loop 6 power distribution.In addition, microprocessor 7 is accepted the control signal that main frame 2 is transmitted through signaling zone 4a by signaling zone 3a, the mark on the control CD-ROM device 1 read-write CD-RW discsCD-RW (figure does not show), and encoding and decoding handle and form the numerical digit signal, follow signaling zone 3a, 4a passes main frame 2 back.
Managing optical drive power supply device of the present invention mainly utilizes the SATA interface to confirm the DP detection line that links, and CD-ROM device 1 end is connected to moves back sheet key 8.Move back sheet key 8 and be located at CD-ROM device 1 front end, withdraw from CD-RW discsCD-RW as pushing back startup CD-ROM device.And utilize the SATA interface to be used to make the MD diagnostics lines of diagnosis, with the idle MD diagnostics lines in diagnosis back, be connected to into sheet sensor 9 with CD-ROM device 1 end.Advance sheet sensor 9 and be located at CD-ROM device 12 inside; Whether get into CD-ROM device in order to detect CD-RW discsCD-RW; Pellet type (Tray Type) CD-ROM device is detected the pallet that carries CD-RW discsCD-RW get into the CD-ROM device location, suction-type (Slot-in Type) CD-ROM device is detected the insertion CD-ROM device of CD-RW discsCD-RW.In addition, CD-ROM device 1 is provided with timer 10 in addition, receives microprocessor 7 controls, in order to the untapped time of timing CD-ROM device.
When managing optical drive power supply device of the present invention uses; After CD-ROM device 1 and main frame 2 form binding; The corresponding DP detection line of SATA interface can form electrically connect, equally still can make the central processing unit 5 of main frame 2 confirm correctly to link; The control power supply area 4b provide power supply to CD-ROM device 1, starts CD-ROM device 1 read-write CD-RW discsCD-RW.The microprocessor 7 control timers 10 of CD-ROM device 1; Detect CD-ROM device 1 when not using above Preset Time; Microprocessor 7 promptly via signaling zone 3a and signaling zone 4a transmission of control signals to main frame 2, the central processing unit 5 of notice main frame 2 cuts off the power supply of CD-ROM devices 1, closes CD-ROM device 1 fully.Give DP detection line and MD diagnostics lines and only supply with weak currents, the variation of moving back sheet key 8 and advancing sheet sensor 9 in order to detection by main frame 2.
When the user used CD-ROM device 1 via main frame 2, main frame 2 natures can initiatively be opened the power supply of CD-ROM device 2.But move back sheet key 8 when what the user touched CD-ROM device 2, or insert CD-RW discsCD-RW and touch into sheet sensor 9, when CD-ROM device 1 is used in attempt, can change the state that moves back sheet key 8 or advance sheet sensor 9.The central processing unit 5 of main frame 2 utilizes the variation that detects DP detection line and MD diagnostics lines signal height (Pin High or Low), can open the power supply of CD-ROM device 2, makes CD-ROM device 2 return back to user mode.
Therefore, managing optical drive power supply device of the present invention, timer promptly capable of using is closed the CD-ROM device power supply fully when not using CD-ROM device above Preset Time.And, be connected to moving back the sheet key and advancing the sheet sensor of CD-ROM device through the idle pin of SATA interface, and utilizing main frame to detect and move back the sheet key and advance the change of sheet sensor, institute causes the variation of weak current high-low signal, starts the CD-ROM device power supply, reaches the purpose of saving electric power.
As shown in Figure 3, be the flow process of managing optical drive power supply method of the present invention.The present invention is closing the CD-ROM device power supply fully, detects pin weak current signal by main frame and just changes, and the step-by-step procedures of opening the CD-ROM device power supply is following: at step S1, will comprise the system boot of main frame and CD-ROM device; Step S2, main frame is opened the CD-ROM device power supply, lets CD-ROM device at power supply state, so that use at any time; Get into step S3; Is not whether the inspection CD-ROM device surpasses Preset Time used? Do not use if surpass Preset Time, then get back to step S2, keep CD-ROM device at power supply state; Do not use if surpass Preset Time, then get into step S4 and cut off the CD-ROM device power supply immediately by main frame.Getting into step S5 again, does the inspection user use CD-ROM device through main frame? If use CD-ROM device through main frame, then get back to step S2, open the CD-ROM device power supply; Keep CD-ROM device at power supply state,, then get into step S6 if use CD-ROM device without main frame, reexamine to push and move back the sheet key? Move back the sheet key if push; Then get back to step S2, open the CD-ROM device power supply, keep CD-ROM device at power supply state; Not move back the sheet key if push, then get into step S7, does inspection touch into sheet sensor? If touch the sheet sensor; Then get back to step S2, open the CD-ROM device power supply, keep CD-ROM device at power supply state; If do not touch the sheet sensor, then get back to step S4, keep and cut off the CD-ROM device power supply status.Wherein, Step S5 inspection use through main frame use CD-ROM device, step S6 inspection to push to move back the sheet key, and step S7 inspection to touch order such as sheet sensor interchangeable; But place last step like inspection for not the time, still get back to step S4, keep and cut off the CD-ROM device power supply status.
Therefore, managing optical drive power supply method of the present invention is not used CD-ROM device at CD-ROM device above the schedule time, can close the CD-ROM device power supply fully, to save electric power.Just change and utilize main frame to detect to be connected to move back the sheet key and advance sheet sensor pin signal; After judging that CD-ROM device is used in the use attempt; Start the CD-ROM device power supply once again, avoid CD-ROM device consuming time etc. to be switched between states such as use, standby, idle, dormancy and shutdown, with effective utilization electric power.
The above person, only in order to convenient explanation preferred embodiment of the present invention, scope of the present invention is not limited to these preferred embodiments, and is all according to any change that the present invention did, and not breaking away under the spirit of the present invention, all belongs to the scope that the present invention applies for a patent.