Electronic apparatus and sensor ball registration method of electronic apparatus
Provided are an electronic apparatus and a sensor ball registration method of the electronic apparatus. The electronic apparatus according to examples of the present disclosure comprises: a communication circuit; a display; an actuator; a speaker; and a controller electrically connected to the communication circuit, the display, the actuator, and the speaker. The controller may be configured to: control so that a first guidance message is output through the display or the speaker in accordance with a sensor ball registration mode selection input; check sensor ball identification information included in a sensor ball-related message received through the communication circuit during a set period of time; control so that a second guidance message is output through the display or the speaker based on the set period of time expiring; and control so that, after the set period of time has expired, the sensor ball corresponding to the sensor ball-related message received during the set period of time is registered based on at least one sensor ball-related message received from the sensor ball.
1 . An electronic device comprising:
a communication circuit;
a display;
a speaker; and
a controller electrically connected to the communication circuit, the display, and the speaker,
wherein the controller is configured to:
control the display or the speaker to output a first guidance message in response to a selection input of a sensor ball registration mode;
identify identification information of a sensor ball included in a sensor ball-related message received through the communication circuit within a specified time;
control the display or the speaker to output a second guidance message related to changing movement of the sensor ball based on the specified time expiring; and
based on the specified time expiring, perform control to register the sensor ball based on information corresponding to a harvest voltage of the sensor ball, wherein the harvest voltage of the sensor ball is included in at least one sensor ball-related message received through the communication circuit from the sensor ball and changes in response to the change in movement of the sensor ball,
wherein the first guidance message includes instructions related to causing movement of the sensor ball and the second guidance message includes instructions related to stopping movement of the sensor ball.
2 . The electronic device of claim 1 , wherein the at least one sensor ball-related message comprises information corresponding to humidity sensed by the sensor ball.
3 . The electronic device of claim 1 , wherein the controller is configured to:
control the sensor ball to be registered based on a comparison between a harvest voltage stored in memory of the electronic device before the at least one sensor ball-related message is received and a value included in the identified information corresponding to the harvest voltage.
4 . The electronic device of claim 1 , wherein the controller is configured to: based on no sensor ball-related message being received from the sensor ball after the specified time has expired, perform control to register the sensor ball corresponding to the sensor ball-related message received within the specified time.
5 . The electronic device of claim 1 , wherein the controller is configured to:
identify information corresponding to the harvest voltage of the sensor ball and included in each of multiple sensor ball-related messages received through the communication circuit for the specified time; and
based on the harvest voltage of the sensor ball being determined to be greater than a harvest voltage identified from a previous sensor ball-related message, perform control to register the sensor ball corresponding to the sensor ball-related message.
6 . The electronic device of claim 1 , wherein the sensor ball-related message is transmitted through an advertisement message of Bluetooth low energy (BLE).
7 . The electronic device of claim 1 , comprising an actuator, wherein the controller is configured to control operation of the actuator based on a harvest voltage information included in sensor ball-related messages received from the sensor ball.
8 . The electronic device of claim 1 , comprising an actuator, wherein the controller is configured to control operation of the actuator based on humidity sensed by the sensor ball included in sensor ball-related messages received from the sensor ball.
9 . The electronic device of claim 1 , wherein the controller is configured to:
identify information corresponding to the harvest voltage of the sensor ball; and
based on the harvest voltage of the sensor ball being determined to be less than a previously identified harvest voltage, perform control to register the sensor ball corresponding to the sensor ball-related message, wherein the at least one sensor ball-related message is received after the specified time has expired.
10 . An electronic device comprising:
a communication circuit;
a display;
an actuator;
a speaker; and
a controller electrically connected to the communication circuit, the display, the actuator, and the speaker,
wherein the controller is configured to:
control the actuator to be driven during a specified first operation interval;
identify identification information of a sensor ball included in a sensor ball-related message received through the communication circuit during the specified first operation interval;
control the actuator to be stopped during a specified first stop interval based on the specified first operation interval elapsing;
identify information corresponding to a harvest voltage of the sensor ball, wherein at least one sensor ball-related message is received through the communication circuit after the specified first stop interval has expired; and
perform control to register, based on the information corresponding to the harvest voltage of the sensor ball being determined to be less than a previously identified harvest voltage, the sensor ball corresponding to the sensor ball-related message received during a specified time based on the specified first stop interval elapsing.
11 . The electronic device of claim 10 , wherein the at least one sensor ball-related message comprises information corresponding to humidity sensed by the sensor ball.
12 . The electronic device of claim 10 , wherein the controller is configured to control operation of the actuator based on humidity sensed by the sensor ball included in sensor ball-related messages received from the sensor ball.
13 . A method for sensor ball registration by an electronic device, the method comprising:
outputting a first guidance message through a display or a speaker in response to a selection input of a sensor ball registration mode;
identifying identification information of a sensor ball included in a sensor ball-related message received through a communication circuit within a specified time;
outputting a second guidance message related to changing movement of the sensor ball through the display or the speaker based on the specified time expiring; and
based on the specified time expiring, registering the sensor ball based on information corresponding to a harvest voltage of the sensor ball, wherein the harvest voltage of the sensor ball is included in at least one sensor ball-related message received through the communication circuit from the sensor ball and changes in response to the change in movement of the sensor ball,
wherein the first guidance message includes instructions related to causing movement of the sensor ball and the second guidance message includes instructions related to stopping movement of the sensor ball.
14 . The method of claim 13 , wherein the at least one sensor ball-related message comprises information corresponding to humidity sensed by the sensor ball.
15 . The method of claim 13 , comprising:
identifying the information corresponding to the harvest voltage; and
registering the sensor ball based on a comparison between a harvest voltage stored in a memory before the at least one sensor ball-related message is received and a value included in the identified information corresponding to the harvest voltage.
16 . The method of claim 15 , comprising registering, based on no sensor ball-related message being received from the sensor ball after the specified time has expired, the sensor ball corresponding to the sensor ball-related message received within the specified time.
17 . A method for sensor ball registration by an electronic device, the method comprising:
outputting a first guidance message through a display or a speaker in response to a selection input of a sensor ball registration mode;
identifying identification information of a sensor ball included in a sensor ball-related message received through a communication circuit within a specified time;
outputting a second guidance message related to changing movement of the sensor ball through the display or the speaker based on the specified time expiring;
identifying information corresponding to a harvest voltage of the sensor ball; and
based on the specified time expiring and based on the harvest voltage of the sensor ball being determined to be less than a previously identified harvest voltage, registering the sensor ball corresponding to the sensor ball-related message, wherein at least one sensor ball-related message includes information corresponding to the harvest voltage of the sensor ball and is received after the specified time has expired, and the harvest voltage of the sensor ball changes in response to the change in movement of the sensor ball.
18 . An electronic device comprising:
a communication circuit;
a communication circuit;
a display;
a speaker; and
a controller electrically connected to the communication circuit, the display, and the speaker,
wherein the controller is configured to:
control the display or the speaker to output a first guidance message in response to a selection input of a sensor ball registration mode;
identify identification information of a sensor ball included in a sensor ball-related message received through the communication circuit within a specified time;
control the display or the speaker to output a second guidance message related to changing movement of the sensor ball based on the specified time expiring; and
identify information corresponding to a harvest voltage of the sensor ball; and
based on the specified time expiring and based on the harvest voltage of the sensor ball being determined to be less than a previously identified harvest voltage, perform control to register the sensor ball corresponding to the sensor ball-related message, wherein at least one sensor ball-related message includes information corresponding to the harvest voltage of the sensor ball and is received after the specified time has expired, and the harvest voltage of the sensor ball changes in response to the change in movement of the sensor ball.
19 . The electronic device of claim 18 , wherein the second guidance message includes instructions related to shaking the sensor ball.