This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /dev/dsp


I'm not quite sure if minicom is good example for testing all serial
lines. Look that if one choose character transmission from/to serial one
can select flow control by modem lines(RTS-CTS, DTR-DSR). In that case
it does not have to be task of ioctl() function to manipulate mentioned
lines. It should be build in internally in serial deriver and be active
after proper initialisation of serial port. Native Windows serial driver
should do it and Cygwin driver is only responsible for proper
initialization of this native driver. On the other hand minicom sholud
read without problem RI and CD lines and for that it has to utilize
ioctl().

Jacek
Nicholas Wourms wrote:
> 
> Jacek Trzcinski wrote:
> 
> >Hi Corinna,
> >the best way would be to connect any device on serial port which
> >utilizes both one of output lines(DTR and RTS) and one of input lines
> >(DSR, CTS, RI,CD) and test it. I do a lot of work with smart card
> >readers. One of models utilize RTS and CTS line. I tested my patch this
> >way ( converting my existing Windows reader driver to Cygwin driver)
> >seting in needed moments RTS line and reading CTS line. All of course by
> >ioctl() function. I realize You may not have such device but if You have
> >in Your company any person who is able to prepare D-SUB9 or D-SUB25
> >female connector( making loops between inputs and outputs) and connect
> >it to Your male PC serial connector, You will be able to set requested
> >output lines states and read them by input lines.
> >
> In other words, a serial loopback plug, which should be the part of any
> respectable computer technician's toolkit [very useful for verifying the
> integrity of serial ports].  I'm sure the one who works for your RedHat
> branch should have one.  Jacek, shouldn't it also be possible to port
> minicom and use that in conjunction with a modem to see if the signals
> are being sent and recieved?
> 
> Cheers,
> Nicholas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]