Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need to detect continuity between 2 terminals

by jmlynesjr (Pilgrim)
on Jan 06, 2013 at 21:17 UTC ( #1011920=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($PortObj->can_wait_modemlines) {
          $rc = $PortObj->wait_modemlines( MS_RLSD_ON );
          if (!$rc) { print "carrier detect changed\n"; }
    ...
         $ModemStatus = $PortObj->modemlines;
         if ($ModemStatus & $PortObj->MS_RLSD_ON) { print "carrier detecte
    +d\n"; }
      }
    
  2. or download this
    # controlling outputs from the port
      $PortObj->dtr_active(T);              # sends outputs direct to hard
    +ware
      $PortObj->rts_active(Yes);            # return status of ioctl call
                                            # return undef on failure
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-08-20 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls