Storage medium is the portable electronic device of hard disk
[affiliated technical field]
The present invention relates to a kind of portable electronic device, particularly a kind of storage medium is the portable electronic device of hard disk.
[background technology]
Along with popularizing of portable set, the particularly mobile device of increasing external computing machine with hard disk as storage medium, such as, portable hard drive, audio/video player, palm PC PDA etc.Usually this type of portable electronic device inside all can comprise hard disk, hard disk controller and with outside box body.Outside box body can provide the conversion of the connecting interface of conventional hard, and portable electronic device can be connected with computing machine with the realization plug and play by USB interface, thereby improves the ease of use of conventional hard.
Storage medium is the portable electronic device of hard disk, when it is not worked, hard disk be subjected to the shake ability more intense, moreover existing storage medium be hard disk portable electronic device during fabrication its shell all have shockproof function.Yet, storage medium is that the portable electronic device of hard disk is in when work, the shock resistance of its hard disk very a little less than, and mostly it is on computers external when using, usually be placed on certain position by the user temporarily also it does not fixed, this makes and drops sometimes or the situation of high vibration in using the portable electronic device process, causes the damage of this portable electronic device internal hard drive.Therefore, be necessary to strengthen the protection of hard disk when work.
In being 02134495.7 patent, China Patent No. disclosed a kind of protective device and method of portable computer hard disc driver, structure as shown in Figure 1.But what this patent was primarily aimed at is the internal hard drive of computer-internal hard disk, particularly notebook.So for this patent, unexpected drop or when vibrating, should consider to protect hard disk, also will guarantee the operate as normal of computing machine simultaneously when notebook is in.In other words, guarantee that it is that computer operating system still can normally be used and not go wrong after magnetic head came back to the disk workspace that hard disk is reworked.Therefore, the technical scheme of this patent adopts is that magnetic head in hard disc apparatus sends instruction, the order magnetic head is got back to the safety zone, so that notebook be in drop suddenly or when vibrating wherein hard disk temporarily be in a safe condition, wait to drop or the vibration state back computer operating system that disappears works on again.
In present prior art, used the acceleration induction device in the certain model of IBM, Toshiba notebook, specific practice is: the acceleration device is installed on mainboard, experience fall, when colliding, if embedded micro-processor is judged this state and can be caused damage to hard disk, will on operating system, carry out the pre-designed function of driver, promptly can send high-grade interrupt request, suspend the current work of hard disk, magnetic head is carried out the unloading action immediately; Simultaneously work at present is temporarily stored in the buffer memory or internal memory on the mainboard, treats to proceed original task after dangerous the releasing.But prior art needs CPU to judge whether hard disk is caused damage, and need carry out the pre-designed function of driver on operating system, needs to rely on the work of CPU in the prior art.
Simultaneously, along with the development of technology, the growing maturation of magnetic head berth technology of hard disk.That is: in the hard disk course of work by under the situation of sudden power, magnetic head can be got back to the place of safety automatically and berth in the enough short time.Infringement with regard to effectively having stopped may cause like this to hard disk, the security of hard disk when having guaranteed sudden power.
[summary of the invention]
Therefore, the objective of the invention is to address the above problem, the security of the hard disk of the portable electronic device in running order is guaranteed, and to the easier accurate control of the outage/power supply of hard disk.The present invention need only adopt the technical scheme that simply makes the hard disk outage, just can realize the protection to the hard disk in the portable electronic device.Concrete technical scheme is as follows:
A kind of storage medium is the portable electronic device of hard disk, and this device comprises: hard disk, this hard disk its magnetic head after being de-energized can be got back to the safety zone automatically; Be connected in the hard disk controller of hard disk, this hard disk controller is used for communications protocol is changed; And be used for and the extraneous communication interface that carries out exchanges data; Also comprise:
Inductor is used for the residing motion state of hard disk of induction work, and motion state signal is sent to the induced signal processor;
Be connected in the induced signal processor of inductor, be used to analyze motion state signal, and judge whether to send open command to the hard disk power switch according to analysis result;
The hard disk power switch is used to receive the instruction that connected induced signal processor or connected hard disk controller send over, to the hard disk control of powering.
Described inductor is an acceleration transducer.
The induced signal processor connects hard disk controller, and this hard disk controller connects the hard disk power switch.
The induced signal processor connects the hard disk power switch.
Also comprise the hard disk controller power switch, the induced signal processor sends open command to connected hard disk controller power switch earlier, cut-out is to the power supply of hard disk controller, then, this induced signal processor sends open command to connected hard disk power switch again, cuts off the power supply of hard disk.
This device also comprises the information feedback module, and this information feedback module connects the induced signal processor, is used for the status information that inductor is sensed is fed back to the user.
Described communication interface is UBS interface, SATA interface, 1394 interfaces, serial/parallel line interface or netting twine interface.
Described information feedback module comprises usb hub and usb interface controller, and described communication interface is a USB interface, and this usb hub connects usb interface controller, and this usb interface controller connects the induced signal processor, and this usb hub also connects hard disk controller.
Need feedback data send usb interface controller to by described induced signal processor, this usb interface controller sends data to connected computing machine by usb hub, this computing machine receives this data, through the processing of operating system again with the residing state information notification user of this portable electronic device.
Described information feedback module comprises display screen and display controller, the induced signal processor connects display controller, this display controller connects display screen, the induced signal processor sends the data to display controller, display controller is handled these data, the more residing status information of this portable electronic device is informed display screen and notifies the user.
Described information feedback module comprises loudspeaker and the controller of raising one's voice, the induced signal processor connects the controller of raising one's voice, this controller of raising one's voice connects loudspeaker, the induced signal processor sends the data to the controller of raising one's voice, this controller of raising one's voice is handled these data, the more residing status information of this portable electronic device is sent to loudspeaker and notifies the user.
Described induced signal processor continues to analyze motion state signal after sending open command and making the hard disk outage, and judges whether to allow disk recovery work, resumes work as need, then sends to the hard disk power switch to go code.
Described induced signal processor is after the transmission open command makes the hard disk outage, continue to analyze motion state signal, and judge whether to allow disk recovery work, resume work as need, then go code to the transmission of hard disk power switch earlier, go code to the transmission of hard disk controller power switch again.
The present invention monitors by the motion to hard disk, drop or during high vibration at portable electronic device, can send to corresponding power switch by induced signal processor or hard disk controller and disconnect or the connection order, this power switch is by disconnecting or ON Action, realizes the outage of the hard disk that will power or the control of energising.When the induced signal processor sends open command to the hard disk power switch, the hard disk power switch disconnects, and makes the hard disk outage, thereby makes magnetic head get back to home, bumps against disk to avoid magnetic head, prevents that hard disk is damaged.For better guarantee storage medium be hard disk portable electronic device (such as: the technical scheme of the power supply of cutting off portable hard drive is adopted in security portable hard drive), the present invention, has so not only guaranteed the safety of hard disk but also has guaranteed the inapparent increase of cost.
The China Patent No. of setting forth in background technology is the protective device of 02134495.7 announcement portable computer hard disc driver and the patent of method, and its technical scheme is primarily aimed at the notebook internal hard drive.And if adopt the scheme of sudden power for the hard disk of computer-internal, can cause the collapse of computer operating system, or cause at hard disk and reclose the hard disk that electricity back computer motherboard can't be recognized the electricity that broken just now, cause computing machine normally to use.Comparatively speaking, because what the present invention was primarily aimed at is hard disk in the accompanied electronic equipment, accompanied electronic equipment is not generally installed its major function of complicated operations system, particularly movable storage device and is storage, this movable storage device even installing operating system not.Because the operation of this hard disk outage can not caused the collapse of built-in system, more can not cause the collapse of carrying out the computer operating system of data transmission with it; In addition, for example carry out communication with interfaces such as USB interface, because the usb protocol of the standard of employing, then after this hard disk power switch receives going code that induced signal processor or hard disk controller send over, closed this switch recloses hard disk, after the hard disk energising, connected computing machine also can identify this hard disk again, can guarantee to proceed data communication.
Simultaneously, increasingly mature as the magnetic head berth technology of prior art, the hard disk that uses in the general accompanied electronic equipment basically can be after hard disk be de-energized, and the realization magnetic head is finished the berth automatically in the enough short time.Particularly adopt the hard disk of magnetic head emergency unload rule, can in the slowest 500 milliseconds, be moored to the place of safety especially at magnetic head after the outage.
In addition, technical scheme of the present invention is to be the portable electronic device of hard disk at storage medium, owing to increased the information feedback module, has realized that the information of timely feedback portable electronic device motion state of living in is given this function of user.Significantly do not increasing on the basis of cost, greatly facilitating user's use, accompanied electronic equipment state of living in is not being pointed out and in existing accompanied electronic equipment, almost do not exist.
In order further to understand feature of the present invention and technology contents, describe below in conjunction with specific embodiments of the invention and accompanying drawing.But the drawings and Examples of lifting not are to be used for the present invention is limited.
[description of drawings]
Fig. 1 is the one type of prior art syringe structural diagrams.
Fig. 2 is the logic diagram of first embodiment of apparatus of the present invention.
Fig. 3 is the logic diagram of second embodiment of apparatus of the present invention.
Fig. 4 is the logic diagram of the 3rd embodiment of apparatus of the present invention.
Fig. 5 is the logic diagram of the 4th embodiment of apparatus of the present invention.
Fig. 6 is the logic diagram of the 5th embodiment of apparatus of the present invention.
[embodiment]
As shown in Figure 2, be the first embodiment of the present invention, portable electronic device in the present embodiment is a portable hard drive.This portable hard drive comprises:
One hard disk, this hard disk are the hard disks that can realize magnetic head berth technology, and at present most hard disks can both realize magnetic head berth technology, thereby provide necessary condition for the realization of technical solution of the present invention;
One connects the hard disk controller of hard disk, and this hard disk controller is used for communications protocol is changed, and is the important component part of traditional portable hard drive;
One connects the USB interface of hard disk controller, carries out communication with the usb protocol and the computing machine of standard.
More than be the basic structure of traditional portable hard drive, this portable hard drive has more comprised on this structure, the inductor of hard disk motion state of living under the monitoring pattern, and this inductor is an acceleration transducer; One connects the induced signal processor of inductor; Also have the hard disk power switch of a connection induced signal processor, this hard disk power switch is an electrical switch physically, as: switching diode etc.Adopt the power-down mode of this kind gauge tap, can make that the operation of control power supply is more sensitive.
When this portable hard drive operate as normal, in running order at the acceleration transducer of portable hard drive inside:
1), the motion state data-signal that is in of this portable hard drive that will monitor when acceleration transducer sends to the induced signal processor;
2), this induced signal processor receives this signal, it is analyzed and calculates, how to analyze and calculate for the induced signal processor, because may there be the nuance on the function in each induced signal processor, in order better to disclose technical scheme of the present invention, whether the simple principle of work example of induced signal processor commonly used is illustrated in the current series field: this induced signal processor is compared this signal numerical value constantly and the signal numerical value of a preceding monitoring periods of setting, send to the hard disk power switch according to result's decision of comparison and instruct, send which kind of instruction;
For example, we are set at 0.5 second with monitoring periods, when portable hard drive occurs dropping suddenly being in the situation of freely falling body, the induced signal processor receives the signal that acceleration transducer sends over, treatedly obtain a status values a in should the cycle, with this numerical value a and in the last cycle is that the motion state signal numerical value b that was recorded in preceding 0.5 second compares, and obtains comparison value c, judges whether and will send instruction to the hard disk power switch according to comparison value c.Criterion is to influence the situation that hard disk bears damage capability according to the quality of hard disk etc. (as: hard disk falls how long can guarantee that magnetic head necessarily returns the place of safety; The amplitude of hard disk vibrations and frequency can influence the safety of hard disk etc. above much scopes) set up on their own by the manufacturer, the manufacturer can a self-defined reference value d, as comparison value c during more than or equal to reference value d, the residing state of this portable hard drive is defined as precarious position, as comparison value c during less than reference value d, the residing state of this portable hard drive is defined as safe condition.For example, this portable hard drive is when freely falling body, the distance of setting 50 centimetres is the safe distance that hard disk falls, and this portable hard drive falls 50 centimetres of needs T seconds, then this portable hard drive be in fall 50 centimetres that constantly and just that of T second be considered to the critical moment of precarious position constantly, being greater than or equal to this critical moment all is precarious position, less than 50 centimetres or be considered to safe condition less than moment of T second, very then can be defined as the state that is about to cause danger near 50 centimetres or the moment that approximates T second.
3) if the comparison value c that calculates by the induced signal processor this moment during less than reference value d, promptly this portable hard drive is in a safe condition, this induced signal processor is not done action;
4) if the comparison value c that calculates by the induced signal processor this moment during more than or equal to reference value d, promptly this portable hard drive is in the precarious position that drops or vibrate so that can cause hard disk to be damaged, and this induced signal processor sends open command to the hard disk power switch;
5), the hard disk power switch carries out the open command that the induced signal processor sends over, this hard disk power switch disconnects, and makes the hard disk outage, after the hard disk outage, realize the magnetic head berth, magnetic head can return berthing space and locking in a few tens of milliseconds, protect hard disk not to be damaged with this;
6), when portable hard drive returns to safe condition, the induced signal processor can send to the hard disk power switch and go code, the hard disk power switch is carried out and is gone code, closed power switch makes hard disk switch on again.
As shown in Figure 3, be the second embodiment of the present invention.Portable electronic device in the present embodiment is that a storage medium is the video player of hard disk.This video player comprises at least:
One hard disk as storage medium, this hard disk can be realized magnetic head berth technology;
One connects the hard disk controller of hard disk;
One connects the SATA interface of hard disk controller, carries out communication with SATA agreement and computing machine; More comprise:
The inductor of the hard disk motion state of living under the one monitoring pattern;
The induced signal processor of one inductor;
One connects the hard disk power switch of induced signal processor; And
One connects the hard disk controller power switch of induced signal processor.
When this video player operate as normal, the inductor in video player is in running order.Monitor the motion state of this video player by inductor, and this motion state signal is sent to the induced signal processor, analyze this signal numerical value and judge by the induced signal processor;
If judge that state of living in is a precarious position, then the induced signal processor sends open command to the hard disk controller power switch earlier, the hard disk controller power switch disconnects, make hard disk controller cut off the power supply, so that cut off the ongoing communication of hard disk, the purpose of doing like this is to meet the outage rule of earlier open close news back outage in the hot plug principle, has guaranteed safety of data, and the termination of this communication can guarantee the safety of the transmission data before the hard disk outage; Immediately, the induced signal processor sends open command to the hard disk power switch, and the hard disk power switch disconnects, and cuts off the electricity of this hard disk, realizes the magnetic head berth, thereby guarantees the safety of hard disk.
After the precarious position of hard disk is removed, the induced signal processor sends to the hard disk power switch earlier and goes code, hard disk power switch closure, make hard disk switch on again, then, the induced signal processor sends to the hard disk controller power switch and goes code, hard disk controller power switch closure, make hard disk controller switch on again, make that the communication between hard disk and the hard disk controller is switched on, the communication of hard disk can continue.Thereby the purpose that the electricity that the first electricity of connecting hard disk is connected hard disk controller is again done so also is in order to meet the normal use that the hot plug principle guarantees hard disk.At this moment, the hard disk of this video player can work on.
As shown in Figure 4, be the third embodiment of the present invention.This embodiment is a portable hard drive, mainly is to have increased a usb hub and usb interface controller with the difference of first embodiment, is connected with USB interface; The induced signal processor connects usb interface controller, and this usb interface controller connects usb hub, and simultaneously, hard disk controller also connects this usb hub.Because the existence of usb hub is arranged, carry out the operation system of computer of data transmission with this portable hard drive and can think have two equipment to be connected with it, an equipment is in fact: the induced signal processor and the usb interface controller of inductor, connection inductor, another equipment is in fact: hard disk controller and hard disk.Like this, the induced signal processor can be at any time the signal that the residing status signal of this portable hard drive is obtained the induced signal processor timely and effectively, handle through usb interface controller, send to computer operating system by usb hub again, and needn't be subjected to the restriction of other passages, be in which kind of state so that make the user understand this portable hard drive.
The state if this portable hard drive mediates, that is to say, this portable hard drive is about to be in danger also can not cause danger to hard disk at once the time, then the induced signal processor sends signal by usb hub to computing machine, computing machine receive this signal wherein the numerical value in the corresponding registers change, in next this numerical value of time cycle arrival computer inquery, warning or computer speaker sends alarm sound on the display on computers.
If this portable hard drive state of living in has constituted the danger that hard disk is caused damage; then the induced signal processor sends signal by usb hub to computing machine; computing machine receive this signal wherein the numerical value in the corresponding registers change; when this this numerical value of time cycle computer inquery; warning or computer speaker sends alarm sound on the display on computers; simultaneously; this induced signal processor sends open command to the hard disk power switch; the hard disk power switch disconnects; make hard disk cut off the power supply; realize the magnetic head berth, the protection hard disk.
No longer in the hole when portable hard drive, then the induced signal processor sends to the hard disk power switch immediately and goes code, hard disk power switch closure, and the hard disk energising, portable hard drive can continue normal use.
As shown in Figure 5, be the fourth embodiment of the present invention.This embodiment is a video player, is mainly that with the difference of second embodiment display screen and display controller on this video player can be used for reporting to the police.Display screen connects display controller, display controller connects the induced signal processor, this display controller receives and handles the signal that this induced signal processor sends over, and the residing status information of reflection portable electronic device after will handling sends on the display screen, notifies user's portable electronic device this moment to be in which kind of state.For example, the hard disk in video player is in the hole, and then the induced signal processor sends open command to the hard disk power switch immediately, and the hard disk power switch disconnects, and makes the hard disk outage; Simultaneously, the induced signal processor sends signal to display controller, and then sends information by display controller to display screen.The precarious position of the hard disk in video player is removed, and then the induced signal processor sends to the hard disk power switch immediately and goes code, and hard disk power switch closure makes the hard disk energising, works on.
In addition, play warning function in the present embodiment also can be finished/be realized by the loudspeaker and the controller of raising one's voice.The induced signal processor sends to the controller of raising one's voice with signal, through the analyzing and processing of this controller of raising one's voice, sends voice signal to loudspeaker, sends voice prompt, to reach the purpose that makes the user learn this video player state of living in.
As shown in Figure 6, the fifth embodiment of the present invention, mainly be power supply with the difference of the foregoing description by hard disk controller control hard disk, that is to say, the induced signal processor does not directly connect the hard disk power switch, promptly directly is not responsible for the disconnection or the connection of control hard disk power switch, but by connected hard disk controller, by hard disk controller control hard disk power switch, carry out control to the hard disk power supply.When this induced signal processor sends information to hard disk controller, hard disk controller receives instruction the power switch of hard disk is controlled.
What the Data Transport Protocol of the mobile device of existing external computer was commonly used is USB interface and SATA interface.It can also be 1394 interfaces, serial/parallel line interface or netting twine interface.
In sum; for the person of ordinary skill of the art; can make other various corresponding changes and distortion according to technical scheme of the present invention and technical conceive, and all these changes and distortion all should belong to the protection domain of claim of the present invention.