Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Device::SerialPort::Xmodem 1.03

    Download button

    No screenshots available
    Downloads: 2,269  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    3 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Cosimo Streppone | More programs
    Perl Artistic License / FREE
    August 8th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Device::SerialPort::Xmodem description

    Device::SerialPort::Xmodem contains an Xmodem file transfer protocol for Device::SerialPort.

    Device::SerialPort::Xmodem contains an Xmodem file transfer protocol for Device::SerialPort.

    SYNOPSIS

    use Device::SerialPort::Xmodem;

    This is an Xmodem implementation designed to receive a file using 128 byte blocks. This module is intended to be passed an open and prepared port with active connection.

    At this time it can only receive 128 byte blocks, however 1k blocks are in the works. I do plan to write a send functionality soon.

    Device::SerialPort::Xmodem::Constants

    Synopsis

    This is a set of contants that return hex values for the following:

    nul ^@ 0x00 null
    soh ^A 0x01 start of header 128 byte block
    stx ^B 0x02 start of header 1k byte block
    eot ^D 0x04 end of trasmission
    ack ^E 0x06 acknowlegded
    nak ^U 0x15 not acknowledged
    can ^X 0x18 cancel
    C 0x43 C ASCII char
    ctrl_z ^Z 0x1A end of file marker

    Xmodem::Block

    Class that represents a single Xmodem data block.

    Synopsis

    my $b = Xmodem::Block->new( 1, 'My Data...< until-128-chars >...' );
    if( defined $b ) {
    # Ok, block instanced, verify its checksum
    if( $b->verify( 'checksum', < my_chksum > ) ) {
    ...
    } else {
    ...
    }
    } else {
    # No block
    }

    # Calculate checksum, crc16, 32, ...
    $crc16 = $b->crc16();
    $crc32 = $b->crc32();
    $chksm = $b->checksum();

    $b->to_string(); # outputs a formated message block

    Requirements:

    · Perl



    Product's homepage

      


    TAGS:

    file transfer | Device::SerialPort transfer protocol | Perl module | Xmodem | transfer | protocol

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM