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 

Serial port (remote) access user or kernel mode?

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



Joined: 07 Jul 2005
Posts: 23

PostPosted: Mon Nov 28, 2005 5:29 pm    Post subject: Serial port (remote) access user or kernel mode? Reply with quote

The subject pretty much says it all. Is it possible to access the serial (remote control) I/O from a user mode program (e.g. firmware 2.0) or only from a kernel mode program (such as those running in 1.5 and below).

Thanks.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Mon Nov 28, 2005 8:04 pm    Post subject: Re: Serial port (remote) access user or kernel mode? Reply with quote

27Bstroke6 wrote:
The subject pretty much says it all. Is it possible to access the serial (remote control) I/O from a user mode program (e.g. firmware 2.0) or only from a kernel mode program (such as those running in 1.5 and below).


You need a kernel mode program to install the driver (see Lua Player for an example), but the rest of the program can run in a user mode thread. This means currently it doesn't work with firmware 2.00.
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Mon Nov 28, 2005 11:14 pm    Post subject: Reply with quote

Actually you might like to try running a serial-port sample on the v2.0 wi-fi demo loader. I have a feeling that the serial-port drivers are loaded by the VSH process, in which case the loader should just make them available.

If you try running a serial app, and it doesn't complain about any unrecognised NIDs, then it should just work on 2.0.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Mon Nov 28, 2005 11:23 pm    Post subject: Reply with quote

Fanjita wrote:
Actually you might like to try running a serial-port sample on the v2.0 wi-fi demo loader. I have a feeling that the serial-port drivers are loaded by the VSH process, in which case the loader should just make them available.


I don't think that this works, because at least Lua Player registers its own device driver :-)
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Tue Nov 29, 2005 3:24 am    Post subject: Reply with quote

You cannot access the SIO for reading/writing characters from user mode at all, although you can access the rm driver, but I am guessing that isn't what you want to do.
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Tue Nov 29, 2005 10:06 am    Post subject: Reply with quote

Ah of course, that makes sense. It's a shame though :(
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
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