CN105183617A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105183617A
CN105183617A CN201510524446.9A CN201510524446A CN105183617A CN 105183617 A CN105183617 A CN 105183617A CN 201510524446 A CN201510524446 A CN 201510524446A CN 105183617 A CN105183617 A CN 105183617A
Authority
CN
China
Prior art keywords
state
storage unit
power supply
unit
steering order
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.)
Granted
Application number
CN201510524446.9A
Other languages
Chinese (zh)
Other versions
CN105183617B (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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510524446.9A priority Critical patent/CN105183617B/en
Publication of CN105183617A publication Critical patent/CN105183617A/en
Application granted granted Critical
Publication of CN105183617B publication Critical patent/CN105183617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an information processing method and an electronic device. The electronic device at least comprises a power supply unit and a storage unit, wherein the method comprises: detecting the state of the storage unit; when the storage unit enters a first state, starting a monitoring unit to record a continuous duration of the storage unit in the first state; wherein, the first state characterizes a state in which the power supply unit stops providing power to the storage unit; and if the continuous duration of the storage unit in the first state is longer than a first threshold, generating a first control instruction, and processing based on the first control instruction.

Description

A kind of information processing method and electronic equipment
Technical field
The terminal management technology of design information process field of the present invention, particularly relates to a kind of information processing method and electronic equipment.
Background technology
Storage unit in electronic equipment, especially solid state hard disc are the data storage devices based on flash memory.And preserve each data bit based on the data storage device of flash memory by the flash cell that floating transistor is made.SSD is made up of electronic package all over, in floating transistor, uses voltage to realize read-write and the erasing of each data bit.Therefore, if for a long time the time does not use storage unit, electrons runs off in time, likely causes the loss of reading and writing data, and the loss of large area data or storage unit more can be brought time serious to use.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of information processing method and electronic equipment, at least can solve the problems referred to above that prior art exists.
The invention provides a kind of information processing method, be applied to electronic equipment, described electronic equipment at least possesses power supply unit and storage unit, and described method comprises:
Detect the state of described storage unit;
When described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
If the continuous duration that described storage unit is in the first state exceedes first threshold, then generate the first steering order, process based on described first steering order.
Present invention also offers a kind of electronic equipment, described electronic equipment comprises:
Detecting unit, for detecting the status information of the storage unit be connected with described electronic equipment;
Monitoring unit, for when described storage unit enters the first state, records the continuous duration that described storage unit is in described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Control module, if the continuous duration being in the first state for described storage unit exceedes first threshold, then generates the first steering order, processes based on described first steering order.
A kind of information processing method provided by the present invention and electronic equipment, can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid because storage unit is in for a long time without power supply state, the problem that electronics in the storage unit caused runs off, ensure that storage unit keeps normal duty.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention information processing method schematic flow sheet one;
Fig. 2 is embodiment of the present invention information processing method schematic flow sheet two;
Fig. 3 is scene schematic diagram of the present invention;
Fig. 4 is embodiment of the present invention information processing method schematic flow sheet three;
Fig. 5 is embodiment of the present invention information processing method schematic flow sheet four;
Fig. 6 is embodiment of the present invention electronic equipment composition structural representation one;
Fig. 7 is embodiment of the present invention electronic equipment composition structural representation two.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Embodiment one,
Embodiments provide a kind of information processing method, be applied to electronic equipment, described electronic equipment at least possesses power supply unit and storage unit, and as shown in Figure 1, described method comprises:
Step 101: the state detecting described storage unit;
Step 102: when described storage unit enters the first state, starts storage unit described in monitoring unit record and is in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Step 103: if the continuous duration that described storage unit is in the first state exceedes first threshold, then generate the first steering order, processes based on described first steering order.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.That is, once detect that storage unit has 24 hours or not energising in 10 days, just the first steering order is generated.
Such as, when described electronic equipment is desktop computer, need by power connection external AC, and carry out the conversion of alternating current by inner power supply unit, the electric power obtained after conversion is supplied to internal components, and described internal components includes storage unit and processor etc.;
If detect that storage unit is in the first state, now, open monitoring unit, start to record the continuous duration of first state that is in;
Again storage unit is in the consecutive hours progress row detection of the first state, if described consecutive hours is grown up in the first threshold preset, just generates the first steering order, processed by the first steering order.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment two,
Embodiments provide a kind of information processing method, be applied to electronic equipment, described electronic equipment at least possesses power supply unit and storage unit, and as shown in Figure 2, described method comprises:
Step 201: the state detecting described storage unit;
Step 202: when described storage unit enters the first state, starts storage unit described in monitoring unit record and is in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Step 203: if the continuous duration that described storage unit is in the first state exceedes first threshold, then detect described power supply unit and power supply connection status, based on described connection status, generates described first steering order;
Step 204: if described connection status shows that power supply unit is connected with power supply, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit; If connection status shows that described power supply unit is not connected with external power source, then respond described first steering order, control to send information.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.That is, once detect that storage unit has 24 hours or not energising in 10 days, then the first steering order is generated.
The described power supply unit of above-mentioned detection and power supply connection status, can comprise two states: the state that described power supply unit is connected with described power supply, and the state that described power supply unit is not connected with described power supply.As shown in Figure 3, as can be seen from the figure, current power connection 31 is not connected with alternating current interface, and that is state shown in figure is the state that power supply unit is not connected with power supply.
Control described storage unit described in the present embodiment to switch to the second state by the first state and can be: control power supply unit and provide electric power for storage unit, switch to the second state to make described storage unit by the first state.In addition, described power supply unit can also be controlled for storage unit in electronic equipment and at least one device except storage unit and electric power is provided, such as, power supply unit can be controlled and be at least storage unit and processor is powered.
Above-mentioned control sends information can be had: send prompting audio frequency as information by the audio output unit that storage unit is arranged.Wherein, described prompting audio frequency can at least one audio-frequency information preset, when sending prompting audio frequency at every turn, default a kind of audio-frequency information is only had if detected, then directly export this audio-frequency information as prompting audio frequency, if the default audio-frequency information having two or more detected, then control to choose any one audio-frequency information as prompting audio frequency.
Further, if the present embodiment detects that power supply unit is not connected with power supply, after then controlling to send information, power supply unit can also be connected with the power supply in the external world by user, then can direct unlocking electronic equipment, to make electronic equipment run storage unit, and then the problem of the information dropout that storage unit can be avoided to cause owing to not powering on for a long time or storage unit corrupted.
Or, user does not operate after power supply unit can being connected with power supply, now electronic equipment can re-execute step 201-step 204, when detecting that connection status shows that power supply unit is connected with power supply, the first steering order can be generated, according to the first steering order, storage unit is switched to the second state.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment three,
Embodiments provide a kind of information processing method, be applied to electronic equipment, described electronic equipment at least possesses power supply unit and storage unit, and as shown in Figure 4, described method comprises:
Step 401: the state detecting described storage unit;
Step 402: when described storage unit enters the first state, starts storage unit described in monitoring unit record and is in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Step 403: if the continuous duration that described storage unit is in the first state exceedes first threshold, then detect described power supply unit and power supply connection status, based on described connection status, generates described first steering order
Step 404: if described connection status shows that power supply unit is connected with power supply, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit; If connection status shows that described power supply unit is not connected with external power source, then respond described first steering order, control to send information;
Step 405: detect that described electronic equipment is in the first duty, wherein, described first duty characterizes power supply unit in described electronic equipment and is only the duty that storage unit provides electric power;
Step 406: generate the second steering order, responds described second steering order, controls described storage unit and switch to the first state by the second state at the end of the second preset duration.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.
Control described storage unit described in the present embodiment to switch to the second state by the first state and can be: control power supply unit and provide electric power for storage unit, switch to the second state to make described storage unit by the first state.In addition, described power supply unit can also be controlled for storage unit in electronic equipment and at least one device except storage unit and electric power is provided, such as, power supply unit can be controlled and be at least storage unit and processor is powered.
Above-mentioned control sends information can be had: send prompting audio frequency as information by the audio output unit that storage unit is arranged.Wherein, described prompting audio frequency can at least one audio-frequency information preset, when sending prompting audio frequency at every turn, default a kind of audio-frequency information is only had if detected, then directly export this audio-frequency information as prompting audio frequency, if the default audio-frequency information having two or more detected, then control to choose any one audio-frequency information as prompting audio frequency.
Further, if the present embodiment detects that power supply unit is not connected with power supply, after then controlling to send information, power supply unit can also be connected with the power supply in the external world by user, then can direct unlocking electronic equipment, to make electronic equipment run storage unit, and then the problem of the information dropout that storage unit can be avoided to cause owing to not powering on for a long time or storage unit corrupted.
Or, user does not operate after power supply unit can being connected with power supply, now electronic equipment can re-start detection, when detecting that connection status shows that power supply unit is connected with power supply, the first steering order can be generated, according to the first steering order, storage unit is switched to the second state.
The duty of electronic equipment described in the present embodiment at least can comprise the two kinds: first duty and characterize power supply unit in described electronic equipment and be only the duty that storage unit provides electric power; Second duty characterizes the duty of power supply unit for all needing the device of powering to provide electric power in described electronic equipment.Namely the first duty can for only providing electric power to storage unit or ensureing the electric power that storage unit is run; Second duty can be the completely normal duty of electronic equipment.
In addition, execute while said memory cells switches to the second state by the first state, can also comprise: control monitoring unit and open the second timer, detect by the second timer the continuous duration that storage unit is in the second state.
Control described storage unit at the end of the second preset duration, to switch to the first state by the second state be: when the consecutive hours that the storage unit that monitoring unit gets is in the second state is grown up in the second preset duration, storage unit is switched back the first state by the second state.So, wastes power is avoided.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment four,
Embodiments provide a kind of information processing method, be applied to electronic equipment, described electronic equipment at least possesses power supply unit and storage unit, and as shown in Figure 5, described method comprises:
Step 501: the state detecting described storage unit;
Step 502: when described storage unit enters the first state, starts storage unit described in monitoring unit record and is in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Step 503: if the continuous duration that described storage unit is in the first state exceedes first threshold, then generate described first steering order, process based on described first steering order;
Step 504: control monitoring unit and remove the continuous duration that the described storage unit recorded is in the first state.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.
Generate the first steering order described in the present embodiment also to comprise: detect described power supply unit and power supply connection status, based on described connection status, generate described first steering order.
Accordingly, describedly to process based on the first steering order, comprise: if described connection status shows that power supply unit is connected with power supply, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit;
If connection status shows that described power supply unit is not connected with power supply, then respond described first steering order, control to send information.
The described storage unit of described control switches to the second state by the first state: control power supply unit and provide electric power for storage unit, switch to the second state to make described storage unit by the first state.In addition, described power supply unit can also be controlled for storage unit in electronic equipment and at least one device except storage unit and electric power is provided, such as, power supply unit can be controlled and be at least storage unit and processor is powered.
Above-mentioned control sends information can be had: send prompting audio frequency as information by the audio output unit that storage unit is arranged.Wherein, described prompting audio frequency can at least one audio-frequency information preset, when sending prompting audio frequency at every turn, default a kind of audio-frequency information is only had if detected, then directly export this audio-frequency information as prompting audio frequency, if the default audio-frequency information having two or more detected, then control to choose any one audio-frequency information as prompting audio frequency.
Further, if the present embodiment detects that power supply unit is not connected with power supply, after then controlling to send information, power supply unit can also be connected with the power supply in the external world by user, then can direct unlocking electronic equipment, to make electronic equipment run storage unit, and then the problem of the information dropout that storage unit can be avoided to cause owing to not powering on for a long time or storage unit corrupted.
Or, user does not operate after power supply unit can being connected with power supply, now electronic equipment can re-start detection, when detecting that connection status shows that power supply unit is connected with power supply, the first steering order can be generated, according to the first steering order, storage unit is switched to the second state.
The duty of electronic equipment described in the present embodiment at least can comprise the two kinds: first duty and characterize power supply unit in described electronic equipment and be only the duty that storage unit provides electric power; Second duty characterizes the duty of power supply unit for all needing the device of powering to provide electric power in described electronic equipment.Namely the first duty can for only providing electric power to storage unit or ensureing the electric power that storage unit is run; Second duty can be the completely normal duty of electronic equipment.
In addition, execute while said memory cells switches to the second state by the first state, can also comprise: control monitoring unit and open the second timer, detect by the second timer the continuous duration that storage unit is in the second state.
Control described storage unit at the end of the second preset duration, to switch to the first state by the second state be: when the consecutive hours that the storage unit that monitoring unit gets is in the second state is grown up in the second preset duration, storage unit is switched back the first state by the second state.So, wastes power is avoided.
Control after processing based on described first steering order described in the present embodiment monitoring unit remove record continuous duration, so, can upper once again record the continuous duration of the first state time avoid occurring error.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment five,
Present embodiments provide a kind of electronic equipment, as shown in Figure 6, described electronic equipment comprises:
Detecting unit 61, for detecting the status information of the storage unit be connected with described electronic equipment;
Monitoring unit 62, for when described storage unit enters the first state, records the continuous duration that described storage unit is in described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Control module 63, if the continuous duration being in the first state for described storage unit exceedes first threshold, then generates the first steering order, processes based on described first steering order.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.That is, once detect that storage unit has 24 hours or not energising in 10 days, just the first steering order is generated.
Such as, when described electronic equipment is desktop computer, need by power connection external AC, and carry out the conversion of alternating current by inner power supply unit, the electric power obtained after conversion is supplied to internal components, and described internal components includes storage unit and processor etc.;
If detect that storage unit is in the first state, now, open monitoring unit, start to record the continuous duration of first state that is in;
Again storage unit is in the consecutive hours progress row detection of the first state, if described consecutive hours is grown up in the first threshold preset, just generates the first steering order, processed by the first steering order.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment six,
Present embodiments provide a kind of electronic equipment, as shown in Figure 6, described electronic equipment comprises:
Detecting unit 61, for detecting the status information of the storage unit be connected with described electronic equipment;
Monitoring unit 62, for when described storage unit enters the first state, records the continuous duration that described storage unit is in described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Control module 63, if the continuous duration being in the first state for described storage unit exceedes first threshold, then generates the first steering order, processes based on described first steering order.
Here, detecting unit 61 described in the present embodiment, also for detecting described power supply unit and power supply connection status, based on described connection status, generates described first steering order.
Accordingly, described control module 63, if show that power supply unit is connected with power supply for described connection status, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit; And if connection status shows that described power supply unit is not connected with power supply, then respond described first steering order, control to send information.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.That is, once detect that storage unit has 24 hours or not energising in 10 days, then the first steering order is generated.
The described power supply unit of above-mentioned detection and power supply connection status, can comprise two states: the state that described power supply unit is connected with described power supply, and the state that described power supply unit is not connected with described power supply.As shown in Figure 3, as can be seen from the figure, current power connection 31 is not connected with alternating current interface, and that is state shown in figure is the state that power supply unit is not connected with power supply.
Control described storage unit described in the present embodiment to switch to the second state by the first state and can be: control power supply unit and provide electric power for storage unit, switch to the second state to make described storage unit by the first state.In addition, described power supply unit can also be controlled for storage unit in electronic equipment and at least one device except storage unit and electric power is provided, such as, power supply unit can be controlled and be at least storage unit and processor is powered.
Above-mentioned control sends information can be had: send prompting audio frequency as information by the audio output unit that storage unit is arranged.Wherein, described prompting audio frequency can at least one audio-frequency information preset, when sending prompting audio frequency at every turn, default a kind of audio-frequency information is only had if detected, then directly export this audio-frequency information as prompting audio frequency, if the default audio-frequency information having two or more detected, then control to choose any one audio-frequency information as prompting audio frequency.
Further, if the present embodiment detects that power supply unit is not connected with power supply, after then controlling to send information, power supply unit can also be connected with the power supply in the external world by user, then can direct unlocking electronic equipment, to make electronic equipment run storage unit, and then the problem of the information dropout that storage unit can be avoided to cause owing to not powering on for a long time or storage unit corrupted.
Or, user does not operate after power supply unit can being connected with power supply, detecting unit 61 now in electronic equipment can detect when detecting that connection status shows that power supply unit is connected with power supply again, the first steering order can be generated, according to the first steering order, storage unit is switched to the second state.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
Embodiment seven,
Present embodiments provide a kind of electronic equipment, as shown in Figure 6, described electronic equipment comprises:
Detecting unit 61, for detecting the status information of the storage unit be connected with described electronic equipment;
Monitoring unit 62, for when described storage unit enters the first state, records the continuous duration that described storage unit is in described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Control module 63, if the continuous duration being in the first state for described storage unit exceedes first threshold, then generates the first steering order, processes based on described first steering order.
Here, detecting unit 61 described in the present embodiment, also for detecting described power supply unit and power supply connection status, based on described connection status, generates described first steering order.
Accordingly, described control module 63, if show that power supply unit is connected with power supply for described connection status, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit; And if connection status shows that described power supply unit is not connected with power supply, then respond described first steering order, control to send information.
Detecting unit 61 described in the present embodiment, also for detecting that described electronic equipment is in the first duty, wherein, described first duty characterizes power supply unit in described electronic equipment and is only the duty that storage unit provides electric power; Accordingly, described control module 63, also for when described electronic equipment is in the first duty, generates the second steering order; Respond described second steering order, control described storage unit and switch to the first state by the second state at the end of the second preset duration.
Described monitoring unit 62, also for after generating the first steering order at control module, the described storage unit removing record is in the continuous duration of the first state.
Here, described electronic equipment can be the equipment such as desktop computer, notebook computer, server.
Described storage unit can be solid state hard disc (SSD).
Described power supply unit can be can external AC, and alternating current is converted to the unit of low-voltage DC.
The state of storage unit described in the present embodiment can include following two kinds: first state, stops as storage unit provides the state of electric power for characterizing power supply unit; Accordingly, the second state, provides the state of electric power for characterizing power supply unit for storage unit.
It is above-mentioned when described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state, can be: when detecting that storage unit enters the first state, start the timer in monitoring unit, be in the continuous duration of the first state by storage unit described in timer record.Wherein, described continuous duration represents that described storage unit remains on the duration of the first state.
In addition, first threshold described in above-described embodiment can be the threshold value arranged according to actual conditions, such as, can be set to 24 hours, or can be set to 10 days.
Control described storage unit described in the present embodiment to switch to the second state by the first state and can be: control power supply unit and provide electric power for storage unit, switch to the second state to make described storage unit by the first state.In addition, described power supply unit can also be controlled for storage unit in electronic equipment and at least one device except storage unit and electric power is provided, such as, power supply unit can be controlled and be at least storage unit and processor is powered.
Above-mentioned control sends information can be had: send prompting audio frequency as information by the audio output unit that storage unit is arranged.Wherein, described prompting audio frequency can at least one audio-frequency information preset, when sending prompting audio frequency at every turn, default a kind of audio-frequency information is only had if detected, then directly export this audio-frequency information as prompting audio frequency, if the default audio-frequency information having two or more detected, then control to choose any one audio-frequency information as prompting audio frequency.
Further, if the present embodiment detects that power supply unit is not connected with power supply, after then controlling to send information, power supply unit can also be connected with the power supply in the external world by user, then can direct unlocking electronic equipment, to make electronic equipment run storage unit, and then the problem of the information dropout that storage unit can be avoided to cause owing to not powering on for a long time or storage unit corrupted.
Or, user does not operate after power supply unit can being connected with power supply, now electronic equipment can re-start detection, when detecting that connection status shows that power supply unit is connected with power supply, the first steering order can be generated, according to the first steering order, storage unit is switched to the second state.
The duty of electronic equipment described in the present embodiment at least can comprise the two kinds: first duty and characterize power supply unit in described electronic equipment and be only the duty that storage unit provides electric power; Second duty characterizes the duty of power supply unit for all needing the device of powering to provide electric power in described electronic equipment.Namely the first duty can for only providing electric power to storage unit or ensureing the electric power that storage unit is run; Second duty can be the completely normal duty of electronic equipment.
In addition, execute while said memory cells switches to the second state by the first state, can also comprise: control monitoring unit and open the second timer, detect by the second timer the continuous duration that storage unit is in the second state.
Control described storage unit at the end of the second preset duration, to switch to the first state by the second state be: when the consecutive hours that the storage unit that monitoring unit gets is in the second state is grown up in the second preset duration, storage unit is switched back the first state by the second state.So, wastes power is avoided.
Control after processing based on described first steering order described in the present embodiment monitoring unit remove record continuous duration, so, can upper once again record the continuous duration of the first state time avoid occurring error.
In addition, the present embodiment provides the logic connecting relation between storage unit, power supply unit, detecting unit, monitoring unit and control module further, as shown in Figure 7; Wherein, detecting unit connection storage unit and power supply unit are used for detecting power supply state.Other annexation as shown in this embodiment, repeats no more here.
Visible, by adopting such scheme, just can detect the state of storage unit, once detect that storage unit is in the first state providing electric power without power supply unit, just open the continuous duration that monitoring unit record is in the first state, if consecutive hours is grown up in the first threshold preset, just process based on the first steering order generated.So, just can monitor the power supply state of storage unit, and then process according to monitoring the result obtained, thus avoid storage unit to be in for a long time without power supply state, ensure that storage unit keeps normal duty.
In several embodiments that the application provides, should be understood that, disclosed equipment can realize by another way.Apparatus embodiments described above is only schematic, and such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, or some features can be ignored.In addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (12)

1. an information processing method, is applied to electronic equipment, and described electronic equipment at least possesses power supply unit and storage unit, it is characterized in that, described method comprises:
Detect the state of described storage unit;
When described storage unit enters the first state, start storage unit described in monitoring unit record and be in the continuous duration of described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
If the continuous duration that described storage unit is in the first state exceedes first threshold, then generate the first steering order, process based on described first steering order.
2. method according to claim 1, is characterized in that, described generation first steering order processes, and comprising:
Detect described power supply unit and power supply connection status, based on described connection status, generate described first steering order.
3. method according to claim 2, is characterized in that, describedly processes based on the first steering order, comprising:
If described connection status shows that power supply unit is connected with power supply, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit.
4. method according to claim 2, is characterized in that, carries out process comprise based on described first steering order:
If connection status shows that described power supply unit is not connected with power supply, then respond described first steering order, control to send information.
5. the method according to any one of claim 1-4, is characterized in that, after the described storage unit of described control switches to the second state by the first state, described method also comprises:
Detect that described electronic equipment is in the first duty, wherein, described first duty characterizes power supply unit in described electronic equipment and is only the duty that storage unit provides electric power;
Generate the second steering order, respond described second steering order, control described storage unit and switch to the first state by the second state at the end of the second preset duration.
6. method according to claim 1, is characterized in that, described process based on described first steering order after, described method also comprises: control the described storage unit that monitoring unit removes record and be in the continuous duration of the first state.
7. an electronic equipment, described electronic equipment comprises:
Detecting unit, for detecting the status information of the storage unit be connected with described electronic equipment;
Monitoring unit, for when described storage unit enters the first state, records the continuous duration that described storage unit is in described first state; Wherein, power supply unit described in described first state representation stops as described storage unit provides the state of electric power;
Control module, if the continuous duration being in the first state for described storage unit exceedes first threshold, then generates the first steering order, processes based on described first steering order.
8. electronic equipment according to claim 7, is characterized in that, described detecting unit, also for detecting described power supply unit and power supply connection status, based on described connection status, generates described first steering order.
9. to remove the electronic equipment described in 8 according to right, it is characterized in that,
Described control module, if show that power supply unit is connected with power supply for described connection status, then respond described first steering order, control described storage unit and switch to the second state by the first state, power supply unit described in described second state representation provides the state of electric power for described storage unit.
10. electronic equipment according to claim 8, is characterized in that, described control module, if show that described power supply unit is not connected with power supply for connection status, then responds described first steering order, controls to send information.
11. electronic equipments according to any one of claim 7-10, is characterized in that,
Described detecting unit, also for detecting that described electronic equipment is in the first duty, wherein, described first duty characterizes power supply unit in described electronic equipment and is only the duty that storage unit provides electric power;
Accordingly, described control module, also for when described electronic equipment is in the first duty, generates the second steering order; Respond described second steering order, control described storage unit and switch to the first state by the second state at the end of the second preset duration.
12. electronic equipments according to claim 7, is characterized in that, described monitoring unit, and also for after generating the first steering order at control module, the described storage unit removing record is in the continuous duration of the first state.
CN201510524446.9A 2015-08-24 2015-08-24 A kind of information processing method and electronic equipment Active CN105183617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524446.9A CN105183617B (en) 2015-08-24 2015-08-24 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524446.9A CN105183617B (en) 2015-08-24 2015-08-24 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105183617A true CN105183617A (en) 2015-12-23
CN105183617B CN105183617B (en) 2018-09-14

Family

ID=54905709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524446.9A Active CN105183617B (en) 2015-08-24 2015-08-24 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105183617B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661320A (en) * 2009-09-25 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method for power-fail restarting
US20110153111A1 (en) * 2009-12-18 2011-06-23 Electronics And Telecommunications Research Institute Standby power control device and control method thereof
US20150057826A1 (en) * 2013-08-20 2015-02-26 Ricoh Company, Ltd. Power control device
CN104503565A (en) * 2015-01-04 2015-04-08 华为技术有限公司 Power consumption management method and device for mobile device and mobile device
CN104679347A (en) * 2013-11-28 2015-06-03 上海斐讯数据通信技术有限公司 Method for solving failure of touch screen of mobile terminal and mobile terminal
CN104808765A (en) * 2014-01-27 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104850208A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661320A (en) * 2009-09-25 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method for power-fail restarting
US20110153111A1 (en) * 2009-12-18 2011-06-23 Electronics And Telecommunications Research Institute Standby power control device and control method thereof
US20150057826A1 (en) * 2013-08-20 2015-02-26 Ricoh Company, Ltd. Power control device
CN104679347A (en) * 2013-11-28 2015-06-03 上海斐讯数据通信技术有限公司 Method for solving failure of touch screen of mobile terminal and mobile terminal
CN104808765A (en) * 2014-01-27 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104850208A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic equipment
CN104503565A (en) * 2015-01-04 2015-04-08 华为技术有限公司 Power consumption management method and device for mobile device and mobile device

Also Published As

Publication number Publication date
CN105183617B (en) 2018-09-14

Similar Documents

Publication Publication Date Title
JP6391700B2 (en) Method for processing impedance abnormality of power adapter, terminal and charging circuit
KR102070034B1 (en) Terminal, Power Adapter, and Method for Processing Charging Exception
US9557794B2 (en) System and method for distributing electrical power
CN104615063A (en) Power management system and method
CN101651335B (en) Electronic equipment protection device and electronic equipment
CN105577152B (en) Protection circuit in load switch
CN105807885B (en) Power failure protection method and device
CN102478800A (en) System and method for monitoring electric power sequential signals
US20150236505A1 (en) Power adapter and method of adapting power for electronic devices
CN109062392A (en) It is a kind of to automatically switch equipment, the method and system that server board is powered
US20160313775A1 (en) Switching module, related server device and power switching method
CN105183617A (en) Information processing method and electronic device
CN107731260B (en) SSD power supply method and system and SSD
US11588345B2 (en) Concurrent alternating-current and direct-current
CN102810904A (en) Method for recovering equipment state after low voltage rise, main control signal board and system
CN104680087A (en) Blade server hot plugging control circuit and device
US7190267B2 (en) System and method for managing power control and data communication among devices
CN108762455A (en) A kind of chip power-on reset circuit
CN103777974A (en) Server and starting method thereof
CN104345854A (en) Power source supply system
CN111917399A (en) Time sequence control circuit and control method for enhancing reliability of abnormal power failure
CN210895349U (en) Power supply distributor
CN103412531A (en) Bus control method and device
CN102929731A (en) Multi-system electronic device
US8930738B1 (en) Battery backup 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
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170302

Address after: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Haidian District West Road, Beijing, No. 6

Applicant before: Lenovo (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190808

Address after: 518067 Dongjiaotou Workshop D24/F-02, Houhai Avenue, Shekou Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Yi Lian Information System Co., Ltd.

Address before: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Patentee before: Beijing legend core technology Co., Ltd.

TR01 Transfer of patent right