[riot-devel] How does the Border router excute the command that ethos sends?

Jianwen Ouyang jianwen.ouyang at gmail.com
Wed Jun 15 18:20:20 CEST 2016


Thanks for your answer.
it's the function "readline()", which will read the ringbuffer, right? with
"getchar()" operation.

my problem is that, I send hundreds of commands to the Border router.
sometimes, UART did receive the command, but the command was not executed.
it's really strange.


2016-06-15 17:43 GMT+02:00 Kaspar Schleiser <kaspar at schleiser.de>:

> Hi,
> On 06/15/2016 05:30 PM, Jianwen Ouyang wrote:
> > And my question is how this ringbuffer related to the function which I
> > defined in "shell_commands[]" array?
> The ringbuffer is is used to buffer incoming UART bytes for consumption.
> In main(), the function shell_run() is called which starts the shell
> loop, which in turn will read() all bytes from the ringbuffer, parse
> command names and finally execute the functions from shell_commands[].
> Kaspar
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20160615/8e978fba/attachment.html>

More information about the devel mailing list