//
Search
🕤

05.(220425) (요약) 온보딩 Onboarding 작업 완료하기

1.
온보딩 화면이 나오게 된다면 숫자를 입력하여 작업을 수행해야한다.
pi@raspberrypi:~/iot-lite/iotivity-lite/port/linux $ ./onboarding_tool Started device with ID: 0ecadecb-6966-4a92-7c24-90a48da8c83c ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option:
JavaScript
복사
2.
온보딩 cmd에 이제 쭉 숫자를 입력해야하는데 순서를 요약하면 아래와 같다.
1 8 0 (살짝 기다리고) 4 13 0 1 1 0 1 1 (공식 문서에서는 잘 못 적혀있음. 이것 때문에 진짜 오래 걸림) 1 1 1 0 1 (cmd를 하나 열고 똑같은 경로로 와서 **./simpleclient** 명령어를 입력하여 Client cmd를 실행한다.) (경로는 ~/iot-lite/iotivity-lite/port/linux 로 고정이다.) (그리고 다시 Onboarding cmd로 돌아와서 다음과 같은 숫자를 순서대로 작성한다.) 1 8 0 (살짝 기다리고) 4 (이것도 공식문서에는 2로 적혀있다. 잘못 적혀있으니 꼭 인지하자.) 12 0 1 (여기 까지 했으면 다음과 같은 글귀가 마지막에 나와야한다.) Successfully provisioned pair-wise credentials
Plain Text
복사
3.
Server cmd와 Client cmd 창에 ctrl+z 키를 눌러서 종료를 일단 하고 다시 각각 cmd창에
./simpleserver
./simpleclient 두 명령어를 입력하여 실행을 하면 서버 쪽에서는 GET_light를 출력하고 클라이언트 쪽에서는 key name, value John's Light를 포함해서 쭉쭉 통신이 진행 된 것을 확인할 수 있다.
4.
온보딩 화면내 출력 내용을 정리하여 보여주겠다.
pi@raspberrypi:~/iot-lite/iotivity-lite/port/linux $ ./onboarding_tool Started device with ID: 0ecadecb-6966-4a92-7c24-90a48da8c83c ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: 1 ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Discovered unowned device: 42c5df6c-9e31-4ac4-7d48-c4ddbcc7cc0e at: coap://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:54163 coaps://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:48833 8 Unowned Devices: [0]: 42c5df6c-9e31-4ac4-7d48-c4ddbcc7cc0e - Lamp Select device: 0 Successfully issued request to perform ownership transfer ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Successfully performed OTM on device with UUID efea2ce6-16f1-4462-70e7-0e2c283ba65d 4 ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Discovered owned device: efea2ce6-16f1-4462-70e7-0e2c283ba65d at: coap://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:54163 coaps://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:48833 13 Provision ACL2 My Devices: [0]: efea2ce6-16f1-4462-70e7-0e2c283ba65d - Lamp Select device for provisioning: 0 Subjects: [0]: anon-clear [1]: auth-crypt [2]: Role [3]: efea2ce6-16f1-4462-70e7-0e2c283ba65d - Lamp [4]: 0ecadecb-6966-4a92-7c24-90a48da8c83c - (OBT) Select subject: 1 Enter number of resources in this ACE: 1 Resource properties Have resource href? [0-No, 1-Yes]: 0 Set wildcard resource? [0-No, 1-Yes]: 1 [1]: All NCRs '*' [2]: All NCRs with >=1 secured endpoint '+' [3]: All NCRs with >=1 unsecured endpoint '-' Select wildcard resource: 1 Set ACE2 permissions CREATE [0-No, 1-Yes]: 1 RETRIEVE [0-No, 1-Yes]: 1 UPDATE [0-No, 1-Yes]: 1 DELETE [0-No, 1-Yes]: 0 NOTIFY [0-No, 1-Yes]: 1 Successfully issued request to provision ACE ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Successfully provisioned ACE to device efea2ce6-16f1-4462-70e7-0e2c283ba65d 1 ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Discovered unowned device: d3dfd350-4e6f-459a-7e14-54e7b491a96a at: coap://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:53032 coaps://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:48862 8 Unowned Devices: [0]: d3dfd350-4e6f-459a-7e14-54e7b491a96a - Kishen's IPhone Select device: 0 Successfully issued request to perform ownership transfer ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Successfully performed OTM on device with UUID 4da24e24-b2ed-4b5f-530e-dfa293f8ad82 4 ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Discovered owned device: efea2ce6-16f1-4462-70e7-0e2c283ba65d at: coap://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:54163 coaps://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:48833 Discovered owned device: 4da24e24-b2ed-4b5f-530e-dfa293f8ad82 at: coap://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:53032 coaps://[fe80:0000:0000:0000:0941:baaa:f0dc:09f0]:48862 12 My Devices: [0]: efea2ce6-16f1-4462-70e7-0e2c283ba65d - Lamp [1]: 4da24e24-b2ed-4b5f-530e-dfa293f8ad82 - Kishen's IPhone Select device 1: 0 Select device 2:1 Successfully issued request to provision credentials ################################################ OCF 2.x Onboarding Tool ################################################ [0] Display this menu ----------------------------------------------- [1] Discover un-owned devices [2] Discover un-owned devices in the realm-local IPv6 scope [3] Discover un-owned devices in the site-local IPv6 scope [4] Discover owned devices [5] Discover owned devices in the realm-local IPv6 scope [6] Discover owned devices in the site-local IPv6 scope [7] Discover all resources on the device ----------------------------------------------- [8] Just-Works Ownership Transfer Method [9] Request Random PIN from device for OTM [10] Random PIN Ownership Transfer Method [11] Manufacturer Certificate based Ownership Transfer Method ----------------------------------------------- [12] Provision pair-wise credentials [13] Provision ACE2 [14] Provision auth-crypt RW access to NCRs [15] RETRIEVE /oic/sec/cred [16] DELETE cred by credid [17] RETRIEVE /oic/sec/acl2 [18] DELETE ace by aceid [19] RETRIEVE own creds [20] DELETE own cred by credid [21] Provision role RW access to NCRs [22] Provision identity certificate [23] Provision role certificate [24] Set security domain info ----------------------------------------------- [96] Install new manufacturer trust anchor [97] RESET device [98] RESET OBT ----------------------------------------------- [99] Exit ################################################ Select option: Successfully provisioned pair-wise credentials
JavaScript
복사

문의 : yklovejesus@gmail.com