PSP serial communications

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
everlasting
Posts: 41
Joined: Mon Mar 19, 2007 6:27 pm

PSP serial communications

Post by everlasting »

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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: 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);
Post Reply