Method and device for connecting device to service
The present disclosure provides a method by which an electronic device uses an auxiliary device so as to connect an IoT device to an IoT service. The method of the present disclosure may comprise the steps of: receiving, from an IoT device, basic information about the IoT device through an auxiliary device; discovering, on the basis of the basic information, the IoT device by using one from among one or more discovery methods; and registering the discovered IoT device with the IT service.
1 . A method for connecting an Internet of things (IoT) device to an IoT service using an auxiliary device, by an electronic device, the method comprising:
receiving, from the IoT device, basic information about the IoT device through the auxiliary device;
discovering the IoT device using one of at least one discovery method based on the basic information; and
registering the discovered IoT device with the IoT service,
wherein the auxiliary device supports a communication function with the electronic device and the IoT device, and
wherein the basic information about the IoT device includes access point (AP) pre-connection capability information indicating whether the IoT device supports an AP pre-connection function.
2 . The method of claim 1 , further comprising:
transmitting, to the IoT device, temporal network connection information or network connection information for network connection through the auxiliary device,
wherein discovering the IoT device includes discovering the IoT device pre-connected to a network using the temporal network connection information or the network connection information, using a first discovery method among the at least one discovery method.
3 . The method of claim 2 , further comprising:
identifying whether the IoT device supports the AP pre-connection function based on the AP pre-connection capability information; and
in case that the IoT device supports the AP pre-connection function, identifying that the first discovery method is used to discover the IoT device.
4 . The method of claim 3 , wherein the AP pre-connection capability information is included as an element in an onboarding payload, or is included in a type-length-value (TLV) data element in the onboarding payload.
5 . The method of claim 2 ,
wherein the basic information about the IoT device is included in an onboarding payload, and
wherein the onboarding payload includes at least one of a vendor ID element designating a vendor ID for the IoT device or a product ID element designating a product ID for the IoT device.
6 . The method of claim 2 , wherein the first discovery method is a domain name service (DNS)-service discovery (SD) discovery method.
7 . The method of claim 2 , wherein the temporal network connection information is generated by the electronic device for the IoT device.
8 . The method of claim 2 , further comprising, in case that the discovered IoT device is registered with the IoT service, deleting the temporal network connection information.
9 . The method of claim 1 , wherein the auxiliary device communicates with the IoT device using a near field communication (NFC) method.
10 . The method of claim 1 , wherein the electronic device is a TV, the auxiliary device is a remote controller (RC) supporting an NFC communication function, and the IoT device is an electronic device supporting an active tag.
11 . An electronic device for connecting an Internet of things (IoT) device to an IoT service using an auxiliary device, the electronic device comprising:
a transceiver;
memory, comprising one or more storage media, storing instructions; and
one or more processors communicatively coupled to the transceiver and the memory,
wherein the instructions, when executed by the one or more processors individually or collectively, cause the electronic device to:
receive, from the IoT device, basic information about the IoT device through the auxiliary device;
discover the IoT device using one of at least one discovery method based on the basic information; and
register the discovered IoT device with the IoT service,
wherein the auxiliary device supports a communication function with the electronic device and the IoT device, and
wherein the basic information about the IoT device includes access point (AP) pre-connection capability information indicating whether the IoT device supports an AP pre-connection function.
12 . The electronic device of claim 11 , wherein the instructions, when executed by the one or more processors individually or collectively, further cause the electronic device to:
transmit, to the IoT device, temporal network connection information or network connection information for network connection through the auxiliary device; and
discover the IoT device pre-connected to a network using the temporal network connection information or the network connection information, using a first discovery method among the at least one discovery method.
13 . The electronic device of claim 12 ,
wherein the basic information about the IoT device is included in an onboarding payload, and
wherein the onboarding payload includes at least one of a vendor ID element designating a vendor ID for the IoT device or a product ID element designating a product ID for the IoT device.
14 . The electronic device of claim 12 , wherein the first discovery method is a domain name service (DNS)-service discovery (SD) discovery method.
15 . The electronic device of claim 12 , wherein the temporal network connection information is generated by the electronic device for the IoT device.
16 . The electronic device of claim 12 , wherein the instructions, when executed by the one or more processors individually or collectively, further cause the electronic device to:
identify whether the IoT device supports the AP pre-connection function based on the AP pre-connection capability information; and
in case that the IoT device supports the AP pre-connection function, identify that the first discovery method is used to discover the IoT device.
17 . The electronic device of claim 16 , wherein the AP pre-connection capability information is included as an element in an onboarding payload, or is included in a type-length-value (TLV) data element in the onboarding payload.
18 . The electronic device of claim 11 , wherein the auxiliary device communicates with the IoT device using a near field communication (NFC) method.
19 . The electronic device of claim 11 , wherein the electronic device is a TV, the auxiliary device is a remote controller (RC) supporting an NFC communication function, and the IoT device is an electronic device supporting an active tag.