nuttx-apps/system/ymodem
Xiang Xiao 86080a110e apps: Remove the check of CONFIG_SERIAL_TERMIOS
If the code only change c_oflag, c_iflag and c_lflag, not c_cflag in termios.
Follow up the change from kernel: https://github.com/apache/nuttx/pull/8843

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-19 14:53:44 -06:00
..
Kconfig apps: Remove the check of CONFIG_SERIAL_TERMIOS 2023-03-19 14:53:44 -06:00
Make.defs support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
Makefile support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
rb_main.c support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
README.md support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
sb_main.c support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
ymodem.c support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00
ymodem.h support ymodem protocal and sb rb application 2023-03-17 12:17:14 -03:00

Introduce

This is ymodem protocal. According to it, the sb rb application is realized, which is used to send files and receive files respectively

Usage

In the ubuntu system, lszrz needs to be installed, can use sudo apt install lszrz. Use minicom to communicate with the board.

Sendfile to pc

use sb command like this nsh> sb /tmp/test.c ..., this command support send multiple files together then use <Ctrl + a> , r chose ymodem to receive board file.

Sendfile to board

use rb cmd like this nsh> sb, this command support receive multiple files together then use <Ctrl + a> , s chose ymodem, then chose what file need to send.

help

can use sb -h or rb -h get help.

Debug

Because the serial port is used for communication, the log is printed to the debug file you can use CONFIG_SYSTEM_YMODEM_DEBUGFILE_PATH set debug file path.