To be more specific, I need to determine if a modem, used for dial-up has a connection established or not.

I'll here assume that you know (or are able to determine) that there is a modem connected to the serial port. If so, this is probably not a Perl problem, but more of a modem problem.

If this is a "Hayes-compatible" modem, you'll need to read the users manual for the modem in question to determine what 'AT' commands are supported by the modem. You'll have to find out if there is any AT command that will tell you what you want to know.

"Livet är hårt" sa bonden.
"Grymt" sa grisen...


In reply to Re: Gain information about serial ports by Biker
in thread Gain information about serial ports 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.