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 

ndPiKeyDriver.Prx for Nanodesktop 0.3.5

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



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sun Nov 09, 2008 8:28 am    Post subject: ndPiKeyDriver.Prx for Nanodesktop 0.3.5 Reply with quote

I am working, with J.F., to a version of PiKey driver for nd called
ndPiKeyDriver.Prx.

The code is almost completed, but I need someone that can do the
tests using the real hardware (SIO keyboards or IR keyboards).

When all will be completed, Nanodesktop will be able to use natively
the PiKey keyboards without many efforts for the developers.


Can anyone help me ? Please, it is important.


For Angelo and J.F.:

Please, contact me via MSN or Skype for a license question about
ndPiKeyDriver.Prx (I want to add a license file that reports your
copyright and the rights of use in the next nd distribution).
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Sun Nov 09, 2008 8:45 am    Post subject: Reply with quote

On the 13th I'll be able to test piKey... so I can test your application for IR support. I don't have SIO, sorry.

A quick question... why does your application need piKey. What does it have to offer? Unfortuntly, I have a feeling that making your application with IRDA support isn't as easy as putting it on the pikey folder.

Anyway I'll give it a go when I get a chance. I have exams this week.

My MSN is on my forums profile. (Not listed to prevent spam.) Contact me please! We're working on the same sort of applications, so we can help each other out!

Good luck! You applicaion it will help many people.

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Sun Nov 09, 2008 8:57 am    Post subject: Reply with quote

angelo wrote:
On the 13th I'll be able to test piKey... so I can test your application for IR support. I don't have SIO, sorry.

A quick question... why does your application need piKey. What does it have to offer? Unfortuntly, I have a feeling that making your application with IRDA support isn't as easy as putting it on the pikey folder.

Anyway I'll give it a go when I get a chance. I have exams this week.

My MSN is on my forums profile. (Not listed to prevent spam.) Contact me please! We're working on the same sort of applications, so we can help each other out!

Good luck! You applicaion it will help many people.

Angelo



I am online on MSN now (nanodesktop@hotmail.it)
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Mon Nov 10, 2008 12:02 am    Post subject: Reply with quote

just seen your messages....send me a copy of your work and i'll test it with openkeyboard
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Mon Nov 10, 2008 1:28 am    Post subject: Reply with quote

@ Jean.

I've chosen to remove SIO stuff from my version of piKey. I'll hand SIO stuff on to you, Jube and anybody else who does SIO input.

I'll work together with ZX81 soley on IRDA. When the Phat dies... I'll join you!

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Mon Nov 10, 2008 3:41 am    Post subject: Reply with quote

jean wrote:
just seen your messages....send me a copy of your work and i'll test it with openkeyboard


Wait a moment. In this moment I'm working on some features of
the API. When it is ready, I'll contact you...
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Mon Nov 10, 2008 4:08 am    Post subject: Reply with quote

Me too please! Email it over. I can test it with my latest pikey modules.

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Mon Nov 10, 2008 4:14 am    Post subject: Reply with quote

angelo wrote:
Me too please! Email it over. I can test it with my latest pikey modules.

Angelo


Ok, Angelo. Wait for my news...
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Tue Nov 11, 2008 12:34 am    Post subject: Reply with quote

@Angelo: no problem for removing SIO from pikey at all....in fact SIO should be handled by modules (the way i'm doing) and not by framework...maybe in future some helper code could be reintroduced just to make life easier to module writers and automagically resolve access concurrency if any...
Back to top
View user's profile Send private message
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Tue Nov 11, 2008 1:00 am    Post subject: Reply with quote

@Angelo: I've some troubles with my code here... I'm working very hard
on this.

In any case: can you install nanodesktop in your system in
the meantime ? So, I can send you only the new core of the system
when it will be finished and you can recompile the driver for PiKey
in case of troubles.
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Tue Nov 11, 2008 1:14 am    Post subject: Reply with quote

@Jean

Great. I made no adjustments to SIO since 0.3. I'll remove it from the source and the installer. ;)

I'll give you and Jube the SIO input role and we can share ideas with the other piKey plugins. (CTRLOut, OSK, Danzeff...)

Unofficial piKey 0.5 will have the source, so feel free to use it. My work is your work.

@Pegasus2000

No problem my friend. I can't program till Saturday, so take all the time you need.

About installing Nanodesktop... I'll try and do it when I get a chance. I sure hope it works because I'm using a Win32 compiler and it can sometimes have issues dealing with external libs. I'll give it a go. ;)

Good work guys!

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pegasus2000



Joined: 12 Jul 2006
Posts: 160

PostPosted: Tue Nov 11, 2008 6:58 pm    Post subject: Reply with quote

Well, ok, I've completed the API for PiKey driver. There are already some
things to do... but the main part of the work is done.

Now, I need your help.

For first thing, download the Nanodesktop distribution 0.3.5 ONLYDEV01 from Visilab website:

http://visilab.unime.it/~filippo/Nanodesktop/PSP_PSPE/Downloads/Downloads.htm

Uncompress the content in a folder (for example C:/NDENV). If you want to recompile some code, you must see the Nanodesktop User Guide.pdf
file that is **included** with the nd distribution (in the folder

<ndenv path>/PSP/Documentation

)


This distribution hasn't support for PiKey driver. So, download the following
package (it is a new nd core that supports PiKey):

http://rapidshare.com/files/162677316/Nanodesktop.rar.html

And replace the content of the folder

<ndenv path>/PSP/SDK/Nanodesktop


Now, you must install the ndPiKeyDriver.Prx in your PSP. Go to the
folder:

<ndenv path>/PSP/SDK/Nanodesktop/src/3rdparty_modules/PiKey_Driver/prx

and copy the file ndPiKeyDriver.Prx in the root folder of the MS (ms0:/)



Now, we can do some tests. The first program that I want to test is the
following


Code:


#include <nanodesktop.h>

void ndMain ()
{
    int VKBHandle1, VKBHandle2;
    int Counter;
   
    ndInitSystem ();
   
    VKBHandle1 = ndHAL_VKB_OpenKeyboardDriverForDP (ND_PSP_PYKEY_KEYBOARD);
    printf ("Keyboard handle %d %X \n", sgn(VKBHandle1), abs(VKBHandle1) );
   
    for (Counter=0; Counter<5000; Counter++)
    {
        printf ("Keypressed code %X \n", INTERNAL_VKB2_DirectPolling (VKBHandle1));
    }
   
    ndHAL_VKB_DestroyKeyboard (VKBHandle1);
}





This piece of code should call 5000 times the function for DirectPolling:
the PRX driver should return the 32 bit code associated with the key
that is pressed in that moment.

I have recompiled this program in a EBOOT.PBP and you can download
it here:

http://rapidshare.com/files/162681309/EBOOT.PBP.html

Install it on your PSP and start (after to have copied the ndPiKeyDriver.Prx
in your ms0:/ folder)

If all is ok, the system should activate the keyboard and should return
the codes of the pressed keyboard.

Test and fix this program and after we will be able to continue with
the other tests.


@ J.K. and Angelo:

The source code of the new ndPiKeyDriver.Prx is in the folder:

<ndenv path>/PSP/SDK/Nanodesktop/src/3rdparty_modules/PiKey_Driver


@ jean

In this PRX driver I've disabled the SIO debug option. I must restore this
function in a second time.


I'll wait for your news. Thanks for your help
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