Electronic device including sensor and operating method thereof
Abstract
An electronic device, accessory device and method using the same are disclosed herein. The accessory device is stowable in the electronic device, and includes at least a first sensor, a second sensor, a communication interface and a processor. The method includes receiving, through the communication interface, information from the electronic device corresponding to an application executed in the electronic device, in response to the received information, obtaining the first data through the first sensor when the received information is a first information and obtaining the second data through the second sensor when the information is a second information, and transmitting, to the electronic device, data based on at least one of the first data and the second data.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An electronic device, comprising:
a first sensor configured to obtain first data; a second sensor configured to obtain second data; a communication interface; and a processor, configured to perform: receiving, through the communication interface, information from an external electronic device corresponding to an application executed in the external electronic device; in response to the received information, obtaining the first data through the first sensor when the received information is a first information and obtaining the second data through the second sensor when the information is a second information; and transmitting, to the external electronic device, data based on at least one of the first data and the second data.
2 . The electronic device of claim 1 , wherein the processor is configured to perform:
activating the first sensor and deactivating the second sensor when the information is the first information; deactivating the first sensor and activating the second sensor when the information is the second information; and obtaining the data based on at least one of the first data and the second data, the data obtained via an activated sensor from among the first sensor and the second sensor.
3 . The electronic device of claim 2 , wherein the information is received in response to detecting physical separation of the electronic device and the external electronic device.
4 . The electronic device of claim 2 , wherein at least one of the first data and the second data includes biometric data.
5 . The electronic device of claim 2 , wherein the processor is configured to perform: transmitting the obtained data to the external electronic device in response to detecting that the electronic device contacts a touch screen of the external electronic device.
6 . The electronic device of claim 2 , wherein at least a portion of the received information includes a request for the first data when the application is a first application; and
at least a portion of the received information includes a request for the second data when the application is a second application.
7 . The electronic device of claim 2 , wherein the processor is configured to transmit the obtained data to the external electronic device, and
wherein biometric information corresponding to the transmitted obtained data is displayed in a display of the external electronic device.
8 . The electronic device of claim 2 , wherein the electronic device comprises at least one accessory device for the external electronic device including a stylus pen.
9 . An electronic device, comprising:
a communication interface; and a processor configured to perform: determining an application executed in the electronic device; when the application is determined to be a first application, transmitting first information corresponding to the first application to an accessory device that includes a first sensor and a second sensor, through the communication interface; when the application is determined to be a second application, transmitting second information corresponding to the second application to the accessory device, through the communication interface; and receiving, from the accessory device, data obtained through one of the first sensor and the second sensor, which corresponds to one of the transmitted first information and the second information.
10 . The electronic device of claim 9 , wherein the processor is configured to perform transmitting at least one of the first information and the second information to the accessory device in response to detecting physical separation of the accessory device from the electronic device.
11 . The electronic device of claim 9 , further comprising a display, wherein the processor is configured to perform:
controlling the display to display an object; and in response to detecting that at least a part of the accessory device contacts an area of the display corresponding to the displayed object, controlling the display to display the received data in the area.
12 . A method in an electronic device, comprising:
receiving, from an external electronic device, information corresponding to an application executed by the external electronic device; obtaining first data through a first sensor when the received information is first information; obtaining second data through a second sensor when the received information is second information; and transmitting, to the external electronic device, data based on the first data and the second data.
13 . The method of claim 12 , wherein the first data is obtained through the first sensor by activating the first sensor and deactivating the second sensor when the received information is the first information.
14 . The method of claim 13 , wherein the second data is obtained through the second sensor by deactivating the first sensor and activating the second sensor when the received information is the second information.
15 . The method of claim 14 , wherein the information corresponding to the application is received in response to detected physical separation of the electronic device from the external electronic device.
16 . The method of claim 14 , wherein at least one of the first data and the second data includes biometric data.
17 . The method of claim 14 , wherein the obtained data is transmitted to the external electronic device in response to detected that the electronic device contacts a touch screen of the external electronic device.
18 . The method of claim 14 , wherein the received information comprises:
a request for the first data corresponding to a first application when the application is the first application, and a request for the second data corresponding to a second application when the application is the second application.
19 . The method of claim 14 , wherein the data transmitted to the external electronic device includes biometric information that is displayed on a display of the external electronic device.
20 . The method of claim 14 , wherein the electronic device comprises at least one accessory device of the external electronic device, including a stylus pen.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.