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 

How do i scan for wlan connections?

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



Joined: 27 Jan 2007
Posts: 12

PostPosted: Tue Apr 03, 2007 8:04 pm    Post subject: How do i scan for wlan connections? Reply with quote

How do i scan for wlan connections? and how do i get the connection status
_________________
IAM A NEWBIE! ^^
Back to top
View user's profile Send private message
digihoe



Joined: 14 May 2005
Posts: 108

PostPosted: Tue Apr 03, 2007 9:43 pm    Post subject: Reply with quote

Good question... I guess this will be helpfull if you would like to make an app. to look for example Fon hotspots and connect to them by default... I have not seen any app. other than WiFiSniffer that scans for wlan connections... I don't know if one could make the PSP do some sort of WiFi hopping... However if it can be done I'm sure that it would make a great plugin atleast when Skype for PSP (maybe Sony should implement it themself) is released...

Best regards!
Back to top
View user's profile Send private message
SWE_PsYcHo



Joined: 27 Jan 2007
Posts: 12

PostPosted: Wed Apr 04, 2007 6:02 am    Post subject: Reply with quote

and i think that youresam from qj was the one who wrote how to do it in lua...
_________________
IAM A NEWBIE! ^^
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Apr 04, 2007 11:15 am    Post subject: Reply with quote

There are samples in the SDK which illustrate this.
Back to top
View user's profile Send private message
SWE_PsYcHo



Joined: 27 Jan 2007
Posts: 12

PostPosted: Wed Apr 04, 2007 10:13 pm    Post subject: Reply with quote

int main(int argc, char *argv[])
{
char sVal[7];
int retVal;

//init screen and callbacks
pspDebugScreenInit();
pspDebugScreenClear();

SetupCallbacks();

memset(sVal, 0, 7);

for(;;) {
sceDisplayWaitVblankStart();
pspDebugScreenSetXY(0, 0);
printf("Wlan Sample v1.0 by John_K\n\n");

printf("Wlan switch is %s\n", sceWlanGetSwitchState() == 0 ? "off":"on");
printf("Wlan power is %s\n", sceWlanDevIsPowerOn() == 0 ? "off":"on");
retVal = sceWlanGetEtherAddr(sVal);
if (retVal == 0)
printf("Wlan Ethernet Addr: %02X:%02X:%02X:%02X:%02X:%02X\n", sVal[0], sVal[1], sVal[2], sVal[3], sVal[4], sVal[5]);
else
printf("Error getting Wlan Ethernet Address (0x%08X)\n", retVal);
}
sceKernelSleepThread();
sceKernelExitGame();

return 0;
}



That was the only thing that i could find in the samples in sdk...
_________________
IAM A NEWBIE! ^^
Back to top
View user's profile Send private message
hallo007



Joined: 13 May 2006
Posts: 36

PostPosted: Wed Apr 04, 2007 10:26 pm    Post subject: Reply with quote

use code tags!!

wifisniffer does that , mayby its open source dont know that
Back to top
View user's profile Send private message
SWE_PsYcHo



Joined: 27 Jan 2007
Posts: 12

PostPosted: Wed Apr 04, 2007 11:23 pm    Post subject: Reply with quote

nah iam pretty sure its closed source :P ^^ but i opend their eboot with notepad and found some stuff that ill try to find out on how to use it :P i hope that i will success :P (sry for my bad english)
_________________
IAM A NEWBIE! ^^
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Thu Apr 05, 2007 1:19 am    Post subject: Reply with quote

Hi! :)

You can check psp-python sources.
http://fraca7.homeunix.net/trac/

In the pspnet module there's the function enumconfigs. :)

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu Apr 05, 2007 1:38 am    Post subject: Reply with quote

SWE_PsYcHo wrote:
...That was the only thing that i could find in the samples in sdk...


Look harder.

samples/net/wlanscan_elf
Back to top
View user's profile Send private message
SWE_PsYcHo



Joined: 27 Jan 2007
Posts: 12

PostPosted: Thu Apr 05, 2007 2:53 am    Post subject: Reply with quote

i have no net folder :(
_________________
IAM A NEWBIE! ^^
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