Downloaded your script and ran it on a Windows 7 box, and I see FF010003005F630A going out the port.

Your problem is probably one of:

  1. Bad serial monitor. There aren't many software serial monitors that actually work on Windows 7. I use "Advanced Serial Port Monitor", which does work.
  2. Serial port permissions. Run your script under a shell that you started with right click -> run as administrator.
  3. Wrong serial port. Start device manager (under control panel) and make sure you see COM1, without any yellow or red warning symbols about the device state. This one seems likely. It's unusual (not impossible) for windows to assign COM1 to a USB to serial device. I bet your serial port is actually COM3.

In reply to Re: can't write-Win32::SerialPort by kschwab
in thread can't write-Win32::SerialPort by franko

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.