none
ZModem code in cpp RRS feed

Answers

  • http://sourceforge.net/projects/zmodem32/

    http://www.menie.org/georges/embedded/#xmodem

     

     

     

    • Marked as answer by nobugzModerator Monday, February 2, 2009 1:29 PM
    • Unmarked as answer by Swadhina Tuesday, February 3, 2009 5:33 AM
    • Marked as answer by nobugzModerator Tuesday, February 3, 2009 9:30 AM
    • Unmarked as answer by Swadhina Friday, February 6, 2009 8:58 AM
    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Monday, February 2, 2009 12:53 PM
  • Hmm, ok.

    How about this page for old C code:

    http://www.filegate.net/cprog/

    There is a zmodem zip in there (pdpzm050.zip) which may be of more help. I've not tried to compile it though.

    Thanks
    • Proposed as answer by Mark Duffill Tuesday, February 3, 2009 9:44 AM
    • Unproposed as answer by Swadhina Friday, February 6, 2009 8:58 AM
    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Tuesday, February 3, 2009 9:42 AM
  • Hi,

    Yeah that is a bit rubbish not including everything in the zip. (A problem I find with many open source projects, a dependency chain of nightmares! :)

    Anyhow headers I googled for that where missing:

    pdcomm.h    - http://www1.uk.freebsd.org/comm/misc/pdcom250.lha
    crcxm.h        - http://www.filegate.net/cprog/pdcrc200.zip

    But when trying to build it for Win32 ran into a horrible mess of missing defined and old skool style function definitions, *ouch*.

    I found some code via google code search
    http://www.google.com/codesearch?hl=en&lr=&q=zmodem+lang%3Ac&sbtn=Search

    But all looks linux flavoured!

    End of the day I think your life will be simpler if you just wrap the .dll from earlier!



    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Friday, February 6, 2009 9:59 AM

All replies

  • http://sourceforge.net/projects/zmodem32/

    http://www.menie.org/georges/embedded/#xmodem

     

     

     

    • Marked as answer by nobugzModerator Monday, February 2, 2009 1:29 PM
    • Unmarked as answer by Swadhina Tuesday, February 3, 2009 5:33 AM
    • Marked as answer by nobugzModerator Tuesday, February 3, 2009 9:30 AM
    • Unmarked as answer by Swadhina Friday, February 6, 2009 8:58 AM
    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Monday, February 2, 2009 12:53 PM
  • it would be useful if i can have the zmodem code in full for windows mfc or win 32 console application; and not as dll. thanks in advance.
    Tuesday, February 3, 2009 5:35 AM
  • Picky, picky. You mean you can't spend a few minutes writing a Windows executable that loads the DLL? The sourceforce code is written in Visual C++, after all.
    Tuesday, February 3, 2009 5:42 AM
  • I did another Google search and came up with the following as the first hit:

    http://www.koders.com/c/fid0926778BD6B18725AE9B6237FBC09BC6DF30AFE0.aspx
    http://www.koders.com/cpp/fidA420E13DC2787320FBBADFA565AB3C35760BD939.aspx

    Origin:
    http://www.koders.com/info.aspx?c=ProjectInfo&pid=PSU4ELP8KNRWS7DQ19S6NG916B

    Are they what you are looking for?
    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    • Unmarked as answer by Wesley Yao Monday, February 9, 2009 1:50 AM
    Tuesday, February 3, 2009 8:30 AM
  • Unfortunately no... I have already looked through them. They have lot of dependencies with many many other files. So its not possible to implement them in the code .... :(... I m trying to use the dll of zmodem. lets hope it works.
    Tuesday, February 3, 2009 9:27 AM
  • Hmm, ok.

    How about this page for old C code:

    http://www.filegate.net/cprog/

    There is a zmodem zip in there (pdpzm050.zip) which may be of more help. I've not tried to compile it though.

    Thanks
    • Proposed as answer by Mark Duffill Tuesday, February 3, 2009 9:44 AM
    • Unproposed as answer by Swadhina Friday, February 6, 2009 8:58 AM
    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Tuesday, February 3, 2009 9:42 AM
  • Is there any code snippet in vc++ to listen to a serial port? thanks in advance.

    Mark I am working on your suggested code pdpzm050 itself but am not sure on this function as I dont have the include files pdcomm.c or cpp. Any suggestions on what  "pdcommRecBuf" function does?

    static void listen(void)
    {
        unsigned char buf[5000];
        int cnt;
       
        cnt = pdcommRecBuf(&pdcomm, buf, 5000);
        printf("receive %s\n", m2x(buf, cnt));
        return;
    }
    Friday, February 6, 2009 9:06 AM
  • Hi,

    Yeah that is a bit rubbish not including everything in the zip. (A problem I find with many open source projects, a dependency chain of nightmares! :)

    Anyhow headers I googled for that where missing:

    pdcomm.h    - http://www1.uk.freebsd.org/comm/misc/pdcom250.lha
    crcxm.h        - http://www.filegate.net/cprog/pdcrc200.zip

    But when trying to build it for Win32 ran into a horrible mess of missing defined and old skool style function definitions, *ouch*.

    I found some code via google code search
    http://www.google.com/codesearch?hl=en&lr=&q=zmodem+lang%3Ac&sbtn=Search

    But all looks linux flavoured!

    End of the day I think your life will be simpler if you just wrap the .dll from earlier!



    • Marked as answer by Wesley Yao Monday, February 9, 2009 1:48 AM
    Friday, February 6, 2009 9:59 AM
  • The major advantage with Open Source code is that anybody can change it.  The major problem with Open Source code is that anybody can change it.
    Hans Passant.
    Friday, February 6, 2009 12:21 PM
    Moderator
  • Hello every1, i kno i am replying to an old post but my post is more relevant here

    Mark Duffill pointed out the implementation of ZModem in http://sourceforge.net/projects/zmodem32/. I am actually using the source code for this.

    Problem is I am actually getting very low speed (approx 790 cps), at Baud Rate= 115200, using this source code while when i do Hyperterminal- Hyperterminal Zmodem transfer the speed is 10 times faster. Any experiences??

    Tuesday, March 29, 2011 8:39 AM
  • Hi Maverick,

    Can you help me with a small example of using this library   ZModem.dll?

    thanks

    Monday, July 2, 2012 10:06 AM