The constrained application protocol (coap) implementation-part3

18
The Constrained Application Protocol (CoAP)- ongoing implementation Khamdamboy Urunov, a Ph.D. student. Special Communication Research Center., Graduate School of Financial Information 1

Transcript of The constrained application protocol (coap) implementation-part3

Page 1: The constrained application protocol (coap) implementation-part3

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 (coap) implementation-part3

2

1. Download Eclipse for Java developers http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/mars1

Page 3: The constrained application protocol (coap) implementation-part3

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 (coap) implementation-part3

4

2. Install Maven plugin for Eclipse (2)

Page 5: The constrained application protocol (coap) implementation-part3

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 (coap) implementation-part3

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 (coap) implementation-part3

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 (coap) implementation-part3

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 (coap) implementation-part3

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 (coap) implementation-part3

10

6. Run Hello World (2)

Page 11: The constrained application protocol (coap) implementation-part3

11

7. Install Copper user-agent add-ons on Firefox.

Page 12: The constrained application protocol (coap) implementation-part3

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 (coap) implementation-part3

13

coap://californium.eclipse.org:5683/

Page 14: The constrained application protocol (coap) implementation-part3

14

coap://vs0.inf.ethz.ch:5683/

Page 15: The constrained application protocol (coap) implementation-part3

15

coap://coap.me:5683/

Page 16: The constrained application protocol (coap) implementation-part3

16

Eclipse Hello world: 113.198.211.18:5683

Page 17: The constrained application protocol (coap) implementation-part3

17

Stop running HelloWorld source code

Page 18: The constrained application protocol (coap) implementation-part3

18

Unreachable result