cascoda-sdk-pages

Getting Started with OCF and Thread

The purpose of this document is to provide the reader with all the required knowledge and steps to create and run new or pre-existing OCF applications over Thread, using our Cascoda SDK and the Chili2 modules.

Thread Certified Component Logo

Contents

Important references

All OCF specification documents can be found here. The most useful ones for the purposes of this guide are the following documents: Core Framework, Core Optional Framework, Resource Type, and Device.

Step 0 - Building the Cascoda SDK (optional)

If you would like to create your own OCF over Thread applications, you will need to build the Cascoda SDK. Please follow the instructions in the “Building” section here that explains how to do that. On the other hand, if you only intend to run pre-existing OCF applications, then you can skip this step, because all the necessary binaries can be downloaded from here.

Step 1 - Prerequisite Knowledge

Step 2 - Getting Started

Step 3 - Creating OCF Applications over Thread

Step 4 - Thread Network Set-Up and Configuration

The OCF applications mentioned in Step 3 run over Thread, which is a low-power wireless protocol based on IPv6. For that reason, some setting up and configuration will be necessary in order to get the Thread network running and get the Chili module to join that network. The following points will guide you through this process.

Step 5 - OCF Device Spy Configuration

A few more configurations need to be made on OCF Device Spy before it can discover your OCF server. This is because unlike in Step 2 where OCF Device Spy was communicating with the OCF server over Ethernet, here it is communicating with the server indirectly via the border router. The messages that OCF Device Spy sends out are received by the border router over Wi-Fi, and then are routed to the OCF server over Thread. To achieve that, do the following.

Step 6 - Interact with your OCF server using OCF Device Spy