tree: 3b546f61189e970c4626fceeb53ab7423c11559e [path history] [tgz]
  1. alarm.c
  2. alarm_qorvo.h
  3. diag.c
  4. entropy.c
  5. flash.c
  6. logging.c
  7. Makefile.am
  8. Makefile.platform.am
  9. misc.c
  10. openthread-core-gp712-config-check.h
  11. openthread-core-gp712-config.h
  12. platform_qorvo.h
  13. radio.c
  14. radio_qorvo.h
  15. random_qorvo.h
  16. README.md
  17. system.c
  18. uart-posix.c
  19. uart-socket.c
  20. uart_qorvo.h
examples/platforms/gp712/README.md

OpenThread on Qorvo gp712 Example

This directory contains example platform drivers for Qorvo gp712 on RPi.

Toolchain

This example use the GNU GCC toolchain on the Raspberry Pi. To build on the Pi:

  1. Download the repo to the Pi
  2. 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.

Build Examples

$ cd <path-to-openthread>
$ ./script/bootstrap
$ ./bootstrap
$ REFERENCE_DEVICE=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 <path-to-openthread>/output/gp712/bin.

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.

Interact

  1. Spawn the process:
$ cd <path-to-openthread>/output/gp712/bin
$ ./gp712-ot-cli-ftd
  1. Type help for 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