Click to See Complete Forum and Search --> : Serial Port Programming


gommo
08-22-2002, 11:16 PM
Does anyone know how to assert the RTS line on a given serial port . And read the CTS line???

bwkaz
08-23-2002, 08:32 AM
It looks like (from the serial.c file in the kernel source, under the drivers/char directory) you can do both of those with ioctl's on the serial port device file's handle. However, I have no idea about the actual details of that. If you're familiar with ioctl's, maybe you'd want to look at it -- the relevant stuff appears to be in the rs_ioctl function, around line 2600 (in kernel 2.4.19-pre8 anyway).