CN107577410A - The lighting method and device of wearable device display screen - Google Patents
The lighting method and device of wearable device display screen Download PDFInfo
- Publication number
- CN107577410A CN107577410A CN201710780181.8A CN201710780181A CN107577410A CN 107577410 A CN107577410 A CN 107577410A CN 201710780181 A CN201710780181 A CN 201710780181A CN 107577410 A CN107577410 A CN 107577410A
- Authority
- CN
- China
- Prior art keywords
- posture
- wearable device
- display screen
- acc
- screen
- 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.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention provides a kind of lighting method and device of wearable device display screen.Wherein, method includes the steps:If the current pose of wearable device is the first posture, then judge the wearable device gone out in its display screen the last time screen after whether had posture be the second posture record, wherein, first posture is plane and plane-parallel where the display screen and the display screen is upward, second posture is any posture when plane where the display screen is more than or equal to predetermined threshold value with angle formed by horizontal plane, and the predetermined threshold value is more than 0;If so, then light the display screen.The embodiment of the present invention can reduce False Rate, reduce electricity waste rate.
Description
Technical field
The present invention relates to field of intelligent wear, more particularly to a kind of lighting method and device of wearable device display screen.
Background technology
At present, occur substantial amounts of Wearable on the market, such as:Bracelet, wrist strap, intelligent watch etc..User Ke Tong
These Wearables are crossed to check time, short message etc., can also record the fortune in daily life by these Wearables
Momentum and monitoring physical condition.
When user is to check the information such as time, short message, physical condition, then need by lighting Wearable
Display screen could be realized.In the prior art, it is to judge whether to light display screen by the wearable device current pose monitored,
Such as:When monitoring that plane where the display screen of Wearable is in horizontality, display screen is just lighted.However, it is this only
Judge whether that the method for opening display screen easilys lead to judge by accident by the current pose of wearable device, such as:User's wrist
Upper to wear wrist-watch, for user when being typewrited on computor-keyboard, the light exercise of wrist can cause the display screen place on wrist-watch flat
Light exercise of the face near horizontality, that is to say, that during user typewrites, continually can monitor on wrist-watch
Plane where display screen returns to horizontality, so as to cause continually to open display screen, causes unnecessary electricity to waste.
The content of the invention
The present invention provides a kind of lighting method and device of wearable device display screen, it is therefore intended that reduces False Rate, reduces
Electricity waste rate.
Then, in one embodiment of the invention, there is provided a kind of lighting method of wearable device display screen.This method
Including:If the current pose of wearable device is the first posture, judge that the wearable device goes out screen in its display screen the last time
Whether there is the record that posture is the second posture afterwards, wherein, the first posture is plane and plane-parallel where the display screen
And the display screen is upward, the second posture is angle formed by plane where the display screen and horizontal plane more than or equal to default
Any posture during threshold value;If so, then lighting the display screen, the predetermined threshold value is more than 0.
Alternatively, whether judge the wearable device to be gone out in its display screen the last time after screen had the posture to be the second posture
Record, including:Obtain flag information;If the flag information meets preparatory condition, judge that the wearable device is being shown
There is the record that posture is the second posture after the last screen that goes out of screen.Or judge that the wearable device is nearest in its display screen
Once go out the record for whether having posture to be the second posture after shielding, including:It is nearest in the display screen to obtain the wearable device
All attitude informations once to go out after shielding;According to all attitude informations, judge the wearable device in the display screen most
Whether there is the record that posture is the second posture after the nearly screen that once goes out.
Alternatively, methods described, in addition to:Gone out in described display screen the last time after screen, obtain the wearable device
Sensing data;According to the sensing data, the flag information is updated.
Alternatively, according to the sensing data, the flag information is updated, including:According to the sensing data, sentence
Whether the fixed wearable device remains static;If the wearable device remains static, according to the sensor number
According to plane where determining the display screen and angle formed by horizontal plane;If the angle is more than or equal to the predetermined threshold value,
The flag information is then updated to the value for meeting the preparatory condition.
Alternatively, the sensing data is the acceleration point on three direction of principal axis of 3-axis acceleration sensor collection
Amount:Acc_x, acc_y, acc_z, wherein, acc_x be x-axis on component of acceleration, acc_y be y axles on component of acceleration, acc_
Z is component of acceleration in z-axis, and when the Wearable is worn in wrist, the x-axis and forearm are towards parallel, the y
Axle is vertical with forearm direction, and plane is parallel with plane where the display screen where the x-axis and the y-axis, the z-axis
Perpendicular to plane where the display screen;And according to the sensing data, plane where determining the display screen and level
Angle formed by face, including:If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |, then using equation below:Calculate the angle;If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_x |, then
Using equation below:Calculate the angle;Wherein, R is the angle.
Alternatively, the predetermined threshold value includes first threshold and Second Threshold;And if the angle is more than or equal to institute
Predetermined threshold value is stated, then the flag information is updated to the value for meeting the preparatory condition, including:If | acc_x |, | acc_y |,
| acc_z | middle maximum is | acc_y |, then by the angle compared with the first threshold, the angle is more than or waited
When the first threshold, the flag information is updated to the value for meeting the preparatory condition;If | acc_x |, | acc_y |, |
Acc_z | middle maximum is | acc_x |, then by the angle compared with the Second Threshold, the angle is more than or equal to
It is the value for meeting the preparatory condition by the update of identification information during Second Threshold.Alternatively, according to the sensor
Data, judge whether the wearable device remains static, including:According to the sensing data, calculate the wearing and set
The length value of standby vector acceleration;If the length value of the vector acceleration and the difference of gravity acceleration value are in preset range
It is interior, then judge that the wearable device remains static.
Alternatively, methods described, in addition to:It is in the current pose for detecting the wearable device if receiving sensor
The interrupt signal triggered during first posture, the then current pose for judging the wearable device are first posture;Or
According to the current attitude information of the wearable device, whether the current pose for judging the wearable device is first posture.
Alternatively, methods described, in addition to:Event is lighted in response to the display screen, is examined every prefixed time interval
Survey whether the wearable device is in first posture;If the testing result of continuous n times shows that the wearable device is not located
Exceed preset duration in the bright screen duration of first posture or the display screen, then trigger the wearable device and perform screen behaviour of going out
Make, wherein, N is more than or equal to 2.
In another embodiment of the invention, there is provided a kind of display screen lamp device, including:Determination module, if for
The current pose of wearable device is the first posture, then judge the wearable device gone out in its display screen the last time screen after whether have
The record that posture is the second posture is crossed, wherein, the first posture is plane and plane-parallel where the display screen and described aobvious
Display screen upward, the second posture be plane and horizontal plane where the display screen formed by angle when being more than or equal to predetermined threshold value
Any posture, the predetermined threshold value are more than 0;Module is lighted, for if so, then lighting the display screen.
In another embodiment of the present invention, there is provided a kind of wearable device.The wearable device includes memory and processing
Device;The memory is used to store one or more computer instruction, and one or more computer instruction is by the processing
Device can realize the step in the lighting method of above-mentioned wearable device display screen when performing.
In technical scheme provided in an embodiment of the present invention, when it is the first posture to detect wearable device current pose, also
It can go to judge whether the wearable device screen that gone out in display screen the last time is once in the second posture afterwards, if the wearable device
The screen that gone out in display screen the last time is once in the second posture afterwards, can just light display screen.It can be seen that the technical program be judge be
It is no not only to consider the posture at wearable device current time when lighting display screen, further account for wearable device current time it
History posture after the preceding and screen that gone out in display screen the last time.So, False Rate can be effectively reduced, electricity is reduced and wastes
Rate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the lighting method for the wearable device display screen that one embodiment of the invention provides;
Fig. 2 is showing for the three-dimensional system of coordinate when Watch dail plate that further embodiment of this invention provides is in the first posture thereon
It is intended to;
Fig. 3 is the schematic flow sheet of the lighting method for the wearable device display screen that further embodiment of this invention provides;
Fig. 4 is the structured flowchart of the lamp device for the wearable device display screen that one embodiment of the invention provides;
Fig. 5 is the structured flowchart for the wearable device that one embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims
It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not
Exclusion includes at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but
These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, implementation of the present invention is not being departed from
In the case of example scope, the first XXX can also be referred to as the 2nd XXX, and similarly, the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or
" when ... " or " in response to determining " or " in response to monitoring ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as
Fruit monitors (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when monitoring (statement
Condition or event) when " or " in response to monitor (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising, so that commodity or system including a series of elements not only include those key elements, but also including without clear and definite
The other element listed, or also include for this commodity or the intrinsic key element of system.In the feelings not limited more
Under condition, the key element that is limited by sentence "including a ...", it is not excluded that in the commodity including the key element or system also
Other identical element be present.
Fig. 1 is the schematic flow sheet of the lighting method for the wearable device display screen that one embodiment of the invention provides.Such as Fig. 1 institutes
Show, this method includes:
If the 101, the current pose of wearable device is the first posture, judge the wearable device in its display screen nearest one
Whether had the record that posture is the second posture after the secondary screen that goes out, wherein, the first posture be plane where the display screen with it is horizontal
Face is parallel and the display screen upward, plane where the second posture is the display screen is more than or waited with angle formed by horizontal plane
Any posture when predetermined threshold value, the predetermined threshold value are more than 0.
102nd, if so, then lighting the display screen.
In above-mentioned steps 101, the first posture is plane and plane-parallel where the display screen of the wearable device and shows
Display screen is upward.Such as:Intelligent watch is lain in horizontal table top, upward, now the posture of wrist-watch is the to intelligent watch dial plate
One posture.
Whether the current pose of the wearable device is that the first posture can be judged by one kind in following a variety of methods.
If method one, receive sensor and detecting that the current pose of the wearable device touches when being first posture
The interrupt signal of hair, the then current pose for judging the wearable device are first posture;
Method two, according to the current attitude information of the wearable device, judge the wearable device current pose whether
For first posture.
In the above method one, the sensor in wearable device can be set to be in the posture for detecting the wearable device in advance
During the first posture, triggering generation interrupt signal.Once receiving interrupt signal, then the current pose of the wearable device is can determine that
For the first posture.Such as:Sensor interrupt signal is sent to wearable device MCU (Microcontroller Unit, it is micro-
Control unit), for MCU in response to the reception event of interrupt signal, the current pose for judging the wearable device is the first posture.It is logical
Interrupt signal is crossed to detect lift wrist posture, response speed can be accelerated.
In the above method two, sensing data is obtained first, determines that the wearable device is current according to sensing data
Attitude information, whether the current pose that the wearable device is can determine that according to the attitude information is first posture.
The above-mentioned judgement wearable device gone out in display screen the last time screen after whether had posture be the second posture note
The step of record, can be realized using one kind in following methods:
Method A, obtain flag information;If the flag information meets preparatory condition, judge the wearable device aobvious
Display screen the last time go out screen after had posture be the second posture record.
Wherein, the second posture refers to that plane where the display screen of the wearable device is more than with angle formed by horizontal plane
Any posture during predetermined threshold value.Plane and horizontal plane angle are display screen institute where the display screen of the wearable device
Angle between the normal line vector of plane and the normal line vector of horizontal plane is, it is necessary to illustrate, when the wearable device is in
During the first posture, the normal line vector of plane and the angle of horizontal plane normal line vector are 0 ° where display screen.
The flag information mark goes out in display screen the last time after screen the feelings that posture is the second posture whether occurred
Condition.In the specific implementation, gone out screen event in response to described the last time, flag information is initialized as " 0 " (or " no ");Aobvious
Display screen the last time goes out after screen, once the posture for detecting the wearable device is the second posture, is then updated to flag information
" 1 " (or " yes ").
Method B, obtain the wearable device and gone out in described display screen the last time all attitude informations after screen;According to institute
All attitude informations are stated, whether judge the wearable device to be gone out in described display screen the last time after screen had the posture to be the second appearance
The record of state.
In method B, all the sensors after shielding that the wearable device goes out in described display screen the last time may be selected
Data are recorded to form record data, so, when the posture for determining the wearable device is in the first posture, MCU
Sensing data is obtained from the record data of sensor, and the wearable device is obtained in the display according to sensing data
All attitude informations after the last screen that goes out of screen.It can be seen that MCU is to read sensing data with a relatively low read rate, drop
Low-power consumption.
In above-mentioned steps 102, there is the posture to be the second posture after screen if the wearable device goes out in display screen the last time
Record, then light the display screen.
In technical scheme provided in an embodiment of the present invention, when it is the first posture to detect wearable device current pose, also
It can go to judge whether the wearable device screen that gone out in display screen the last time is once in the second posture afterwards, if the wearable device
The screen that gone out in display screen the last time is once in the second posture afterwards, can just light display screen.It can be seen that the technical program be judge be
It is no not only to consider the posture at wearable device current time when lighting display screen, further account for wearable device current time it
History posture after the preceding and screen that gone out in display screen the last time.So, False Rate can be effectively reduced, electricity is reduced and wastes
Rate.
It should be noted that in the technical program, do not require that sensor has higher sample rate, it is not required that frequently
Sensing data is read, so as to save power consumption.
In above-described embodiment or following each embodiments, the renewal of the flag information specifically can come in fact with the following method
It is existing:Gone out in described display screen the last time after screen, obtain the sensing data of the wearable device;According to the sensor number
According to updating the flag information.
In actual applications, it can go out after screen, be obtained every prefixed time interval described in described display screen the last time
The sensing data of wearable device, the attitude information of wearable device can obtain by the processing of the sensing data to getting,
Whether the posture that the wearable device can be determined according to attitude information is the second posture, if the second posture then by the mark
Will information updating is to meet the value of preparatory condition, such as:“1”.When the flag information is updated to the value for meeting preparatory condition,
Then stop described display screen the last time go out screen after flag information renewal operation.That is, updated by flag information
After meeting the value of preparatory condition, MCU just without go again obtain sensing data, more without again to sensing data at
Reason is shielded until going out next time when, MCU power consumption is effectively reduced.
It is described according to the sensing data in a kind of achievable scheme, the flag information is updated, including:Root
According to the sensing data, judge whether the wearable device remains static;If the wearable device remains static,
Then according to the sensing data, plane where determining the display screen and angle formed by horizontal plane;If the angle is more than
Or equal to the predetermined threshold value, then the flag information is updated to the value for meeting the preparatory condition.
In the present embodiment, the sensor in the wearable device is acceleration transducer, by acceleration transducer come
Plane where determining the display screen of wearable device formed by horizontal plane with during angle, then requiring that wearable device remains static.
In inactive state, the resultant acceleration for three components of acceleration that acceleration transducer detects is acceleration of gravity, so,
Plane where three components of acceleration that can be detected according to sensor determine the display screen of wearable device and horizontal plane institute
Into angle.Due to that can give tacit consent to a three-dimensional system of coordinate under normal circumstances, on acceleration transducer, acceleration transducer detects
Three components of acceleration correspond respectively to three axles of the three-dimensional system of coordinate.Because the three-dimensional system of coordinate is built upon acceleration
On sensor, therefore, three axles of the three-dimensional system of coordinate can rotate with the rotation of acceleration transducer.Acceleration transducer
On three-dimensional system of coordinate also be Wearable on three-dimensional system of coordinate.
Can record in advance wearable device be in the first posture and it is static when, acceleration of gravity decomposes the three-dimensional system of coordinate
Three axles on and the initial value that detects of accelerated degree sensor:acc_x0、acc_y0And acc_z0, wherein, acc_x0For x
Component of acceleration, acc_y on axle0For component of acceleration, acc_z in y-axis0For component of acceleration in z-axis.
Gone out in the last time after screen, when wearable device remains static, acceleration of gravity can decompose the three-dimensional
On three axles of coordinate system and accelerated degree sensor detects:Acc_x, acc_y and acc_z, wherein, acc_x is to add in x-axis
Velocity component, acc_y are component of acceleration in y-axis, and acc_z is component of acceleration on z axles.
So, according to acc_x, acc_y, acc_z, acc_x0、acc_y0、acc_z0And antitrigonometric function can determine that
Plane where going out the display screen when wearable device is in the inactive state and angle formed by horizontal plane.If the angle
More than or equal to the predetermined threshold value, then the flag information is updated to the value for meeting the preparatory condition, such as " 1 ".
In a kind of achievable scheme, the sensing data is three direction of principal axis of 3-axis acceleration sensor collection
On component of acceleration:Acc_x, acc_y, acc_z, wherein, acc_x is component of acceleration in x-axis, and acc_y is to accelerate in y-axis
Component is spent, acc_z is the component of acceleration in z-axis, when the Wearable is worn in wrist, the x-axis and forearm
Towards parallel, the y-axis and the forearm are towards vertical, and the x-axis is with plane where the y-axis with being put down where the display screen
Face is parallel, and the z-axis is perpendicular to plane where the display screen;And according to the sensing data, determine the display
Plane where screen and angle formed by horizontal plane, including:If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |,
Then use equation below:Calculate the angle;If | acc_x |, | acc_y |, | acc_z | in most
Big value is | acc_x |, then using equation below:Calculate the angle;Wherein,
R is the angle.
Such as:Assuming that when the posture of wrist-watch is the first posture, i.e., plane and plane-parallel where the dial plate of wrist-watch, and table
Upward, the three-dimensional system of coordinate (namely three-dimensional system of coordinate on the acceleration transducer in Watch dail plate) on Watch dail plate is as schemed for disk
Shown in 2, the direction of x-axis and the forearm of arm are towards parallel, and the directions of y axles and forearm are towards vertical, and xOy faces are parallel to level
In face, z-axis perpendicular to it is horizontal downwards.Acc_x is component of acceleration on x-axis direction, and acc_y is acceleration point on y-axis direction
Amount, acc_z are component of acceleration on z direction of principal axis.If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |, then
The roll angle roll is calculated using formula (1), the absolute value of the roll angle roll is the angle R;If | acc_x
|, | acc_y |, | acc_z | middle maximum is | acc_x |, then the angle of pitch pitch is calculated using formula (2), it is described to bow
The absolute value at elevation angle pitch angles is the angle R;If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_z |,
Angle calcu-lation need not then be carried out.Because in actual applications, generally, the predetermined threshold value can be set greater than 45 ° of value, when most
Big value is | acc_z | when, then the angle of plane and horizontal plane where illustrating display screen is certain less than 45 °, it is therefore not necessary to be pressed from both sides
Angle calculates.
In actual applications, can for roll angle roll and angle of pitch pitch absolute value set respectively first threshold and
Second Threshold.Specifically, the predetermined threshold value includes first threshold and Second Threshold;And if the angle is more than or equal to institute
Predetermined threshold value is stated, then the flag information is updated to the value for meeting the preparatory condition, including:If | acc_x |, | acc_y |,
| acc_z | middle maximum is | acc_y |, then by the angle compared with the first threshold, the angle is more than or waited
When the first threshold, the flag information is updated to the value for meeting the preparatory condition;If | acc_x |, | acc_y |, |
Acc_z | middle maximum is | acc_x |, then by the angle compared with the Second Threshold, the angle is more than or waited
It is the value for meeting the preparatory condition by the update of identification information when Second Threshold.
In view of wearable device it is difficult to be completely in inactive state, therefore, in three acceleration detected according to sensor
When the value and little gravity acceleration value g deviations of the resultant acceleration that degree component is calculated, it can also assert that wearable device is in quiet
Only state.Specifically, according to the sensing data, judge whether the wearable device remains static, including:According to institute
Sensing data is stated, calculates the length value of the wearable device vector acceleration;If the length value of the vector acceleration with again
The difference of power acceleration magnitude within a preset range, then judges that the wearable device remains static.Wherein, the acceleration to
The length value of amount refers to the size of acceleration, gravity acceleration value g.
The calculation formula of wearable device acceleration is:Wherein, acc_x,
Acc_y and acc_z is three components of acceleration that acceleration transducer detects, acc_x is component of acceleration in x-axis,
Acc_y is component of acceleration in y-axis, and acc_z is component of acceleration in z-axis.
Such as:The preset range can be set as-g/3~g/2.It should be noted that the preset range can be according to reality
Permissible accuracy is set in situation, and the present invention is not especially limited.
It should be noted that when if acceleration transducer has angle detecting function in itself, it is possible to use acceleration sensing
Whether the detection function that device has in itself carrys out detection device in perpendicular attitude (posture when i.e. above-mentioned deflection angle is 90 °).
This specific embodiment it will be described in detail with weared on wrist wrist-watch below.
Assuming that when the posture of wrist-watch is the first posture, i.e., plane and plane-parallel where the dial plate of wrist-watch, and dial plate court
On, three-dimensional system of coordinate (namely three-dimensional system of coordinate on the acceleration transducer in Watch dail plate) such as Fig. 2 institutes on Watch dail plate
Show, the direction of x-axis and the forearm of arm are towards parallel, and the direction of y-axis and forearm are towards vertical, and xOy faces are in horizontal plane, z
Axle perpendicular to it is horizontal downwards.Now, the positive direction of the display screen in dial plate is parallel with z-axis.If established on wearable device
Three-dimensional system of coordinate can then be converted to the three-dimensional system of coordinate in Fig. 2 with Fig. 2 differences by coordinate transform.The three-dimensional system of coordinate can be with
The rotation of Watch dail plate and rotate.Acceleration transducer can recorded the acceleration on three axles of the three-dimensional system of coordinate in real time
Component value:Acc_x, acc_y and acc_z.
It should be noted that when the posture of wrist-watch is the first posture, the acceleration component values of acceleration transducer record
For:Acc_x=0, acc_y=0 and acc_z=g.
Judging whether Watch dail plate remains static can be judged by calculating the length value of vector acceleration:If accelerate
The length value of vector is spent between 2g/3~1.5g, i.e.,:
Then judge that Watch dail plate remains static.In the state of totally stationary, the result of calculation of above formula center section
For g.
When plane is with angle formed by horizontal plane where display screen when calculating wrist-watch and being in above-mentioned inactive state, then need
Go to calculate corresponding posture during from the first attitudes vibration to above-mentioned inactive state, the angle that dial plate rotates rotating around x-axis and y-axis
The angle rotated around x-axis, can be defined as roll angles (i.e. roll angle), the angle rotated around y-axis is defined as into pitch angles by degree
(angle of pitch).Judge situation that the posture of gesture bright screen do not consider to rotate around z-axis (this be due to dial plate when being rotated around z-axis, its
Plane where dial plate is parallel all the time with horizontal plane, i.e., is in above-mentioned first posture all the time).The calculating at pitch angles and roll angles is public
Formula is above-mentioned formula (1) and (2).
In actual applications, due to being possible to that negative occurs in acc_x, acc_y and acc_z, therefore, according to above-mentioned public affairs
The roll angles and pitch angles that formula (1) and (2) calculate are also possible to that negative occurs.The absolute value that roll angles can be directed to sets the
One threshold value:70 °, Second Threshold is set for the absolute value at pitch angles:60 °, i.e. first threshold can be more than Second Threshold, obtain
Acceleration component values acc_x, acc_y and acc_z, if | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |,
Roll angles then are calculated according to formula (1), and judge whether the absolute value at roll angles is more than 70 °, if so, then by flag information more
New is the value for meeting preparatory condition, such as " 1 ".If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_x |, then press
Pitch angles are calculated according to formula (2), and judge whether the absolute value at pitch angles is more than 60 °, if so, then updating flag information
To meet the value of preparatory condition, such as " 1 ".
Optionally, can also roll angles be directed to and pitch angles sets negative predetermined threshold value and positive predetermined threshold value respectively, work as meter
It is negative that calculation, which obtains roll angles (or pitch angles), then by the roll angles (or pitch angles) compared with negative predetermined threshold value, if institute
State roll angles (or pitch angles) and be less than negative predetermined threshold value, then flag information is updated to the value for meeting preparatory condition;When calculating
The roll angles (or pitch angles) arrived are positive number, then by the roll angles (or pitch angles) compared with positive predetermined threshold value, if described
Roll angles (or pitch angles) are more than positive predetermined threshold value, then flag information is updated to the value for meeting preparatory condition.Such as:It is negative pre-
If threshold value is -60 °, positive predetermined threshold value is 60 °.
Fig. 2 is the schematic flow sheet of the lighting method for the wearable device display screen that further embodiment of this invention provides.Such as Fig. 2
Shown, this method includes:
If the 201, the current pose of wearable device is the first posture, judge the wearable device in its display screen nearest one
Whether had the record that posture is the second posture after the secondary screen that goes out, wherein, the first posture be plane where the display screen with it is horizontal
Face is parallel and the display screen upward, plane where the second posture is the display screen is more than or waited with angle formed by horizontal plane
Any posture when predetermined threshold value, the predetermined threshold value are more than 0.
202nd, if so, then lighting the display screen.
203rd, event is lighted in response to the display screen, detects whether the wearable device is located every prefixed time interval
In first posture.
The 204th, if the testing result of continuous n times shows that the wearable device is not in first posture or the display
The bright screen duration of screen exceedes preset duration, then triggers the wearable device and perform screen operation of going out, wherein, N is more than or equal to 2.
Above-mentioned steps 201,202 can refer to above-described embodiment corresponding contents, will not be repeated here.
In above-mentioned steps 203, after display screen is lighted, it can go to obtain sensing data every prefixed time interval to sentence
Whether disconnected wearable device is current also in first posture.
In above-mentioned steps 204, if continuous n times detect that wearable device is not in the first posture or in wearable device
When bright screen duration exceedes preset duration, then can trigger wearable device can set come the screen that goes out, N value according to actual conditions, this hair
It is bright that this is not especially limited.
Such as:N is set to 3 times, and prefixed time interval is set to 0.5s, and preset duration is set to 5s, then display screen is most short can be bright
1.5s, it is most long also only can bright 5s.
In actual applications, usual acceleration transducer detects the posture scope very little of horizontality, if detected
The non-horizontal screen that goes out, the screen that goes out is easy to after causing bright screen., can be by the above method to non-aqueous to avoid such case from occurring
Level state, which disappear, trembles processing, after confirming that product is in non-standard state by continuous 3 sampled values of intervals
Go out screen again.And by setting preset duration also can effectively avoid display screen from being in electricity wave caused by bright screen state for a long time
Take.
Fig. 4 is the structured flowchart for the display screen lamp device that one embodiment of the invention provides.As shown in figure 4, the device bag
Include:First determination module 401, light module 402.Wherein,
First determination module 401, if the current pose for wearable device is the first posture, judge the wearable device
Go out the record for whether having posture to be the second posture after shielding in its display screen the last time, wherein, the first posture is the display
Plane and plane-parallel where screen and the display screen is upward, the second posture is plane and horizontal plane institute where the display screen
Into angle be more than or equal to predetermined threshold value when any posture, the predetermined threshold value is more than 0;Module 302 is lighted, if for
Have, then light the display screen.
Alternatively, the first determination module 401, it may include:First acquisition unit and the first identifying unit.Wherein, first obtain
Unit is taken, for obtaining flag information;First identifying unit, if meeting preparatory condition for the flag information, judge institute
State wearable device gone out in described display screen the last time screen after had posture be the second posture record.Or first judge mould
Block 401, it may include:Second acquisition unit and the second identifying unit.Wherein, second acquisition unit, set for obtaining the wearing
All attitude informations after the standby screen that gone out in described display screen the last time;Second identifying unit, for according to all postures
Information, judge the wearable device gone out in described display screen the last time screen after whether had posture be the second posture record.
Alternatively, described device, in addition to acquisition module and update module.Wherein, acquisition module, in the display
Screen the last time goes out after screen, obtains the sensing data of the wearable device;Update module, for according to the sensor number
According to updating the flag information.
Alternatively, the update module, including the 3rd identifying unit, determining unit and updating block.Wherein, the 3rd sentences
Order member, for according to the sensing data, judging whether the wearable device remains static;Determining unit, it is used for
If the wearable device remains static, according to the sensing data, plane where determining the display screen and level
Angle formed by face;Updating block, if being more than or equal to the predetermined threshold value for the angle, by the flag information more
New is the value for meeting the preparatory condition.
Alternatively, the sensing data is the acceleration point on three direction of principal axis of 3-axis acceleration sensor collection
Amount:Acc_x, acc_y, acc_z, wherein, acc_x be x-axis on component of acceleration, acc_y be y axles on component of acceleration, acc_
Z is the component of acceleration in z-axis, and x-axis is parallel with plane where the display screen with plane where y-axis, and the z-axis is perpendicular to institute
Plane where stating display screen;And the determining unit is specifically used for:If | acc_x |, | acc_y |, | acc_z | middle maximum is
| acc_y |, then using equation below:Calculate the angle;If | acc_x |, | acc_y |, | acc_
Z | middle maximum is | acc_x |, then using equation below:Calculate the folder
Angle;Wherein, R is the angle.
Alternatively, the predetermined threshold value includes first threshold and Second Threshold;And the updating block is specifically used for:If
| acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |, then by the angle compared with the first threshold,
When the angle is more than or equal to the first threshold, the flag information is updated to the value for meeting the preparatory condition;If |
Acc_x |, | acc_y |, | acc_z | middle maximum is | acc_x |, then by the angle compared with the Second Threshold, institute
It is the value for meeting the preparatory condition by the update of identification information when stating angle and being more than or equal to the Second Threshold.It is optional
Ground, the 3rd identifying unit, including:Computation subunit and judgement subelement.Wherein, computation subunit, for according to
Sensing data, calculate the length value of the wearable device vector acceleration;Subelement is judged, if for the vector acceleration
Length value and gravitational acceleration vector length value difference within a preset range, then judge the wearable device be in it is static
State.
Alternatively, described device, in addition to the second determination module.Second determination module is specifically used for:If receive
The interrupt signal that sensor triggers when detecting that the current pose of the wearable device is first posture, then judge described in
The current pose of wearable device is first posture;Or according to the current attitude information of the wearable device, described in judgement
Whether the current pose of wearable device is first posture.
Alternatively, described device, in addition to detection module and trigger module.Wherein, detection module, in response to described
Display screen lights event, detects whether the wearable device is in first posture every prefixed time interval;Trigger mode
Block, if the testing result for continuous n times shows that the wearable device is not in first posture or the display screen
Bright screen duration exceedes preset duration, then triggers the wearable device and perform screen operation of going out.
In technical scheme provided in an embodiment of the present invention, when it is the first posture to detect wearable device current pose, also
It can go to judge whether the wearable device screen that gone out in display screen the last time is once in the second posture afterwards, if the wearable device
The screen that gone out in display screen the last time is once in the second posture afterwards, can just light display screen.It can be seen that the technical program be judge be
It is no not only to consider the posture at wearable device current time when lighting display screen, further account for wearable device current time it
History posture after the preceding and screen that gone out in display screen the last time.So, False Rate can be effectively reduced, electricity is reduced and wastes
Rate.
Need exist for explanation be:The display screen lamp device that above-described embodiment provides can realize above-mentioned each method embodiment
Described in technical scheme, above-mentioned each module or unit specific implementation principle can be found in it is corresponding in above-mentioned each method embodiment
Content, here is omitted.
One embodiment of the invention also provides a kind of wearable device.As shown in figure 5, the wearable device includes the He of processor 501
Memory 502, the memory 502, which is used to store, supports processor 501 to perform the wearable device that the various embodiments described above provide and show
The program of the lighting method of display screen, the processor 501 are configurable for performing the program stored in the memory 502.
Described program includes one or more computer instruction, wherein, described in the one or more computer instruction confession
Processor 501, which calls, to be performed.One or more computer instruction can realize that above-mentioned wearing is set when being performed by processor 501
Step in the lighting method of standby display screen.
Memory 502 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the side of lighting of the wearable device display screen in the embodiment of the present invention
Programmed instruction/module corresponding to method (for example, the first determination module 401 shown in accompanying drawing 4 and light module 402).Processor
501 are stored in non-volatile software program, instruction and module in memory 502 by operation, so as to perform wearable device
Various function application and data processing, that is, realize the lighting method of the wearable device display screen of above method embodiment.
The processor 501 is used for:If the current pose of wearable device is the first posture, judge that the wearable device exists
Display screen the last time go out screen after whether had posture be the second posture record, wherein, the first posture is the display screen institute
In plane and plane-parallel and the display screen upward, the second posture be plane where the display screen with horizontal plane formed by
Angle is more than or equal to any posture during predetermined threshold value, and the predetermined threshold value is more than 0;If so, then light the display screen.
Processor 501 can perform the method that the embodiment of the present invention is provided, possess the corresponding functional module of execution method and
Beneficial effect, not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
A kind of computer-readable recording medium for being stored with computer program that the embodiment of the present invention also provides, the calculating
Machine program can realize the step in the lighting method for the wearable device display screen that the various embodiments described above provide when being computer-executed
Suddenly.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (11)
- A kind of 1. lighting method of wearable device display screen, it is characterised in that including:If the current pose of wearable device is the first posture, judge that the wearable device is gone out in its display screen the last time after screen Whether had the record that posture is the second posture, wherein, the first posture be plane and plane-parallel where the display screen and Upward, the second posture is that plane where the display screen is more than or equal to default threshold with angle formed by horizontal plane to the display screen Any posture during value, the predetermined threshold value are more than 0;If so, then light the display screen.
- 2. according to the method for claim 1, it is characterised in that judge that the wearable device goes out in its display screen the last time Whether record that posture be second posture was had after screen, including:Obtain flag information;If the flag information meets preparatory condition, judge the wearable device gone out in described display screen the last time screen after have Cross the record that posture is the second posture;Or judge the wearable device gone out in its display screen the last time screen after whether had posture be the second posture note Record, including:Obtain the wearable device gone out in described display screen the last time screen after all attitude informations;Whether according to all attitude informations, judging the wearable device to be gone out in described display screen the last time after screen had appearance State is the record of the second posture.
- 3. according to the method for claim 2, it is characterised in that also include:Gone out in described display screen the last time after screen, obtain the sensing data of the wearable device;According to the sensing data, the flag information is updated.
- 4. according to the method for claim 3, it is characterised in that according to the sensing data, the flag information is updated, Including:According to the sensing data, judge whether the wearable device remains static;If the wearable device remains static, according to the sensing data, plane where determining the display screen with Angle formed by horizontal plane;If the angle is more than or equal to the predetermined threshold value, the flag information is updated to meet the preparatory condition Value.
- 5. according to the method for claim 4, it is characterised in that the sensing data gathers for 3-axis acceleration sensor Three direction of principal axis on component of acceleration:Acc_x, acc_y, acc_z, wherein, acc_x be x-axis on component of acceleration, acc_ Y is component of acceleration in y-axis, and acc_z is component of acceleration in z-axis, described when the Wearable is worn in wrist X-axis and forearm are towards parallel, and towards vertical, the x-axis shows with plane where the y-axis with described for the y-axis and the forearm Plane where display screen is parallel, and the z-axis is perpendicular to plane where the display screen;AndAccording to the sensing data, plane where determining the display screen and angle formed by horizontal plane, including:If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |, then using equation below:Calculate The angle;If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_x |, then using equation below: Calculate the angle;Wherein, R is the angle.
- 6. according to the method for claim 5, it is characterised in that the predetermined threshold value includes first threshold and Second Threshold; AndIf the angle is more than or equal to the predetermined threshold value, the flag information is updated to meet the preparatory condition Value, including:If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_y |, then the angle and the first threshold are carried out Compare, when the angle is more than or equal to the first threshold, the flag information is updated to meet the preparatory condition Value;If | acc_x |, | acc_y |, | acc_z | middle maximum is | acc_x |, then the angle and the Second Threshold are carried out Compare, be to meet the preparatory condition by the update of identification information when angle is more than or equal to the Second Threshold Value.
- 7. according to the method for claim 4, it is characterised in that according to the sensing data, judge the wearable device Whether remain static, including:According to the sensing data, the length value of the vector acceleration of the wearable device is calculated;If the length value of the vector acceleration and the difference of gravity acceleration value are within a preset range, judge that the wearing is set It is standby to remain static.
- 8. according to the method any one of claim 1-7, it is characterised in that also include:If receive the interruption letter that sensor triggers when detecting that the current pose of the wearable device is first posture Number, then the current pose for judging the wearable device is first posture;Or according to the current attitude information of the wearable device, whether the current pose for judging the wearable device is described First posture.
- 9. according to the method any one of claim 1-7, it is characterised in that also include:Event is lighted in response to the display screen, whether the wearable device is detected in described the every prefixed time interval One posture;If the testing result of continuous n times shows that the wearable device is not in the bright screen of first posture or the display screen Duration exceedes preset duration, then triggers the wearable device and perform screen operation of going out, wherein, N is more than or equal to 2.
- A kind of 10. wearable device, it is characterised in that including:First determination module, if the current pose for wearable device is the first posture, judge that the wearable device is being shown Whether there is the record that posture is the second posture after the last screen that goes out of screen, wherein, the first posture is put down where the display screen Face and plane-parallel and the display screen is upward, the second posture is plane where the display screen and angle formed by horizontal plane Any posture during more than or equal to predetermined threshold value, the predetermined threshold value are more than 0;Module is lighted, for if so, then lighting the display screen.
- 11. a kind of wearable device, it is characterised in that including memory and processor;The memory is used to store one or more Bar computer instruction, one or more computer instruction can be realized any one of above-mentioned 1-9 during the computing device Step in the lighting method of the wearable device display screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710780181.8A CN107577410A (en) | 2017-09-01 | 2017-09-01 | The lighting method and device of wearable device display screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710780181.8A CN107577410A (en) | 2017-09-01 | 2017-09-01 | The lighting method and device of wearable device display screen |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107577410A true CN107577410A (en) | 2018-01-12 |
Family
ID=61030609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710780181.8A Pending CN107577410A (en) | 2017-09-01 | 2017-09-01 | The lighting method and device of wearable device display screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107577410A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427578A (en) * | 2018-02-08 | 2018-08-21 | 上海惠芽信息技术有限公司 | A kind of screen control method, computer readable storage medium and a kind of intelligent terminal |
CN110888620A (en) * | 2019-11-29 | 2020-03-17 | 歌尔科技有限公司 | Head-mounted equipment, wearing detection method and device thereof, and medium |
CN112346554A (en) * | 2020-09-22 | 2021-02-09 | 上海贝瑞电子科技有限公司 | Method for controlling oximeter based on human body posture recognition technology |
CN112698730A (en) * | 2021-01-20 | 2021-04-23 | 四川写正智能科技有限公司 | Intelligent watch reading and writing posture recognition method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793075A (en) * | 2014-02-14 | 2014-05-14 | 北京君正集成电路股份有限公司 | Recognition method applied to intelligent wrist watch and intelligent wrist watch |
CN104798029A (en) * | 2014-05-22 | 2015-07-22 | 华为技术有限公司 | Method and device for displaying time |
CN106292871A (en) * | 2016-08-01 | 2017-01-04 | 广东乐源数字技术有限公司 | A kind of Intelligent bracelet realizing turning wrist bright screen |
CN106293072A (en) * | 2016-08-01 | 2017-01-04 | 广东乐源数字技术有限公司 | A kind of Intelligent bracelet turns the method for wrist bright screen |
CN106534545A (en) * | 2016-11-15 | 2017-03-22 | 广东小天才科技有限公司 | Screen control method and apparatus, and mobile terminal |
CN106557021A (en) * | 2016-10-14 | 2017-04-05 | 杭州联络互动信息科技股份有限公司 | A kind of screen based on intelligent watch lights method and apparatus, intelligent watch |
CN106933425A (en) * | 2017-04-26 | 2017-07-07 | 广东小天才科技有限公司 | A kind of method and apparatus for preventing false touch |
-
2017
- 2017-09-01 CN CN201710780181.8A patent/CN107577410A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793075A (en) * | 2014-02-14 | 2014-05-14 | 北京君正集成电路股份有限公司 | Recognition method applied to intelligent wrist watch and intelligent wrist watch |
CN104798029A (en) * | 2014-05-22 | 2015-07-22 | 华为技术有限公司 | Method and device for displaying time |
CN106292871A (en) * | 2016-08-01 | 2017-01-04 | 广东乐源数字技术有限公司 | A kind of Intelligent bracelet realizing turning wrist bright screen |
CN106293072A (en) * | 2016-08-01 | 2017-01-04 | 广东乐源数字技术有限公司 | A kind of Intelligent bracelet turns the method for wrist bright screen |
CN106557021A (en) * | 2016-10-14 | 2017-04-05 | 杭州联络互动信息科技股份有限公司 | A kind of screen based on intelligent watch lights method and apparatus, intelligent watch |
CN106534545A (en) * | 2016-11-15 | 2017-03-22 | 广东小天才科技有限公司 | Screen control method and apparatus, and mobile terminal |
CN106933425A (en) * | 2017-04-26 | 2017-07-07 | 广东小天才科技有限公司 | A kind of method and apparatus for preventing false touch |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427578A (en) * | 2018-02-08 | 2018-08-21 | 上海惠芽信息技术有限公司 | A kind of screen control method, computer readable storage medium and a kind of intelligent terminal |
CN108427578B (en) * | 2018-02-08 | 2021-06-04 | 上海惠芽信息技术有限公司 | Screen control method, computer readable storage medium and intelligent terminal |
CN110888620A (en) * | 2019-11-29 | 2020-03-17 | 歌尔科技有限公司 | Head-mounted equipment, wearing detection method and device thereof, and medium |
US11832047B2 (en) | 2019-11-29 | 2023-11-28 | Goertek Inc. | Head-mounted device, wearing detection method and apparatus therefor, and medium |
CN112346554A (en) * | 2020-09-22 | 2021-02-09 | 上海贝瑞电子科技有限公司 | Method for controlling oximeter based on human body posture recognition technology |
CN112698730A (en) * | 2021-01-20 | 2021-04-23 | 四川写正智能科技有限公司 | Intelligent watch reading and writing posture recognition method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107577410A (en) | The lighting method and device of wearable device display screen | |
JP6235681B2 (en) | Method, storage medium and system for mobile device state adjustment based on user intent and / or identification information | |
Cao et al. | Distributed analytics and edge intelligence: Pervasive health monitoring at the era of fog computing | |
US9804679B2 (en) | Touchless user interface navigation using gestures | |
EP2943855B1 (en) | Use of emg for gesture recognition on surfaces | |
US9966047B2 (en) | Time display method and apparatus | |
WO2020187170A1 (en) | Method for protecting movable part of electronic device and electronic device | |
CN104503565B (en) | Power consumption management method, device and the mobile device of mobile device | |
CN106462239A (en) | Finger tracking | |
EP2816450B1 (en) | Information processing apparatus, and information processing method | |
US20160170490A1 (en) | Gesture based power management system and method | |
CN105559751B (en) | Monitor the method, apparatus and wearable device of micro- active state | |
JP6083799B2 (en) | Mobile device location determination method, mobile device, mobile device location determination system, program, and information storage medium | |
CN106441350A (en) | Step counting method and terminal | |
Yang et al. | Sherlock: Micro-environment sensing for smartphones | |
WO2023185970A1 (en) | Exercise state recognition method and apparatus, and electronic device and storage medium | |
CN103793527B (en) | A kind of sign language interpretation method and system based on gesture tracking | |
CN111265841B (en) | Swimming lap number determining method, device, equipment and storage medium | |
CN110072010A (en) | One kind falling detection method and terminal device | |
CN204931656U (en) | A kind of wearable intelligent equipment | |
CN106960542A (en) | A kind of low-power consumption falling detection device based on interruption driving | |
CN107195163A (en) | A kind of alarm method, device and wearable device | |
CN207301977U (en) | A kind of virtual reality glove | |
Wu et al. | Fall detection monitoring system based on mems sensor | |
CN112386249B (en) | Fall detection method and device, equipment and 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 |