jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Mar 24, 2007 3:47 am Post subject: |
|
|
If you turn off hardware flow control & carrier detection on the PC side, then you only need GND, TX, RX, and you can ignore all other lines.
To disable flow control etc. on a POSIX system, something like:
| Code: | struct termios options;
int fd = open(device,O_RDWR|O_NOCTTY);
fcntl(fd,F_SETFL,0);
tcgetattr(fd, &options);
cfsetispeed(&options, B9600);
cfsetospeed(&options, B9600);
cfmakeraw(&options);
options.c_cflag |= (CLOCAL | CREAD);
options.c_cflag &= ~CRTSCTS;
tcsetattr(fd, TCSANOW, &options);
|
|
|