| View previous topic :: View next topic |
| Author |
Message |
SWE_PsYcHo
Joined: 27 Jan 2007 Posts: 12
|
Posted: Tue Apr 03, 2007 8:04 pm Post subject: How do i scan for wlan connections? |
|
|
How do i scan for wlan connections? and how do i get the connection status _________________ IAM A NEWBIE! ^^ |
|
| Back to top |
|
 |
digihoe
Joined: 14 May 2005 Posts: 108
|
Posted: Tue Apr 03, 2007 9:43 pm Post subject: |
|
|
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 |
|
 |
SWE_PsYcHo
Joined: 27 Jan 2007 Posts: 12
|
Posted: Wed Apr 04, 2007 6:02 am Post subject: |
|
|
and i think that youresam from qj was the one who wrote how to do it in lua... _________________ IAM A NEWBIE! ^^ |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Wed Apr 04, 2007 11:15 am Post subject: |
|
|
| There are samples in the SDK which illustrate this. |
|
| Back to top |
|
 |
SWE_PsYcHo
Joined: 27 Jan 2007 Posts: 12
|
Posted: Wed Apr 04, 2007 10:13 pm Post subject: |
|
|
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 |
|
 |
hallo007
Joined: 13 May 2006 Posts: 36
|
Posted: Wed Apr 04, 2007 10:26 pm Post subject: |
|
|
use code tags!!
wifisniffer does that , mayby its open source dont know that |
|
| Back to top |
|
 |
SWE_PsYcHo
Joined: 27 Jan 2007 Posts: 12
|
Posted: Wed Apr 04, 2007 11:23 pm Post subject: |
|
|
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 |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Thu Apr 05, 2007 1:19 am Post subject: |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Apr 05, 2007 1:38 am Post subject: |
|
|
| 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 |
|
 |
SWE_PsYcHo
Joined: 27 Jan 2007 Posts: 12
|
Posted: Thu Apr 05, 2007 2:53 am Post subject: |
|
|
i have no net folder :( _________________ IAM A NEWBIE! ^^ |
|
| Back to top |
|
 |
|