HI, 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. Owen 2016-06-15 17:43 GMT+02:00 Kaspar Schleiser <[email protected]>: > 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 > [email protected] > https://lists.riot-os.org/mailman/listinfo/devel >
_______________________________________________ devel mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/devel
