| CPC G06F 3/0346 (2013.01) [G06F 3/017 (2013.01)] | 12 Claims |

|
1. A device, comprising:
an accelerometer, which, in operation, generates a first acceleration measurement along a first axis, a second acceleration measurement along a second axis transverse to the first axis, and a third acceleration measurement along a third axis transverse to the first axis and the second axis;
processing circuitry, which, in operation, receives the first, second, and third acceleration measurements; and
memory coupled to the processing circuitry, wherein, using the memory, the processing circuitry, in operation:
filters the second acceleration measurement with a band pass filter;
detects an orientation change of the device in a case where the second acceleration measurement is greater than a first threshold value for a first threshold amount of time;
filters the first, second, and third acceleration measurements with a low pass filter;
detects an initial lift-up gesture of the device in a case where an absolute value of the filtered first acceleration measurement is less than or equal to a second threshold value, the filtered second acceleration measurement is greater than a third threshold value, and the filtered third acceleration measurement is greater than a fourth threshold value for a second threshold amount of time;
sets a counter to a time out value in a case where a norm of the filtered first, second, and third acceleration measurements is greater than a fifth threshold value, wherein the time out value is greater than a sum of the first threshold amount of time and the second threshold amount of time;
decrements the counter by one at a determined interval in a case where the norm of the filtered first, second, and third acceleration measurements is not greater than the fifth threshold value;
detects a non-shaking state of the device in a case where the counter is equal to zero; and
outputs a lift-up gesture state in response to the orientation change, the initial lift-up gesture, and the non-shaking state being detected,
wherein the lift-up gesture state is not output if the non-shaking state of the device is not detected.
|