Code Monkey home page Code Monkey logo

ot-b91's Introduction

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?

There are numerous avenues for OpenThread support:

The openthread-users Google Group is the recommended place for users to discuss OpenThread and interact directly with the OpenThread team.

ot-b91's People

Contributors

dependabot[bot] avatar yiyang-tian 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.