CN101997985A - Method for switching working condition of electronic device by key and electronic device - Google Patents

Method for switching working condition of electronic device by key and electronic device Download PDF

Info

Publication number
CN101997985A
CN101997985A CN2010105197215A CN201010519721A CN101997985A CN 101997985 A CN101997985 A CN 101997985A CN 2010105197215 A CN2010105197215 A CN 2010105197215A CN 201010519721 A CN201010519721 A CN 201010519721A CN 101997985 A CN101997985 A CN 101997985A
Authority
CN
China
Prior art keywords
key
keys
pressed
rows
switching
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
CN2010105197215A
Other languages
Chinese (zh)
Other versions
CN101997985B (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201010519721.5A priority Critical patent/CN101997985B/en
Publication of CN101997985A publication Critical patent/CN101997985A/en
Application granted granted Critical
Publication of CN101997985B publication Critical patent/CN101997985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method for switching working condition of electronic device by key and an electronic device, belonging to the field of electronic technology. The invention solves the technical problems that mobile phone key misoperation probability is high and mobile phone power consumption is high in the prior art. The method for switching working condition of electronic device by key includes: when at least one of multiple keys on the electronic device is pressed down, a key identification signal corresponding to the key pressed down is output; whether the key pressed down is one of the keys which are set for switching the electronic device into normal operation condition from standby dormant state in advance is judged according to the key identification signal, if yes, the electronic device is switched into the normal working condition from the standby dormant state. The electronic device comprises a keyboard, a signal circuit and a control module; wherein the keyboard is provided with multiple keys and the signal circuit is respectively connected with the keys and the control module. The invention is applicable to reducing power consumption of electronic device.

Description

Method for switching working state of electronic equipment by using keys and electronic equipment
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a method for switching the working state of electronic equipment by using a key and the electronic equipment applying the method for switching the working state of the electronic equipment by using the key.
Background
With the continuous development of electronic technology, electronic devices such as mobile phones and palm computers have become the most common communication tools in daily life.
With the increasing popularity of electronic devices such as mobile phones and handheld computers and the wide application of application software in the electronic devices, electronic devices with fast response capability and ultra-long standby time are more and more popular among customers.
Taking a mobile phone as an example, when the specifications of the mobile phone are the same, pursuing lower power consumption is one of the objectives of mobile phone design. In the existing mobile phone, if the key is not operated for a certain time, the mobile phone enters a standby dormant state, and the power consumption of the mobile phone in the standby dormant state is far lower than that of the mobile phone in a normal working state. At the moment, if the mobile phone has an incoming call, receives a short message or presses any key of all keys of the mobile phone, the main chip in the mobile phone enters an activated state, the main chip entering the activated state switches the state of the mobile phone from a standby dormant state to a normal working state, meanwhile, the main chip in the mobile phone controls a backlight lamp in a display of the mobile phone to emit light, and the light emitted by the backlight lamp illuminates a screen of the display of the mobile phone, so that a user can see information displayed on the display.
In the prior art, in order to reduce the power consumption of the mobile phone, the display of the mobile phone adopts a semitransparent LCD display, because the screen of the semitransparent LCD display has the function of reflecting the light of the external environment, when the brightness of the external ambient light of the mobile phone is bright (for example, in the daytime or under strong light irradiation), when any key on the mobile phone is pressed, the main chip entering the activated state switches the state of the mobile phone from the standby dormant state to the normal working state, but since the main chip entering the activated state can also sense the brightness of the external ambient light through the sensor, when the brightness of the external ambient light reaches a certain value, the backlight lamp in the mobile phone is not turned on by the main chip, under the reflection action of the screen of the semitransparent LCD display, the mobile phone can see the information displayed by the mobile phone display without the lighting of the backlight lamp, so the method provided by the prior art can save the power consumption of the mobile phone caused by turning on the backlight lamp to a certain extent.
In the process of implementing the present invention, the inventor finds that, although the method using the semi-transparent LCD in the prior art can save the power consumption of the mobile phone to some extent, at least the following problems exist:
in the prior art, no matter whether ambient light brightness outside the mobile phone is bright, when a user accidentally touches any key or when any key of the mobile phone placed in a pocket is accidentally squeezed by other objects in the pocket to cause key misoperation on the mobile phone, a main chip in the mobile phone still enters an activated state, the main chip entering the activated state switches the state of the mobile phone from a standby dormant state to a normal working state, and then the mobile phone enters the standby dormant state again after keeping the normal working state for a period of time (about 1 minute);
when the keys on the mobile phone are in misoperation, if the external ambient light brightness of the mobile phone is brighter, even if the backlight lamp does not emit light, the mobile phone still generates larger power consumption once the mobile phone enters a normal working state, the power consumption waste still can be generated for a period of time when the keys are in misoperation every time, if the external ambient light brightness of the mobile phone is darker (for example, at night or when the mobile phone is placed in a pocket), the keys are in misoperation every time, not only the mobile phone enters the normal working state to generate larger power consumption, but also the backlight lamp in the mobile phone is started and emits light, so that at the moment, the power consumption of the mobile phone is higher, and the power consumption waste generated by the keys in;
therefore, the technical problem that the mobile phone power consumption is wasted greatly due to the fact that the probability of misoperation of keys of the mobile phone is high cannot be solved in the prior art.
Disclosure of Invention
The embodiment of the invention provides a method for switching the working state of electronic equipment by using keys and the electronic equipment applying the method, which solve the technical problem that the power consumption of a mobile phone is wasted greatly due to higher probability of misoperation of keys of the mobile phone in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
the method for switching the working state of the electronic equipment by using the keys comprises the following steps:
when at least one key in a plurality of keys on the electronic equipment is pressed down, outputting a key identification signal corresponding to the pressed key;
judging whether the pressed key belongs to a part of keys which are preset in a plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state or not according to the key identification signal;
and when the pressed key belongs to a part of keys preset in the plurality of keys and used for switching the electronic equipment from the standby dormant state to the normal working state, switching the electronic equipment from the standby dormant state to the normal working state.
Compared with the prior art, the technical scheme provided by the invention has the following advantages:
in the method for switching the working state of the electronic equipment by using the keys, provided by the embodiment of the invention, when the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from the standby dormant state to the normal working state, the working state of the electronic equipment is switched from the standby dormant state to the normal working state, so that the preset key used for switching the electronic equipment from the standby dormant state to the normal working state is only a part of keys in the plurality of keys of the electronic equipment;
when a key which is not preset in the plurality of keys on the electronic equipment and can be used for switching the electronic equipment from the standby dormant state to the normal working state is pressed down, the electronic equipment cannot be switched from the standby dormant state to the normal working state, so that when the electronic equipment is in the standby dormant state, the power consumption of the electronic equipment cannot be wasted due to misoperation of the keys;
because the preset keys for switching the electronic equipment from the standby dormant state to the normal working state are only partial keys of a plurality of keys of the electronic equipment, compared with any key of all keys in the prior art, the probability of misoperation of any key of the partial keys is smaller, and the possibility of power consumption waste of the electronic equipment caused by misoperation is also smaller;
meanwhile, the mobile phone is a common electronic device provided with a plurality of keys, and the technical scheme of the invention can be used for reducing the probability of misoperation of the keys on the mobile phone and further reducing the possibility of power consumption waste of the electronic device caused by key misoperation, so that the technical problem that the power consumption waste of the mobile phone is large due to high probability of misoperation of the keys of the mobile phone in the prior art is solved.
In addition, when the method for switching the working state of the electronic equipment by using the keys provided by the embodiment of the invention is applied to reduce the power consumption of the mobile phone, the display of the mobile phone can achieve the purpose of reducing the power consumption of the mobile phone without adopting a semitransparent LCD with high price, so that the method for switching the working state of the electronic equipment by using the keys provided by the embodiment of the invention has the advantage of low cost compared with the prior art.
This electronic equipment, including keyboard, signal circuit and control module, wherein:
the keyboard is provided with a plurality of keys, and the signal circuit is respectively connected with the keys and the control module;
the signal circuit is used for outputting a key identification signal corresponding to the pressed key when at least one key in the plurality of keys is pressed;
the control module is used for judging whether the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state or not according to the key identification signal;
the control module is further configured to switch the electronic device from the standby dormant state to the normal operating state when the pressed key belongs to a part of keys preset in the plurality of keys and used for switching the electronic device from the standby dormant state to the normal operating state.
Compared with the prior art, the technical scheme provided by the invention has the following advantages:
in the electronic device provided in the embodiment of the present invention, the control module may be configured to switch the operating state of the electronic device from the standby dormant state to the normal operating state only when the pressed key belongs to a part of keys preset in the plurality of keys and used for switching the electronic device from the standby dormant state to the normal operating state, and thus, in the embodiment of the present invention, the preset key for switching the electronic device from the standby dormant state to the normal operating state is only a part of keys among the plurality of keys on the keyboard of the electronic device;
when a key which is not preset and can be used for switching the electronic equipment from the standby dormant state to the normal working state is pressed down in a plurality of keys on the keyboard of the electronic equipment, the electronic equipment cannot be switched from the standby dormant state to the normal working state, so that the power consumption of the electronic equipment cannot be wasted due to misoperation when the part of keys are in the standby dormant state;
because the preset keys for switching the electronic equipment from the standby dormant state to the normal working state are only partial keys of a plurality of keys of the electronic equipment, compared with any key of all keys in the prior art, the probability of misoperation of any key of the partial keys is smaller, and the possibility of power consumption waste of the electronic equipment caused by misoperation is also smaller;
meanwhile, the mobile phone is a common electronic device provided with a plurality of keys, and the technical scheme of the invention can be used for reducing the probability of misoperation of the keys on the mobile phone and further reducing the possibility of power consumption waste of the electronic device caused by key misoperation, so that the technical problem that the power consumption waste of the mobile phone is large due to high probability of misoperation of the keys of the mobile phone in the prior art is solved;
in addition, when the electronic device provided by the embodiment of the invention is a mobile phone, the display of the mobile phone can achieve the purpose of reducing the power consumption of the mobile phone without adopting a semitransparent LCD with high price, so that the electronic device provided by the embodiment of the invention has the advantage of low cost compared with the prior art.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for switching operating states of an electronic device using a key according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating one embodiment of step S1 of the method of FIG. 1;
FIG. 3 is a schematic flow chart diagram illustrating one embodiment of step S2 of the method of FIG. 1;
FIG. 4 is a schematic flow chart diagram illustrating another embodiment of step S1 of the method shown in FIG. 1;
fig. 5 is a schematic plan view of a mobile phone applying the method for switching the operating state of an electronic device using keys according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a connection relationship between main components inside an electronic device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating the connection relationship between the circuits for implementing the main components of the electronic device shown in FIG. 6;
FIG. 8 is a schematic diagram illustrating the connection relationship between the circuits for implementing another embodiment of the main components of the electronic device shown in FIG. 6;
FIG. 9 is a flowchart illustrating a process of determining whether the electronic device should enter a normal operating state from a standby sleep state when any key of the electronic device shown in FIG. 7 is pressed;
fig. 10 is a schematic diagram illustrating a connection relationship between main components in an electronic device according to still another implementation manner of the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
The embodiment of the invention provides a method for switching the working state of electronic equipment by using a key, which can effectively reduce the power consumption of a mobile phone and has low cost, and the electronic equipment applying the method for switching the working state of the electronic equipment by using the key.
As shown in fig. 1 and fig. 6, a method for switching an operating state of an electronic device using a key according to an embodiment of the present invention includes the following steps:
s1, when at least one key 2 of the plurality of keys on the electronic device 1 is pressed, outputting a key identification signal corresponding to the pressed key 2;
s2, judging whether the pressed key 2 belongs to a part of keys which are preset in a plurality of keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state or not according to the key identification signal;
s3, when the pressed key 2 belongs to a part of keys preset among the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state, the electronic device 1 is switched from the standby dormant state to the normal operation state.
In the method for switching the operating state of the electronic device by using the keys provided in this embodiment, when the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state as shown in fig. 6, the operating state of the electronic device 1 is switched from the standby dormant state to the normal operating state, which means that the key 2 preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state in the embodiment of the present invention is only a part of keys of the plurality of keys on the electronic device 1, and is not all keys 2 of the plurality of keys;
when the key 2 which is not preset in the plurality of keys on the electronic device 1 and can be used for switching the electronic device 1 from the standby dormant state to the normal working state is pressed down, the electronic device 1 is not switched from the standby dormant state to the normal working state, so that when the electronic device 1 is in the standby dormant state, how to operate the keys by mistake does not cause the power consumption waste of the electronic device 1;
because the keys 2 which belong to the plurality of keys and are preset for switching the electronic equipment 1 from the standby dormant state to the normal working state are only partial keys of the plurality of keys of the electronic equipment 1, compared with any key 2 of all keys 2 in the prior art, the probability of misoperation of any key 2 of the partial keys is smaller, and the possibility of power consumption waste of the electronic equipment 1 caused by misoperation is smaller;
moreover, because the mobile phone is a common electronic device 1 provided with a plurality of keys, the application of the technical scheme of the invention can be used for reducing the probability of misoperation of the keys 2 on the mobile phone, and further reducing the possibility of power consumption waste of the electronic device 1 caused by misoperation of the keys 2, thereby solving the technical problem that the power consumption waste of the mobile phone is larger due to higher probability of misoperation of the keys of the mobile phone in the prior art;
in addition, when the method for switching the working state of the electronic device 1 by using the key 2 provided by the embodiment of the invention is applied to reduce the power consumption of the mobile phone, the display of the mobile phone can achieve the purpose of reducing the power consumption of the mobile phone without adopting an expensive semitransparent LCD, so that the method for switching the working state of the electronic device 1 by using the key 2 provided by the embodiment of the invention has the advantage of low cost compared with the prior art.
As shown in fig. 2 and fig. 6, as an implementation manner of the embodiment, the method for outputting the key identification signal corresponding to the pressed key in the embodiment includes the following steps:
s11, outputting a key identification signal corresponding to the number of rows of the pressed key 2;
s12, a key identification signal corresponding to the number of rows of the pressed key 2 is outputted.
In this embodiment, the sequence of step S11 and step S12 is not limited, step S12 may be executed before step S11, and step S11 and step S12 may be executed simultaneously.
In the prior art, the circuit connection relationship of the keys 2 on most electronic devices 1 and the arrangement of the positions on hardware are that the keys 2 are arranged on the keyboard 3 in a matrix, so that the positions of each key 2 on most electronic devices 1 can be accurately found out through the number of columns and the number of rows, and further, when one key 2 on the keyboard 3 is pressed, which key 2 on the electronic device 1 is specifically pressed is determined by judging the number of rows and the number of columns of the pressed key 2.
Of course, the key identification signal in this embodiment may not correspond to the number of columns or rows of the pressed key 2, for example: the parameters such as the amplitude, the frequency or the phase of the key identification signal output when different keys 2 are pressed can be set differently, so that which key 2 is pressed can be determined according to the parameters such as the amplitude, the frequency or the phase of the key identification signal.
As shown in fig. 4 and fig. 6, as another embodiment of this embodiment, a method for outputting a key identification signal corresponding to a pressed key in this embodiment includes the following steps:
s11, outputting a key identification signal corresponding to the number of rows of the pressed key 2;
s111, judging that the row number of the pressed key 2 belongs to the row number of one key 2 of the preset partial keys for switching the electronic equipment 1 from the standby dormant state to the normal working state in the plurality of keys according to the key identification signal corresponding to the row number of the pressed key 2, and outputting a key identification signal corresponding to the row number of the pressed key 2; or,
as shown in fig. 4 and 6, the method for outputting a key identification signal corresponding to a pressed key in the present embodiment includes the following steps:
s12, outputting a key identification signal corresponding to the row number of the pressed key 2;
s121, according to the key identification signal corresponding to the row number of the pressed key 2, determining that the row number of the pressed key 2 belongs to the row number of one key 2 of the preset partial keys for switching the electronic device 1 from the standby dormant state to the normal operating state, and outputting the key identification signal corresponding to the row number of the pressed key 2.
Since most electronic devices 1 have a plurality of rows and columns of keys 2 on the keyboard 3, for example: the common mobile phone is usually provided with 5 rows and 3 columns of keys 2, and in order to reduce the possibility of misoperation of the keys 2, the smaller the number of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal working state is, the better the number is, and 1-2 keys 2 are preferred.
In this case, there will be a situation that there are no preset partial keys on partial columns and partial rows on the keyboard 3 for switching the electronic device 1 from the standby/dormant state to the normal operation state, therefore, at this time, it is only necessary to determine whether the column or row of the pressed key 2 belongs to the column or row of one of the keys 2 of the partial keys preset among the keys for switching the electronic device 1 from the standby sleep state to the normal operation state, so as to determine whether the pressed key 2 belongs to the partial keys preset among the keys for switching the electronic device 1 from the standby sleep state to the normal operation state, further, it is not necessary to determine whether the number of rows or columns of the pressed key 2 is the preset number of rows or columns of one key 2 of the partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state.
It can be seen that, in this embodiment, it is not necessary to output both the key identification signal corresponding to the row number of each pressed key 2 and the key identification signal corresponding to the column number of each pressed key 2 when each key 2 is pressed, and further it is not necessary to determine the column number or row number of the pressed key 2 according to the key identification signal, so that the time for outputting the key identification signal corresponding to the column number or row number of the pressed key 2 is saved to a certain extent, and the efficiency of determining the pressed key 2 is improved.
The following describes the above technical solution provided by the embodiment of the present invention in more detail by taking a mobile phone with 15 keys 2 on a keyboard 3 as an example as shown in fig. 5:
suppose that the key "+" and the key "0" of the 15 keys 2 shown in fig. 5 belong to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state;
when the key "3" is pressed, firstly, a key identification signal corresponding to the number of columns of the key "3" is output, and then, according to the key identification signal corresponding to the number of columns of the key "3", the number of columns of the key "3" is judged to be a third column, and since the third column is different from the number of columns of any key 2 in the keys "×" and "0", at this time, a judgment result can be obtained as follows:
the pressed key 2 does not belong to a part of keys preset in the plurality of keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state;
therefore, the method obtains the judgment result without outputting the key identification signal corresponding to the row number of the key 3 and further without judging the row number of the key 3;
when the key "0" is pressed, firstly, a key identification signal corresponding to the column number of the key "0" is output, then, according to the key identification signal corresponding to the column number of the key "0", the column number of the key "0" is judged to be a second column, the second column is the same as the column number of the key "+" and the key "0" in the key "0", then, a key identification signal corresponding to the row number of the key "0" is output, according to the key identification signal corresponding to the row number of the key "0", the row number of the key "0" is judged to be a fifth row, the row number is also the same as the row number of the key "0", and the column number and the row number of the key "0" in the key "0" are all the same, so that the judgment result is that:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
As shown in fig. 3 and fig. 6, in this embodiment, the method for determining whether the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state according to the key identification signal includes the following steps:
s21, identifying and recording the number of rows of the pressed keys 2 according to the key identification signal corresponding to the number of rows of the pressed keys 2, and determining whether the number of rows of the pressed keys 2 belongs to one of the preset number of rows of the partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state; and/or the presence of a gas in the gas,
s22, identifying and recording the number of rows of the pressed keys 2 according to the key identification signal corresponding to the number of rows of the pressed keys 2, and determining whether the number of rows of the pressed keys 2 belongs to the number of rows of one of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state;
s23, when the number of columns and the number of rows of the pressed key 2 are respectively the number of columns and the number of rows of the same key 2 of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state, the determination result is:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
When the method for determining whether the pressed key 2 belongs to the partial keys preset among the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state according to the key identification signal provided in the present embodiment includes step S21 and step S22, step S21 may be executed first, and step S22 may be executed second, that is, whether the pressed key 2 belongs to one of the partial keys preset among the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state is determined by determining the number of columns of the pressed key 2 first and then determining the number of rows of the pressed key 2.
Naturally, similar to the above method, in this embodiment, the step S22 may be executed first, and then the step S21 is executed, that is, whether the pressed key 2 belongs to one of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state is judged by judging the row number of the pressed key 2 first and then judging the column number of the pressed key 2.
The following still takes a mobile phone with 15 keys 2 on the keyboard 3 as an example as shown in fig. 5 to describe the above technical solution provided by the embodiment of the present invention in more detail:
the key "+" and the key "0" "in the 15 keys 2 are assumed to be part of keys preset in the keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state;
when the key 2 of the 15 keys 2 on the keyboard 3 is pressed down, firstly, a key identification signal corresponding to the column number of the key 1 is output, then, the column number of the key 1 is identified and recorded as a first column according to the key identification signal corresponding to the column number of the key 1, then, a key identification signal corresponding to the row number of the key 1 is output, and then, the row number of the key 1 is identified and recorded as a second row according to the key identification signal corresponding to the row number of the key 1;
the number of columns of the key "1" is the same as that of the key "+" and that of the key "+" in the key "0", but the number of rows of the key "1" is different from that of the key "+" and that of the key "0", that is, the fifth row, the determination result is:
the pressed key 2 does not belong to a part of preset keys for switching the electronic equipment 1 from the standby dormant state to the normal working state;
when the key "0" is pressed, firstly, outputting a key identification signal corresponding to the column number of the key "0", then, identifying and recording the column number of the key "0" as a second column according to the key identification signal corresponding to the column number of the key "0", then, outputting a key identification signal corresponding to the row number of the key "0", and then, identifying and recording the row number of the key "0" as a fifth row according to the key identification signal corresponding to the row number of the key "0";
the number of columns of the pressed key "0" is the same as the number of columns of the key "0" in the key "0", and the number of rows of the key "0" is the same as the number of rows of the key "0", i.e., the fifth row, so that the result of the determination at this time is:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
The embodiment of the invention also provides the electronic equipment applying the method for switching the working state of the electronic equipment by using the keys.
As shown in fig. 6, the electronic device 1 provided in the embodiment of the present invention includes a keyboard 3, a signal circuit 4, and a control module 5, wherein: the keyboard 3 is provided with a plurality of keys, and the signal circuit 4 is respectively connected with the keys 2 and the control module 5;
a signal circuit 4 for outputting a key identification signal corresponding to the pressed key 2 when at least one key 2 among the plurality of keys is pressed;
the control module 5 is used for judging whether the pressed key 2 belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state or not according to the key identification signal;
the control module 5 is further configured to switch the electronic device 1 from the standby dormant state to the normal operating state when the pressed key 2 belongs to a part of keys preset among the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state.
In the electronic device 1 provided in the embodiment of the present invention, the control module 5 can be configured to switch the operating state of the electronic device 1 from the standby dormant state to the normal operating state only when the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state, and thus, in the embodiment of the present invention, the key 2 preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state is only a part of the plurality of keys on the keyboard 3 of the electronic device 1, and is not all the keys 2 in the plurality of keys;
when the key 2 which is not preset and can be used for switching the electronic equipment 1 from the standby dormant state to the normal working state is pressed down in the plurality of keys on the keyboard 3 of the electronic equipment 1, the electronic equipment 1 is not switched from the standby dormant state to the normal working state, so that when the electronic equipment 1 is in the standby dormant state, how to operate the keys by mistake does not cause the power consumption waste of the electronic equipment 1;
because the keys 2 which belong to the plurality of keys and are preset for switching the electronic equipment 1 from the standby dormant state to the normal operating state are only partial keys of the plurality of keys of the electronic equipment 1, compared with any key 2 of all keys 2 in the prior art, any key 2 of the partial keys has a lower probability of being operated by mistake, and the possibility of wasting the power consumption of the electronic equipment 1 caused by misoperation is also lower;
moreover, because the mobile phone is a common electronic device 1 provided with a plurality of keys, the application of the technical scheme of the invention can be used for reducing the probability of misoperation of the keys 2 on the mobile phone, and further reducing the possibility of power consumption waste of the electronic device 1 caused by misoperation of the keys 2, thereby solving the technical problem that the power consumption waste of the mobile phone is larger due to higher probability of misoperation of the keys of the mobile phone in the prior art;
in addition, when the electronic device 1 provided by the embodiment of the present invention is a mobile phone, the display of the mobile phone can achieve the purpose of reducing the power consumption of the mobile phone without using a semitransparent LCD with high price, so that the electronic device 1 provided by the embodiment of the present invention has the advantage of low cost compared with the prior art.
From the above, it can be seen that: since the electronic device 1 provided in the embodiment of the present invention has the same/corresponding specific technical features as the method for switching the operating state of the electronic device 1 using the key 2 provided in the embodiment of the present invention, the same technical effects can be produced, and the same technical problems can be solved.
The signal circuit 4 in the embodiment of the present invention is configured to output a key identification signal corresponding to the number of rows of the pressed keys 2; a signal circuit 4 for outputting a key identification signal corresponding to the number of rows of the pressed key 2;
the control module 5 is configured to identify and record the number of rows of the pressed keys 2 according to the key identification signal corresponding to the number of rows of the pressed keys 2, and determine whether the number of rows of the pressed keys 2 belongs to the number of rows of one of the keys, which is preset among the plurality of keys and used for switching the electronic device 1 from the standby sleep state to the normal operating state;
the control module 5 is further configured to identify and record the number of rows of the pressed keys 2 according to the key identification signal corresponding to the number of rows of the pressed keys 2, and determine whether the number of rows of the pressed keys 2 belongs to the number of rows of one of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operating state;
when the number of columns and the number of rows of the pressed key 2 are respectively the number of columns and the number of rows of the same key 2 in a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state, the judgment result of the control module 5 is as follows:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
In the prior art, the circuit connection relationship of the keys 2 on most electronic devices 1 and the arrangement of the positions on hardware are that the keys 2 are arranged on the keyboard 3 in a matrix, so that the positions of each key 2 on most electronic devices 1 can be accurately found out through the number of columns and the number of rows, and further, when one key 2 on the keyboard 3 is pressed, which key 2 on the electronic device 1 is specifically pressed is determined by judging the number of rows and the number of columns of the pressed key 2.
Of course, the key identification signal in this embodiment may not correspond to the number of columns or rows of the pressed key 2, for example: the parameters such as the amplitude, the current or the frequency of the key identification signal output when different keys 2 are pressed can be set differently, so that which key 2 is pressed can be determined according to the parameters such as the amplitude, the current or the frequency of the key identification signal.
In this embodiment, whether the pressed key 2 belongs to one of the preset keys for switching the electronic device 1 from the standby dormant state to the normal operating state can be determined by determining the number of columns of the pressed key 2 and then determining the number of rows of the pressed key 2. Naturally, similar to the above method, in this embodiment, it may also be determined whether the pressed key 2 belongs to one of the preset partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state by determining the row number of the pressed key 2 and then determining the column number of the pressed key 2. The following describes the above technical solution provided by the embodiment of the present invention in more detail by taking a mobile phone with 15 keys 2 on a keyboard 3 as an example:
suppose that the key "+" and the key "0" in the 15 keys 2 belong to a part of keys preset in the plurality of keys for switching the electronic equipment 1 from the standby dormant state to the normal working state;
when the key 2 of the 15 keys 2 on the keyboard 3 is pressed down, firstly, a key identification signal corresponding to the column number of the key 1 is output, then, the column number of the key 1 is identified and recorded as a first column according to the key identification signal corresponding to the column number of the key 1, then, a key identification signal corresponding to the row number of the key 1 is output, and then, the row number of the key 1 is identified and recorded as a second row according to the key identification signal corresponding to the row number of the key 1;
the number of columns of the key "1" is the same as that of the key "+" and that of the key "+" in the key "0", but the number of rows of the key "1" is different from that of the key "+" and that of the key "0", that is, the fifth row, the determination result is:
the pressed key 2 does not belong to a part of preset keys for switching the electronic equipment 1 from the standby dormant state to the normal working state;
when the key "0" is pressed, firstly, outputting a key identification signal corresponding to the column number of the key "0", then, identifying and recording the column number of the key "0" as a second column according to the key identification signal corresponding to the column number of the key "0", then, outputting a key identification signal corresponding to the row number of the key "0", and then, identifying and recording the row number of the key "0" as a fifth row according to the key identification signal corresponding to the row number of the key "0";
the number of columns of the pressed key "0" is the same as the number of columns of the key "0" in the key "0", and the number of rows of the key "0" is the same as the number of rows of the key "0", i.e., the fifth row, so that the result of the determination at this time is:
the pressed key "0" belongs to a part of keys preset among the plurality of keys for switching the electronic apparatus 1 from the standby sleep state to the normal operation state.
As an improvement of this embodiment, in this embodiment, the signal circuit 4 is configured to output a key identification signal corresponding to the row number of the pressed key 2 when the control module 5 determines, according to the key identification signal corresponding to the column number of the pressed key 2, that the column number of the pressed key 2 belongs to the column number of one key 2 of the partial keys, which is preset among the plurality of keys and is used for switching the electronic device 1 from the standby sleep state to the normal operating state;
or, the signal circuit 4 is configured to output the key identification signal corresponding to the number of columns of the pressed key 2 when the control module 5 determines, according to the key identification signal corresponding to the number of rows of the pressed key 2, that the number of rows of the pressed key 2 belongs to the number of rows of one key 2 of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state.
Since most electronic devices 1 have a plurality of rows and columns of keys 2 on the keyboard 3, for example: the common mobile phone is usually provided with 5 rows and 3 columns of keys 2, and in order to reduce the possibility of misoperation of the keys 2, the smaller the number of the partial keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal working state is, the better the number is, and 1-2 keys 2 are preferred.
In this case, there will be a situation that there are no preset partial keys on partial columns and partial rows on the keyboard 3 for switching the electronic device 1 from the standby/dormant state to the normal operation state, therefore, at this time, it is only necessary to determine whether the column or row of the pressed key 2 belongs to the column or row of one of the keys 2 of the partial keys preset among the keys for switching the electronic device 1 from the standby sleep state to the normal operation state, so as to determine whether the pressed key 2 belongs to the partial keys preset among the keys for switching the electronic device 1 from the standby sleep state to the normal operation state, further, it is not necessary to determine whether the number of rows or columns of the pressed key 2 is the preset number of rows or columns of one key 2 of the partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state.
It can be seen that, in this embodiment, it is not necessary to output both the key identification signal corresponding to the row number of each pressed key 2 and the key identification signal corresponding to the column number of each pressed key 2 when each key 2 is pressed, and further it is not necessary to determine the column number or row number of the pressed key 2 according to the key identification signal, so that the time for outputting the key identification signal corresponding to the column number or row number of the pressed key 2 is saved to a certain extent, and the efficiency of determining the pressed key 2 is improved.
The following describes the above technical solution provided by the embodiment of the present invention in more detail by taking a mobile phone with 15 keys 2 on a keyboard 3 as an example as shown in fig. 5:
suppose that the key "+" and the key "0" in the 15 keys 2 belong to a part of keys preset in the plurality of keys for switching the electronic equipment 1 from the standby dormant state to the normal working state;
when the key "3" is pressed, firstly, a key identification signal corresponding to the number of columns of the key "3" is output, and then, according to the key identification signal corresponding to the number of columns of the key "3", the number of columns of the key "3" is judged to be a third column, and since the third column is different from the number of columns of any key 2 in the keys "×" and "0", at this time, a judgment result can be obtained as follows:
the pressed key 2 does not belong to a part of keys preset in the plurality of keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state;
therefore, the method obtains the judgment result without outputting the key identification signal corresponding to the row number of the key 3 and further without judging the row number of the key 3;
when the key "0" is pressed, firstly, a key identification signal corresponding to the column number of the key "0" is output, then, according to the key identification signal corresponding to the column number of the key "0", the column number of the key "0" is judged to be a second column, the second column is the same as the column number of the key "+" and the key "0" in the key "0", then, a key identification signal corresponding to the row number of the key "0" is output, according to the key identification signal corresponding to the row number of the key "0", the row number of the key "0" is judged to be a fifth row, the row number is also the same as the row number of the key "0", and the column number and the row number of the key "0" in the key "0" are all the same, so that the judgment result is that:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
As shown in fig. 6 and 9, in the present embodiment, the key identification signal is an interrupt signal in a digital signal format, the control module 5 includes a key determination unit 51, a signal transmission unit 52, a row signal pin H, and a column signal pin L shown in fig. 7, the signal circuit 4 includes a pull-up power supply VDD and a pull-up resistor R connected to the pull-up power supply VDD, where:
the column signal pin L is connected with the key judgment unit 51, the row signal pin H is connected with the signal sending unit 52, and the row signal pin H is grounded;
the number of the pull-up resistors R and the number of the column signal pins H are the same as the number of columns of the key 2;
the number of the row signal pins H is the same as the row number of the key 2;
each pull-up resistor R is respectively connected with a plurality of keys positioned on the same column, and different pull-up resistors R are respectively connected with different column signal pins L;
each row signal pin H is respectively connected with a plurality of keys positioned on the same row;
when one of the keys 2 is pressed, one of the pull-up resistors R connected to the pressed key 2 is connected to one of the row signal pins H connected to the pressed key 2;
the key judgment unit 51 is configured to, when one of the keys 2 is pressed, identify and record the number of columns and the number of rows of the pressed key 2 according to a change of an electric potential on one column signal pin L connected to the pressed key 2, and judge whether the pressed key 2 belongs to a part of keys preset among the plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state according to the number of columns and the number of rows of the pressed key 2;
and a signal transmitting unit 52 for inputting digital signals for driving the potential on the column signal pin L to change to the row signal pin H in order when the key judgment unit 51 identifies and records the number of columns of the pressed key 2.
When any key 2 is not pressed down, each pull-up resistor R is connected with one column signal pin L, and at the moment, the voltage output by the pull-up power supply VDD is input into the column signal pin L through the pull-up resistor R, so that the potential on each column signal pin L is at a high level;
when any one of the plurality of keys 2 is pressed, a pull-up resistor R connected with the pressed key 2 is electrically connected with a row signal pin connected with the pressed key 2, and since the row signal pin H of the key judgment unit 51 is grounded, at this time, the pull-up resistor R connected with the pressed key 2 is grounded, the potential on the column signal pin L connected with the pull-up resistor R changes from high level to low level, that is: generating a falling edge signal;
the key judgment unit 51 senses that the potential on one of the column signal pins L changes from high level to low level: when a falling edge signal is generated, the pin number of the signal pin L, namely the row number of the pressed key 2 connected with the signal pin L, is identified and recorded;
after the key judgment unit 51 records the number of columns of the key 2 connected to the column signal pin L, the key judgment unit 51 outputs a high level and then outputs a low level for each row signal pin H in order (the order may be: from H1 to H5 or from H5 to H1);
at this time, the column signal pin L connected to the pressed key 2 is electrically connected to the row signal pin H connected to the pressed key 2, so that the digital signal output from the key determination unit 51 to the row signal pin H connected to the pressed key 2 is also transmitted to the column signal pin L connected to the pressed key 2, and therefore, when the potential on the column signal pin L connected to the pressed key 2 changes again, i.e., changes from low level to high level, and then changes from high level to low level, and the key determination unit 51 senses that the potential on one of the column signal pins L changes twice to low level, the number of pins of the column signal pin L whose potential appears twice to low level, i.e., the number of rows of the key 2 connected to the row signal pin H, is recorded;
as can be seen from this, the key determination unit 51 can identify and record not only the number of columns of the pressed key 2, but also the number of rows of the pressed key 2 by the change of the potential on the column signal pin L, and after identifying and recording the number of rows and the number of columns of the pressed key 2, the key determination unit 51 can determine whether the pressed key 2 belongs to a partial key preset among a plurality of keys for switching the electronic device 1 from the standby sleep state to the normal operation state.
The following describes the above technical solution provided by the embodiment of the present invention in more detail by taking a mobile phone with 25 keys 2 shown in fig. 7 on a keyboard 3 shown in fig. 6 as an example:
assuming that 25 buttons "+" in the button 2 shown in fig. 7 belong to a part of buttons preset in the plurality of buttons for switching the electronic device 1 from the standby dormant state to the normal operating state, the column number of the button "+" is the first column, and the row number is the fifth row;
when the key "+" and other keys 2 on the keyboard 3 are not pressed, each pull-up resistor R is connected with a column signal pin L, the voltage output by a pull-up power supply VDD is input into the column signal pin L through the pull-up resistor R, and the potential on each column signal pin L is at a high level;
when the key "# is pressed, a pull-up resistor R1 connected to the key" # is electrically connected to the row signal pin H5, and since the row signal pin H5 is grounded and the pull-up resistor R1 is grounded, the potential on the column signal pin H5 connected to the pull-up resistor R1 changes from high level to low level, and at this time, when the key determination unit 51 senses that the potential on the column signal pin H5 changes from high level to low level, the number of columns of the key "# connected to the column signal pin H5 is recorded, that is, the first column is recorded;
after the key judgment unit 51 records the number of columns of the key "+" connected to the column signal pin H5, the key determination unit 51 outputs a high level first and then outputs a low level for each row signal pin H1-H5 in sequence (the sequence may be from H1 to H5 or from H5 to H1), since, when the key "+" is pressed, the column signal pin L1 is electrically connected to the row signal pin H5, therefore, the digital signal outputted from the key determination unit 51 to the row signal pin H5 is also transmitted to the column signal pin L1, so that the potential at the column signal pin L1 changes again, i.e., from low level to high level and then from high level to low level, the key judgment unit 51 senses that the potential at the column signal pin L1 appears low level twice, the fifth row, which records the pin number of row signal pin H5 connected to column signal pin L1, i.e., the number of rows of the pressed key "+";
it can be seen that, the key determination unit 51 can not only identify and record the number of columns of the pressed key "×", but also can record and identify the number of rows of the pressed key "×", and after identifying and recording the number of rows and the number of columns of the pressed key "×", the key determination unit 51 can determine whether the pressed key 2 belongs to a partial key, namely the key "×", preset among the plurality of keys, for switching the electronic device 1 from the standby sleep state to the normal operation state by comparing the number of rows and the number of columns; since the key "+" is the first column and the fifth row, and the pressed key 2 is also the first column and the fifth row, the judgment result is:
the pressed key 2 belongs to a part of keys preset in the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operation state.
When the key "1" is pressed, the pull-up resistor R1 connected to the key "1" is electrically connected to the row signal pin H1, and since the row signal pin a1 is grounded, and at this time, the pull-up resistor R1 is grounded, the potential on the column signal pin L1 connected to the pull-up resistor R1 changes from high level to low level, and at this time, when the key judgment unit 51 senses that the potential on the column signal pin L1 changes from high level to low level, the number of columns of the key "1" connected to the column signal pin L1 is recorded, that is, the first column is recorded;
after the key judgment unit 51 records the column number of the key "1" connected to the column signal pin L1, the key determination unit 51 outputs a high level to each row signal pin H1 first, and then outputs a low level to each row signal pin H1 in sequence (the sequence may be from H1 to H5 or from H5 to H1), since, when key "1" is pressed, the column signal pin L1 is electrically connected to the row signal pin H1, therefore, the digital signal outputted from the key determination unit 51 to the row signal pin H1 is also transmitted to the column signal pin L1, so that the potential at the column signal pin L1 changes again, i.e., from low level to high level and then from high level to low level, the key judgment unit 51 senses that the potential at the column signal pin L1 appears low level twice, the first row of the row signal pin H1 connected to the column signal pin L1, i.e., the row of the pressed key "1", is recorded;
it can be seen that, the key determination unit 51 can not only identify and record the number of columns of the pressed key "1" but also record and identify the number of rows of the pressed key "1" by the change of the potential on the column signal pin, and after identifying and recording the number of rows and the number of columns of the pressed key "1", the key determination unit 51 can determine whether the pressed key 2 belongs to a partial key, namely, a key "+" preset among a plurality of keys for switching the electronic device 1 from the standby state to the normal state by comparing the number of rows and the number of columns, and since the key "+" is a first column and a fifth row, and the pressed key "1" is a first column and a first row, the determination result is:
the pressed key 2 does not belong to a part of keys preset among the plurality of keys for switching the electronic device 1 from the standby dormant state to the normal operating state.
Of course, the change of the electric potential on the column signal pin L in this embodiment may be from a high level to a low level, or from a low level to a high level, and a specific implementation of the embodiment of the present invention is described in more detail above only by taking as an example that the electric potentials on all the column signal pins L are high levels when the key 2 is not pressed down.
Meanwhile, in this embodiment, since the rows and columns of the plurality of keys are artificially defined, the rows may also be defined as columns, and the columns may also be defined as rows, the positions of the keys 2 connected to the column signal pins L and the row signal pins H in this embodiment may be interchanged.
As shown in fig. 8, as another embodiment of this embodiment, in this embodiment, the pull-up power supply VDD may be connected to the row signal pin H through a pull-up resistor R and connect the column signal pins L to ground, the potential on all the column signal pins L is low level in the initial state, i.e. when no key 2 is pressed, and when one of the keys 2 is pressed, the potential on the column signal pin L connected to the key 2 is changed from low level to high level, i.e.: a rising edge signal is generated so that the key judgment unit 51 of the control module 5 judges the number of columns of the pressed key 2 by judging which of the column signal pins L the potential on changes from low level to high level, and then the signal transmission unit 52 of the control module 5 outputs low level first and high level again for each of the row signal pins H in the order (the order may be: from H1 to H5 or from H5 to H1), thereby judging again the number of rows of the pressed key 2 by judging which of the column signal pins L the potential on changes from low level to high level again in accordance with the change of the potential on the column signal pins L.
As shown in fig. 7, as a modification of the present embodiment, the number of rows or columns of the partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state, which are preset in the present embodiment, is the same.
When the preset number of rows of partial keys for switching the electronic device 1 from the standby dormant state to the normal operating state is the same, if only one row of keys 2 exists on the keyboard 3, it is only necessary to judge whether the number of columns of the pressed keys 2 belongs to the preset number of columns of one key 2 of the partial keys for switching the electronic device 1 from the standby dormant state to the normal operating state among the plurality of keys, so as to judge whether the pressed keys 2 belong to one key 2 of the preset partial keys for switching the electronic device 1 from the standby dormant state to the normal operating state among the plurality of keys; if a plurality of rows and columns of keys 2 exist on the keyboard 3, when the number of columns of the pressed keys 2 belongs to the number of columns of one key 2 of the partial keys which are preset in the plurality of keys and used for switching the electronic equipment 1 from the standby dormant state to the normal working state, when the control module 5 identifies the number of rows of the pressed keys 2, the control module can only output high level to or firstly output high level to the row signal pins H connected with the pressed keys 2 and then output low level, and does not need to output high level to each row signal pin according to the sequence from the first row to the last row or from the last row to the first row and then output low level, so that the time consumed for judging the number of rows of the pressed keys 2 can be saved.
Similarly, when the number of rows of the preset partial keys for switching the electronic device 1 from the standby sleep state to the normal operation state is the same in the present embodiment, the time consumed for determining the number of rows of the pressed key 2 can also be saved.
As shown in fig. 10, in this embodiment, the electronic device 1 further includes a power consumption module 6, and the control module 5 is further configured to start the power consumption module 6 when the electronic device 1 is switched from the standby sleep state to the normal operating state, so that the power consumption module 6 enters the normal operating state from the off state or the standby sleep state.
When the electronic device 1 is in the standby dormant state, generally, most of the power consumption modules 6 in the electronic device 1 are in the off state, and there may be a small number of power consumption modules 6 in the standby dormant state, so that a lot of power consumption can be saved, when the electronic device 1 is switched from the standby dormant state to the normal working state, the control module 5 can control some commonly used power consumption modules 6 in the electronic device 1 to directly enter the normal working state, and the power consumption modules 6 do not need to be specially restarted, so that the automation degree of the electronic device 1 can be improved.
In this embodiment, the power consumption module 6 shown in fig. 10 is a backlight of the mobile communication terminal. The backlight is a power consumption module 6 commonly used in the mobile communication terminal, when the backlight emits light, the user can clearly see the information on the display screen of the mobile communication terminal, so when the mobile communication terminal is switched from a standby dormant state to a normal working state, the control module 5 controls the backlight to directly enter the normal working state, the user can clearly see the information on the display screen without specially starting the backlight, and then the user can conveniently further operate the mobile communication terminal, for example: writing short message and inputting telephone number.
In addition, since the control module 5 controls the backlight to directly enter the normal operating state when the mobile communication terminal is switched from the standby dormant state to the normal operating state, as described above, since the possibility of the misoperation of the key 2 on the electronic device 1 provided by the embodiment of the present invention is relatively low, the technical problem that the backlight or other power consumption module 6 is erroneously started due to the misoperation of the key 2 on the mobile communication terminal in the prior art, so that the backlight or other power consumption module 6 enters the normal operating state erroneously, and finally the power consumption waste caused by the backlight of the other power consumption module 6 is relatively large can be solved.
Of course, in this embodiment, if the electronic device 1 is a mobile communication terminal such as a mobile phone and a palm computer, the power consumption module 6 may also be a power consumption device commonly used by other users besides a backlight lamp such as a mobile phone chip, a microphone, and a speaker.
As shown in fig. 5, as a further improvement of the present embodiment, in the present embodiment, the electronic device 1 is a mobile communication terminal, preferably a mobile phone, the control module 5 is a main chip of the mobile communication terminal, and the preset partial key for switching the electronic device 1 from the standby sleep state to the normal operation state is a confirmation key (i.e., an OK key shown in fig. 5) and/or a direction key.
The main chip of the mobile communication terminal itself has a function of recognizing the number of columns and rows of the keys 2 based on the key identification signal corresponding to the number of columns and rows of the keys 2 pressed, and the main chip of the mobile communication terminal is a technically mature and low-cost control chip having a data processing capability, and thus is suitable for being used as the control module 5
The confirmation key and/or the direction key are the keys 2 which are relatively frequent and familiar to the user, and the shapes of the confirmation key and/or the direction key are usually arranged to be relatively striking, so that the user can easily memorize, therefore, when the confirmation key and/or the direction key are preset as the partial keys for switching the electronic equipment 1 from the standby dormant state to the normal working state, the probability of misoperation of the keys 2 can be reduced, and the use and the memorization of the user are convenient.
Fig. 7 is a schematic diagram of a circuit connection relationship of the confirmation key and/or the arrow key in this embodiment, and when the method is applied to hardware, on the premise that the circuit connection relationship shown in fig. 7 is satisfied, the position of the confirmation key and/or the arrow key on the keyboard 3 may be set at any position, and the position of the confirmation key and/or the arrow key on the hardware is only required to be convenient for a user to press.
Of course, in the present embodiment, the part of the plurality of keys 2 shown in fig. 5 that is preset to switch the electronic device 1 from the standby and dormant state to the normal operating state may also be any one or several number keys on the keyboard 3.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A method for switching the working state of electronic equipment by using keys is characterized in that: the method comprises the following steps:
when at least one key in a plurality of keys on the electronic equipment is pressed down, outputting a key identification signal corresponding to the pressed key;
judging whether the pressed key belongs to a part of keys which are preset in a plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state or not according to the key identification signal;
and when the pressed key belongs to a part of keys preset in the plurality of keys and used for switching the electronic equipment from the standby dormant state to the normal working state, switching the electronic equipment from the standby dormant state to the normal working state.
2. The method for switching the operating status of an electronic device according to claim 1, wherein: the method for outputting the key identification signal corresponding to the pressed key comprises the following steps:
outputting the key identification signal corresponding to the number of the pressed rows of the keys;
outputting the key identification signal corresponding to the number of rows of the pressed key.
3. The method for switching the operating status of an electronic device according to claim 1, wherein: the method for outputting the key identification signal corresponding to the pressed key comprises the following steps:
outputting the key identification signal corresponding to the number of the pressed rows of the keys;
according to the key identification signal corresponding to the row number of the pressed key, when the row number of the pressed key is judged to belong to the row number of one key in a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state, the key identification signal corresponding to the row number of the pressed key is output; or,
the method for outputting the key identification signal corresponding to the pressed key comprises the following steps:
outputting the key identification signal corresponding to the number of rows of the pressed key;
and when judging that the number of the pressed key rows belongs to the number of the rows of one key in the preset partial keys for switching the electronic equipment from the standby dormant state to the normal working state in the plurality of keys according to the key identification signal corresponding to the number of the pressed key rows, outputting the key identification signal corresponding to the number of the pressed key rows.
4. The method for switching the operating status of an electronic device using keys as claimed in claim 1, 2 or 3, wherein: the method for judging whether the pressed key belongs to a part of keys preset in a plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state according to the key identification signal comprises the following steps:
identifying and recording the number of the pressed keys according to key identification signals corresponding to the number of the pressed keys, and judging whether the number of the pressed keys belongs to the number of the rows of one key in a plurality of keys which is preset and used for switching the electronic equipment from a standby dormant state to a normal working state; and/or the presence of a gas in the gas,
identifying and recording the number of rows of the pressed keys according to key identification signals corresponding to the number of rows of the pressed keys, and judging whether the number of rows of the pressed keys belongs to the number of rows of one key in a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state;
when the number of columns and the number of rows of the pressed key are respectively the number of columns and the number of rows of the same key in a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from the standby dormant state to the normal working state, the judgment result is as follows:
the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state.
5. An electronic device, characterized in that: including keyboard, signal circuit and control module, wherein:
the keyboard is provided with a plurality of keys, and the signal circuit is respectively connected with the keys and the control module;
the signal circuit is used for outputting a key identification signal corresponding to the pressed key when at least one key in the plurality of keys is pressed;
the control module is used for judging whether the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state or not according to the key identification signal;
the control module is further configured to switch the electronic device from the standby dormant state to the normal operating state when the pressed key belongs to a part of keys preset in the plurality of keys and used for switching the electronic device from the standby dormant state to the normal operating state.
6. The electronic device of claim 5, wherein: the signal circuit is used for outputting the key identification signal corresponding to the row number of the pressed key;
the signal circuit is further configured to output the key identification signal corresponding to the number of rows of the pressed key;
the control module is used for identifying and recording the number of the pressed key rows according to the key identification signal corresponding to the number of the pressed key rows, and judging whether the number of the pressed key rows belongs to one preset number of key rows of partial keys for switching the electronic equipment from a standby dormant state to a normal working state;
the control module is further configured to identify and record the number of rows of the pressed keys according to the key identification signal corresponding to the number of rows of the pressed keys, and determine whether the number of rows of the pressed keys belongs to the number of rows of one of the keys of a part of keys preset in the plurality of keys for switching the electronic device from the standby sleep state to the normal operating state;
when the number of columns and the number of rows of the pressed key are respectively the number of columns and the number of rows of the same key in a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from the standby dormant state to the normal working state, the judgment result of the control module is as follows:
the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state.
7. The electronic device of claim 5, wherein: the signal circuit is configured to output the key identification signal corresponding to the row number of the pressed key when the control module determines, according to the key identification signal corresponding to the row number of the pressed key, that the row number of the pressed key belongs to one of the row numbers of partial keys preset in the plurality of keys and used for switching the electronic device from the standby sleep state to the normal operating state;
or, the signal circuit is configured to output the key identification signal corresponding to the number of columns of the pressed key when the control module determines, according to the key identification signal corresponding to the number of rows of the pressed key, that the number of rows of the pressed key belongs to the number of rows of one of the keys of the plurality of keys, which is preset for switching the electronic device from the standby sleep state to the normal operation state.
8. The electronic device of claim 6 or 7, wherein: the key identification signal is an interrupt signal in a digital signal format, the control module comprises a key judgment unit, a signal sending unit, a row signal pin and a column signal pin, the signal circuit comprises a pull-up power source and a pull-up resistor connected with the pull-up power source, and the control module comprises:
the column signal pins are connected with the key judgment unit, the row signal pins are connected with the signal sending unit, and the row signal pins are grounded;
the number of the pull-up resistors and the number of the column signal pins are the same as the number of the columns of the keys;
the number of the row signal pins is the same as that of the rows of the keys;
each pull-up resistor is respectively connected with a plurality of keys positioned on the same column, and different pull-up resistors are respectively connected with different column signal pins;
each row signal pin is respectively connected with a plurality of keys positioned on the same row;
when one of the keys is pressed, one of the pull-up resistors connected to the pressed key is connected to one of the row signal pins connected to the pressed key;
the key judgment unit is used for identifying and recording the number of columns and the number of rows of the pressed keys according to the change of the potential on one column signal pin connected with the pressed key when one key is pressed, and judging whether the pressed key belongs to a part of keys which are preset in the plurality of keys and used for switching the electronic equipment from a standby dormant state to a normal working state or not according to the number of columns and the number of rows of the pressed key;
and the signal sending unit is used for inputting digital signals for driving the potentials on the column signal pins to change to the row signal pins in sequence when the key judgment unit identifies and records the number of the columns of the pressed keys.
9. The electronic device of claim 5, 6 or 7, wherein: and the preset row number or column number of partial keys for switching the electronic equipment from the standby dormant state to the normal working state is the same.
10. The electronic device of claim 5, 6 or 7, wherein: the electronic equipment further comprises a power consumption module, and the control module is further used for starting the power consumption module when the electronic equipment is switched from a standby dormant state to a normal working state, so that the power consumption module enters the normal working state from an off state or the standby dormant state.
11. The electronic device of claim 5, 6 or 7, wherein: the electronic equipment is a mobile communication terminal, the control module is a main chip of the mobile communication terminal, and the preset partial keys for switching the electronic equipment from the standby dormant state to the normal working state are confirmation keys and/or direction keys.
CN201010519721.5A 2010-10-26 2010-10-26 Method for switching working condition of electronic device by key and electronic device Active CN101997985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010519721.5A CN101997985B (en) 2010-10-26 2010-10-26 Method for switching working condition of electronic device by key and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010519721.5A CN101997985B (en) 2010-10-26 2010-10-26 Method for switching working condition of electronic device by key and electronic device

Publications (2)

Publication Number Publication Date
CN101997985A true CN101997985A (en) 2011-03-30
CN101997985B CN101997985B (en) 2014-02-19

Family

ID=43787538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010519721.5A Active CN101997985B (en) 2010-10-26 2010-10-26 Method for switching working condition of electronic device by key and electronic device

Country Status (1)

Country Link
CN (1) CN101997985B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609072A (en) * 2012-02-09 2012-07-25 惠州Tcl移动通信有限公司 Method for responding to key trigger and portable device using the method
CN104090821A (en) * 2014-07-10 2014-10-08 东莞市乐升电子有限公司 Full-touch system activating method and system
CN105227188A (en) * 2015-09-29 2016-01-06 深圳市新国都支付技术有限公司 A kind of many key press detecting circuits
CN113377308A (en) * 2021-07-07 2021-09-10 威海新北洋技术服务有限公司 Printer control method and device and electronic equipment
CN114137400A (en) * 2020-09-04 2022-03-04 芯科实验室有限公司 Low power switch state detection system and method
CN114488861A (en) * 2022-01-24 2022-05-13 杭州老板电器股份有限公司 Cooking parameter adjusting method and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000115308A (en) * 1998-10-07 2000-04-21 Canon Inc Portable terminal
CN1369754A (en) * 2001-02-10 2002-09-18 皇家菲利浦电子有限公司 Spare circuit for electronic device
CN1547381A (en) * 2003-12-02 2004-11-17 深圳创维-Rgb电子有限公司 A method of television set screen protection
CN1708068A (en) * 2004-06-10 2005-12-14 乐金电子(中国)研究开发中心有限公司 Key area device for mobile telephone
CN1920705A (en) * 2006-09-01 2007-02-28 海信集团有限公司 Electronic equipment with state detecting and memorizing functions
CN1987745A (en) * 2005-12-23 2007-06-27 联想(北京)有限公司 Keyboard and its input method
CN101483692A (en) * 2009-02-16 2009-07-15 中国电信股份有限公司 Method for sending SOS information by mobile terminal, and mobile terminal thereof
CN101616379A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of method and mobile phone that sends note
CN101770290A (en) * 2009-01-06 2010-07-07 欧缔科技股份有限公司 Method for converting touch control plate into touch control mode or digital key and/or hot key input mode
CN101841600A (en) * 2010-04-15 2010-09-22 西安酷派软件科技有限公司 Method for switching states of mobile telephone display screen and mobile telephone

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000115308A (en) * 1998-10-07 2000-04-21 Canon Inc Portable terminal
CN1369754A (en) * 2001-02-10 2002-09-18 皇家菲利浦电子有限公司 Spare circuit for electronic device
CN1547381A (en) * 2003-12-02 2004-11-17 深圳创维-Rgb电子有限公司 A method of television set screen protection
CN1708068A (en) * 2004-06-10 2005-12-14 乐金电子(中国)研究开发中心有限公司 Key area device for mobile telephone
CN1987745A (en) * 2005-12-23 2007-06-27 联想(北京)有限公司 Keyboard and its input method
CN1920705A (en) * 2006-09-01 2007-02-28 海信集团有限公司 Electronic equipment with state detecting and memorizing functions
CN101770290A (en) * 2009-01-06 2010-07-07 欧缔科技股份有限公司 Method for converting touch control plate into touch control mode or digital key and/or hot key input mode
CN101483692A (en) * 2009-02-16 2009-07-15 中国电信股份有限公司 Method for sending SOS information by mobile terminal, and mobile terminal thereof
CN101616379A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of method and mobile phone that sends note
CN101841600A (en) * 2010-04-15 2010-09-22 西安酷派软件科技有限公司 Method for switching states of mobile telephone display screen and mobile telephone

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609072A (en) * 2012-02-09 2012-07-25 惠州Tcl移动通信有限公司 Method for responding to key trigger and portable device using the method
CN102609072B (en) * 2012-02-09 2016-05-18 惠州Tcl移动通信有限公司 The method that response button triggers and the portable set that adopts the method
CN104090821A (en) * 2014-07-10 2014-10-08 东莞市乐升电子有限公司 Full-touch system activating method and system
CN105227188A (en) * 2015-09-29 2016-01-06 深圳市新国都支付技术有限公司 A kind of many key press detecting circuits
CN105227188B (en) * 2015-09-29 2018-07-31 深圳市新国都支付技术有限公司 A kind of more key press detecting circuits
CN114137400A (en) * 2020-09-04 2022-03-04 芯科实验室有限公司 Low power switch state detection system and method
CN114137400B (en) * 2020-09-04 2024-05-24 芯科实验室有限公司 Low-power switch state detection system and method
CN113377308A (en) * 2021-07-07 2021-09-10 威海新北洋技术服务有限公司 Printer control method and device and electronic equipment
CN114488861A (en) * 2022-01-24 2022-05-13 杭州老板电器股份有限公司 Cooking parameter adjusting method and device and electronic equipment

Also Published As

Publication number Publication date
CN101997985B (en) 2014-02-19

Similar Documents

Publication Publication Date Title
US10579127B2 (en) Apparatus for driving a touch pad and a portable terminal having the same
CN101997985B (en) Method for switching working condition of electronic device by key and electronic device
JP5225576B2 (en) Mobile terminal and operation method thereof
CN103002148B (en) Music switching method based on mobile terminal in dormacy and mobile terminal
CN106990888B (en) Application display control method and device
EP2927807B1 (en) Terminal activation method and terminal
CN111681621B (en) Communication method and driving structure of time schedule controller and power management chip
CN103080874A (en) Tactile indication device
CN108833625B (en) Sensor control circuit and electronic device
CN103713804A (en) Equipment control method and device and electronic equipment
US20130091369A1 (en) Power-saving input device and power-saving method for such input device
CN105468217A (en) Mobile terminal for replacing power button by capacitive sensor and relation method of mobile terminal
CN109088961B (en) Sensor control circuit and electronic device
CN104007988A (en) Computer startup and shutdown method and computer
KR100881083B1 (en) Control apparatus for complex input interface
CN108646948B (en) Method and device for adjusting sensitivity of touch key, storage medium and electronic equipment
KR101618272B1 (en) Apparatus and method for controlling terminal
CN107734148A (en) Application display method, device, terminal and computer-readable recording medium
CN112400309A (en) Message prompting method and related product
JP5280989B2 (en) Mobile terminal and control program
CN107272946A (en) A kind of screen control method and device
CN110703892A (en) EC reset circuit and electronic equipment based on USB C type interface
CN108563393A (en) device parameter adjusting method, device, storage medium and electronic equipment
CN109041327B (en) Touch remote controller backlight lighting method and touch remote controller
JP4888421B2 (en) Electronic device, power saving control method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171106

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.