gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Wifi stability on latest devKitARM/libnds

#177532 - Ben_j - Sun Aug 05, 2012 1:18 pm

Today I compiled my homebrew that I did a year ago, with the latest devKitARM and libnds. After a few tries, I keep on having the wifi failing and disconnecting (the wifi led stops blinking). Sometimes really fast (after 15 - 30 seconds), sometimes after a few minutes.
I tried the nds from a year ago, and it seemed to work fine, with no disconnection. Is there any known wifi problems with latest versions of devkitarm and libnds ? Any fix ?

The only significant thing I changed on my code was the id of a timer I use (I know the wifi uses a timer of its own). I used timer 1 on the old version and switched to timer 3. I tried changing back to 1, but I still have deconnections.

#177533 - elhobbs - Mon Aug 06, 2012 1:38 pm

dswifi does use timer 3, so switching back to 1 was good. the only issue that I recall is a palib incompatibility - it does not work with palib.

is it disconnecting during certain activity? Is your program hanging (maybe on the arm7 side) or is it actually disconnecting from the ap? sometimes a new memory layout from the updated compiler can expose bugs that did not cause problems in old builds. you could also try capturing the packets to see what is going on.

out of curiousity - what do you have for an ap?

#177534 - Ben_j - Mon Aug 06, 2012 4:05 pm

yes I saw it used timer 3. I still have some problems with timer 1 though. The program does not hang, just the wifi is screwed. My AP is my ISP box, a Freebox v6. I already had this one a year ago but I had to have it replaced, so maybe it has a different wifi card now...
I'll try with a different wifi router
_________________
http://github.com/SBRK

#177535 - elhobbs - Mon Aug 06, 2012 8:19 pm

are you sure that the arm7 is still responding? if you are using custom arm7 code then you may need to update it to work with the latest libnds. if you are not doing anything special on the arm7 side, then you may want to consider just using the default arm7.

#177536 - Ben_j - Tue Aug 07, 2012 2:40 pm

I don't think I'm using any ARM7 specific code. The DSMI lib might be, but I don't know...
_________________
http://github.com/SBRK

#177537 - sverx - Wed Aug 08, 2012 4:14 pm

the latest DSMI version should work without any need of ARM7 custom code, at least according to what's written on its webpage
_________________
libXM7 | NDS programming tutorial (Italiano) | Waimanu DS | A DS Homebrewer's Diary