| Age | Commit message (Collapse) | Author |
|
目前开启的逻辑存在问题,ymodem的文件传输功能开启的前提是得有完整的文件系统,
但是目前,这个开启逻辑错了。
用户选择YMODEM_USING_FILE_TRANSFER功能后select DFS没有任何意义,因为除了需要依赖DFS之外还要依赖其他的例如FATFS,需要和SDIO适配等等等
正确的做法应该是用户配置好完整的文件系统后,ymodem文件传输才能有机会开启,
因此是depends on DFS 而非select DFS
更改之后,只要用户开启了文件系统,在选定YMODEM时,会自动开启文件传输功能,这也是用户希望看到的,直接一键搞定,不需要再多点一步
|
|
|
|
|
|
修改了读取不到文件大小,导致的文件传输的问题,问题说明在
https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=423781
|
|
|
|
Use "ry" to receive files and use "sy file_path" to
send files. Default console uart and you can choose
any other uart if you want.
Signed-off-by: Steven Liu <[email protected]>
|
|
|
|
|
|
|
|
1024字节传输的问题
Signed-off-by: MurphyZhao <[email protected]>
|
|
Signed-off-by: MurphyZhao <[email protected]>
|
|
As we are sending C continuously, there is a chance that the
sender(remote) receive an C after sending the first handshake package.
So the sender will interpret it as NAK and re-send the package. So we
just ignore it and proceed.
|
|
|
|
|
|
|
|
|
|
Frequent 'C' on the handshake will confuse some sender(lrzsz for
example).
|
|
Make fast path fast and slow path slow.
|
|
Real-YModem implemented a flexible YModem support. It use callback-based
structure to let the user application to deal with the data. It contains
3 examples:
1. echo.c: write the data recieved on YModem to an other device
2. null.c: discard the YModem data
3. tofile.c: write the data to the file system
Currently, it does not support batch file transmission.
|