Commit Graph

18 Commits

Author SHA1 Message Date
Meco Man f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
wdfk-prog da0c8a6d0a [Ymodem]sy命令支持绝对路径传输
* 接收错误流程优化
2023-01-22 20:07:03 -05:00
wdfk-prog f54f2c2c91 [ymodem]添加传输过程中的异常处理流程 2022-12-05 23:07:27 -05:00
Maihuanyi de1d6dbc0e
ymodem of send error (#6535)
* modified ymodem.c to solve ymodem send file error

* modified ry_sy.c to solve send file error of file data

* Update ry_sy.c

Co-authored-by: guo <guozhanxin@rt-thread.com>
2022-10-23 22:33:31 -04:00
thewon86 f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Bernard Xiong 457759ded7 [Util] fix the dependence of file feature in ymodem 2019-12-17 13:38:49 +08:00
Steven Liu 3c5f46468c [components]: utilities: ymodem: Add ry_sy function.
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 <steven.liu@rock-chips.com>
2019-12-13 11:49:53 +08:00
zylx e2c0749d04 [components][ymodem]ymodem 握手阶段增加延时,防止数据接收不全 2019-02-21 11:09:41 +08:00
Lyn 626d0e9e06
ymodem support multiple files transmission 2019-01-22 13:58:59 +08:00
Bernard Xiong 8c1c6516b3 [Components] Change license to Apache License v2.0 2018-10-29 11:06:58 +08:00
MurphyZhao dcbbb05f50 [components][ymodem] 修复 ymodem 不支持 secureCRT 下 1024字节传输的问题
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-09-06 11:02:49 +08:00
MurphyZhao 3b161b58f2 [component][ymodem] Fix compilation warning in MDK
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-08-23 17:23:03 +08:00
Grissiom d479960aac ymodem: fix a race-condition in handshaking
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.
2014-12-26 22:20:17 +08:00
armink 7121697a71 [Ymodem]Add device open flag as input parameter to ymodem function. 2014-09-13 11:22:01 +08:00
armink ed57c7c32a [Ymodem]When active end the session, It can config send CAN number. 2014-09-13 11:15:48 +08:00
Grissiom ff1eb2cbc9 ymodem: refactor _rym_read_code
Make fast path fast and slow path slow.
2014-07-14 18:45:46 +08:00
Grissiom 5674198759 components/utilities: add ymodem
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.
2013-10-09 23:26:42 +08:00