jdodson has asked for the wisdom of the Perl Monks concerning the following question:

Hi all. I am working with the Device::Modem package and I am able to make a connection to a dial in BBS fine. The question is, I noticed that http://search.cpan.org/~cosimo/Device-Modem-1.47/lib/Device/Modem/Protocol/Xmodem.pm has code for recieving a file using Xmodem protocol in the Device::Modem package, however I don't see any way to send a file using the Xmodem protocol. I need to send a file first and then get one back, the BBS supports the Xmodem, Zmodem, kermit, whatever. I need a mechanism to send the file. Perhaps I am missing something pretty obvious in the API?

Replies are listed 'Best First'.
Re: Device::Modem & Xmodem::Block
by MonkE (Hermit) on Nov 21, 2006 at 21:33 UTC
    After peeking at the source code, I too noticed the lack of XModem::Transmitter (or anything similar). The following blurb from the comments jumped out at me though:
    # Additionally, this is ALPHA software, still needs extensive # testing and support for generic AT commads, so use it at your own ri +sk, # and without ANY warranty! Have fun. # # This Xmodem protocol version is indeed very alpha code, # probably does not work at all, so stay tuned... # # $Id: Xmodem.pm,v 1.7 2005/11/15 22:28:42 cosimo Exp $
    It looks as though Cosimo hasn't had the time nor the inclination to work on this lately. You could either try to contact this person and politely inquire. Alternatively, if you like a challenge, you could write your own XModem::Transmitter using the code for XModem::Receiver as a guide.