//
Search
☄️

04.(220425)IoT-lite에서 simpleserver 실행하기

1.
앞으로의 설명을 수월하게 하기 위하여 cmd 창 3개의 이름은 3개로 통칭하겠다.
Client cmd : ./simpleclient를 실행할 화면으로 Server와 통신하는 내용을 공유하는 cmd Server cmd : ./simpleserver를 실행할 화면으로 client와 통신하는 내용을 공유하는 cmd Onboarding cmd : ./onboarding_tool를 실행하여 세팅할 화면
1.
Onboarding cmd에서 우리가 ./onboarding_tool까지 실행했었다.
2.
다른 cmd 창을 열어서 Onboarding cmd랑 경로(를 같은 cmd 창을 열고 다음 명령어를 입력하여 Server cmd를 실행한다.
./simpleserver
Plain Text
복사
3.
다시 Onboarding cmd로 넘어와서 숫자 1를 입력한다.
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: 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
Plain Text
복사
5.
59번째 라인 보면 1를 입력한 것을 확인할 수 있으며, 103~105에 coap통신이라고 글이 떠야한다.