CoAP-based Application for
Smartphone-sensor Interaction
CS300 Project
Project Instructor – Dr. Rakesh Matam
1
Presented by
Md Syed Ahamad
Project Role
• Theory Analysis
• Implementation
2
Outline
• Introduction
• Internet of Things
• Protocol - CoAP
• CoAP live
• Californium
• Californium tools used in this project
3
Tools for the project
• Prerequisites
• Java
• Californium – CoAP protocol implementation in java
• Maven Project
• Eclipse IDE
• Firefox + Copper
• Contiki – OS
• A microcontroller
4
Internet of Things
5
[Source: https://www.linkedin.com/topic/internet-of-things]
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)
6
7[Source: http://goo.gl/LLQ03w]
8[Source: http://goo.gl/LLQ03w]
9[Source: http://goo.gl/LLQ03w]
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/
10
11
Californium (Cf) CoAP Framework
• Open source implementation CoAP in Java
• Targets unconstraint environment
• Scalable architecture
• Focus on usability
12
13
[Source: Californium by Daniel Pauli and Dominique Im Obersteg]
14
[Source: Californium by Daniel Pauli and Dominique Im Obersteg]
Send operation
Receive operation
Cf tools related to project
• Libraries
• Californium – core
• Californium - OSGi
• Californium – cross proxy
• Server API - Important classes (org.eclipse.californium.core)
• CoapServer
• CoapResource
• CoapExchange
15[Source: https://github.com/eclipse/californium]
Cf tools related to project
• Client API - Important classes (org.eclipse.californium.core)
• CoapClient
• CoapHandler
• CoapResponse
• CoapObserveRelation
16
Further work
• Implementation of CoAP
• Client-server on eclipse
• Test run on a simulator
• Development of CoAP based Android App for controlling a
microcontroller.
17
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.
18

Coap based application for android phones