Commit Graph

64 Commits

Author SHA1 Message Date
Lu Wang fcff3cb018 Add check for CLI argument number (#465)
* Add check for CLI argument number
2016-08-25 22:26:23 -07:00
Jonathan Hui 70bd6af3b8 Fix bugs in retrieving child/router info using an RLOC16. (#475) 2016-08-25 21:09:01 -07:00
Marcin K Szczodrak 20014c72bf add cli promiscuous (#445) 2016-08-22 14:08:45 -07:00
Jonathan Hui ff3aa0c0f7 Do not allow a device to become a leader when the router role is disabled. (#439) 2016-08-19 13:11:51 -07:00
Nick Banks 47dcec0bac Update all callbacks to support a client supplied context pointer. (#425)
* Update all callbacks to support a client supplied context pointer.
2016-08-19 11:38:11 -07:00
Jonathan Hui 139e85f781 Make client responsible for configuring IPv6 addresses. (#410)
* OpenThread no longer automatically configures IPv6 addresses based on network data.
* Added IPv6 address configuration to CLI to support certification tests.
* Added notification to indicate when the Thread Network Data is updated.
* Added otIp6PrefixMatch API to compute prefix match.
2016-08-17 16:11:46 -07:00
Marcin K Szczodrak a0c6f50051 Feature/ot plat rssi (#411)
* rename otPlatRadioGetNoiseFloor to otPlatRadioGetRssi

* update cli README with singleton command
2016-08-17 16:11:06 -07:00
rongli a4d3d801bf cli: route fix (#401) 2016-08-17 08:37:35 -07:00
Marcin K Szczodrak 8c48712617 add IsSingleton to OT's application API (#398) 2016-08-16 19:15:29 -07:00
Jonathan Hui 5755f99cae Provide an API to retrieve the list of on-mesh prefixes. (#392) 2016-08-16 19:10:41 -07:00
rongli 1144982a06 cli: pollperiod fix (#387) 2016-08-16 09:08:50 -07:00
Jonathan Hui 8252cd6277 Ensure that Network Name strings are NULL-termianted for client code. (#368)
* otGetNetworkName() no longer returns a pointer into a beacon message.
* Scan results no longer point into a beacon message.
2016-08-12 11:07:09 -07:00
Xiao Ma 8f3279e3e0 Feature/extra clis for thci support (#345)
Update feature extra clis for thci support.

* cli: add set/get PartitionId
* cli: add get information about thread device's parent.
* cli: add set/get the data poll period for sleepy end device.
* cli: add blacklist relative commands to support network topology defined in Harness test case.
* cli: add set/get assigned linkquality during parent selection of attaching.
* cli: add reset to trigger a platform reset.
* Add link-local 16 only for sleepy end device.
2016-08-12 08:58:55 -07:00
Shu Chen 7130798123 Add diagnostics module in OpenThread (#343)
* Add diagnostics module in OpenThread

  - provide the same diagnostics interface for both CLI and NCP usage
  - implement common diagnostics features based on existing platform interface defined in 'include/platform/'
  - other more platform specific diagnostics features will be processed under platform layer
  - update CLI interface to support diagnostics feature
  - update both Posix and CC2538 platform to support diagnostics feature

* Add diagnostics module unit test

   - move platform.h from "examples/platform" to "include/platform"
   - add test_diag.cpp to test diagnostics module

* Add a configuration option that would enable/disable diagnostics module

Add --enable-diag configuration option to enable/disable diagnostics module when building OpenThread.
2016-08-11 10:26:51 -07:00
Shu Chen cefea1a3c6 Include platform details in version information (#347)
- add --with-platform-info configuration option to specify platform information
- add otGetVersionString() interface to get OpenThread version
2016-08-10 20:02:29 -07:00
Jonathan Hui 4050c68577 Enable -Wconversion on clang and fix all warnings. (#358) 2016-08-10 11:52:22 -07:00
Jonathan Hui 90eac68ff5 Use placement-new to initialize static variables in CLI. (#341) 2016-08-05 11:56:01 -07:00
Jonathan Hui b665529dac Add OT APIs for manipulating the active and pending datasets. (#336) 2016-08-05 11:44:24 -07:00
Jonathan Hui 2a493e7ec0 Support meshcop datasets and propagation. (#330) 2016-08-04 09:46:48 -07:00
Jonathan Hui b326f01821 Implement MLE Discovery Request and Response. (#322) 2016-08-03 13:16:35 -07:00
rongli 2fe487f0e8 cli: fix wrong error info when display ifconfig status (#324) 2016-08-02 21:18:26 -07:00
Jonathan Hui 6879e829a7 Update Valid Prefix Set configuration and Border Router TLV. (#316) 2016-08-02 09:42:52 -07:00
Jonathan Hui 143ea37a0a Add API to set the IEEE 802.15.4 Extended Address. (#289) 2016-07-28 10:55:23 -07:00
Jonathan Hui 083b5f59de Change scanChannels to 32 bits. (#297) 2016-07-28 10:49:26 -07:00
Marcin K Szczodrak 318fe4b415 turn on warnings and errors (#280) 2016-07-25 21:19:07 -07:00
Jonathan Hui 8c39011d9c 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.
2016-07-25 17:52:47 -07:00
Jonathan Hui 9baa18e6e6 Rename otPlatSerial* to otPlatUart*. (#253) 2016-07-07 12:18:58 -07:00
Jonathan Hui a7d69c1726 Add macros for the channel bit-vector used with otActiveScan. (#236) 2016-07-06 18:53:45 -07:00
Jonathan Hui 0abde2e2cc Add version command. (#237) 2016-07-04 10:12:25 -07:00
Jonathan Hui 8f8b332fd6 Add API to retrieve Leader Data information. (#231) 2016-07-04 10:11:47 -07:00
Jonathan Hui 6a815e147a Fix compiler warnings. (#234) 2016-07-01 17:52:27 -07:00
Jonathan Hui 4b487f1aa6 Add API to retrieve EID cache diag information. (#229) 2016-07-01 13:27:50 -07:00
Jonathan Hui 51e5609456 Add API to retrieve whitelist diag information. (#228) 2016-07-01 13:10:57 -07:00
Jonathan Hui 510f1d57f1 Add API to retrieve child diag information. (#226) 2016-07-01 12:10:52 -07:00
Jonathan Hui 50acd07a17 Add API to retrieve router diag information. (#225) 2016-07-01 10:47:40 -07:00
Lu Wang 75358c53ec CLI: enhance ping command (#211)
* Enhance ping command

* add Doxygen for timestamp in EchoReplyHandler

* fix function params name style

* use echo request containing timestamp instead of maintaining internal states
2016-06-28 14:03:12 -07:00
Jonathan Hui 4369a31411 Make public headers C99 compliant. (#186)
* Add -std=c99 and -pedantic-errors to CFLAGS.
2016-06-21 13:04:51 -07:00
Lu Wang a403e41455 update cli readme for command counter (#178) 2016-06-20 08:47:10 -07:00
Marcin K Szczodrak 8298a0e5fe remove strtok_r function references (#174) 2016-06-17 20:23:31 -07:00
Charles Ackerman 6889db695e cli: Update README.md (#128)
* Update README.md

- Minor grammatical updates, most capitalization
2016-06-17 14:28:31 -07:00
Jonathan Hui 2e17520f07 Fix control flow issues. (#171) 2016-06-17 11:58:37 -07:00
Lu Wang 9a7fa9b80e add mac layer counter (#90)
* add mac layer counter

* add more counters and Doxygen for MAC counters

* have a seperate counter for acked data transmission and refine the code based on the comments

* refine counters for acked and unacked transmissions

* fix check test error

* refine code style and use VerifyOrExit to exit

* move all events tracker to tx/rx done task, and add more counters

* fix other error counter

* refine counters structure to be clearer

* add Doxygen for the added thread errors

* fix conflicts
2016-06-12 00:32:51 -07:00
Jonathan Hui 6e7f8534e0 Locally define new operator to avoid dependence on stdinc++. (#118) 2016-06-08 13:41:13 -07:00
Jonathan Hui 6c310bf6bf Add simple command prompt '>'. (#117) 2016-06-08 09:20:36 -07:00
Jonathan Hui c3009d0361 Move example apps to C-only API. (#99) 2016-06-02 18:38:27 -07:00
Jonathan Hui e2a85d62e3 Require radio driver to provide transmit and receive buffers. (#87)
Some radio chips have memory-mapped regions for transmit and receive buffers.
This change allows the radio driver to pass those buffers, when available,
directly to upper layers and avoid unnecessary copies.
2016-05-27 14:17:48 -07:00
Jonathan Hui 7d2e4a0267 Change API to require all calls be from the same context. (#78)
* Remove atomic driver and all uses of otPlatAtomic* in OpenThread.
* Change posix example to only use a single thread of execution.
2016-05-27 09:16:04 -07:00
Jonathan Hui 25f1fe5a21 Expose LQI from radio up through Thread stack. (#70)
* Add an LQI field to the radio packet structure.
* Add an LQI field to the ThreadMessageInfo.
* Add an LQI field to the scan result.
* Print LQI value in CLI scan result.
2016-05-26 15:08:11 -07:00
Jonathan Hui e3f0e69ea6 Replace CLI response buffer with direct output via CLI server. (#75)
* Added new Output method that allows format strings.
* Added an output FIFO to the CLI serial server.
2016-05-26 13:30:34 -07:00
Jonathan Hui 961fea2c59 Remove exit() call, it is no longer needed by the test scripts. (#73) 2016-05-26 11:53:32 -07:00