I cannot comment on functionality of HyperTerminal (or HyperDooDoo as another Monk has kindly called it), but if you are simply trying to automate a serial communicatino session, you may be better off using a Kermit like application. Likewise, if you are well versed in Perl, look into Win32::SerialPort and you will have FULL control over what happens when (and how).

Finally, if all you are trying to do is to send a few bytes here and there without any serial protocol, you can even open up the Port with this code

sysopen(COM,COM1,O_RDWR) || die "Can't open COM1 $^E";
and use these commands to write and read to the port
#code to send data to port syswrite(COM,$string); #sends $string to COM1 #code to read data from port sysread(COM,$buf,$length); #read $length bytes $received = unpack("C*",$buf); #unpack them

Hope this helps.


In reply to Re: Use perl to communicate With a windows application by gri6507
in thread Use perl to communicate With a windows application by Bloodelf

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.