| View previous topic :: View next topic |
| Author |
Message |
27Bstroke6
Joined: 07 Jul 2005 Posts: 23
|
Posted: Mon Nov 28, 2005 5:29 pm Post subject: Serial port (remote) access user or kernel mode? |
|
|
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 |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Mon Nov 28, 2005 8:04 pm Post subject: Re: Serial port (remote) access user or kernel mode? |
|
|
| 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 |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Mon Nov 28, 2005 11:14 pm Post subject: |
|
|
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 |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Mon Nov 28, 2005 11:23 pm Post subject: |
|
|
| 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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Tue Nov 29, 2005 3:24 am Post subject: |
|
|
| 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 |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Tue Nov 29, 2005 10:06 am Post subject: |
|
|
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 |
|
 |
|