Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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
      $PortObj->rts_active(Yes);            # return status of ioctl call
                                            # return undef on failure

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011920]
[shmem]: Discipulus: war/peace is a question of fuel gauge position...
[Discipulus]: yes i saw your cell brother..
[Discipulus]: but now fuel is cheap and they still make some war.
[Discipulus]: capitalism is able to go to war by cycle, even.
[shmem]: some? are you jokin' ?
[shmem]: fuel is only one fuel that fuels the fools... it is all about power and control - which NOBODY will have.
[shmem]: ...can't have, since silly

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-04-29 22:02 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.