Code Monkey home page Code Monkey logo

otbr-mqtt-sn's Introduction

Dockerfile for OpenThread Border Router with Paho MQTT-SN gateway.

Building Docker image

docker build --pull --no-cache -t otbr-mqtt-sn -f ./Dockerfile .

Building RCP for the nRF52840 dongle (PCA10059)

git clone https://github.com/openthread/ot-nrf528xx.git
cd ot-nrf528xx
git submodule update --init
# Skip the following line if you have the GNU Arm Embedded tools installed
./script/bootstrap
./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB
arm-none-eabi-objcopy -O ihex build/bin/ot-rcp rcp-pca10059.hex

See here for instructions on how to program the nRF52840 dongle: nRF52840 Dongle Programming Tutorial

Running

To run the container with the default parameters:

docker run --name otbr-mqtt-sn -p 8080:80 --dns=127.0.0.1 -it --privileged otbr-mqtt-sn

The most common network parameters can be set on the docker command line. The default values are taken from the Nordic Semiconductor border router such that it works with the examples in the nRF5 SDK for Thread and Zigbee. The command line options with default values are shown in the following table.

Parameter Command line option Default value
Network Name --network-name OTBR-MQTT-SN
RCP Serial Port --radio-url spinel+hdlc+uart:///dev/ttyACM0
PAN ID --panid 0xABCD
Extended PAN ID --xpanid DEAD00BEEF00CAFE
Channel --channel 11
Network Key --network-key 00112233445566778899AABBCCDDEEFF
Network PSKc --pskc 5ce66d049d007088ad900dfcc2a55ee3
TUN Interface Name --interface wpan0
NAT64 Prefix --nat64-prefix 64:ff9b::/96
Default prefix route --disable-default-prefix-route Enabled
Default prefix slaac --disable-default-prefix-slaac Enabled
Backbone Interface --backbone-interface eth0
MQTT Broker --broker mqtt.eclipseprojects.io

otbr-mqtt-sn's People

Contributors

osaether avatar stevew817 avatar

Watchers

James Cloos 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.