I`m trying to make a connection through the serial port and i have made a couple of cables following /nil.rpc1.org/psp/remote.html guide without any succes. I think he doesn't explain anything about the pins of the db9 you have to short-circuit.
It seems that pins 1(Carrier Detect) and 6(Clear To Send) of the db9 are in short-circuit but i don't know why, neither if this is necessary or just optional and if there must be other pins in short-circuit.
Thanks
PSP serial communications
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:
To disable flow control etc. on a POSIX system, something like:
Code: Select all
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);