I can highly recommend renting a protocol analyzer to go between your computer and the sign you're working on. Something like an HP 4951A from ElectroRent (that's who I'd call in Toronto anyway) will tell you without fail what's passing from your PC to the sign.

Alternatively, you can do something clever like wrap your serial communications module in something that logs the input and output streams in real time (or maybe Win32::SerialPort has a trace feature that can be turned on). You need to be able to see the character data as well as the control lines, RTS, CTS, DTR and DSR (if they're being used -- you might be using ON/XOFF instead).

Once you can gurantee what's going on between the PC and the sign, then you can proceed to debugging your Perl code.

Yes, I have spent some time slaving over a hot protocol analyzer doing data communications work. :)

--t. alex

"Excellent. Release the hounds." -- Monty Burns.


In reply to Re: talking to serial in w2k + latest activestate by talexb
in thread talking to serial in w2k + latest activestate by tachekent

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.