tree: 34d93dfc9a3a3a640d75d362a1a0b1ab95f47a7b [path history] [tgz]
  1. alarm.c
  2. code_utils.h
  3. entropy.c
  4. hdlc_interface.cpp
  5. hdlc_interface.hpp
  6. logging.c
  7. Makefile.am
  8. misc.c
  9. netif.cpp
  10. openthread-core-posix-config.h
  11. openthread-system.h
  12. platform-config.h
  13. platform-posix.h
  14. radio_spinel.cpp
  15. radio_spinel.hpp
  16. README.md
  17. settings.cpp
  18. sim.c
  19. system.c
  20. uart.c
  21. udp.cpp
src/posix/platform/README.md

OpenThread on POSIX

This directory contains platform drivers for POSIX with an external radio tranceiver.

Build

$ cd <path-to-openthread>
$ ./bootstrap
$ make -f src/posix/Makefile-posix

After a successful build, the elf files are found in <path-to-openthread>/output/posix/<platform>/bin.

Interact

  1. Spawn the process:

stty is required.

$ cd <path-to-openthread>/output/<platform>/bin
$ ./ot-cli /dev/ttyUSB0 115200
  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