PspLink/usbhost problems

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

PspLink/usbhost problems

Post by Kojima »

Hey, I've set it all up according to the manual, build all the required apps on the pc side (I'm using windows xp media centre edition if that makes any difference to drivers etc) but it just doesn't work.

Here's a cut and paste from the psplink thread, just hoping someone who doesn't check that thread has a solution, cos it's really hard doing any sort of debugging just using kxploit.
Hmm, well I've set it all up according to the manual but it doesn't work.

Steps I took,

1) Install psplink on psp, set up ini file to use usb etc.

2) Run psplink on psp, am greeted with shell "host0\" etc so that appears to be fine.

3)On running windows made the 'device connected sound' and asked me for the drivers. I pointed it to the windows/driver folder and it installed PSP type B perfectly.

4) Then, following the manual I run usbhostfs_pc with an argument of the dir my elf is in.

This is where things start going wrong. There is no "Device connected" line as specified by the user manual.

But I try the next step anyway, in case usbhost has been updated.

6) Run pc term with no arguments.

This does nothing. no host0:\ line,. just a single line saying 'trying to connect to port 10000'
Shouldn't it be connecting via usb? or does the usb driver emulate ports etc?

And at this point there's nothing left to try.

Any help would be appreciated, I'm looking forward to quick dev times tools like psplink bring.

Here's my psplink ini file if it helps track down the problem.
Code:

# Example psplink configuration file.

# usbmass=[0 1] Enable USB mass storage. Set to 1 to enable automatically
usbmass=0

# usbhost=[0 1] Enable USB host file system. Set to 1 to enable automatically
usbhost=1

# pluser=[0 1] Enable the PSPLink user module
pluser=1

# resetonexit=[0 1] Specify wheher to reset psplink when sceKernelExitGame
# is called
resetonexit=1

# sioshell=[0 1] Specify whether to start up the sio shell
sioshell=0

# kprintf=[0 1] Specify that SIO should be used for kprintf only, setting sioshell
# to 1 overrides this setting.
kprintf=1

# wifi=[0..N] Specify wifi should be enabled, the number is the
# configuration to use if > 0
wifi=0

# wifishell=[0 1] Specify whether to start up the wifi shell
wifishell=0

# usbshell=[0 1] Specify whether to start up the usb shell
usbshell=1

# usbgdb=[0 1] Specify whether to use USB gdb or wifi gdb
usbgdb=1

# conshell=[0 1] Specify whether to start up the console shell
conshell=1

# consinterfere[0 1] Specifiy whether the consoleshell may interfere with
# programs in execution
consinterfere=0

# the commands that is run when buttons are pressed in the console shell
conscrosscmd=ld ms0:/sprite.elf
conssquarecmd=thlist
constrianglecmd=modlist
conscirclecmd=
consselectcmd=meminfo
consstartcmd=ls
consdowncmd=scrshot ms0:/scshot.bmp
consleftcmd=usbmoff
consrightcmd=usbmon
consupcmd=cop0

# prompt=... Set the psplink shell prompt
# There are some escape characters, mainly %d to print the current dir
prompt="%d> "

# path=... Set the psplink shell path
# Each path is separated by a semi-colon, you can specify up to around 128 characters
# path=ms0:/apps;ms0:/

# pcterm=[0 1] Indicates whether we are using pcterm as a client or normal
# tools
pcterm=0

# baud=[4800..115200] Set the SIO baud rate (should only use as a last resort)
# baud=115200

# modload=path Load a module on start up, repeat as necessary for more modules

# Example: load the modules for networking
# modload=flash0:/kd/ifhandle.prx
# modload=flash0:/kd/pspnet.prx
# modload=flash0:/kd/pspnet_inet.prx
# modload=flash0:/kd/pspnet_apctl.prx
# modload=flash0:/kd/pspnet_resolver.prx






Thanks
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

Just tried wifi shell and psplinks says it could connect to the access point. Do I have to do anything special on my router like set up port forwarding etc?
The wierd thing is, the psp's wifi led never comes on, so I'm not even sure if it tried to connect.
I've tested my wifi connection settings and the psp system menu can connect without problem. 100% signal strength.
Any ideas?
Edit- Fixed by changing it to connection number 2, even though i only have one connection setting. Just thought the author would like to know of the bug.
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

Ok i have wifi working fine with putty. i type a command and it runs it on the psp, but I'm a little confused about something. Does wifi have a host file system or do I have to manually copy my files to memory card using the usb connection screen?
I copied a elf to the putty folder and typed run "host:lesson2.elf" but it just said invalid filename
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

Fixed the connection problem by copying over the cygwin defualt usb.h with the one from the svn, it now connects to the psp device, But and it's a big one, it then completely locks up usb on the pc, I can't connect to the psp using standard usb, it blocks wifi/pcterm access and I have to do an hard boot of the pc.
Any ideas why?
Post Reply