Linux soros port DTR tiltasa

Fazekas Mihály michael at goliat.eik.bme.hu
Wed May 2 14:00:43 CEST 2007


Hali!

> Hat, ami azt illeti, ez nem oldja meg a problemamat. Itt is csak az
> ioctl(fd, TIOCMGET, &status); illetve ioctl(fd, TIOCMSET, &status);
> hivasokat emlitik, de ezekkel az a baj, hogy ahhoz meg kell nyitni
> elobb opennel a portot, ami mar aktivalja a DTR-t.
Igaz ugyan, hogy en FreeBSD -t hasznalok, ott talaltam a
comcontrol man -jaban:

-----------------------------
...
     dtrwait number
             Set the time to wait after dropping DTR to the given 
number.  The
             units are hundredths of a second.  The default is 300 
hundredths,
             i.e., 3 seconds.  This option needed mainly to set proper 
recover
             time after modem reset.

     drainwait number
             Set the time to wait for output drain to the given 
number.  The
             units are seconds.  The default is 5 minutes, 0 means 
waiting
             forever.  This option needed mainly to specify upper 
limit of
             minutes to prevent modem hanging.
...
-----------------------------

A "man ssty" pedig ezt irja:
-----------------------------
...
     clocal (-clocal)
                 Assume a line without (with) modem control.
...
-----------------------------

Ha jol emlekszem, akkor a comcontrol a linux -ban
setserial neven ismert.

-- 
mailto:michael at goliat.eik.bme.hu
Phone: 463-1966



More information about the Elektro mailing list