PS2SDK updates and additions

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

PS2SDK updates and additions

Post by Lukasz »

Since not everyone checks the subversion logs as often as they check the forums ( I don't :-) ), I thought I'd create this thread to announce additions and updates to PS2SDK, which aren't just minor bugfixes.

I've been working on making free opensource pad replacement modules. Here is a list of my updates and additions to PS2SDK lately:
  • Added freesio2.irx - free replacement module for XSIO2MAN, built from sio2log source.
    Added freepad.irx - free replacement module for XPADMAN.
    Added freemtap.irx - free replacement module for XMTAPMAN.
    Added padx sample
    Added mtap sample
    Added xsio2man.h, xpadman.h and xmtapman.h IOP headers.
    Updated libpadx
I've only tested freepad with DualShock2 controllers and multitaps. So there might be some bugs with other types of controllers. However the bugs should be in sio2Cmds.c where the SIO2 commands are setup for different controllers, and should be very easy to locate and fix, if the controllers are tested with freepad in debug mode (uncomment DEBUG flag in makefile to enable debug mode).

It is now possibly to write your own custom lowlevel pad driver, based upon the freepad source. Some hints if you take upon this task;

- Use sio2log by Marcus R. Brown in PS2SDK to log the SIO2 send/receive data, to get an overview of what XPADMAN/freepad does to setup the pad and how it reads it. I recommend changing the logging functions in sio2log to use printf instead of writing to the logging file.
- Read padspecs.txt by Florin Sasu, this document will be of great help in undestanding what all the different sio2 pad commands do (the ones you log with sio2log).
- And of course, read the freepad source :-)
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post by cosmito »

Thanks Lukasz!
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

  • Updated freesd - Added SdNote2Pitch and SdPitch2Note. Updated version number to 1.0.
I've tested SdNote2Pitch with 12.960.000 different combinations of input and tested SdPitch2Note with 2.744.000 different combinations of input, and both functions always returned the same value as the LIBSD functions. So I'm pretty confident that both functions work correctly :-)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Nice work. All you need now is a freesmap to complete the set. :)
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

ooPo wrote:Nice work. All you need now is a freesmap to complete the set. :)
I think ps2devman already did this: http://forums.ps2dev.org/viewtopic.php?t=6784

Cody56 is also working on a new smap driver, which I'm hoping he will release as he got quite nice transfers speeds, and it would be nice to include this in ps2link . Maybe someone can poke him on IRC and get it released. :-)
Post Reply