The constrained application protocol (coap) implementation-part3

Post on 06-Jan-2017

49 views 3 download

Transcript of 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

2

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

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

4

2. Install Maven plugin for Eclipse (2)

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.

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.

7

4. Import the Californium to Eclipse: (2) You would see all the Californium libraries and projects are listed on the left.

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

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.

10

6. Run Hello World (2)

11

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

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

13

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

14

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

15

coap://coap.me:5683/

16

Eclipse Hello world: 113.198.211.18:5683

17

Stop running HelloWorld source code

18

Unreachable result