Sorry, no. The symptoms you describe look, feel, smell and taste like the classic win32 textmode conversion. If the module is ensuring that none of Perl's IO layers, nor the C runtime layers are exercising an influence upon the datastream, then I cannot see where the problem would lie.

My instinct says that the OS, CRT or PerlIO layers *must* be getting involved somewhere in the chain and treating the datastream as text instead of binary. Not that it isn't possible for a different explanation, but the obvious one is usually right.

A few thoughts.

Basically, you need to track down where the datastream is being modified. If this is a real serial port, then I'd try attaching a Serial Port analyser to the connection. I used to have a blue cable with a built-in patch box and LEDs that could latch on byte at a time. It's probably in the loft somewhere, but I cannot remember the brand name.

Alternatively, you could try monitoring the port with on of the many free software analysers that are available on the net. Once you are convinced that the same data that is leaving the device is being received, then you move up to the module itself.

Try enabling debug on the module. If that shows the data being received from the device driver correctly, then make a copy of the module for backup and then go in and add some trace statements and see if you can find where the modifications are being made. If the problem is in the DD, you're faced with trying contact the supplier and find out if there is a later version, or some IOctl that you can set to disable it. And so on.

Sorry that's not much help. I last used the module on my old laptop under NT4. It seems to have moved on quite a bit since.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^4: How to get right data from COM1 using Win32::SerialPort by BrowserUk
in thread How to get right data from COM1 using Win32::SerialPort by Chenny

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.