Coap based application for android phones

Post on 15-Apr-2017

254 views 1 download

Transcript of Coap based application for android phones

CoAP-based Application for Smartphone-sensor

InteractionCS300 ProjectProject Instructor – Dr. Rakesh Matam

1

Presented by

Md Syed Ahamad

2

Project Role• Theory Analysis• Implementation

3

Outline• Introduction• Internet of Things• Protocol - CoAP

• CoAP live• Californium• Californium tools used in this project

4

Tools for the project• Prerequisites• Java

• Californium – CoAP protocol implementation in java• Maven Project• Eclipse IDE• Firefox + Copper• Contiki – OS• A microcontroller

5

Internet of Things

[Source: https://www.linkedin.com/topic/internet-of-things]

6

Constraint Application Protocol (CoAP)

• Specialised web transfer protocol in the Internet of Things• Varies from HTTP• UDP rather than TCP

• Machine-to-Machine• REST model• Security – DTLS (TLS/SSL for Datagrams)

7[Source: http://goo.gl/LLQ03w]

8[Source: http://goo.gl/LLQ03w]

9[Source: http://goo.gl/LLQ03w]

10

CoAP live with Copper• CoAP protocol handler for Mozilla Firefox• CoAP URI• Observation –Interaction with resource, GET, POST, PUT, DELETE etc.• Test Server - coap://coap.me:5683/

- coap://iot.eclipse.org:5683/

11

12

Californium (Cf) CoAP Framework• Open source implementation CoAP in Java• Targets unconstraint environment • Scalable architecture• Focus on usability

13[Source: Californium by Daniel Pauli and Dominique Im Obersteg]

14[Source: Californium by Daniel Pauli and Dominique Im Obersteg]

Send operation

Receive operation

15

Cf tools related to project• Libraries • Californium – core• Californium - OSGi• Californium – cross proxy

• Server API - Important classes (org.eclipse.californium.core)• CoapServer• CoapResource• CoapExchange

[Source: https://github.com/eclipse/californium]

16

Cf tools related to project• Client API - Important classes (org.eclipse.californium.core)• CoapClient• CoapHandler• CoapResponse• CoapObserveRelation

17

Further work• Implementation of CoAP• Client-server on eclipse• Test run on a simulator

• Development of CoAP based Android App for controlling a microcontroller.

18

Reference• http://iot.eclipse.org• http://goo.gl/LLQ03w - “Hands on with CoAP”• http://coap.technology/• http://www.rfc-base.org/txt/rfc-7252.txt - RFC 7252 documentation released by

IETF, June 2014.