nuttx-apps/system/zmodem
2013-07-14 15:39:26 -06:00
..
.gitignore Build/test framework for the Zmodem sz and rz commands which are on their way 2013-07-12 16:01:37 -06:00
Kconfig Resolve a few Zmodem sender streaming issues 2013-07-13 19:57:04 -06:00
Makefile Initial check-ing of (non-working) Zmodem receive logic 2013-07-14 11:05:23 -06:00
README.txt Fix an error in the ordering of fields in zm_transition_s structure; update documentation 2013-07-14 12:34:45 -06:00
rz_main.c Initial check-ing of (non-working) Zmodem receive logic 2013-07-14 11:05:23 -06:00
sz_main.c More Zmodem bugfixes and new files 2013-07-13 13:19:15 -06:00
zm_dumpbuffer.c A few more zmodem files; still missing a few but those are still fragile and like to undergo some resign before they are usable 2013-07-12 16:28:35 -06:00
zm_proto.c More Zmodem bugfixes and new files 2013-07-13 13:19:15 -06:00
zm_receive.c More Zmodem bug fixes: Too many pkttypes; Use wrong packet buffer 2013-07-14 15:39:26 -06:00
zm_send.c More Zmodem bug fixes: Too many pkttypes; Use wrong packet buffer 2013-07-14 15:39:26 -06:00
zm_state.c More Zmodem bug fixes: Too many pkttypes; Use wrong packet buffer 2013-07-14 15:39:26 -06:00
zm_utils.c Several fixes realted to receiving Zmodem files 2013-07-14 14:19:17 -06:00
zm_watchdog.c A few more zmodem files; still missing a few but those are still fragile and like to undergo some resign before they are usable 2013-07-12 16:28:35 -06:00
zm.h More Zmodem bug fixes: Too many pkttypes; Use wrong packet buffer 2013-07-14 15:39:26 -06:00

README
======

Using NuttX Zmodem with a Linux Host
====================================

    Sending Files from the Target to the Linux Host PC
    --------------------------------------------------
    The NuttX Zmodem commands have been verified against the rzsz programs
    running on a 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 57600
      $ sudo stty -F /dev/ttyS0

    Start rz on the Linux host:

      $ sudo rz </dev/ttyS0 >/dev/ttyS0

    You can add the rz -v option multiple times, each increases the level
    of debug output.  If you want to capture the Linux rz output, then
    re-direct stderr to a log file by adding 2>rz.log to the end of the
    rz command.

    NOTE: The NuttX Zmodem does sends rz\n when it starts in compliance with
    the Zmodem specification.  On Linux this, however, seems to start some
    other, incompatible version of rz.  You need to start rz manually to
    make sure that the correct version is selected.  You can tell when this
    evil rz/sz has inserted itself because you will see the '^' (0x5e)
    character replacing the standard Zmodem ZDLE character (0x19) in the
    binary data stream.

    If you don't have the rz command on your Linux box, the package to
    install rzsz (or possibily lrzsz).

    Then on the target:

      > sz -d /dev/ttyS1 <filename>

    Where filename is the full path to the file to send (i.e., it begins
    with the '/' character).

    Receiving Files on the Target from the Linux Host PC
    ----------------------------------------------------
    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 57600
      $ sudo stty -F /dev/ttyS0

    Start rz on the on the target:

      nsh> rz -d /dev/ttyS1

    Then use the sz command on Linux to send the file to the target:

      $ sudo sz <filename> t </dev/ttyS0 >/dev/ttyS0

    Where <filename> is the file that you want to send.

    The resulting file will be found where you have configured the Zmodem
    "sandbox" via CONFIG_SYSTEM_ZMODEM_MOUNTPOINT.

    You can add the az -v option multiple times, each increases the level
    of debug output.  If you want to capture the Linux rz output, then
    re-direct stderr to a log file by adding 2>az.log to the end of the
    rz command.

    If you don't have the az command on your Linux box, the package to
    install rzsz (or possibily lrzsz).