From: Philipp Guehring <[EMAIL PROTECTED]>
   Date: Sat, 12 Jun 1999 15:35:28 +0200

Hi,

   > How can I set the DTR line of the serial port with Linux?
   > For example /dev/ttyS1.
   > I already searched through the Documentation, but I could only find
   > some functions in the kernel, which want a structure called 
   > "async_struct"

  int PortFD;
  unsigned int Flags;

  /* opening the device */

  PortFD = open ("/dev/ttyS1", O_RDWR);

  /* setting the DTR bit */

  Flags=TIOCM_DTR;
  ioctl(PortFD, TIOCMBIS, &Flags);

for more info see Serial-Programming HOWTO.
-- 
Pavel Janík ml.
[EMAIL PROTECTED]

Reply via email to