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 

program to tell if wlan switch is on/off

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



Joined: 04 Feb 2005
Posts: 1

PostPosted: Sun Aug 07, 2005 12:36 pm    Post subject: program to tell if wlan switch is on/off Reply with quote

i'm fairly new to the who psp codeing scene and just wanted to share this little program i made. Basicly it prints to screen if the wlan witch is on or off simple huh?

you can get it here, source included of course =P
Back to top
View user's profile Send private message
kutibah



Joined: 12 Jul 2005
Posts: 2

PostPosted: Mon Aug 08, 2005 1:48 am    Post subject: Reply with quote

Thank you very much for creating this program. I think it is very handy. I always have trouble finding out if the switch is on or off. It's especially useful in airplanes when you are required to turn the wifi switch off. Thanks! Hope you implement some more features soon.
Back to top
View user's profile Send private message
F9zDark



Joined: 02 Apr 2005
Posts: 127

PostPosted: Mon Aug 08, 2005 2:53 am    Post subject: Reply with quote

Cool program, but about the airplane thing, the WiFi is always off(even when the switch is on) and remains off until you tell the PSP to connect to a wireless connection, so I don't really see why one would have to physically turn it off.
Back to top
View user's profile Send private message AIM Address
kutibah



Joined: 12 Jul 2005
Posts: 2

PostPosted: Mon Aug 08, 2005 5:29 am    Post subject: Reply with quote

F9zDark wrote:
Cool program, but about the airplane thing, the WiFi is always off(even when the switch is on) and remains off until you tell the PSP to connect to a wireless connection, so I don't really see why one would have to physically turn it off.

Well, it still may cause interference in a way of static. For example, I have this radio at home on my desk. When I'm in my room and my cell phone rings the radio makes a buzzing noise even though it is off. This happens with everyone else when they bring a cell phone into the room. It's weird how electronics can function, but sometimes they can cause interference.
Back to top
View user's profile Send private message
adman



Joined: 08 Aug 2005
Posts: 1

PostPosted: Mon Aug 08, 2005 12:51 pm    Post subject: Reply with quote

How can i get this to work couse i put this folder ""wlanswitch"" into psp/game right ? than i go to that game thing than i choose memory card than wlan switch test all work fine until it gives the psp screen than the screen goes black and than i get an error :( please help me

[I have firmware 1.50]
Back to top
View user's profile Send private message
rand11



Joined: 08 Aug 2005
Posts: 1

PostPosted: Mon Aug 08, 2005 6:53 pm    Post subject: Reply with quote

Hey Icy

Nice little function that I hadn't thought about. I'll definitely use it. Here's a slightly optimised version.

int main(void)
{
pspDebugScreenInit();
SetupCallbacks();
pspDebugScreenSetXY(5, 5);
printf("\nMy Slightly Optimised Wlan Switch Test:\n");
wlanstatus = sceWlanGetSwitchState();
while(!done){
if(sceWlanGetSwitchState() != wlanstatus)
{
pspDebugScreenSetXY(5, 10);
wlanstatus = !(wlanstatus);
wlanstatus?printf("Wlan Switch ON! "):printf("Wlan Switch OFF!");
}
}
sceKernelExitGame();
return 0;
}
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