This guide will help you configure your two development boards once they are on-boarded onto the same Thread network. By the end, you will be able to use a button on one devboard to control a light on the other.
Status -> Overview
. If your firmware version is KNX-IoT-Hub-OpenWrt 1.5
or later, the Linker will be available at http://192.168.1.1:8081 . Otherwise, download the latest KNX IoT Hub image and update the firmware on the hub using System -> Backup/Flash Firmware
, by following the guide on the OpenWRT wiki.
Discovery
from the menu bar, and selecting Discover Devices (CoAP)
from the dropdown.List Programming Mode
by default. <p align="center"></p>Enrol device
from the options shown in the dropdown.KNX:S:00fa10010710
contains the KNX serial number. The second part P:4N6AFK6T83YWDUTW23U2
contains the password. Out of the two messages you had saved, locate the one which contains the serial number of the device that you are about to enrol.QR
.Ok
.Ok
in the Status
column.Configure
tab.Configure
and click on Populate Functional Blocks
. A few seconds later, the tables in the main view will get populated with a total of 4 entries, 2 for each of the devboards. These are called functional blocks.Sensor
column and the actuator table, containing the Actuator
column. Each table contains a single entry for each devboard, distinguished by serial number (so 2 entries in the sensor table and 2 in the actuator table). The goal is to connect one devboard’s “sensor” functionality to the other devboard’s “actuator” functionality, so that the “sensor” may control the “actuator”. From the sensor table, select one of the devboards by clicking on one of the entries under the Serial Number
column. The selection will be displayed under the two tables.Add Function
button to add this function! It will now appear under the Functions
section, as such: <p align="center"></p>00fa10010710
’s sensor to 00fa10010711
’s actuator, and another one connecting 00fa10010711
’s sensor to 00fa10010710
’s actuator.Configure
, click on Create Configurations & Download All Devices
. This operation will take a few seconds to complete. Hover your mouse over the area where the sensor and actuator tables are located. If there is a loading wheel spinning then the operation is in progress. When it stops spinning, the operation is complete.If you have followed all the previous steps successfully, you will now have two configured KNX devices, which can mutually communicate with each other via the hub.
Press the button that says SW1 on either of the devboards. This should cause the LED that is next to SW2 on the other devboard to toggle!
This KNX application may receive updates from time to time. To grab the latest version, click here.
Learn more about Thread by reading the OpenThread Primer.
This application just serves as an example to get you familiar with the process of setting up a KNX configuration. We offer a variety of much more sophisticated applications. A full list of KNX IoT applications is available here. Note that most of those will require additional hardware, such as e-Paper displays, sensors, etc.
If you would like to get to know the Cascoda SDK better, you may take a look at the main Readme document
We also provide a packet sniffer that is designed to work alongside KNX-IoT. The sniffer is able to decrypt the OSCORE communications used by KNX-IoT and is therefore an invaluable development tool.
Finally, the Cascoda SDK Reference document contains a comprehensive overview of all of our documentation, which includes tutorials, detailed information on using Thread, flashing and debugging using device programmers, system architecture & API reference.
Feel free to contact us for more information!