Code Monkey home page Code Monkey logo

lrzsz's People

Contributors

uweohse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lrzsz's Issues

Problems with modern C compilers

Code from old website does not compile on modern C compilers. All the function definitions need the types specified in the top line. I have a huge patch file that does this and compiles the code under MacOSX as part of a fink package manager. Will this code ever be updated to handle modern (ie C99 and later) versions?

I have equipment where the YMODEM protocol is needed and this has been a workhorse for me.

YModem never starts when -O is used

I would expect that -O does not re-send "ready to receive", or whatever it's called. But I do expect it to send it once.

With -O it seems that both sender and receiver will just wait for the other to start. Seems to work with ZModem just fine.

`calc_blklen` violates specification section "9.5 Segmented Streaming"

The relevant section reads:

9.5 Segmented Streaming

If the receiver cannot overlap serial and disk I/O, it uses the
ZRINIT frame to specify a buffer length which the sender will not
overflow. The sending program sends a ZCRCW data subpacket and waits
for a ZACK header before sending the next segment of the file.

If the sending program supports reverse data stream sampling or
interrupt, error recovery will be faster (on average) than a protocol
(such as YMODEM) that sends large blocks.

A sufficiently large receiving buffer allows throughput to closely
approach that of full streaming. For example, 16kb segmented
streaming adds about 3 per cent to full streaming ZMODEM file
transfer times when the round trip delay is five seconds.

If a maximum buffer length is provided in the ZRINIT frame this is read by lsz and stored in the Rxbuflen and blklen variables, but then later when calc_blklen is called the blklen value is overridden (set to 1024) and the Rxbuflen value is never again consulted.

This is problematic for my use case because I trying to use ZMODEM to program small embedded devices which have limited RAM and a specific flash block size which must be programmed. I am trying to set the buffer length to one flash page so that I can read it in, checksum it, and then write it to flash before accepting the next subpacket.

I think the solution to this is to set the start_blklen and max_blklen variables as well when Rxbuflen is set, if it is smaller than Tframelen, exactly the same way that these are set when it is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.