Skip to content

openthread/ot-realtek

Repository files navigation

OpenThread on Realtek RTL8777G Example

This repo contains example platform drivers for the Realtek RTL8777G.

Download submodule

In a Bash terminal, follow these instructions to clone all submodules.

$ cd <path-to-ot-realtek>
$ git submodule update --init --recursive

Building

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

$ cd <path-to-ot-realtek>
$ OT_CMAKE_NINJA_TARGET="ot-cli-ftd" ./script/build bee4 sdk rtl8777g

Flash Binaries

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

To flash the images with MPCli tool, we should copy image file to MPCli tool file.

$ cd <path-to-ot-realtek>
$ cp ./build/bin/<ot-cli-ftd_MP_dev_0.0.0.0_XXXX.bin> ./third_party/Realtek/tool/mpcli/bin

Then we should modify mptool config file.

$ vim ./third_party/Realtek/tool/mpcli/mptoolconfig.json

Replace <ot-cli-ftd.bin> with image file name.

Program file with MPCli.

$ cd ./third_party/Realtek/tool/mpcli
$ sudo mpcli -f mptoolconfig.json -c <serial port> -a -r

Example: sudo mpcli -f mptoolconfig.json -c /dev/ttyUSB0 -a -r

Interact

  1. Open terminal to /dev/ttyACM0 (serial port settings: 115200 8-N-1).
  2. Type help for 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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •