From c6aee2c3e808ad42e56a317fe2c68bf7ef2d1831 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 15 Jul 2013 17:11:09 -0600 Subject: [PATCH] Minor end-of-the-day Zmodem changes --- configs/olimex-lpc1766stk/README.txt | 7 +++---- configs/olimex-lpc1766stk/zmodem/defconfig | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configs/olimex-lpc1766stk/README.txt b/configs/olimex-lpc1766stk/README.txt index 1edd890a54..fbf7baabe5 100644 --- a/configs/olimex-lpc1766stk/README.txt +++ b/configs/olimex-lpc1766stk/README.txt @@ -1163,7 +1163,6 @@ Where is one of the following: Linux PC. To send a file to the PC, first make sure that the serial port is configured to work with the board: - $ sudo stty -F /dev/ttyS0 raw # Puts the TTY in raw transfer mode $ sudo stty -F /dev/ttyS0 9600 # Select 9600 BAUD $ sudo stty -F /dev/ttyS0 crtscts # Enables CTS/RTS handshaking $ sudo stty -F /dev/ttyS0 # Show the TTY configuration @@ -1203,7 +1202,6 @@ Where is one of the following: To send a file to the target, first make sure that the serial port on the host is configured to work with the board: - $ sudo stty -F /dev/ttyS0 raw # Puts the TTY in raw transfer mode $ sudo stty -F /dev/ttyS0 9600 # Select 9600 BAUD $ sudo stty -F /dev/ttyS0 crtscts # Enables CTS/RTS handshaking $ sudo stty -F /dev/ttyS0 # Show the TTY configuration @@ -1273,6 +1271,7 @@ Where is one of the following: Limit the transmit window size to N bytes (ZMODEM). UPDATE: I have verified that with debug off and at lower serial - BAUD (1200), the transfers of large fails succeed without errors. + BAUD (2400), the transfers of large fails succeed without errors. You may need the Linux sz -O option to keep it from timing out - in these low BAUD transfers. + in these low BAUD transfers. I do not consider this a "solution" + to the problem. diff --git a/configs/olimex-lpc1766stk/zmodem/defconfig b/configs/olimex-lpc1766stk/zmodem/defconfig index 67c33f1f87..6fabe918df 100644 --- a/configs/olimex-lpc1766stk/zmodem/defconfig +++ b/configs/olimex-lpc1766stk/zmodem/defconfig @@ -803,7 +803,7 @@ CONFIG_SYSTEM_ZMODEM_SENDATTN=y CONFIG_SYSTEM_ZMODEM_ALWAYSSINT=y # CONFIG_SYSTEM_ZMODEM_FULLSTREAMING is not set # CONFIG_SYSTEM_ZMODEM_SENDBRAK is not set -# CONFIG_SYSTEM_ZMODEM_RESPTIME is not set +CONFIG_SYSTEM_ZMODEM_RESPTIME=10 CONFIG_SYSTEM_ZMODEM_SERIALNO=0 CONFIG_SYSTEM_ZMODEM_MAXERRORS=20 CONFIG_SYSTEM_ZMODEM_WRITESIZE=512