Commit Graph

335 Commits

Author SHA1 Message Date
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 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
Marcin K Szczodrak 8298a0e5fe remove strtok_r function references (#174) 2016-06-17 20:23: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 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
Jonathan Hui 161b241e86 Print 'Error' when CLI command results in an error, rather than failing silently. (#66) 2016-05-24 13:27:05 -07:00
Jonathan Hui 1f24fa44fa Add active scan to API and CLI. (#27)
* Add active scan functions and definitions to core C api.
* Add active scan command to CLI.
* Add emulation of PHY channel isolation.
2016-05-13 15:14:04 -07:00
Marcin K Szczodrak 99870fae01 adjust license text width (#22) 2016-05-12 22:39:11 -07:00
turon 72201aad75 Adding argc checks to route and prefix to fix issue-4 and issue-7 2016-05-11 20:30:16 -07:00
Jonathan Hui 4f9945c533 Initial commit 2016-05-10 22:49:53 -07:00