Commit Graph

23 Commits

Author SHA1 Message Date
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
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
Robert Quattlebaum f9cbea3433 cli: Don't give character value 3 (CTRL-C) any special treatment. [#57] (#64)
This was originally here because of some misconfigured TTY settings,
and can cause problems when running on embedded devices.

Since the misconfigured TTY settings have been addressed, this check
is no longer needed.
2016-05-23 15:05:14 -07:00
Jonathan Hui f68de0f388 README.md indicates wrong prf options. (#49)
* `prf` value should be 'high', 'med', or 'low'
* remove `r` flag from the route command
2016-05-18 23:06:36 -07:00
Jonathan Hui e9f4292be3 Add cli_udp.cpp to sources and remove c++11 dependencies. (#41) 2016-05-17 08:58:06 -07:00
Jonathan Hui c8908cf687 Fix 'make dist'. (#40)
* Include header files for distribution.
* Include tests scripts for distribution.
* Include docs for distribution.
2016-05-16 21:41:38 -07:00
Robert Quattlebaum 4c560dc94e For upstream/serial and logging fixes (#28)
* posix: logging: Use `stderr` instead of `stdout` for debug logging.

* posix: serial: Restore socket `termios` settings for `stdin` and `stdout` at exit.
2016-05-13 16:29:38 -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
Jonathan Hui baa8994190 Re-enable termio settings. (#25) 2016-05-13 09:33:35 -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
Gaurav Hirlekar 622090e3e8 Update README.md (#2)
* Update README.md

From the command line parameters, I assume 'del' stands for delete.

* Update README.md

Another minor fix as recommended by jwhui
2016-05-11 15:58:27 -07:00
Wei Wang 337571aebb fix unused stack variable and code cleanup (#13)
LGTM.  Thanks, @weivincewang !
2016-05-11 15:45:40 -07:00
Bo Zhu 2310c18d24 Small typos in /src/cli/README.md (#5) 2016-05-11 13:56:15 -07:00
Jonathan Hui 4f9945c533 Initial commit 2016-05-10 22:49:53 -07:00