Electronic device, control method for electronic device, and storage medium
An electronic device that is used by being worn on a body of a user includes a vibrator, a sensor and a processor. The vibrator vibrates the electronic device. The sensor detects a physical quantity corresponding to an intensity of the vibration of the electronic device. The processor determines a wear state of the electronic device on the body of the user based on the detected physical quantity.
1 . An electronic device that is used by being worn on a body of a user, comprising:
a vibrator configured to vibrate the electronic device,
a sensor configured to detect a physical quantity corresponding to an intensity of the vibration of the electronic device; and
a processor configured to determine a wear state of the electronic device on the body of the user based on the detected physical quantity, wherein the processor determines that the electronic device is worn when the detected physical quantity is less than a first threshold value, and determines that the electronic device is not worn when the detected physical quantity is equal to or greater than the first threshold value.
2 . The electronic device according to claim 1 ,
wherein the sensor is configured to detect the physical quantity that becomes larger as the intensity of the vibration of the electronic device increases, and
wherein the processor is configured to cause the vibrator to vibrate and determine the wear state based on a determination value corresponding to a magnitude of the physical quantity detected by the sensor in a vibration period in which the vibrator is vibrating.
3 . The electronic device according to claim 2 ,
wherein the sensor includes an accelerometer configured to detect an acceleration of the electronic device, and
wherein the physical quantity is a fluctuation range of the acceleration, an amplitude of the acceleration, or an absolute value of at least one of a local maximum and a local minimum of the acceleration.
4 . The electronic device according to claim 2 , wherein the processor is configured to determine that the electronic device is in a normal wear state in which the electronic device is being worn normally on the body of the user in response to the determination value being less than a second threshold value.
5 . The electronic device according to claim 1 , wherein in response to the determination value being less than the first threshold value and equal to or more than a second threshold value that is smaller than the first threshold value, the processor is configured to determine that the electronic device is neither in a normal wear state in which the electronic device is being worn normally on the body of the user nor in a no-wear state in which the electronic device is not being worn on the body of the user.
6 . The electronic device according to claim 1 , further comprising a notifier configured to perform notification to the user,
wherein the processor is configured to determine that the electronic device is not being worn on the body of the user and cause the notifier not to act in response to the determination value in the vibration period being equal to or more than the first threshold value.
7 . The electronic device according to claim 1 , further comprising a biometric data measurer configured to measure biometric data on the user,
wherein the processor is configured to determine that the electronic device is not being worn on the body of the user and cause the biometric data measurer not to act in response to the determination value in the vibration period being equal to or more than the first threshold value.
8 . The electronic device according to claim 1 ,
wherein the vibration period includes a plurality of vibration periods, and
wherein the processor is configured to:
perform vibration control to cause the vibrator to vibrate and vibration stop control to cause the vibrator to stop vibrating; and
in response to the determination value in a vibration period among the plurality of vibration periods being equal to or more than the first threshold value, determine that the electronic device is not being worn on the body of the user and reduce an intensity of the vibration of the vibrator for the vibration control next time.
9 . The electronic device according to claim 8 , wherein in determining the wear state that the processor performs after reducing the intensity of the vibration of the vibrator, the processor is configured to determine whether the electronic device is being worn on the body of the user based on the first threshold value that has been corrected according to a degree of the reduction of the intensity of the vibration of the vibrator.
10 . The electronic device according to claim 1 ,
wherein the vibration period includes a plurality of vibration periods, and
wherein in response to the determination value in a vibration period among the plurality of vibration periods being equal to or more than the first threshold value, the processor is configured to determine that the electronic device is not being worn on the body of the user and reduces an intensity of the vibration of the vibrator for notification to the user.
11 . The electronic device according to claim 1 , wherein the processor is configured to:
cause the vibrator to vibrate to perform notification to the user; and
determine the wear state based on the physical quantity detected by the sensor in response to the vibration of the vibrator for the notification.
12 . A control method for an electronic device, comprising:
detecting, by a sensor, a physical quantity corresponding to an intensity of vibration of the electronic device; and
determining, by a processer, a wear state of the electronic device on a body of a user based on the detected physical quantity, wherein the processor determines that the electronic device is worn when the detected physical quantity is less than a first threshold value, and determines that the electronic device is not worn when the detected physical quantity is equal to or greater than the first threshold value.
13 . A non-transitory computer-readable storage medium storing a program that causes, of an electronic device that is used by being worn on a body of a user and including a vibrator that vibrates the electronic device and a sensor that detects a physical quantity corresponding to an intensity of the vibration of the electronic device, a computer to:
determine, by a processer, a wear state of the electronic device on the body of the user based on the detected physical quantity, wherein the processor determines that the electronic device is worn when the detected physical quantity is less than a first threshold value, and determines that the electronic device is not worn when the detected physical quantity is equal to or greater than the first threshold value.
14 . The electronic device according to claim 1 ,
wherein the sensor is configured to detect the physical quantity that becomes larger as the intensity of the vibration of the electronic device increases, and
wherein the processor is configured to cause the vibrator to vibrate and determine the wear state by comparing a determination value corresponding to a magnitude of the physical quantity detected by the sensor in a vibration period in which the vibrator is vibrating with a first threshold value and a second threshold value smaller than the first threshold value.
15 . The electronic device according to claim 14 , wherein by comparing the determination value with the first threshold value and the second threshold value, the processor is configured to determine which one of at least three wear states the electronic device is in, the at least three wear states including a normal wear state in which the electronic device is being worn normally, a no-wear state in which the electronic device is not being worn on the body of the user, and a loose wear state in which the electronic device is being worn loosely as compared with in the normal wear state.
16 . The electronic device according to claim 15 , wherein in response to the determination value being less than the first threshold value and equal to or more than the second threshold value, the processor is configured to determine that the electronic device is in the loose wear state and perform control to notify the user that the electronic device is in the loose wear state.
17 . The electronic device according to claim 6 ,
wherein the notifier is configured to perform the notification using the vibration of the vibrator and the notification using not the vibration of the vibrator but another, and
wherein in response to a notification event having occurred, the processor is configured to perform control to perform the notification using the vibration of the vibrator, determine the wear state based on the physical quality detected by the sensor in response to the vibration of the vibrator for the notification, and determine based on a result of the determination of the wear state whether to perform control to perform the notification using not the vibration of the vibrator but another.