the constrained application protocol (co ap) implementation-part3
TRANSCRIPT
![Page 1: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/1.jpg)
1
The Constrained Application Protocol (CoAP)- ongoing
implementation
Khamdamboy Urunov, a Ph.D. student.
Special Communication Research Center.,
Graduate School of Financial Information Security., Kookmin
University Seoul, South Korea
![Page 2: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/2.jpg)
2
1. Download Eclipse for Java developers http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/mars1
![Page 3: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/3.jpg)
3
Compiling the Californium is not required in order to use it, use Apache Maven and add the dependency:
2. Install Maven plugin for Eclipse
Compiling Californium is required in order to use it plugin Maven.
Run Eclipse, click Help-> Install New Software…, in the Work with: field, enter the following website:
http://download.eclipse.org/technology/m2e/re
leases
![Page 4: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/4.jpg)
4
2. Install Maven plugin for Eclipse (2)
![Page 5: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/5.jpg)
5
3. Download CoAP library On windows, download the .zip file directly from the github page:
https://github.com/eclipse/californium.core
Then unzip it.
![Page 6: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/6.jpg)
6
4. Import the Californium to Eclipse: Click File -> Import…, you would see the following dialog.
Select Maven->Existing Maven Project, then click Next. In the Root Directory:, browse to your californium-master folder. Check all the pom.xml files, then click Finish.
![Page 7: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/7.jpg)
7
4. Import the Californium to Eclipse: (2) You would see all the Californium libraries and projects are listed on the left.
![Page 8: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/8.jpg)
8
5. Download and Import the Californium Element Connector
The connector is necessary for all the Californium projects. Download it from the following link:
Unzip it, and use import the whole library to Eclipse using Maven.
https://github.com/eclipse/californium.element-connector
![Page 9: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/9.jpg)
9
6. Run Hello World Select the Hello World example, double click it, the code is already compiled automatically by Eclipse. Click Run -> Run, you will have a Coap server running on your computer.
![Page 10: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/10.jpg)
10
6. Run Hello World (2)
![Page 11: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/11.jpg)
11
7. Install Copper user-agent add-ons on Firefox.
![Page 12: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/12.jpg)
12
8. Access the “HelloWorld” server through Copper
coap://californium.eclipse.org:5683/same ascoap://vs0.inf.ethz.ch:5683/coap://coap.me:5683/
coap://113.198.211.18:5683/coap://192.168.17.1:5683/.well-known/core
![Page 13: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/13.jpg)
13
coap://californium.eclipse.org:5683/
![Page 14: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/14.jpg)
14
coap://vs0.inf.ethz.ch:5683/
![Page 15: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/15.jpg)
15
coap://coap.me:5683/
![Page 16: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/16.jpg)
16
Eclipse Hello world: 113.198.211.18:5683
![Page 17: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/17.jpg)
17
Stop running HelloWorld source code
![Page 18: The constrained application protocol (co ap) implementation-part3](https://reader031.vdocuments.site/reader031/viewer/2022013004/586f9c341a28abcc238b59bd/html5/thumbnails/18.jpg)
18
Unreachable result