GrandFather -

Here is what I'd like to do:
We have a Cisco box that doesn't output anything on the Console line other than jibberish. This is often due to just to a mismatch between the settings on the device and the settings on the COM port used to connect. So before we ditch this box for having a bad console port, I'd like to have my script 'query' the console port and get its settings (if that's at all possible). Right now, when I run my program all it does is return the values that are set by me on my COM port on the PC. What I want is the program to tell me what the current settings are on the switch. We got this switch off of Craigslist for twenty bucks, and we can't do a thing with it until we can get a console connection. Because of the age of the switch (circa 2000) there's no hardware reset that we know of. We've cracked it open and tried serial connection headers and shorting pins, but no luck. So if it isn't possible to have the device cough up its current settings using Win32::SerialPort, perhaps it's possible with another module? If it isn't possible at all, meaning I don't fully understand the way a serial port works, then it was my thought to have the script keep all variables constant except for one (like baudrate) and modify its value sequentially. Then I would send some characters to the device and record the output. When I get something back I can read, I know I've got the right settings.

Regards,
Scott

In reply to Re^4: Win32::SerialPort Query Current Values by spickles
in thread Win32::SerialPort Query Current Values by spickles

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.