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 

Keyboard Project

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



Joined: 27 Dec 2005
Posts: 2

PostPosted: Tue Dec 27, 2005 2:22 pm    Post subject: Keyboard Project Reply with quote

Hey guys. I've become pretty disgusted with the PSP on screen keyboard, so, there is some motivation to bring about some method of hardware keyboard input capability. What is the scope of a project to add functionality with a USB keyboard?
_________________
-Bradley
Back to top
View user's profile Send private message
Dr. Vegetable



Joined: 14 Nov 2005
Posts: 171
Location: Boston, Massachusetts

PostPosted: Tue Dec 27, 2005 11:14 pm    Post subject: Reply with quote

There are a few keyboard projects going on right now, mostly centered around using IR keyboards that were designed for use with PDAs. There is also an effort underway to figure out how to interface USB peripherals with the PSP, but its USB protocol is a bit non-standard, so this will probably require the development of custom USB drivers and special cabling. For starters, the PSP normally behaves as a slave USB device (a simple memory stick adapter) when connected to a PC. But it uses the fifth line on the mini-USB connector (normally not connected) in order to negotiate with Sony peripherals and apparently switch into some semblance of USB bus master mode.

The most widely-used "keyboard" library for homebrew applications is Arwin's p-sprint, which maps keyboard input onto button press combinations on a standard PSP. I have written a crude proof-of-concept program to display characters typed on a Belkin PDA keyboard, and a few others are working with other models of keyboard as well. I am looking at adding support for IR keyboard maps into p-sprint in order to be able to use a "real" keyboard with the many apps that use this library. I think it would be great if someone figured out how to support USB keyboards also.

Here are a few related topics:

USB:
Jakx / Daxter / USB
Does anyone recognize any of this?

Keyboard Drivers and Libraries:
IrDA concept keyboard driver with source
IR Keyboard Configuration & Driver Program. v.02
Am I missing something obvious?
IrDA Keyboard Support Library?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
tiersten



Joined: 06 Jun 2005
Posts: 1

PostPosted: Fri Dec 30, 2005 1:10 am    Post subject: Reply with quote

Dr. Vegetable wrote:
But it uses the fifth line on the mini-USB connector (normally not connected) in order to negotiate with Sony peripherals and apparently switch into some semblance of USB bus master mode.

This is an official extension of the USB 2.0 standard called USB On-The-Go. Newer digital cameras implement it so you can plug them straight into compatible photo printers. The devices negotiate with each other to decide who should be the host and who should be the peripheral.
Back to top
View user's profile Send private message
Dr. Vegetable



Joined: 14 Nov 2005
Posts: 171
Location: Boston, Massachusetts

PostPosted: Fri Dec 30, 2005 7:25 am    Post subject: Reply with quote

The PSP doesn't have the right kind of USB connector for USB-OTG (it should accept two kinds of mini-USB connectors) and it also uses the two connectors on either side of the USB port to provide power to the peripheral. At least from an electrical/physical level, this isn't USB On The Go.

But I don't know if anyone has sniffed the fifth line to see what is happening there. It could very well be USB-OTG protocol (or some variant) but I don't think that has been determined yet.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
deathazre



Joined: 27 Dec 2005
Posts: 2

PostPosted: Sun Jan 01, 2006 5:20 am    Post subject: PSP Keyboard Reply with quote

Thank you kindly. Your response is very valuable to me, I hope to contribute to this community in the future. =)
_________________
-Bradley
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Mon Jan 02, 2006 7:42 pm    Post subject: Reply with quote

The PSP comes with an Onboard Serial Connector which runs on a 2.5v current. 2.5v is Plenty enough to run a lower powered USB device, ie a USB Keyboard. Which would come down to only software and hardware.

I think this would be the most ideal way of doing things.

Please note the serial port is 1 connector more than a USB cable which I would assume that connector is ground or a dummy cable.

Have fun
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Wed Jan 04, 2006 11:10 am    Post subject: Reply with quote

Quote:
the serial port is 1 connector more than a USB cable

you mean one pin?

...and how do we convert USB <-> RS232?
I only see USB-2-RS232 converters for PCs, where the USB is on the
host (ie PC) side..
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Wed Jan 04, 2006 5:42 pm    Post subject: Reply with quote

usb is the same as rs232 but uses a differnt type of memory handler.. So mapping of the keyboard should be a simple step.

If you take a look at the PS2(Keyboard/mouse) to USB adapters that are out you will notice that there is minimal change's in the PS2 configuration. IE: Straight through wires and no circuit board.

PS2 is a serial connection adapted to the Windows interface. Since the Serial adapter for the older style keyboards runs on the same concept.

The only issue would be powering the device which would have to be a loopback (IE plugged in) on the headphones (only to use the Serial Port with power).
Back to top
View user's profile Send private message
digihoe



Joined: 14 May 2005
Posts: 108

PostPosted: Wed Jan 04, 2006 10:07 pm    Post subject: Reply with quote

Has anyone seen my post on this?

http://forums.ps2dev.org/viewtopic.php?t=3998&highlight=

I think one can use a PS2-USB adapter if one has to...

Best regards!
Back to top
View user's profile Send private message
Namlas



Joined: 15 Aug 2006
Posts: 2

PostPosted: Sun Aug 20, 2006 9:48 pm    Post subject: using a normal keyboard to emulate the psp's button combinat Reply with quote

hi,
I was just wonderwing would it be possible to interface with sony's firware virtual keyboard with a actually keyboard through the psp remote port.the virtual keyboard on the psp requires the user to press the x button and use the d-pad. for example, for the letter "b" the user must press thex button twice. Would it be possible to connect up a keyboard(normal pc) to the psp remote and when the letter b is pressed on the keyboard the signal is converted to a command that will tell the psp the x button has been pressed twice , hence interfacing with the txt entry with sony's firware ? Or is this an impossible and stupid idea?
Back to top
View user's profile Send private message
Grizzly_cf



Joined: 24 Jul 2006
Posts: 6

PostPosted: Sat Aug 26, 2006 8:22 pm    Post subject: Reply with quote

Hi.

At now I just work on this project. For more details: PSP-Team.



What I'm done:
- Make a adapter PSP<>Ericsson CHA-10
- Few programs to test communication witch chatboard

To do:
- Make better adapter witch include Jack plug.
- Fix problem witch communication
- Do final program to use the chatboard

Features:
- Support witch Ericsson Chatboard CHA-10
- Working in background
- Easy plug in/plug out
- Nice looking adapter
- Easy way to reconfigure all keys on CHA-10
- Still you could plug a headphones

Program will be simulate a click of sequence of buttons. So if we have virtual keyboard like in cell phone, and we hit "a" on cha-10, the program will simulate analog up and, rectangle. Propably I will need to wrote a PRX libary. Maybe keyboard will be working only witch in Custom Firmware, at now I dont know. Propably I will pattern on code of program to do ScreenShot (code to the background work).

At now I break on some of problem witch communication. Chatboard send my only first string "A" (correct should be "AT" and 13 <-Carriage Return).
More about transmision witch CHA-10:
Code:
Startup protocol where: -> = "from chatboard", <- = "to chatboard", and <13> = ASCII 13

Ericsson Chatboard Driver v0.01
Finding Keyboard...
-> AT<13>
<- OK<13><10><0>
-> AT+CGMM<13>
<- OK<13><10><0>
-> AT+CGMR<13>
<- OK<13><10><0>
Keyboard detected!
Please press the SMS key...
-> AT*EDME?<13>
<- OK<13><10><0>
-> AT*ESVM?<13>
<- OK<13><10><0>
-> AT+CKPD="eseee<see<<s>>ss1"<13>
<- OK<13><10><0>
-> AT+CKPD="c",25<13>
<- OK<13><10><0>
Keyboard initialised!

From Mage Forge.

First I used the sample app from LuaPlayer, next time I was write my own program in LUA, few days later I wrote test program in C. All Workings good, but still I recived only first string :(. But when I send "OK" 13, 10 to the cha-10, it will reply to me of some four numbers. I used also some code from GPS.
Code:
   while(i<200000000)
   {
      i++;
      sceKernelDelayThread(20);
      ch = pspDebugSioGetchar();

      if (ch>0) {
         if (ch=='\n')
            linecounter++;
         if (counter<510 || linecounter<4)
            buffer[counter++]=ch;
         else {
            memset(buffer,0,sizeof(buffer));
            counter=0;
            linecounter=0;
         }

         status = nmeap_parse(&nmea,ch);
       
        switch(status) {
        case NMEAP_GPGGA:
         /* GOT A GPGGA MESSAGE */
            print_gga(&gga);
            break;
        case NMEAP_GPRMC:
         /* GOT A GPRMC MESSAGE */
            print_rmc(&rmc);
            break;
        default:
            break;
        }

Ofcourse I changed it.

Maybe somone know what's the problem.

Sorry for my english I know is very weak :(

Regards!
_________________
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