I'm sorry, but your lead-in description makes me wonder if this is really a hardware question rather than a Perl (or any kind of software) question.

Does the perl script work as expected when "comport A" is something other than the Belkin USB adapter?

I gather that the problem is shown at the point in the output where it says "SUCCESS" given that "A-COM5" is supposed to be going at 9600 and "B-COM1" is supposed to be going at 1200 -- which means that "A-COM5" actually must have 1200 as some sort of default pre-set, and when you tried setting it to 9600, it remained at 1200. Is that it?

If baudrate changes work as expected on the Belkin when this is done by things other than the perl script, and if the perl script succeeds in changing the baudrate on a COM port when some device other than the Belkin is attached, you have my sympathy. Alas, that's all I can offer.

(Well, maybe you'd have to look up details on things like data bits, stop bits, parity, handshaking, xon/xoff, etc, to see if maybe there's something among that set of parameters that the Belkin doesn't support. I could well imagine a situation where the device would ignore any change request if one of these details were "out-of-spec". Have you verified that these settings in the perl script match the ones you used with Hyperterm, etc?)


In reply to Re: Can't set baudrate with Win32::SerialPort and Belkin USB adapter by graff
in thread Can't set baudrate with Win32::SerialPort and Belkin USB adapter by TGI

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.