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 

Printf to UsbHostfs_pc or pcterm with psplink?

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



Joined: 09 Jul 2005
Posts: 5

PostPosted: Mon Mar 13, 2006 7:33 am    Post subject: Printf to UsbHostfs_pc or pcterm with psplink? Reply with quote

Is it possible to do a printf to either pcterm or the usbhostfc_pc app using the usb connection for PSPlink? I'm finding lots of good information on sio out throuh the serial post, but nothing that really mentions the usb connection for this behavior.
Back to top
View user's profile Send private message Visit poster's website AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Mar 13, 2006 4:51 pm    Post subject: Reply with quote

If you read the manual of psplink then you will see there is a USB shell available (you enable it on the psp side then connect using pcterm to the localhost), that doesn't just do the shell of course it also does printfs from your app to your pc.
Back to top
View user's profile Send private message
gadget



Joined: 09 Jul 2005
Posts: 5

PostPosted: Tue Mar 14, 2006 1:34 pm    Post subject: Reply with quote

TyRaNiD wrote:
If you read the manual of psplink then you will see there is a USB shell available (you enable it on the psp side then connect using pcterm to the localhost), that doesn't just do the shell of course it also does printfs from your app to your pc.


Actually, i've been using the usbShell to load and run code. The pdf file was the first place I went to in search of help. :) I have a printf as one of the first lines in my app, just printf("hello");. Should this appear in the PCTerm window or the usbHostFS? The app itself is running fine on the PSP.

Thanks for your help.
Back to top
View user's profile Send private message Visit poster's website AIM Address
ginka



Joined: 17 Feb 2006
Posts: 15

PostPosted: Tue Mar 14, 2006 3:53 pm    Post subject: Reply with quote

gadget wrote:
I have a printf as one of the first lines in my app, just printf("hello");. Should this appear in the PCTerm window or the usbHostFS?


It will appear in the pcterm window. The very first line in main() in most of my apps is a printf(), and they always print out to the pcterm window.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Tue Mar 14, 2006 4:50 pm    Post subject: Reply with quote

Well if you have the usb shell running then printf is working as the shell itself uses printf to display the text on the screen. A common mistake (and one ill admit to have done :)) is if you have moved across code from an existing app which originally printed to the screen you still have the #define printf pspDebugScreenPrintf at the top, this would mean you are not actually calling the real printf. Check this first.
Back to top
View user's profile Send private message
gadget



Joined: 09 Jul 2005
Posts: 5

PostPosted: Wed Mar 15, 2006 1:02 pm    Post subject: Reply with quote

TyRaNiD wrote:
Well if you have the usb shell running then printf is working as the shell itself uses printf to display the text on the screen. A common mistake (and one ill admit to have done :)) is if you have moved across code from an existing app which originally printed to the screen you still have the #define printf pspDebugScreenPrintf at the top, this would mean you are not actually calling the real printf. Check this first.


Thanks, I'll take a look at that. Great tool by the way :)
_________________
<!-- Coder grrl. -->
Back to top
View user's profile Send private message Visit poster's website AIM Address
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