Skip to content

openthread/ot-b91

Repository files navigation

OpenThread on B91 Example

This directory contains example platform drivers for the Telink B91.

The example platform drivers are intended to present the minimal code necessary to support OpenThread. As a result, the example platform drivers do not necessarily highlight the platform's full capabilities.

This platform is intended for exprimentation and exploration of OpenThread, not a production ready environment.

Build Environment

Building the examples for the b91 requires CMake, Ninja, and the Telink risc-v toolchain.

After these tools are installed, follow the instruction below to install other necessary tools.

$ cd <path-to-ot-b91>
$ ./script/bootstrap

Building

In a Bash terminal, follow these instructions to build the b91 examples.

$ cd <path-to-ot-b91>
$ ./script/build

Flash Binaries

If the build completed successfully, the elf files may be found in <path-to-ot-b91>/build/bin.

You can download the BDT tool and refer to the user guide provided by Telink to burn the images to the board, in order to load the images with the BDT tool, the images must be converted to bin. This is done using riscv32-elf-objcopy

$ cd <path-to-ot-b91>/build/bin
$ riscv32-elf-objcopy -S -O binary ot-cli-ftd ot-cli-ftd.bin

Interact

CLI example

  1. With a terminal client (putty, minicom, etc.) open the com port associated with the b91 UART. The serial port settings are:
    • 115200 baud
    • 8 data bits
    • no parity bit
    • 1 stop bit
  2. Type help for a list of commands
  3. See OpenThread CLI Reference README.md to learn more.

Contributing

We would love for you to contribute to OpenThread and help make it even better than it is today! See our Contributing Guidelines for more information.

Contributors are required to abide by our Code of Conduct and Coding Conventions and Style Guide.

License

OpenThread is released under the BSD 3-Clause license. See the LICENSE file for more information.

Please only use the OpenThread name and marks when accurately referencing this software distribution. Do not use the marks in a way that suggests you are endorsed by or otherwise affiliated with Nest, Google, or The Thread Group.

Need help?

OpenThread support is available on GitHub: