Commit Graph

64 Commits

Author SHA1 Message Date
Michael Morscher 6a520dd63c [CoAP] Adding CLI commands (#1539)
* [CoAP] Adding CLI commands

Adds CLI commands for a simple CoAP client and server with one resource
2017-04-11 09:02:42 -07:00
Łukasz Duda 3316daa43c Add initial implementation of DNS Client (#1460)
* [DNS] Initial DNS Client implementation.
2017-03-17 14:43:08 -07:00
Robert Lubos 746a40a340 Automatic Joiners removal in Commissioner (#1421)
* Implement automatic Joiner removal feature.

* Save some RAM in JoinerRouter class.

* Specify timeout for each Joiner separately.

* Update Windows API files.
2017-03-08 05:19:12 -08:00
Jonathan Hui 31b389fb4e Change otMessage type to not hide pointer. (#1416) 2017-03-02 12:43:59 -08:00
Jonathan Hui d0c687505b Move openthread.h to openthread/openthread.h. 2017-03-02 10:24:55 -08:00
Jonathan Hui 98da7f3166 IPv6 API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 669c792118 DHCPv6 Client and Server API cleanup. 2017-03-02 10:24:55 -08:00
Jonathan Hui 10e5b9a38f UDP API cleanup. 2017-03-02 10:24:55 -08:00
Nick Banks e39d96a797 Build otCli for Windows (#1239)
* Initial changes

* Clean up for CLI design on Windows

* Use smart pointer instead of otFreeMemory directly.
2017-02-27 09:28:43 -08:00
Łukasz Duda 4f35cdb854 [ICMPv6] Allow application to register ICMPv6 handler. (#1380) 2017-02-24 12:13:59 -08:00
Nick Banks 64f5ab43fc Add Thread Auto Start Support (#1268)
* Add Thread Auto Start Support

* Add compile-time option

* Return error in Windows API
2017-02-20 17:29:20 -08:00
rongli fa04f1c4cb THCI: setMinDelayTimer() API (#1329) 2017-02-17 12:09:36 -08:00
Jonathan Hui d61b878d34 Remove Preferred and Valid Lifetimes from otNetifAddress. (#1110)
- Replace Preferred and Valid Lifetimes with a flag.
- Introduce new otDhcpAddress type for maintaining Preferred and Valid Lifetimes.
- Reduces RAM usage by 128 bytes.
2017-01-04 13:37:25 -08:00
Jonathan Hui 64d49153bd Add callback to indicate when joiner operation completes. (#1094) 2016-12-27 08:06:18 -08:00
Łukasz Duda dbc1384db2 DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message. (#1062)
* DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message.
2016-12-13 10:22:57 -08:00
Jonathan Hui d44f39769f Add ability to retrieve message and buffer counts for message queues. (#940) 2016-11-07 22:13:15 -08:00
Nick Banks 74a95f042d Windows API DLL (#882)
* VS Solution files and minor fixes.

* Move Tasklet into platform include file

* Refactor data path APIs into openthread-ip6.h
2016-11-04 09:28:17 -07:00
Łukasz Duda bb97cbee17 IP: Add API to subscribe/unsubscribe to multicast addresses. (#899)
* IP: Add API to subscribe/unsubscribe to multicast addresses.

* CLI: Add commands to handle multicast addresses.
2016-11-02 11:24:35 -07:00
rongli 3001fc689c DHCP: implement simple Server/Client (solicit/reply) (#884)
* DHCP implementation
- implementation Dhcp client/server (solicit/reply)
- two build options --enable-dhcp6-server  --enable-dhcp6-client (default disable)
- add Cert_5_3_09_AddressQuery for Dhcp Client/Server test in travis
2016-10-31 21:38:56 -07:00
Shu Chen f3ebcff818 Add 'factoryreset' cli (#892)
* add 'factoryreset' cli to delete all stored settings and then reset

* use 'factoryreset' in THCI reset API to ensure that there is no pre-settings in DUT before running any test
2016-10-27 11:08:39 -07:00
Hubert Miś aeba71b1a1 Pr/slaac utility (#698)
* Provide utility for IPv6 SLAAC (#651)

* Semantically Opaque Interface Identifier with IPv6 SLAAC (#651)
2016-09-29 08:37:10 -07:00
Xiao Ma a74e0496b8 Delay a random jitter period prior to request a Router ID for REED. (#554)
* Delay a random jitter period prior to request a Router ID for REED.

* Update Cert_5_1_09_REEDAttachConnectivity.py to pass Travis check.

* Add CLI to set/get the ROUTER_SELECTION_JITTER and update Certification scripts.

  - add 'posix-ncp' to allow failure list in .travis.yml.
2016-09-26 10:03:09 -07:00
Shu Chen d71939d331 Add Joiner UDP Port feature (#676)
* Add Joiner UDP Port feature

  - Add 'joinerport' cli for configuration

  - Include Joiner UDP Port TLV in discovery response message

  - Joiner use it as destination port during commissioning process
2016-09-25 20:50:28 -07:00
Buke Po d283c29f23 Support network diagnostic feature. (#652)
* support network diagnostic

* add network diagnostic THCI implementation
2016-09-23 21:06:08 -07:00
Jonathan Hui 03fea69c1b Energy scan. (#606) 2016-09-16 16:04:01 -07:00
Shu Chen 0d54e51ebe Add Hash MAC address get cli (#611)
- move Hash Mac address calculation from joiner.cpp to mac.cpp

- add hashmacaddr cli
2016-09-16 05:43:44 -07:00
Xiao Ma a642297520 Implement ROUTER_DOWNGRADE_THRESHOLD. (#588) 2016-09-14 09:25:56 -07:00
Jonathan Hui ef2a1a0c9d When commissioning, set ext addr based on factory-assigned IEEE EUI-64. (#584)
- Add CLI for printing the factory-assigned IEEE EUI-64.
- Add otPlatRadioGetIeeeEui64() API.
2016-09-13 23:37:40 -07:00
Jonathan Hui 44350178ad Change copyright to The OpenThread Authors. (#583)
- Add a top-level file named AUTHORS which identifies the copyright
holders of the project.
2016-09-13 15:57:11 -07:00
Nick Banks 6d2dfa5bb0 Support #define to overwrite what openthread-config file to use, since Windows does support autoconf. (#578) 2016-09-13 09:27:11 -07:00
Jonathan Hui c44c20ef66 Implement PAN ID Query/Conflict. (#556) 2016-09-13 09:18:05 -07:00
Nick Banks ffbe65c6dd otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
2016-09-12 14:29:43 -07:00
Jonathan Hui 563685e187 travis: enable code coverage reporting. (#516) 2016-09-08 14:14:25 -07:00
Jonathan Hui 7c2b818d2e Thread Commissioning. (#399) 2016-09-08 10:23:11 -07:00
Nick Banks 511ade5293 otAddUnicastAddress Doesn't Hold onto External Pointers (#504)
* Modify ot*UnicastAddress functions to use internal memory instead of holding onto an external memory address.
2016-09-02 16:17:08 -07:00
Lu Wang f4ea00c5f3 Add CLI for sending MGMT_ACTIVE_GET/SET, MGMT_PENDING_GET/SET (Reopen #402) (#474)
* Add CLI for sending MGMT_ACTIVE_GET, MGMT_ACTIVE_SET, MGMT_PENDING_GET and MGMT_PENDING_SET
2016-08-30 10:48:52 -07:00
Jonathan Hui 027e009005 Simplify ICMPv6 Echo Request/Reply implementation. (#481)
- Only support a single ICMPv6 Echo Reply handler.
- Remove large static ICMPv6 Echo Request buffer.
2016-08-29 09:31:26 -07:00
Nick Banks 62f3188081 Dynamic Max Children (#462)
* Add support for dynamically adjusting the maximum number of allowed children.
* Update cli to support max number of children.
2016-08-26 08:42:06 -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 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
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
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
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