OpenThread on Qorvo gp712 Example
This directory contains example platform drivers for Qorvo gp712 on RPi.
This example use the GNU GCC toolchain on the Raspberry Pi. To build on the Pi:
- Download the repo to the Pi
- go to the subfolder in the openthread repo: third_party/nlbuild-autotools/repo/tools/packages and enter this command:
$ sudo /bin/bash build
Note that you may need to install additional packages to make this build work, depending on your actual RPi OS version. The build process will complain if additional packages are required.
$ cd <path-to-openthread> $ ./script/bootstrap $ ./bootstrap $ CERT_LOG=1 CLI_LOGGING=1 COMMISSIONER=1 JOINER=1 DHCP6_CLIENT=1 DHCP6_SERVER=1 BORDER_ROUTER=1 make -f examples/Makefile-gp712
After a successful build, the
elf files are found in
Building a variant which interfaces via a tcp socket is also possible. Replace the uart-posix.c with uart-socket.c in the Makefile.am from examples/platforms/gp712/Makefile.am and rebuild. Now it should be possible to open a telnet to socket 9190 of the raspberry pi from a remote PC. This also easier testing with the official Thread Test Harness.
- Spawn the process:
$ cd <path-to-openthread>/output/gp712/bin $ ./gp712-ot-cli-ftd
helpfor list of commands.
> help help channel childtimeout contextreusedelay extaddr extpanid ipaddr keysequence leaderweight masterkey mode netdataregister networkidtimeout networkname panid ping prefix releaserouterid rloc16 route routerupgradethreshold scan start state stop whitelist