forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP serial communications

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
everlasting



Joined: 19 Mar 2007
Posts: 41

PostPosted: Sat Mar 24, 2007 2:10 am    Post subject: PSP serial communications Reply with quote

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
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Mar 24, 2007 3:47 am    Post subject: Reply with quote

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);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group