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 

USB overhead?

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



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Feb 19, 2008 8:32 pm    Post subject: USB overhead? Reply with quote

Hi Guys,
I'm just wondering if anyone has ever noticed any sort of overhead
for enabling USB mass storage device, if not trying to use the MS in an app.
Once the connection is set up, does the CPU still have to work?
or is it handled by another chip?

Why not leave it on all the time in an app like irshell, and have no option to turn it off?
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Ixar



Joined: 26 Sep 2006
Posts: 11

PostPosted: Tue Feb 19, 2008 10:42 pm    Post subject: Reply with quote

Maybe is there some power consumption involved ? Like the wifi.
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Tue Feb 19, 2008 10:58 pm    Post subject: Reply with quote

because you are accessing a same device with two different operating system. it's like if you used the same hd for your operating system and at the same time ran it in a virtual machine. either operating systems will cache files/fs and will end up corrupting the file system togheter: that's why it's always discouraged enabling usb in background while using the psp
Back to top
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Feb 20, 2008 9:47 am    Post subject: Reply with quote

Thanks, that does make sense, but only if the PSP app is going to access the MS once it has loaded right?
I guess irshell was a poor example because you never know when it, or it's user will access the MS with it.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
everlasting



Joined: 19 Mar 2007
Posts: 41

PostPosted: Wed Feb 20, 2008 1:24 pm    Post subject: Reply with quote

Art wrote:
Thanks, that does make sense, but only if the PSP app is going to access the MS once it has loaded right?

Yes, i think you are right. I have tested to cut the power to a MS inserted and everything stays the same on the PSP, it still show how much memory is left in the MS, even if previously to cutting the power you had entered in the games section of the xmb, after cutting the power it still show the icons of the homebrew and whatever. Obviously the problem comes if you try to load something without powering it ;).
Apart from the data transfer pins the only one left with "OUT" capabilities in the MS is INS (inserted/removed memory stick) and considering that it is only shortcut to ground when the MS is inserted I guess that when you insert/removed a MS an interruption signal is processed, probably as you suggested by a controller. So I don't think there will be any data transfers while not trying to read/write something on the MS.

Quote:
Why not leave it on all the time in an app like irshell, and have no option to turn it off?

why don't you want to have the option of turning it off?
I'm sure you must be planning something interesting but can't guess what.
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Wed Feb 20, 2008 4:29 pm    Post subject: Reply with quote

well you can also consider the annoyance factor: for example i've frequently the usb cable connected but i don't use it or use it to run psplink/usbhostfs if you try to mount usb in these cases you will make me going to disconnect the device everytime or you will conflict with usbhostfs
Back to top
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Feb 20, 2008 7:55 pm    Post subject: Reply with quote

I suppose my questions are absolute to try to keep the answers absolute.

There is more than one specific application for me.
The one in mind at the moment is my heart rate monitor which could save
every heart rate for an entire workout session at the gym, and include that
data along with session start and finish times to represent on a graph in a PC app,
or another PSP app.
Now, it would be good to have the HRM compose the file, open USB for the
transfer to a laptop PC, and then close USB, and resume it's normal operation,
all without exiting.

Another idea was a program that opens USB so you can copy over an
updated EBOOT.PBP of the same program as you are developing it.
So if that program is set in DAX fw as the autorun program, it can open
USB for the transfer, and then restart itself by resetting the PSP.
I have done this one before, and it worked well.
Art.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Feb 21, 2008 4:02 am    Post subject: Reply with quote

Art wrote:
Now, it would be good to have the HRM compose the file, open USB for the
transfer to a laptop PC, and then close USB, and resume it's normal operation,
all without exiting.
Just use a custom USB driver that has no relation to the memory stick for this. The usbAsync stuff in psplink already has this all abstracted if you're lazy.

Quote:
Another idea was a program that opens USB so you can copy over an
updated EBOOT.PBP of the same program as you are developing it.
Sounds like psplink would do the trick? Or again just use usbAsync.
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