Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Need to detect continuity between 2 terminals

by jmlynesjr (Hermit)
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-06-28 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (349 votes). Check out past polls.