| View previous topic :: View next topic |
| Author |
Message |
Fabre
Joined: 22 May 2005 Posts: 18
|
Posted: Wed Feb 08, 2006 2:52 pm Post subject: Using Infrared Keyboard On PSP? |
|
|
Note: This does not relate to the Laser Keyboard discussion a few topics down.
I am wanting to write a decent PDA application for the PSP, but the only limitation I have at the moment is that data input would be quite difficult. Does anyone have both a PSP and an IR keyboard (such as the 'PalmOne Wireless Keyboard')? If so, could you please run this application: http://dl.qj.net/Infra-Red-Capture-with-source-Gaming-Consoles-PSP-Homebrew-Applications/pg/12/fid/416/catid/189 on your PSP, and press keys on the keyboard, then reply with whether or not some type of key codes are displayed on the screen?
I am asking this because I need to know whether the keyboard simply sends key codes to the device, or whether it needs to be initialised first. If it just sends the key codes automatically, I'll get an IR keyboard and begin work on this right away. If the keyboard needs some kind of initialisation, it will make my job much harder.
Thanks in advance! |
|
| Back to top |
|
 |
Saotome

Joined: 03 Apr 2004 Posts: 182
|
|
| Back to top |
|
 |
Fabre
Joined: 22 May 2005 Posts: 18
|
Posted: Wed Feb 08, 2006 6:39 pm Post subject: |
|
|
I guess that answers my question, then! :p
Thanks |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Wed Feb 08, 2006 9:00 pm Post subject: |
|
|
| Quote: | | but the only limitation I have at the moment is that data input would be quite difficult. |
Fabre, I am not sure if you are aware of this, so let me put it here:
http://fosk4psp.dynamicweb.hu/ |
|
| Back to top |
|
 |
Fabre
Joined: 22 May 2005 Posts: 18
|
Posted: Wed Feb 08, 2006 10:52 pm Post subject: |
|
|
| Yes, I have actually seen that before. But I doubt I could get up to 75 WPM on it like I can on a full keyboard, and I believe it would be the same for a lot of people. |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Thu Feb 09, 2006 4:16 am Post subject: |
|
|
It is somewhere between typing an SMS and 75WPM ;-)
Seriously, I know there is a huge need for a real keyboard.
And I am also interested in the IR / Serial /WF tricks to use...
..but who wants to carry two boxes in his pocket with two sleeves,
two sets of batteries, two chargers when traveling?
Suppose I am sitting on a train, and just want to make a note in N0tepad.
Would you pick out the IR keyboard, put it against the PSP keeping it
on your knee an typing 5 chars? Of course, this all after turning the screen upside down,
activating the IR mode on both devices,
choosing the file to edit and moving the cursor to the right position
with the analog (or digital) stick of the PSP?
I've seen somewhere a tiny see-through plexy-like keyboard attachable
to the USB hole of the PSP in the same way as the usb mike is...
but, again, we get back to the WPS point. Unfortunately.
Anyway, tapping the communication of 'that' keyboard would allow us to figure out how to make it with the psp-firmware... |
|
| Back to top |
|
 |
DrNicket

Joined: 26 Nov 2005 Posts: 13 Location: Duncan, BC, Canada
|
Posted: Thu Feb 09, 2006 6:51 am Post subject: Which iR keyboards for PSP? |
|
|
Is this a good place to ask this question?
What iR keyboards are available that will work with the PSP and how much are they (ballpark is fine).
The exact prices and where I can figure out myself.
Thanks _________________ Dr. Nicket
----------------------------------------------------------------------------
"Alright, you primitive screwheads, listen up. See this? This is my BOOMSTICK!"
- Ash (Bruce Campbell) |
|
| Back to top |
|
 |
Saotome

Joined: 03 Apr 2004 Posts: 182
|
Posted: Thu Feb 09, 2006 7:16 am Post subject: |
|
|
mrn, I don't want to sound rude, but to me It looks like you're trying to convince everyone that hardware solutions for a keyboard are bad or not as good as 'OSK'. But don't forget this thread is about IR-Keyboards and its in the Hardware-forum. So please try not to use every keyboard thread to advertise FOSK, thanks ;P
@DrNicket: try ebay, thats where I got mine (PDA IR-keyb for 20€), I'm still waiting for it to arrive so I don't know yet how easy it will be to use it in my programs. But I think every IR keyboard (or most) should work with the PSP, you just need to write the right driver software ;) _________________ infj |
|
| Back to top |
|
 |
DrNicket

Joined: 26 Nov 2005 Posts: 13 Location: Duncan, BC, Canada
|
Posted: Thu Feb 09, 2006 10:59 am Post subject: |
|
|
| Saotome wrote: | | @DrNicket: try ebay, thats where I got mine (PDA IR-keyb for 20€), I'm still waiting for it to arrive so I don't know yet how easy it will be to use it in my programs. But I think every IR keyboard (or most) should work with the PSP, you just need to write the right driver software ;) |
That's step 2 and 3. Step 1 is finding out what make and model others have found practical and functional for their PSP. The driver...I was hoping to find that too.
I did have an independant thought.. what about a keyboard that lives on the backside of the PSP? You'd have to almost be stenographer-grade proficient with it though... You'd also have to hold the PSP by the sides so you don't hit the keys.
Alternately we/they/whoever could/should design a keyboard that clips onto the back of the PSP and either foldsout and down (beneath) or is positioned right at the bottom. The clincher here is it would have to counterweight the PSP (Practicals: PSP Battery-Pack? I can draw up plans for such a thing, but I'd need investors to create a proto-type and coders to create the drivers.
I'm an idea man whose willing to see an idea through to completion. _________________ Dr. Nicket
----------------------------------------------------------------------------
"Alright, you primitive screwheads, listen up. See this? This is my BOOMSTICK!"
- Ash (Bruce Campbell) |
|
| Back to top |
|
 |
Fabre
Joined: 22 May 2005 Posts: 18
|
Posted: Thu Feb 09, 2006 1:14 pm Post subject: |
|
|
| mrn wrote: | | but who wants to carry two boxes in his pocket with two sleeves, two sets of batteries, two chargers when traveling? |
It's no different than if you had to carry a PSP and a Pocket PC or Palm.
| mrn wrote: | | Of course, this all after turning the screen upside down |
All infrared keyboards that I have seen have the infrared LED mounted on a swinging 'arm' so that it can be positioned above the device:
 |
|
| Back to top |
|
 |
Arwin
Joined: 12 Jul 2005 Posts: 426
|
Posted: Thu Feb 09, 2006 10:21 pm Post subject: |
|
|
| mrn wrote: | | It is somewhere between typing an SMS and 75WPM ;-) |
I manage about 40WPM with p-sprint. :p Unfortunately I also have a Blackberry, so I don't really need the PSP for that kind of thing until I have some kind of portable access point for it.
But enough with that. If you want to make a useful discussion out of FOSK, IRDA, P-Sprint and so on support, the best thing to do is make sure that they can all be supported through a similar interface.
I think the interface I designed for p-sprint, which is very similar to regular keyboard programming interfaces I think, is a good interface to use.
I am willing to help out on the coding part to make this work for IR keyboards and other solutions alike. |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Thu Feb 09, 2006 10:33 pm Post subject: |
|
|
| Quote: | | Fabre: I am wanting to write a decent PDA application for the PSP, but the only limitation I have at the moment is that data input ... |
.
.
| Quote: | | Saotome: ..So please try not to use every keyboard thread to advertise FOSK |
Saotome, I just wanted to help him. Not to give up his project early becouse of a missing piece of hardware.
I can not help that he raised his PDA-like app here. btw, guys: Do you have some news about PSP Pda?
Forget it....
| Quote: | | ou're trying to convince everyone that hardware solutions for a keyboard are bad or not as good as 'OSK' |
Never said anything like that. I'll be the first one to get an IR keyboard if there will be a nice web-browser with an IR support.
But to start developing a PDA-like app... any OSK should be ok. imho.
piece! m. |
|
| Back to top |
|
 |
Dr. Vegetable
Joined: 14 Nov 2005 Posts: 171 Location: Boston, Massachusetts
|
Posted: Fri Feb 10, 2006 2:30 am Post subject: |
|
|
I agree that Arwin's API appears to be suitable for use with any keyboard, although it could be simplified a bit. What is missing, IMHO, is clear documentation in the p_sprint.h header file that explains what the contents of each field in the p_sp_Key struct are used for. It would also be helpful if the header file defined an enumeration of all standard keycode values that may be returned to the application.
I would also like to see a simplified keyboard API, something like:
| Code: | wchar GetKeystroke(); // Return (unicode?) keycode value or 0x0000 if no key
bool KeystrokeAvailable(); // Returns true if a keystroke is available
|
...which would allow code like...
| Code: | wchar key;
if (KeystrokeAvailable())
{
key = GetKeystroke();
switch (key)
{
case KEY_F1:
// F1 key pressed...
break;
// etc...
}
}
|
...or even better...
| Code: | switch (GetKeystroke())
{
case KEY_NONE: // 0x0000 - No key was pressed.
break; // Do nothing.
case KEY_F1:
// F1 key pressed...
break;
// etc...
}
|
Arwin, I was wondering why you do not #include "p_sprint.h" in your own p_sprint.c file? Then you could get rid of the redundant definitions in the .c file, eliminating one common source of potential programming headaches.
Anyway, I'll try to finish folding support for my Belkin IrDA keyboard into p-sprint over the next couple of days. |
|
| Back to top |
|
 |
Arwin
Joined: 12 Jul 2005 Posts: 426
|
Posted: Fri Feb 10, 2006 7:17 pm Post subject: |
|
|
Would most of your questions be answered if I told you that p-sprint is, in fact, my very, very first real c project? :)
I think that'll explain some of it anyway. I am happy to take in your suggestions of course! I was mostly just very happy when it worked. :) (my hopes weren't too high - starting with C on the PSP seemed a little ambitious)
I was assuming that keycodes are codes that identify the key being pressed, not the resulting character. If I am correct in that assumption, then unicode values aren't relevant at this stage. Instead, a combination of keycode and modifiers would indicate a certain character matched with an unicode value. Outputting unicode char values should be left to a higher level, I think.
The interface I wrote is intended to represent the keyboard state. I have programmed for different environments, and this is the most practical, all purpose interface I came across. It provides the functionality you ask for - you would simply just look at the keycode values.
The active group code is needed for a user interface to anticipate on what group mapping is selected. Perhaps this should be taken out and implemented differently, because it is relatively specific to p-sprint.
The way I see it, one elegant solution would be to reinterpret p-sprint's active group as 'active keymap id'. Then we can have the user define different keymaps, select them, and read the keymap setting from the same interface as everything else. |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Sun Mar 05, 2006 7:21 pm Post subject: |
|
|
| Guys, are there any news regarding this PDA app Fabre is working on? thnx, m |
|
| Back to top |
|
 |
Fabre
Joined: 22 May 2005 Posts: 18
|
Posted: Sun Mar 12, 2006 7:58 am Post subject: |
|
|
| It's still coming, I'm just taking my time to make sure it is professional and I don't want to announce too much yet before I have more of it complete. |
|
| Back to top |
|
 |
white rabbit
Joined: 06 Jul 2005 Posts: 60
|
Posted: Fri Apr 07, 2006 2:22 am Post subject: |
|
|
Has anybody got one of these working yet?
I'm bidding on one on eBay now so if I win it I'll be very interested in getting a code editing app (vi / emacs / etc) that runs with it.
If not, I'll have a look when I get hold of one and try to glue together some bits that are about to get a proof of concept then clean it all up into a IR keyboard driver code / PRX. |
|
| Back to top |
|
 |
Saotome

Joined: 03 Apr 2004 Posts: 182
|
Posted: Fri Apr 07, 2006 6:51 am Post subject: |
|
|
I bought this one on ebay (works without problems in my psp mips asm editor ;)). Maybe its the same one you're bidding on.
here's my driver (source) for it. _________________ infj |
|
| Back to top |
|
 |
white rabbit
Joined: 06 Jul 2005 Posts: 60
|
Posted: Fri Apr 07, 2006 7:29 am Post subject: |
|
|
Cheers Saotome.
It's not quite the same, I'm bidding on this one: ebay
But I'm sure your code base will run most of it, if not all of it.
Thanks again! |
|
| Back to top |
|
 |
|