ELECTRONIC DEVICE AND METHOD FOR CONTROLLING STATE OF COMPONENTS THEREIN

Information

  • Patent Application
  • 20110015894
  • Publication Number
    20110015894
  • Date Filed
    April 08, 2010
    14 years ago
  • Date Published
    January 20, 2011
    13 years ago
Abstract
An electronic device includes a cover, a main body, an angle measuring apparatus, a memory for storing working states of components of the electronic device; a presetting unit configured to preset relationship of predetermined working states of components in the electronic device and corresponding angle ranges between the main body and the cover; an angle measuring unit configured to control the angle measuring apparatus to detect current angle value between the main body and the cover; a state determining unit configured to determine the predetermined working state of components of the electronic device; a control unit configured to determine whether the current working state of the components is the same as the determined working state; and an updating unit configured to record the determined working state as the updated working state of the components when the current state of the components is different from the determined working state.
Description
BACKGROUND

1. Technical Field


The disclosure relates to electronic devices, and particularly to an electronic device capable of controlling state of its components and a method for controlling state of components in the electronic device.


2. Description of Related Art


A touch switch is usually used in a notebook computer for changing working states of the notebook computer through the operation of opening and closing the lid of the notebook computer, for example, turning off the display screen or controlling the notebook computer to enter into a sleep mode. Mode-switching is often achieved via closing the lid to touch with main body of the notebook computer. However, a touch switch often has limited service life and can be easily damaged by repeated closings and openings of the lid.


Therefore, it is useful to provide an electronic device for controlling the state of components in the electronic device to overcome the above-mentioned shortcoming.





BRIEF DESCRIPTION OF THE DRAWINGS

The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the electronic device.



FIG. 1 is a schematic view of an electronic device in accordance with an exemplary embodiment.



FIG. 2 is a block diagram of the electronic device in FIG. 1.



FIG. 3 is a schematic, cross-sectional view of the electronic device in FIG. 1.



FIG. 4 is a method of controlling the electronic device in FIG. 1, in accordance with an exemplary embodiment.





DETAILED DESCRIPTION

Referring to FIGS. 1-3, the electronic device 1 includes a cover 10, a main body 20 connected with the cover 10, a screen 30 disposed on the cover 10. The electronic device 1 further includes an angle measuring apparatus 33 for measuring an angle value between the cover 10 and the main body 20 in real time. The angle measuring apparatus 33 may be disposed on the electronic device 1. The electronic device 1 may be any collapsible electronic device, such as a notebook computer, or a PDA.


The electronic device 1 further includes a presetting unit 40, an angle measuring unit 50, a state determining unit 60, a control unit 70, a memory 80 and an updating unit 90.


The presetting unit 40 is configured for presetting relationship of predetermined working states of components in the electronic device 1 and corresponding angle ranges. The components of electronic device 1 may include a display screen, a CPU, or a keyboard. The memory 80 is used for storing a table recording the relationship of predetermined working states of components in the electronic device 1 and corresponding angle ranges.


The following table uses the screen and the CPU for example to illustrate the present disclosure. If the angle value between the cover 10 and the main body 20 is between the angle range of 30-40 degrees, the screen 30 will be shut off, and the CPU will be kept on.














Angle range
Screen
CPU







 0-30
off
off


30-40
off
on


40-60
off
off


 60-135
on
on


135-180
off
on









The angle measuring unit 50 is configured to control the angle measuring apparatus 33 to detect current angle value between the main body 20 and the cover 10. The state determining unit 60 is configured to determine the angle range where the detected angle value is, and thereby determine the predetermined working state of components of the electronic device 1 in the table.


The control unit 70 is configured to control the components of the electronic device 1 to work according to a current working state. The control unit 70 is also configured to determine whether the current working state of the components is the same as the determined working state in the table. If not, the control unit 70 sends a control signal to the updating unit 90. For example, if the determined working state of the component is on, but the current working state of the component should be off based on the pre-determined settings, then the control unit 70 sends the control signal to the updating unit 90.


The updating unit 90 is configured to record the determined working state as the updated working state of the components based on the control signal from the control unit 70 when the current state of the components are different from the determined working state. The control unit 70 is further configured to control the components of the electronic device 1 to work according to the updated working state.


The angle value between the cover 10 and the main body 20 may be determined by following two ways. In the first way, the angle measuring apparatus 33 includes a first sensor 301 and a second sensor 303. The first sensor 301 is disposed on the main body 20 for sensing angle α between the main body 20 and ground. The second sensor 303 is disposed on the cover 10 for sensing angle β between the cover 10 and ground, thereby the value of angle θ is calculated by the angle α and the angle β. The first sensor 301 and the second sensor 303 may be G-sensors.


In the second way, the angle measuring apparatus 33 includes at least one infrared emitter 301a and at least one infrared receiver 303b. The following takes one infrared emitter 301a disposed on the cover 10 and one infrared receiver 303b disposed on the main body 20 for example. The infrared emitter 301a and one infrared receiver 303b are disposed on one cross-section. Distance h between the infrared emitter 301a and the receiver 302b can be measured, distance a between the infrared emitter 301a and an axis of an axle connecting the cover 10 and the main body 20 is predetermined when the infrared emitter 301a is disposed, and distance b between the infrared receiver 303b and the axis is predetermined when the infrared receiver 303b is disposed. The value of angle θ is calculated by a, b and h.



FIG. 4 is a method of controlling the electronic device in FIG. 1. In step S100, the memory 80 records the relationship of the predetermined working states of components in the electronic device 1 and corresponding angle in the table by the presetting unit 40.


In step S102, the angle measuring apparatus 33 detects the value of angle θ in real time.


In step S104, the determining unit 60 determines the angle range where the detected angle value is, and thereby determine the predetermined working state of components of the electronic device 1 in the table.


In step S106, the control unit 70 determines whether the current working state of the components is the same as the determined working state in the table. If they are not the same, the control unit 70 sends control signal to the updating unit 90. If they are the same, the control unit 70 keeps the components of the electronic device 1 to work according to current working state.


In step S108, the updating unit 90 records the determined working state as the updated working state of the components when the current state of the components are different from the determined working state. The control unit 70 controls the components of the electronic device 1 to work according to the updated working state.


It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the present disclosure.

Claims
  • 1. An electronic device comprising: a cover, a main body connected with the cover, an angle measuring apparatus and a memory for storing working states of components of the electronic device;a presetting unit configured to preset relationship of predetermined working states of components in the electronic device and corresponding angle ranges between the main body and the cover;an angle measuring unit configured to control the angle measuring apparatus to detect current angle value between the main body and the cover;a state determining unit configured to determine the angle range where the detected angle value is in, and thereby determine the predetermined working state of components of the electronic device;a control unit configured to determine whether the current working state of the components is the same as the determined working state; andan updating unit configured to record the determined working state as the updated working state of the components when the current state of the components is different from the determined working state.
  • 2. The electronic device of claim 1, wherein the memory is further for storing a table recording the relationship of predetermined working states of components in the electronic device and the corresponding angle ranges between the main body and the cover.
  • 3. The electronic device of claim 1, wherein the angle measuring apparatus comprises a first sensor and a second sensor, the first sensor is disposed on the main body for sensing angle α between the main body and ground, the second sensor is disposed on the cover for sensing angle β between the cover and ground, thereby the value of angle θ is calculated by the angle α and the angle β.
  • 4. The electronic device of claim 3, wherein the first sensor and the second sensor are G-sensors.
  • 5. The electronic device of claim 1, wherein the angle measuring apparatus comprises one infrared emitter disposed on the cover, one infrared receiver disposed on the main body, and the infrared emitter and the infrared receiver are disposed on one cross-section, distance h between the infrared emitter and the receiver is measured in real time, distance a between the infrared emitter and an axis of an axle connecting the cover and the main body is predetermined when the infrared emitter is disposed, and distance b between the infrared receiver and the axis is predetermined when the infrared receiver is disposed, and angle θ is calculated by a, b and h.
  • 6. A method for controlling an electronic device, the method comprising: presetting relationship of predetermined working states of components in the electronic device and corresponding angle ranges between the main body and the cover;detecting current angle value between a main body and a cover of the electronic device;determining the angle range where the detected angle value is in, and thereby determine the predetermined working state of components of the electronic device;determining whether the current working state of the components is the same as the determined working state; andrecording the determined working state as the updated working state of the components when the current state of the components are different from the determined working state.
  • 7. The method according to claim 6, wherein the method further comprises controlling the components of the electronic device to work according to the updated working state.
  • 8. The method according to claim 6, wherein the method further comprises keeping the components of the electronic device to work according to current working state when the current state of the components are the same as the determined working state.
  • 9. The method according to claim 6, wherein the method further comprises disposing a first sensor on the main body for sensing angle α between the main body and ground, a second sensor on the cover for sensing angle β between the cover and ground and calculating value of angle θ by the angle α and the angle β.
  • 10. The method according to claim 6, wherein the method further comprises: disposing one infrared emitter disposed on the cover, one infrared receiver on the main body, and the infrared emitter and the infrared receiver on one cross-section;measuring distance h between the infrared emitter and the receiver in real time;obtaining distance a between the infrared emitter and an axis of an axle connecting the cover and the main body which is predetermined when the infrared emitter is disposed, and distance b between the infrared receiver and the axis which is predetermined when the infrared receiver is disposed; andcalculating angle θ is by a, b and h.
Priority Claims (1)
Number Date Country Kind
200910304511.1 Jul 2009 CN national