Re: SerialPort for Active perl 5.6.1

From: Grumbler49 (grumbler49_at_nurfuerspam.de)
Date: 10/26/03

  • Next message: Bob X: "Re: CGI-FastTemplate still around?"
    Date: Sun, 26 Oct 2003 11:16:19 +0100
    
    

    Hi,

    Summary after successful installation
    =====================================
    After installing the relevant modules I can use the serial
    port, at least with the available examples coming with SerialPort.
    (Nearly all tests were successfully, see below).
    The clear statements from Bill, e.g. to install the pure Perl module
    from CPAN were very helpfull.

    As adviced by Bill, I will no longer try to get 'open(PORT "+>COM2")..'
    and related read(), print,.. into operation.

    Even, if I (now) do not understand all what is described in the README,
    in the demo-scripts and the Module documentation, it seems that
    the "SerialPort" module is best suited to solve my problem.

    More details:
    1. I installed successfully the Win32-API [V0.41] with ppm (ppm V3)
        from Active State.
        I added and used the repository:
        http://www.ActiveState.com/cgibin/PPM/ppm.server.plex?urn:/PPMServer
        (with the ppm command "rep add ..." and by switch off all other
        repositories with "rep off N")
        because the existing link did not find the "ppd file" and
        as suggested in "ActivePerl Help - Using PPM"
        (URL:
    http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html)

        "Install 'Win32-API' Version 0.41 in ActivePerl 5.6.1.635."

        Note: I did not download Win32-API from CPAN, therefore the
        test suit is not available on my PC yet.

    2. I downloaded 'Win32-SerialPort-0.19.tar.gz' from CPAN
        (Files in the folders Win32 and Win32API are identical; on
        Bill's Homepage the V0.19 is indicated as the last one, too.
        and available as aZip file (SerialPort-019.zip).
        see "Perl Serial Programming Resources" at
        URL: http://members.aol.com/bbirthisel/alpha.html

        I used the CPAN tar file for the following tests and to install.

    3. After unpack all files in a separate directory:
        - perl Makefile.pl COM2
        - perl test.pl (Nothing connected on port COM2)
          -nearly all tests completed with "ok". A few of them failed (see
           attached logfile):
           One Test (201 in test6) checks, that Stop bit == 2,
           and all others are near the "can_parity_enable" primitive, which
           is described in the documentation for NT (see section BUGS).
           I'm using Windows XP Home Edition ([Version 5.1.2600]).
           The related COM driver is: "Microsoft Treiber 5.1.2600
           from 1.7.2001" as deduced from Hardware Manager.

        - perl t/test4.t >t4.log (and test6.t) to see e.g. "not ok 100".

        - I decided to install it anyway and not to use these features.
          (installed with "perl install.pl")
          Note: Win32::SerialPort is not visible in 'perldoc perllocal' or
          in ppm's query list.
                The available options with 'perl options.plx COM2' shows
          also 2 in STop Bit and the capability "can_parity_enable"

    4. Running the demoX.plx files (adapt port to COM2, and using a
        Notebook connected with a "Null-Modem cable")
        Notes:
        -The "can_parity_enable" Problem m.a. appears in demo4.plx
        -demo8 requires Term/Readkey, which does not exist in my perl
         environment.

    Logfile created with perl test.pl >test.log
    -------------------------------------------
    t/test1.............ok
    t/test2.............ok
    t/test3.............ok
    t/test4.............FAILED tests 100, 252
            Failed 2/516 tests, 99.61% okay
    t/test5.............ok
    t/test6.............FAILED tests 74, 114, 116, 201, 233, 237
            Failed 6/315 tests, 98.10% okay
    t/test7.............ok
    Failed Test Status Wstat Total Fail Failed List of Failed
    --------------------------------------------------------------------------------
    t/test4.t 516 2 0.39% 100, 252
    t/test6.t 315 6 1.90% 74, 114, 116, 201, 233, 237

    Regards
    Hartmut


  • Next message: Bob X: "Re: CGI-FastTemplate still around?"

    Relevant Pages

    • Re: pkgdb -F and a few other questions
      ... Some of the app's were dependent on Perl 5.6.1, ... > to the Perl 5.8.1 and all is well, and ran a use.perl port command. ... Yes -- replacing the main perl installation does tend to blow away ... All of the packages in question are modules you've installed directly ...
      (freebsd-questions)
    • Re: Anyone setup or using Request Tracker?
      ... >>that it wouldn't be a good idea to start without Perl 5.8.3. ... > I need to apologize to the port maintainer. ... > about upgrading RT in general. ... Might make installation easier. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Updated perl - broke stuff
      ... >> it is built with the newer dependency. ... > I don't see why any port should be rebuild just because a Port it ... > like perl, ruby and python, and don't affect the vast majority of the ... what dependencies it uses at the time of installation. ...
      (freebsd-questions)
    • Re: Updated perl - broke stuff
      ... All the ports that depended upon perl ... > has a stale dependency. ... I don't see why any port should be rebuild just because a Port it ... that the installation directory of the perl modules has changed with the ...
      (freebsd-questions)
    • RE: rs232?
      ... // Setup the serial port using hardware handshaking ... "CSerial is the base serial class, which provides a wrapper around the Win32 ... CSerialWnd fits in the Windows event driven model. ... I tried to enter words like SerialPort class in the help, ...
      (microsoft.public.vc.language)