Separate out interface up/down from Thread start/stop. (#278)

* Redefine otEnable/otDisable to just initialize/uninitialize the OpenThread stack.
* Remove otInit API since it is replaced by otEnable.
* Add otInterfaceUp/otInterfaceDown APIs to bring up/down IPv6 interface.
* Add otThreadStart/otThreadStop APIs to start/stop Thread protocol operation.
* Updated NCP implementation to utilize new APIs.
This commit is contained in:
Jonathan Hui
2016-07-25 17:52:47 -07:00
committed by GitHub
parent c595b240fb
commit 8c39011d9c
12 changed files with 271 additions and 91 deletions
+26 -8
View File
@@ -15,6 +15,7 @@ OpenThread test scripts use the CLI to execute test cases.
* [eidcache](#eidcache)
* [extaddr](#extaddr)
* [extpanid](#extpanid)
* [ifconfig](#ifconfig)
* [ipaddr](#ipaddr)
* [keysequence](#keysequence)
* [leaderweight](#leaderweight)
@@ -32,9 +33,8 @@ OpenThread test scripts use the CLI to execute test cases.
* [router](#router)
* [routerupgradethreshold](#routerupgradethreshold)
* [scan](#scan)
* [start](#start)
* [state](#state)
* [stop](#stop)
* [thread](#thread)
* [version](#version)
* [whitelist](#whitelist)
@@ -208,6 +208,24 @@ Set the Thread Extended PAN ID value.
Done
```
### ifconfig up
Bring up the IPv6 interface.
```bash
> ifconfig up
Done
```
### ifconfig down
Bring down the IPv6 interface.
```bash
> ifconfig down
Done
```
### ipaddr
List all IPv6 addresses assigned to the Thread interface.
@@ -541,21 +559,21 @@ Perform an IEEE 802.15.4 Active Scan.
Done
```
### start
### thread start
Enable OpenThread.
Enable Thread protocol operation and attach to a Thread network.
```bash
> start
> thread start
Done
```
### stop
### thread stop
Disable OpenThread.
Disable Thread protocol operation and detach from a Thread network.
```bash
> stop
> thread stop
Done
```