Giter Site home page Giter Site logo

noxet / squidward Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 30.86 MB

A research project at Lund University investigating IoT protocols with added security

License: MIT License

CMake 2.84% Makefile 3.80% C 88.05% Python 3.87% Shell 1.45%
coap mqtt iot security cryptography esp32 ota ota-firmware-updates

squidward's Introduction

squidward

A research project at Lund University investigating IoT protocols and the energy cost of added security. The protocols analyzed are CoAP and MQTT with and without (D)TLS, using both PSK and PKI.

Applications for different tests are located in the src folder.

Set up

Install ESP32 SDK

Follow the ESP32 "Get Started" guide and install IDF version 3.3.

Set the environment variable SQUIDWARD_PATH to point to the root folder of this repo.

Install Patches

To support DTLS in the stable branch, some files need to be patched, as described next.

In the $IDF_PATH/components/coap/libcoap folder, checkout a newer version of the library by running

git checkout 98954eb.

In the $IDF_PATH/components/coap/libcoap/ext/tinydtls folder run

git checkout 7f8c86e.

Copy patch/libcoap/coap_io.c and replace $IDF_PATH/components/coap/libcoap/src/coap_io.c.

Copy all files and folders in patch/coap and replace the files in $IDF_PATH/components/coap.

Copy patch/mbedtls/esp_timing.c to $IDF_PATH/components/mbedtls/port/.

Build

Running make builds in the top folder will generate all configured binary files. To generate binaries for a specific application, run make builds inside an application folder in src.

squidward's People

Contributors

noxet avatar pegahnikbakht avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

firewires

squidward's Issues

UART for annotation

Set up UART (as a lib?) in order to send annotation data to the Otii device

Set up CoAP over DTLS using mbedTLS

  • Set up DTLS with mbedTLS
  • Change cipher suites
  • Use libcoap as external library to parse CoAP packets

DTLS support must be enabled in menuconfig when compiling.
This is done on the current stable branch (v3.3)

Simple FOTA

  • Set up FOTA using basic example
  • Set up CoAP
  • Get FOTA updates over CoAP

Implement Oscore for esp32

Implement and test Oscore on esp32, and do the actual update with oscore as well.

Measure energy consumption in oscore.
Compare the results with coap+dtls

CoAP(s) testbench

Set up a testbench suite to be used with CoAP, both with and without security.
Check with papers for real-world simulations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.