Giter Site home page Giter Site logo

koenvervloesem / openthread-applications Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 20 KB

Code examples, errata and additional tips and references to interesting projects for the book "Building Wireless Sensor Networks with OpenThread: Developing CoAP Applications for Thread Networks with Zephyr"

Home Page: https://koen.vervloesem.eu/books/building-wireless-sensor-networks-with-openthread/

License: MIT License

Python 11.72% CMake 3.39% C 84.89%
nordic-semiconductor nordicsemi nrf52 nrf52840 nrf52840-dk nrf52840-dongle nrf5x openthread openthread-application python thread zephyr zephyr-rtos coap coap-client coap-server coaps dtls dtls-cert dtls-psk

openthread-applications's Introduction

Building Wireless Sensor Networks with OpenThread: Developing CoAP Applications for Thread Networks with Zephyr

License

This repository contains the code discussed in the book Building Wireless Sensor Networks with OpenThread: Developing CoAP Applications for Thread Networks with Zephyr, published by Elektor International Media, as well as a list of errors and their corrections and some additional tips and references.

About the book

This book will guide you through the operation of Thread, the setup of a Thread network, and the creation of your own Zephyr-based OpenThread applications to use it. You’ll acquire knowledge on:

  • The capture of network packets on Thread networks using Wireshark and the nRF Sniffer for 802.15.4.
  • Network simulation with the OpenThread Network Simulator.
  • Connecting a Thread network to a non-Thread network using a Thread Border Router.
  • The basics of Thread networking, including device roles and types, as well as the diverse types of unicast and multicast IPv6 addresses used in a Thread network.
  • The mechanisms behind network discovery, DNS queries, NAT64, and multicast addresses.
  • The process of joining a Thread network using network commissioning.
  • CoAP servers and clients and their OpenThread API.
  • Service registration and discovery.
  • Securing CoAP messages with DTLS, using a pre-shared key or X.509 certificates.
  • Investigating and optimizing a Thread device’s power consumption.

Once you‘ve set up a Thread network with some devices and tried connecting and disconnecting them, you’ll have gained a good insight into the functionality of a Thread network, including its self-healing capabilities. After you’ve experimented with all code examples in this book, you’ll also have gained useful programming experience using the OpenThread API and CoAP.

Title Building Wireless Sensor Networks with OpenThread: Developing CoAP Applications for Thread Networks with Zephyr
Author Koen Vervloesem
Publication date 2024-05-02
Number of pages 256
ISBN-13 978-3-89576-618-3
Publisher Elektor International Media (EIM)

Included code

All example code from this book is included in this repository, stored in a directory for each chapter. For each chapter directory, Zephyr applications are stored in their own subdirectory, while Python code comes in a single Python file.

Download the code

You can download the code all at once with Git:

git clone https://github.com/koenvervloesem/openthread-applications.git

The code is then downloaded into the directory openthread-applications.

You can also download a ZIP file of all code by clicking on the green button Code at the top right of this page and then on Download ZIP.

Just selecting and copying code from the GitHub web page of a specific file you're interested in and pasting it in an editor may work, but isn't recommended. Especially with Python code the whitespace can become mixed up, which results in invalid code.

Errata

See the ERRATA document for the list of errors in the book and their corrections.

Additions

See the ADDITIONS document for some additional tips and references to interesting projects not mentioned in the book.

License

All code is provided by Koen Vervloesem as open source software with the MIT license, unless noted otherwise in the license header of a file. See the LICENSE for more information.

openthread-applications's People

Contributors

koenvervloesem avatar

Stargazers

Abhijeet Bhatikar avatar Ludovic BOUÉ avatar

Watchers

 avatar Ludovic BOUÉ avatar

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.