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 > Dswifi will not connect

#166437 - JessTicular - Sun Feb 08, 2009 8:02 am

G'day,

I'm trying to get the nds examples dswifi/autoconnect, dswifi/apSearch, or dswifi/httpget to do their magic for me.

I have the latest libnds, devkitARM, dswifi, libfat, and ndsexamples (direct from the sourceforge package downloads) as of today (Feb 8th, 2009).

I can compile all the examples, and they run.
However, none of them will actually connect to my AP.

I can easily get online through Mario Kart's WFC option, and the connection test works fine.

The AP is configured to have a shared ASCII WEP key, 802.11b only, channel 1, and is broadcasting the SSID.

Any help would be appreciated as I plan to use Insight and masscat's GDB stub to do some debugging for a show-stopper of a bug.

Cheers,
Jess.

PS - watching my AP's log, the 'MAC: blah blah Associated' message never comes up when trying to connect with the examples, but it does when I connect via Mario Kart.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org

#166440 - TwentySeven - Sun Feb 08, 2009 9:12 am

You wouldn't happen to be using one of those 'orrible nintendo Wifi usb sticks, would you?

#166441 - JessTicular - Sun Feb 08, 2009 9:24 am

Haha, no, I'm using a wireless network card...

It's a Belkin F5D7000 v3000au (with an RaLink rt2500 chipset).

I have my laptop connecting fine, so I know it's perfectly functional as an AP.

Just for a little more info;
The connection is with my PC running Windows XP and the Gigabyte Wireless LAN config utility.

Cheers.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org

#166447 - TwentySeven - Sun Feb 08, 2009 10:32 am

Hmm.. have you tried any other wifi capable homebrew?

The reason I ask is there may be an issue with your toolchain setup.

#166448 - JessTicular - Sun Feb 08, 2009 11:15 am

Yes, I've tried ClIRC and dslurper, neither of which will connect.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org

#166449 - a128 - Sun Feb 08, 2009 11:26 am

TwentySeven wrote:
You wouldn't happen to be using one of those 'orrible nintendo Wifi usb sticks, would you?


ok...I use this stick...it works out of a game....but I never tried it with the dswifi lib.

#166466 - TwentySeven - Sun Feb 08, 2009 3:51 pm

Ahh.. well ok, I don't know what advice I can give you if other wifi homebrew isn't working either?

My little netgear allows me to DHCP an IP/connect without any issues :/

#166500 - JessTicular - Mon Feb 09, 2009 12:21 am

No worries, thanks anyway.

Just an update: I have tried using both DHCP to auto-assign an address, etc, and also tried a static IP.

Both work in Mario Kart.
Neither work in dswifi.

Has anyone else run across this problem before?
Any and all help would be greatly appreciated.

Cheers,
Jess.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org

#166505 - JessTicular - Mon Feb 09, 2009 5:52 am

Ok, I've "fixed" it...

Disabling the WEP makes it work, mostly.

Some times it will not connect at all, but a retry or two later and it works fine.

So, why is WEP effecting it so much?

I'm happy to turn off WEP and turn on MAC filtering when I want to do DS work, but it's a little annoying.

Again, any help?

PS. The reason I didn't notice the first time that disabling WEP helped is because I only tried it once, it didn't connect, so I wrote it off as making no difference.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org

#166756 - sgstair - Mon Feb 16, 2009 5:58 pm

The only thing I can think of is that SSID broadcast might not have been enabled, the current library doesn't successfully connect without the AP sending beacons.

Beyond that I'm not sure :)

-Stephen
_________________
http://blog.akkit.org/ - http://www.akkit.org/dswifi/

#166764 - JessTicular - Tue Feb 17, 2009 2:23 am

Thanks for the reply.

I have looked at when broadcasting SSID and not via Kismet on my laptop, and there is a clear difference between the two.

Using the apSearch example finds my AP just fine.

Like I said, WEP seems to have been the main culprit. If you would like any further info so maybe we can debug it for the main-stream code, I'd be happy to help.
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org