CN115695643A - Method for handheld device and related product - Google Patents
Method for handheld device and related product Download PDFInfo
- Publication number
- CN115695643A CN115695643A CN202211329714.8A CN202211329714A CN115695643A CN 115695643 A CN115695643 A CN 115695643A CN 202211329714 A CN202211329714 A CN 202211329714A CN 115695643 A CN115695643 A CN 115695643A
- Authority
- CN
- China
- Prior art keywords
- handheld device
- posture
- screen
- handheld
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012544 monitoring process Methods 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims description 17
- 238000003860 storage Methods 0.000 claims description 10
- 238000001914 filtration Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000001276 controlling effect Effects 0.000 description 6
- 238000005457 optimization Methods 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000007958 sleep Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000003825 pressing Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000005316 response function Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000021615 conjugation Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000005059 dormancy Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a method for a handheld device and a related product. Wherein the method comprises the following steps: acquiring attitude information of the handheld equipment; monitoring the running state of the handheld equipment; and controlling the screen of the handheld equipment to be turned off or turned on according to the attitude information and the running state. According to the technical scheme, manual intervention is not needed, the screen of the handheld device can be intelligently controlled to be turned off or turned on, the control performance of the handheld device is optimized, and the use experience of a user is improved.
Description
Technical Field
Embodiments of the present invention relate to the field of handheld device technology, and more particularly, embodiments of the present invention relate to a method for a handheld device, and a handheld device and a computer-readable storage medium for performing the foregoing method.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein may include concepts that could be pursued, but are not necessarily ones that have been previously conceived or pursued. Thus, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section.
With the technical update of the handheld devices such as the dictionary pen and the like, the performance requirements of users on the handheld devices such as the controllability and the like are higher. However, in the specific application process, some scenes with inconvenient use still appear.
For example, if the user wants to wake up the dictionary pen in the screen-saving state, the user needs to manually trigger the corresponding key to wake up the dictionary pen. Especially, under some scenes that the user needs to use the dictionary pen discontinuously for many times, the user needs to repeatedly manually operate the dictionary pen to turn off or light the screen for many times, so that the operation is complex, the dictionary pen is not easy to control, and the use experience of the user is seriously influenced.
Disclosure of Invention
The intelligent handling capabilities of the known handheld devices are not ideal, which is a very annoying process.
Therefore, an improved scheme for the handheld device is needed, which does not require excessive manual intervention, can intelligently control the handheld device to turn off or turn on the screen, realizes optimization of the control performance of the handheld device, and improves the use experience of the user.
In this context, embodiments of the present invention contemplate a method and related product for a handheld device.
In a first aspect of embodiments of the present invention, a method for a handheld device is provided, including: acquiring attitude information of the handheld equipment; monitoring the running state of the handheld equipment; and controlling the screen of the handheld device to be turned off or on according to the attitude information and the running state.
In one embodiment of the present invention, the monitoring the operation state of the handheld device comprises: and monitoring the duration of the handheld device in the idle posture.
In another embodiment of the present invention, controlling the turning-off of the screen of the handheld device according to the posture information and the operation state includes: determining whether the handheld device is in an idle posture or not according to the posture information; and responding to the fact that the handheld device is in the idle posture, and the duration of the idle posture is larger than or equal to the preset duration, and controlling the screen of the handheld device to be turned off.
In yet another embodiment of the present invention, controlling the screen of the handheld device to be lit according to the posture information and the operation state includes: determining whether the handheld device is in a target posture or not according to the posture information; responding to the situation that the handheld device is in a target posture, and monitoring whether a background of the handheld device receives a reporting event related to the target posture; and controlling the screen of the handheld device to be lightened in response to receiving the reporting event related to the target posture.
In yet another embodiment of the present invention, determining whether the handheld device is in the target pose based on the pose information comprises: determining whether the inclination angle of the handheld equipment relative to the horizontal plane is within a preset angle range according to the attitude information; and determining that the handheld device is in the target posture in response to the fact that the inclination angle of the handheld device relative to the horizontal plane is within the preset angle range.
In one embodiment of the invention, the method further comprises: and stopping executing the monitoring operation of the reported event related to the target gesture in response to determining that the screen of the handheld device is in the lighting state.
In another embodiment of the present invention, wherein the handheld device is configured with a posture sensor, the acquiring posture information of the handheld device comprises: and acquiring the attitude information about the handheld equipment, which is acquired by the attitude sensor.
In yet another embodiment of the present invention, the method further comprises: optimizing the configuration parameters of the attitude sensor to acquire attitude information of the handheld device based on the optimized attitude sensor; and/or filtering the attitude information acquired by the optimized attitude sensor to retain the attitude information within a preset range.
In a second aspect of embodiments of the present invention, there is provided a handheld device comprising: a processor; and a memory storing computer instructions for a handheld device, which when executed by the processor, cause the handheld device to perform a method according to the preceding and following embodiments.
In a third aspect of embodiments of the present invention, there is provided a computer readable storage medium containing program instructions for a handheld device, which when executed by a processor, cause the implementation of a method according to the preceding and following embodiments.
According to the method for the handheld device and the related product, whether the user needs to use the handheld device can be determined according to the posture information and the running state of the handheld device, so that the screen of the handheld device can be controlled to be turned off or turned on. The scheme of the invention can intelligently control the screen of the handheld device to turn off or turn on the screen, and the whole process does not need the user to frequently press the keys for control, thereby realizing the effective optimization of the control performance of the handheld device and improving the use experience of the user.
In some embodiments of the present invention, when it is determined that the screen of the handheld device is in the illuminated state, it indicates that the handheld device is already in use, and there is no need to listen for the relevant wake-up trigger event. At this time, unnecessary awakening of more useless scenes can be effectively filtered by stopping execution of the monitoring operation on the reported event related to the target posture, so that invalid power consumption is reduced.
In addition, in still other embodiments of the present invention, invalid gesture information may be filtered by combining hardware and software to retain valid gesture information, so as to effectively avoid that the invalid gesture information causes the handheld device to be mistakenly touched and awakened, and further optimize the intelligent control performance of the handheld device.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention;
FIG. 2 schematically illustrates a flow diagram of a method for a handheld device in accordance with one embodiment of the present invention;
FIG. 3 schematically illustrates a flow diagram of a method for a handheld device in accordance with another embodiment of the invention;
FIG. 4 schematically illustrates a flow diagram of a method for a handheld device in accordance with yet another embodiment of the present invention;
FIG. 5 schematically illustrates a flow diagram of a method for a handheld device in accordance with a further embodiment of the invention;
FIG. 6 schematically illustrates a scenario diagram of automatically waking up a handheld device according to an embodiment of the present invention; and
fig. 7 schematically shows a schematic structural diagram of a handheld device according to an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention. As shown in fig. 1, computing system 100 may include: a Central Processing Unit (CPU) 101, a Random Access Memory (RAM) 102, a Read Only Memory (ROM) 103, a system bus 104, a hard disk controller 105, a keyboard controller 106, a serial interface controller 107, a parallel interface controller 108, a display controller 109, a hard disk 110, a keyboard 111, a serial external device 112, a parallel external device 113, and a display 114. Among these devices, coupled to the system bus 104 are a CPU 101, a RAM 102, a ROM 103, a hard disk controller 105, a keyboard controller 106, a serial controller 107, a parallel controller 108, and a display controller 109. The hard disk 110 is coupled to the hard disk controller 105, the keyboard 111 is coupled to the keyboard controller 106, the serial external device 112 is coupled to the serial interface controller 107, the parallel external device 113 is coupled to the parallel interface controller 108, and the display 114 is coupled to the display controller 109. It should be understood that the block diagram of the architecture depicted in FIG. 1 is for purposes of illustration only and is not intended to limit the scope of the present invention. In some cases, certain devices may be added or subtracted as the case may be.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: the term "computer readable medium" as used herein refers to any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive example) of the computer readable storage medium may include, for example: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Embodiments of the present invention will be described below with reference to flowchart illustrations of methods and block diagrams of apparatuses (or systems) of embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
According to the embodiment of the invention, a method for a handheld device and a related product are provided. Moreover, any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several exemplary embodiments of the present invention.
Summary of The Invention
The inventor finds that the intelligent operation performance of the existing handheld equipment such as a dictionary pen is not ideal. Specifically, for example, if a user needs to use a handheld device such as a dictionary pen, the user needs to wake up the dictionary pen by manually touching the corresponding key. Especially, in some scenes that the user needs to use the dictionary pen discontinuously for many times, the user needs to repeatedly manually operate the dictionary pen to turn off or light the screen for many times, so that the operation is complex, the dictionary pen is not easy to control, and the use experience of the user is seriously influenced. In addition, the current research on the dictionary pen mostly focuses on the research on the aspects of scanning efficiency, recognition accuracy and the like, and the research on the control performance is lack of correlation, especially how to wake up the handheld device.
Based on the above, the inventor finds that the gestures of the handheld device in the use state and the idle state are obviously different, so that the gesture information and the running state of the handheld device can be combined to determine whether the user has a use demand or intention on the handheld device, and further control the handheld device to turn off or light the screen. Therefore, manual intervention is not needed, the handheld device can be intelligently controlled to turn off or light, the control performance of the handheld device is optimized, and the use experience of a user is improved.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Exemplary method
A method for a handheld device according to an exemplary embodiment of the invention is described below with reference to fig. 2. It should be noted that the embodiments of the present invention can be applied to any applicable scenarios.
Fig. 2 schematically illustrates a method 200 for a handheld device according to one embodiment of the invention.
As shown in fig. 2, at step S201, pose information of the handheld device may be acquired. It should be noted that the handheld device herein may include a dictionary pen, a scan and translation pen, a hearing spoken language practice device, and other handheld devices with intelligent screen-on or screen-off requirements (especially devices with distinct differences between the use state and the idle state). In addition, the pose information of the handheld device may include multi-dimensional information of the space in which the handheld device is located. Based on the foregoing analysis, the gestures of the handheld device in the use state and the idle state are significantly different, and the gesture information of the handheld device is obtained, so as to assist in judging whether the handheld device has a need or intention for use based on the gesture information.
Next, at step S202, the operating status of the handheld device may be monitored. The running state of the handheld device in the using state or the idle state can have different performances, and necessary guarantee is provided for follow-up accurate judgment of whether the handheld device has the used requirement or intention through the running state.
Finally, at step S203, the screen of the handheld device may be controlled to be turned off or turned on according to the posture information and the operation state. By integrating the posture information and the running state, whether the handheld device has the use requirement or intention can be accurately judged, and the screen of the handheld device is controlled to be turned off or turned on.
The scheme of the invention can intelligently control the screen of the handheld device to turn off or turn on the screen, and the whole process does not need the user to frequently press the keys for control, thereby realizing the effective optimization of the control performance of the handheld device and improving the use experience of the user.
Fig. 3 schematically shows a method 300 for a handheld device according to another embodiment of the invention. It is to be understood that the method 300 is a further definition and addition to the method 200 of fig. 2. Therefore, the same applies to the following description, with reference to fig. 2, as previously described in detail.
As shown in fig. 3, at step S301, pose information of the handheld device may be acquired. In some embodiments, the handheld device is configured with a gesture sensor, and gesture information about the handheld device collected by the gesture sensor can be acquired. In some implementation scenarios, the attitude sensor may specifically include an acceleration sensor, a gyroscope, a 6-axis accelerator sensor, or other sensor capable of acquiring attitude information.
Next, at step S302, the duration of time that the handheld device is in the idle posture may be monitored. In some embodiments, the operational state of the handheld device may include the duration of time it is in the idle position. Specifically, a program may be run in the background of the handheld device, and the program monitors the duration of the idle posture of the handheld device.
Next, at step 303, it may be determined from the pose information whether the handheld device is in an idle pose. In some embodiments, when the pose information includes multidimensional data, whether the multidimensional data is in an idle pose may be determined according to a change of the multidimensional data. For example, if some or all of the dimensions in the multidimensional data do not change, it may be determined that the handheld device is in an idle pose. It should be noted that the detailed description of the idle posture confirmation process is only an exemplary description, and the present invention is not limited thereto. For example, in other embodiments, whether the handheld device is in an idle posture or the like may also be determined by whether a designated key (including a physical or virtual key) in the handheld device is touched.
Finally, in step S304, in response to determining that the handheld device is in the idle posture, and the duration of the idle posture is greater than or equal to the preset duration, controlling the screen of the handheld device to be turned off. Therefore, intelligent screen refreshing of the handheld device is achieved. It should be noted that the preset duration may be a default of the system, and may also be set by the user according to the user's own needs.
Fig. 4 schematically illustrates a method 400 for a handheld device according to yet another embodiment of the invention. It is to be understood that the method 400 is a further definition and addition to the method 200 of fig. 2. Therefore, the same applies to the following description, as previously described in connection with the details of fig. 2.
As shown in fig. 4, at step S401, pose information of the handheld device may be acquired. The handheld device is configured with an attitude sensor, and the attitude sensor may specifically include an acceleration sensor, a gyroscope, a 6-axis accelerator sensor, or another sensor capable of acquiring attitude information. In some embodiments, pose information about the handheld device collected by the pose sensor may be obtained.
Next, at step S402, it may be determined whether the handheld device is in the target pose based on the pose information. In some embodiments, it may be specifically determined whether the inclination angle of the handheld device with respect to the horizontal plane is within a preset angle range according to the posture information, and in response to the inclination angle of the handheld device with respect to the horizontal plane being within the preset angle range, it is determined that the handheld device is in the target posture. When the handheld device such as a dictionary pen needs to be lifted by a certain angle (for example, 45-90 degrees) during use, it can be determined whether the handheld device is in the target posture or not according to the inclination angle when the inclination angle of the handheld device relative to the horizontal plane is within the preset angle range according to the posture information. Upon determining that the handheld device is in the target pose, a need or intent that the handheld device be used is determined. The preset angle range can be set by the system in a unified way, and can be defined and adjusted by a user according to the requirement of the user.
Then, in step S403, in response to that the handheld device is in the target posture, monitoring whether the background of the handheld device receives a reporting event related to the target posture. In some embodiments, the operational state of the handheld device may include the generation of a reporting event associated with the target gesture, the reporting event indicating that the handheld device has a wake-up requirement. Specifically, a program may be run in the background of the handheld device, and the program monitors whether the background of the handheld device receives a reporting event related to the target gesture.
Finally, at step S404, in response to receiving the reporting event related to the target gesture, the screen of the handheld device is controlled to be lit. Therefore, the intelligent screen-lightening of the handheld equipment is realized.
Further, in some embodiments, the handheld device may also loop through the method 300 and the method 400 to achieve intelligent screen-blanking and screen-lighting.
Fig. 5 schematically shows a flow diagram of a method 500 for a handheld device according to yet another embodiment of the invention. It should be noted that the method 500 may be understood as one possible implementation of the method 400. Therefore, the same applies to the following description in relation to the details of fig. 4. In addition, the present embodiment is mainly described by taking a dictionary pen as an example of a handheld device, wherein the dictionary pen is provided with an acceleration sensor gsensor.
As shown in fig. 5, at step S501, the dictionary pen is kept in a bright screen state. Next, at step S502, it is determined whether active screen-off is performed by pressing the power key of the dictionary pen. If yes, go to step S503; otherwise, step S507 is executed.
At step S503, active screen-off (triggered by pressing the power key) is performed. And after the power key is pressed to carry out active screen off, enabling the hal-gsensor to have a wake-up function. Wherein hal-gsensor is a system command (which is part of the dictionary pen operating system) that encapsulates the gsensor's control functionality. The hal-gsensor wake-up function is specifically related to modification of the configuration file and enabling the acceleration sensor gsensor interrupt response.
The function of monitoring the common file by using an input-event-daemon (a background program which runs all the time in the system) is realized and used, and corresponding operation can be immediately executed when the state of content or authority and the like of a certain common file in the system changes. Based on this, after pressing the power key, a configuration file is modified to let the input-event-daemon listen and perform an operation. Wherein the input-event-daemon can provide the system with the functions of monitoring common files and executing corresponding operations.
Specifically, at step S504, the configuration file that the input inside the dictionary pen listens to may be modified. The configuration file monitored by the input can be adjusted according to requirements to meet the requirements of the required monitoring function, for example, whether the power key is touched or not is monitored.
At step S505, the acceleration sensor gsensor interrupt response in the dictionary pen may be enabled.
Next, at step S506, the dictionary pen is kept in the off-screen state.
Wherein, at step S507, the dictionary pen may be naturally turned off, and step S505 is performed. Specifically, the dictionary pen is dark after a certain period of time (e.g., 30 s) after being left unused, disappears after a slightly longer period of time (e.g., 60 s), and finally goes to sleep after a longer period of time (e.g., 600 s). In some embodiments, this implementation of the auto-blanking technique may be done by an input-event-daemon routine. The input-event-daemon program can run in the system all the time and can respond to some specific operations of the system in real time. Here, the input-event-daemon provides a function, that is, when the device is not operated, a timing function is entered (specifically, the input-event-daemon may monitor whether a program runs at the front end of the system to determine whether the device is idle, and when the device is determined to be idle, the timing function is triggered), and after timeout, a specified operation is executed, for example, when the time is out for 30s, 60s, and 600s, a corresponding operation of dark screen, screen-off, and sleep is executed. The durations of 30s, 60s, 600s, etc. are merely examples, and may be specifically adjusted according to requirements. In addition, it should be noted that, determining whether the equipment such as the dictionary pen is idle may also be determined by the posture information of the dictionary pen collected by the hardware gsensor, for example, part of the dimension data or all the dimension data in the posture information of the dictionary pen does not change or changes insignificantly in a period of time, and it may be determined that the dictionary pen is idle.
At step S508, the wake response function of the hardware gsensor may be enabled. Specifically, after the dictionary pen is placed, the dictionary pen automatically enters a low power consumption mode such as a screen-off mode and a sleep mode. Meanwhile, in the process, the wake-up response function of the hardware gsensor can be enabled through the hall-gsensor, and finally the system enters a low power consumption mode. At this time, the gsensor monitors the lifting action in real time. The technical implementation of this functionality defines the functionality of the gsensor primarily through the hardware abstraction layer hal. Where hal-gsensor is a system command that encapsulates the gsensor's control functionality, one of which is to cause the gsensor hardware to begin responding to a dictionary pen-up operation when the system enters a low power mode.
At step S509, the gsensor hardware driver is interrupted and reports input. Specifically, as shown in FIG. 6, after the system enters the low power mode, the next time the dictionary pen is used, the power key is no longer pressed to wake up the screen and the system, and the pen is simply lifted to a predetermined angle (e.g., 45). At this time, the gsensor hardware driver interrupts and reports input.
In step S510, after the input-event-demon receives the input event reported by the driver, the system and the screen are woken up, so that the dictionary pen screen can be lighted up for the user to use. The technical implementation of the function mainly uses the core function of input-event-daemon. The core function of the input-event-daemon can monitor an input event reported by the system bottom layer (the input event is an event transmitted to the system), and execute a specified corresponding operation.
Further, in some embodiments, a handheld device such as a dictionary pen may have problems such as false wake-up. For example, frequent wake-up due to shaking of a critical point of a predetermined angle (e.g., 45 °), quick shaking false touch wake-up of the process in a horizontal position (e.g., xy axis), false touch wake-up of the process in shaking up and down, slow response of the process to lift-up wake-up, etc.
In a frequent awakening scene caused by the shaking of the preset angle critical point, the gsensor can report and awaken frequently (for example, a dictionary pen is placed in a schoolbag and shakes frequently) as long as the awakening angle is raised, so that the screen is always in a bright screen awakening state, and the invalid power consumption is increased. The optimization of the scenario may be specifically performed by, in response to determining that the screen of the handheld device is in a lit state, stopping execution of the listening operation for the reported event associated with the target gesture. For example, after the screen is on, the wake-up report of the gsensor is closed, and only in low power consumption modes such as off-screen and sleep states, the interrupt is responded and the screen is woken up, so that unnecessary wake-up of more useless scenes can be filtered.
For the optimization of the problems of fast shaking and mistaken touch awakening when the processing is horizontally placed, mistaken touch awakening when the processing is vertically shaken, slow response of uplift awakening and the like in the processing, configuration parameters of the attitude sensor can be specifically optimized so as to acquire attitude information of the handheld device based on the optimized attitude sensor and/or filter the attitude information acquired by the optimized attitude sensor so as to retain the attitude information within a preset range. For example, in terms of hardware configuration, optimization of the hardware configuration can be achieved through collection and analysis of data and multiple adjustments of hardware experiments after configuration of relevant registers of the gsensor hardware (such as adjustment of interrupt mode, response time configuration change, and the like). In terms of software data analysis, data collected by the optimized hardware can be further filtered and analyzed, and only valid posture information (for example, posture data within a preset range) is reserved. In some implementation scenarios, the preset range in which valid pose information is located includes [ 18000LBS/g, +18000LBS/g ].
Therefore, the scheme of the invention can complete the lifting and awakening screen of the equipment, the dormancy awakening system, the recognition of the gesture of the dictionary pen, the acquisition of the motion state of the dictionary pen and the like. Therefore, the control performance of the handheld device can be optimized, and useless power consumption can be reduced. In addition, recognition of gestures and the like can assist in subsequently performing extension of more functions such as dictionary pen drop detection and the like.
Exemplary device
Having described the method of an exemplary embodiment of the present invention, next, a description will be given of a related product of the method for a handheld device of an exemplary embodiment of the present invention with reference to fig. 7.
Fig. 7 schematically shows a schematic block diagram of a handheld device 700 according to an embodiment of the present invention. As shown in fig. 7, the handheld device 700 may include a processor 701 and a memory 702. Wherein the memory 702 stores computer instructions for the handheld device which, when executed by the processor 701, cause the handheld device 700 to perform the method according to the preceding description in connection with fig. 2 to 5. For example, in some embodiments, the handheld device 700 may perform gesture information acquisition, monitoring of the operational status of the handheld device, intelligently regulating screen blanking or lighting, optimizing false touch wake-up, and the like. Based on this, the handheld device 700 can intelligently control the handheld device to turn off or turn on the screen, so that the control performance of the handheld device is optimized, and the use experience of the user is improved.
In some implementation scenarios, the handheld device 700 may include a dictionary pen, a scan and translation pen, and other handheld devices with intelligent screen-on or screen-off requirements, and the solution of the present invention does not limit the structural design that the handheld device 700 may have.
It should be noted that although in the above detailed description several means or sub-means of the device are mentioned, this division is only not mandatory. Indeed, the features and functions of two or more of the devices described above may be embodied in one device, according to embodiments of the invention. Conversely, the features and functions of one apparatus described above may be further divided into embodiments by a plurality of apparatuses.
Use of the verbs "comprise", "comprise" and their conjugations in this application does not exclude the presence of elements or steps other than those stated in this application. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects cannot be combined to advantage. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims (10)
1. A method for a handheld device, comprising:
acquiring attitude information of the handheld equipment;
monitoring the running state of the handheld equipment; and
and controlling the screen of the handheld equipment to be turned off or turned on according to the attitude information and the running state.
2. The method of claim 1, wherein listening for an operational status of the handheld device comprises:
and monitoring the duration of the handheld device in the idle posture.
3. The method of claim 2, wherein controlling the handheld device to be off-screen based on the pose information and the operational state comprises:
determining whether the handheld device is in an idle posture or not according to the posture information; and
and in response to the fact that the handheld device is in the idle posture, and the duration of the idle posture is larger than or equal to the preset duration, controlling the screen of the handheld device to be turned off.
4. The method according to any one of claims 1 to 3, wherein controlling the screen of the handheld device to light up according to the posture information and the operating state comprises:
determining whether the handheld device is in a target posture or not according to the posture information;
responding to the situation that the handheld device is in a target posture, and monitoring whether a background of the handheld device receives a reporting event related to the target posture; and
and controlling the screen of the handheld device to be lightened in response to the received reporting event related to the target posture.
5. The method of claim 4, wherein determining whether the handheld device is in a target pose based on the pose information comprises:
determining whether the inclination angle of the handheld equipment relative to the horizontal plane is within a preset angle range according to the attitude information; and
and determining that the handheld device is in the target posture in response to the fact that the inclination angle of the handheld device relative to the horizontal plane is within the preset angle range.
6. The method of claim 5, further comprising:
and stopping executing the monitoring operation of the reported event related to the target gesture in response to determining that the screen of the handheld device is in the lighting state.
7. The method of claim 5, wherein the handheld device is configured with a gesture sensor, and wherein obtaining gesture information of the handheld device comprises:
and acquiring the attitude information about the handheld equipment, which is acquired by the attitude sensor.
8. The method of claim 7, further comprising:
optimizing the configuration parameters of the attitude sensor to acquire attitude information of the handheld device based on the optimized attitude sensor; and/or
And filtering the attitude information acquired by the optimized attitude sensor to retain the attitude information within a preset range.
9. A handheld device, comprising:
a processor; and
a memory storing computer instructions for a handheld device, which when executed by the processor, cause the handheld device to perform the method of any one of claims 1-8.
10. A computer-readable storage medium containing program instructions for a handheld device, which when executed by a processor, cause the method of any one of claims 1-8 to be carried out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211329714.8A CN115695643B (en) | 2022-10-27 | 2022-10-27 | Method for handheld device and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211329714.8A CN115695643B (en) | 2022-10-27 | 2022-10-27 | Method for handheld device and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115695643A true CN115695643A (en) | 2023-02-03 |
CN115695643B CN115695643B (en) | 2024-06-18 |
Family
ID=85046049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211329714.8A Active CN115695643B (en) | 2022-10-27 | 2022-10-27 | Method for handheld device and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115695643B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109753970A (en) * | 2019-03-12 | 2019-05-14 | 深圳市友杰智新科技有限公司 | False-touch prevention method and scanning translation pen |
CN111475077A (en) * | 2020-02-04 | 2020-07-31 | 华为技术有限公司 | Display control method and electronic equipment |
WO2021048598A1 (en) * | 2019-09-13 | 2021-03-18 | Omron Corporation | In-hand pose estimation |
CN113377206A (en) * | 2021-07-05 | 2021-09-10 | 安徽淘云科技股份有限公司 | Dictionary pen lifting awakening method, device and equipment |
-
2022
- 2022-10-27 CN CN202211329714.8A patent/CN115695643B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109753970A (en) * | 2019-03-12 | 2019-05-14 | 深圳市友杰智新科技有限公司 | False-touch prevention method and scanning translation pen |
WO2021048598A1 (en) * | 2019-09-13 | 2021-03-18 | Omron Corporation | In-hand pose estimation |
CN111475077A (en) * | 2020-02-04 | 2020-07-31 | 华为技术有限公司 | Display control method and electronic equipment |
CN113377206A (en) * | 2021-07-05 | 2021-09-10 | 安徽淘云科技股份有限公司 | Dictionary pen lifting awakening method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115695643B (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2840462A1 (en) | Method and apparatus for saving battery of portable terminal | |
US10712799B2 (en) | Intelligent management for an electronic device | |
CN107885534B (en) | Screen locking method, terminal and computer readable medium | |
EP2926213B1 (en) | Gesture detection management for an electronic device | |
AU2013309693B2 (en) | An apparatus and method for waking up a processor | |
WO2021109882A1 (en) | Application starting method and apparatus, and storage medium and electronic device | |
CN108055405B (en) | Terminal and method for awakening same | |
CN103221899B (en) | Tactile input device, microprocessor system and the method for control tactile input device | |
US20150193031A1 (en) | System and method for context-based touch processing | |
DE202013012746U1 (en) | Mobile terminal device, operating method, program and storage medium | |
CN104102444B (en) | The method and intelligent terminal of gesture control alarm clock | |
WO2019228134A1 (en) | Application program pre-loading method and device, storage medium, and terminal | |
CN111290794A (en) | Screen awakening method and device, storage medium and mobile terminal | |
CN104571839A (en) | Terminal and processing method and device thereof | |
TW201413537A (en) | Touch-control method for capacitive and electromagnetic dual-mode touch screen and handheld electronic device | |
CN103455128A (en) | Display method and electronic device | |
CN108845727B (en) | Mutual capacitance type touch screen based awakening method and device | |
CN108920072A (en) | Electronic device touchscreen control method, device, electronic equipment and storage medium | |
CN107562356B (en) | Fingerprint identification positioning method and device, storage medium and electronic equipment | |
CN118314648A (en) | Door lock control method, device, equipment and computer storage medium | |
CN106886351B (en) | Display method and device of terminal time information and computer equipment | |
CN115695643B (en) | Method for handheld device and related product | |
WO2020119810A1 (en) | Electronic device control system and method | |
US9026691B2 (en) | Semi-autonomous touch I/O device controller operation under control of host | |
CN117407130A (en) | Application management and control method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |