Hi all,
I'm having trouble programming a serial port. Long story, short: I'm trying to use a USB-Serial board to control a serial relay. I've installed the FTDI drivers and the USB-Serial board shows up in /dev as 'tty.usbserial-A6008501'. I can access the board using kermit by setting the baud rate to 9600 and turning off 'carrier watch'. But I really want to access it from the terminal or directly using C since I have written the control program in C. I can accomplish this by calling kermit from the C program, but this seems to introduce an intolerable lag (even though it is slight). I've tried using the following command, which is supposed to work from Linux:
echo -e 'xFF\x00\x01' > /dev/tty.usbserial-A6008501
but it just hangs. I've tried using the following to change the baud rate:
stty -f /dev/tty.usbserial-A6008501 9600
and then issuing the echo command but it still just hangs. I've also tried turning off the carrier detect using -mdmbuf or -clocal but the settings don't seem to stick. If I query using stty, neither of the flags is present.
Can someone give me a little help on this? Why can't I get the stty flags to stick and is there a way around it?
Thanks!
kman