Re: Help about serial programming: manipulating DTR

2005-02-03 Thread llandre
That's not enough information, so I try an educated guess. It looks like the file you opened is not recognized as serial interface. What did you use as device name? FYI, it should be either "/dev/com1" or /dev/ttyS0" for the first serial. Corinna, thanks a lot again for your precious help. I us

Re: Help about serial programming: manipulating DTR

2005-02-03 Thread Corinna Vinschen
On Feb 3 09:52, llandre wrote: > > >> I'm trying to manipulate the DTR signal of the serial port. > >> As an example I used this code snippet: > >> http://lists.exploits.org/upsdev/Feb2004/00013.html. > >> I can open the com1, I can send and receive data but the ioctl I use > >> to read the statu

Re: Help about serial programming: manipulating DTR

2005-02-03 Thread llandre
> I'm trying to manipulate the DTR signal of the serial port. > As an example I used this code snippet: > http://lists.exploits.org/upsdev/Feb2004/00013.html. > I can open the com1, I can send and receive data but the ioctl I use > to read the status of the signals returns -1: > > int status;

Re: Help about serial programming: manipulating DTR

2005-02-02 Thread Corinna Vinschen
On Feb 2 17:34, llandre wrote: > Hi all, > > I'm trying to manipulate the DTR signal of the serial port. > As an example I used this code snippet: > http://lists.exploits.org/upsdev/Feb2004/00013.html. > I can open the com1, I can send and receive data but the ioctl I use > to read the status of