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 Misc > Wifi problem on new nds lite hardware

#133158 - omalone - Tue Jul 03, 2007 9:35 pm

Hi all,

I got from iIntendo a new DS lite in replacement of my broken one.

The problem is that Wifi doesn't seem to work properly on homebrews with that hardware.

Is there any way to work around it ?

Please help me, else it will be complicated for me to continue developping PuzzleManiak...

I already tried to recompile with lib wifi 3.1, unsuccessfully.

Regards,
Alx

#133186 - Lick - Tue Jul 03, 2007 11:49 pm

I heard that some of the Japanese devs (Rudolph?) have made dswifi 0.3.3 which works on all DSes. Try it!
_________________
http://licklick.wordpress.com

#133197 - Dood77 - Wed Jul 04, 2007 12:10 am

omalone wrote:
iIntendo

This typo amuses me immensely. Further more it looks like another iProduct :P
(Sorry for OT)
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#133217 - OSW - Wed Jul 04, 2007 5:06 am

rudolphs blog - http://blog.so-net.ne.jp/Rudolph/

heres a translation someone did
http://www.1emulation.com/forums/index.php?s=&showtopic=21976&view=findpost&p=228195

some people made patchers based on his findings, posted in blog comments.

This patcher is made by nin187 (direct link) [extra WIIIIIDE link -- MOD]

It's probably worth doing a translation of nin187's comments, i did a google one and it was not quite interpretable, but i think he says this isn't a final patcher?

I don't know if it'll work for you but it fixed all these homebrews wifi that previously didn't work for me.

DSLiveWeather: works
IRCDS: works
Wifi Lib Test: works
DSamp: works
DiagnoSe: works
SylphAmp: works
Wifi Voice Chat Client: not quite sure...
Beup Live: works


Last edited by OSW on Wed Jul 04, 2007 3:30 pm; edited 1 time in total

#133224 - omalone - Wed Jul 04, 2007 7:36 am

OSW, did you try it by yourself ?
I'm not really confident about this software...

Would you please try puzzlemaniak ?
( http://www.puzzlemaniak.com )

Thanks in advance,
Alx

#133241 - OSW - Wed Jul 04, 2007 3:37 pm

I understand, i wasn't 100% confident about trying the prog aswell, but it seems to work wonders. Yes, these are my own test results.

I'll test puzzlemaniak for you, i already had it on my cart but i'll need to patch it with this progam now, which is no problem.
edit: oh i needed the new version :p got it.

I'll post result shortly.

Oh, i just realised something POTENTIALLY dangerous reading the translation of rudolph's blog;
Quote:
The patch to solve the problem ① (Attention: This patch should not be applied on old DSs which uses 256KB of flash memory)

it's hard for me to understand the context of this and i have no clue as to whether the patcher (which is not made my rudolph) ignores this patch or etc 0_0
Please read the translation link i provided to make your own judgements.
0__0

Edit1: ALSO BTW
Quote:
I confirmed working with DSLiveWeather but, as usual, I don't have any responsibilities for applying this patch.
Especially, it is recommended to rebuild the source code with corrected wifi_arm7.c when you have the source of the Wi-fi homebrew because the patch no.② is quite compulsive that it is ignoring Wifi_Shutdown().


EDIT2: THE RESULTS:
unpatched: all wifi not working. DS gets stuck trying to connect with each option.
patched: all wifi working. however i didn't have any results to send at the time, so i cant know for sure whether that function works (however it said it was sent).

doesn't suprise me.


Last edited by OSW on Wed Jul 04, 2007 4:09 pm; edited 2 times in total

#133242 - wandafritsch - Wed Jul 04, 2007 3:48 pm

omalone wrote:
Hi all,
I got from iIntendo a new DS lite in replacement of my broken one.
The problem is that Wifi doesn't seem to work properly on homebrews with that hardware.
Is there any way to work around it ?


You should read this:

http://forum.gbadev.org/viewtopic.php?t=13085


:-)

#133317 - omalone - Thu Jul 05, 2007 9:47 am

OSW,

First, thanks for your answer.

I'm really surprised by your result on PuzzleManiak, as I tried to compile the dswifi lib with the changes done by Rudolph in the code, and that didn't work for me.

Can I send to you this version so you can test it ?

I didn't try the patcher itself... maybe I should...

Regards,
Alx

#133322 - wintermute - Thu Jul 05, 2007 10:48 am

omalone, is there any chance you could pop on IRC ( irc.blitzed.org #dsdev ) or drop me a message via one of the IM clients I have listed.

I'd like to get a test done on one of the new DS lites before I commit & release 0.3.2
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#133333 - OSW - Thu Jul 05, 2007 12:46 pm

omalone - sure no problem for me to test it.

in regard to testing the patcher yourself, i can verify that it has so far caused me no problems on my 6 and a 1/2 month old DS. I'm fairly confident on it's safety.

If you choose to do so, it might help you isolate whether this is your problem with wifi homebrew.

also someone else on rudolphs blog made another patcher. I have downloaded it but I haven't tested it. I might test it later.

#133407 - wintermute - Fri Jul 06, 2007 12:56 am

ok, can you two please test this

http://devkitpro.sourceforge.net/wifi_lib-0.3.2_test.zip

if that works for you I'll roll a new release.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#133426 - OSW - Fri Jul 06, 2007 4:22 am

It works for me.

Edit: also running it through the patcher says "0 bytes patched" so this compilation seems to have produced the right changes.

#133435 - wintermute - Fri Jul 06, 2007 5:40 am

OSW wrote:
It works for me.


awesome.

Quote:

Edit: also running it through the patcher says "0 bytes patched" so this compilation seems to have produced the right changes.


um ...

I'd kind of expect that to break in interesting ways if it found whatever signature it was looking for. The fact that the patcher said "0 bytes patched" means that it didn't find the signature, not that I inserted "the right changes"

For what it's worth the changes I made are functionally equivalent to the changes that Rudolph made but done in a slightly different way. I also retained the swiDelay changes rather than reverting to the for loop approach as Rudolph did - I'm really not sure why he did that.

The latest 0.3.2 library is now available.

http://www.devkitpro.org/dswifi/dswifi-032-released/
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#133437 - OSW - Fri Jul 06, 2007 5:42 am

Alright, i get ya.

Great stuff!

#133446 - omalone - Fri Jul 06, 2007 7:02 am

Thanks for that new dswifi release.
Thanks for trying to help me too.

Unfortunately that doesn't solve my problem.
I recompiled PuzzleManiak with this new lib, but I can't still connect to wifi with my new DS lite.

;-(

#133497 - OSW - Fri Jul 06, 2007 3:08 pm

Well if that doesn't solve the problem the only thing i can think of is router settings (particularly if official game wifi works fine).

#133498 - omalone - Fri Jul 06, 2007 3:10 pm

I've 2 DS.
And the other one works fine with the same settings.

#133499 - OSW - Fri Jul 06, 2007 3:12 pm

You said recompiling puzzlemaniac didn't work, however does wintermute's wifi lib 0.3.2 test work?

#133509 - omalone - Fri Jul 06, 2007 4:47 pm

No, that's doesn't work neither.

Cannot connect to AP...

#133511 - OSW - Fri Jul 06, 2007 4:54 pm

Get the link from wintermutes post last page.
Run the nds file (assuming your cart runs homebrew in .nds format)
select "connect via wifi connection settings"
or try "search for an AP"
(not sure on the exact wording, but it's similar)
On the top screen it will show confirmation of any connection made.
the connection should be fairly quick. ie within a couple of seconds. otherwise it won't work and will hang.

EDIT: I saw your post. hmmm. this is tricky business /_\

#133595 - wandafritsch - Sat Jul 07, 2007 10:30 am

@omalone

Did you read and test '#001 - WiFi Lib Test 0.3a - wifi_lib_test.nds - Stephen Stair'?
http://www.akkit.org/dswifi/wifi_lib_test.nds

And what about the other apps mentioned there?
http://forum.gbadev.org/viewtopic.php?t=13085

?-)

#134086 - OSW - Tue Jul 10, 2007 2:50 pm

omalone i'm sorry but i'm really out of ideas. i wish you the best of luck in solving your problem and in nds development. I enjoy puzzlemaniac quite a bit now.

I'll reply again if i think of anything else.

#134453 - omalone - Fri Jul 13, 2007 8:23 am

I've released a version 1.7 of PuzzleManiak with the new dswifi lib integrated. And it looks like it doesn't work for a lot of people, without the new DS lite.

And for me, it doesn't work with a new ds lite, an old ds.

So ???

#134454 - melw - Fri Jul 13, 2007 8:50 am

I can confirm this for Puzzlemaniak - after the wifi update it doesn't work anymore with my DS Lite (purchased in spring 2006). The older version (1.6?) worked just fine, this one stalls at "Connecting via wifi, please wait..." screen and never returns.

Don't know where's the problem but clearly there's something wrong somewhere...

#134455 - omalone - Fri Jul 13, 2007 8:56 am

melw, I just recompiled the version 1.7 with an old version of dswifi. Could you please try it ?

#134510 - OSW - Fri Jul 13, 2007 2:44 pm

yep. the first one is broken for me too.

heres my testing results:

1.7d : wifi connect fail
1.7d wifipatched : wifi connect fail

1.7a : black screens on boot
1.7a wifipatched : black screens on boot
(very strange ...)

1.7 original : wifi connect fail
1.7 original wifipatched : wifi connect fail

BTW:
wifi patched versions stuck on "Connecting via wifi, please wait..."
non wifipatched versions freeze at wifi functions.

what the? perhaps the problem is with my router... i'll fiddle around with it once i get confirmation that wifi has worked for others.

What results are other people getting?
Do we have successful connections?

#134537 - omalone - Fri Jul 13, 2007 7:09 pm

the problem was coming from my version 1.7

now wifi is back in version 1.8

but as I linked with an old dswifi lib version, I still have the same problem for my new DS lite

I'm gonna try to patch it

EDIT : So I finally patched the nds with "your" patcher and it doesn't work neither. Too bad.

#134554 - wintermute - Fri Jul 13, 2007 10:15 pm

melw wrote:
I can confirm this for Puzzlemaniak - after the wifi update it doesn't work anymore with my DS Lite (purchased in spring 2006). The older version (1.6?) worked just fine, this one stalls at "Connecting via wifi, please wait..." screen and never returns.

Don't know where's the problem but clearly there's something wrong somewhere...


I really don't know what to make of this at all.

Does the wifi lib test work for you?

http://devkitpro.sourceforge.net/wifi_lib-0.3.2_test.zip
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#134584 - melw - Sat Jul 14, 2007 10:39 am

wintermute wrote:
I really don't know what to make of this at all.

omalone wrote:
the problem was coming from my version 1.7


Both versions 1.6 and 1.8 work on my DS Lite, so I guess this was a false assumption on my side and rather a bug in the game code than in the wifi library. What comes to Omalone's original problem, it seems to pop up with only very latest DS Lite models (which I don't possess).

#134588 - OSW - Sat Jul 14, 2007 12:05 pm

1.8 still not working 0_0

wait, sending scores works, however other options don't. one is stuck at "connecting" another gives black screens.

#134817 - Mokda - Tue Jul 17, 2007 7:43 am

I'm just popping in to say I haven't been able to get wifi working on my DS lite either. I've tried the simple WFC way of connecting, and brute forcing it.

I bought my DS around the March 2007 timeframe. How can I help get to the bottom of this issue?

My gut instinct is that something changed in the recent hardware/firmware that makes new DS lites incompatible with the current libnds wifi libraries. Please let me know what I can do to help!

#134818 - wintermute - Tue Jul 17, 2007 7:53 am

Does the wifi lib test work for you?

http://devkitpro.sourceforge.net/wifi_lib-0.3.2_test.zip

What device are you using to boot code?
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#134823 - omalone - Tue Jul 17, 2007 9:19 am

sorry, wintermute, I didn't answer you.

But the wifi lib test 0.3.2 doesn't work for me.
And I'm using a R4

#134832 - wandafritsch - Tue Jul 17, 2007 1:34 pm

wintermute wrote:
Does the wifi lib test work for you?

For me it works.

DS Lite (bought 11/2006)
M3DSsimply

#134847 - Mokda - Tue Jul 17, 2007 6:32 pm

wintermute wrote:
Does the wifi lib test work for you?

http://devkitpro.sourceforge.net/wifi_lib-0.3.2_test.zip

What device are you using to boot code?


I had a chance to take it to work this morning and try the wifi_lib-0.3.2_test out. I was able to see 6 APs (which was better than the 0 APs I saw at home).

So this points to my AP being the issue in this case. Why would I be able to connect with Mario Kart DS and not homebrew?

By the way, my WAP is of the Microsoft MN-700 variety.

#134947 - melw - Wed Jul 18, 2007 8:24 pm

I thought I could say for a change something positive about the latest (0.3.2 + cvs) dswifi library release - in today's Dicewars DS gameplay tests the wireless side worked nearly flawlessly and all the game testers could connect the server without major problems. My DS Lite was connected over one hour straight, playing couple of games during that time and staying also idle in between.

I'd like to hear anyone having problems with dswifi library how the latest multiplayer beta version works for them.

#134967 - omalone - Wed Jul 18, 2007 10:27 pm

I tested it, and that doesn't work on my dslite.

I also tried to compile a new version of PuzzleManiak, with the new dswifi lib : http://www.puzzlemaniak.com/blog/?lan=english

It still doesn't work for me, but for you ?
Please let me know

#134983 - calcprogrammer1 - Thu Jul 19, 2007 12:27 am

My friend has a DS Lite (he got it for Christmas last year) and he just got a Games n' Music. WifiVoiceChat doesn't work on it, DSLiveWeather doesn't work on it either. All those apps work fine on my regular silver DS that I got back in 2004 when they came out.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#134997 - wandafritsch - Thu Jul 19, 2007 6:39 am

calcprogrammer1 wrote:
My friend has a DS Lite...

Your friend should read and try this: My new DSL will not... (WIFI)

:-)

#135001 - melw - Thu Jul 19, 2007 8:45 am

omalone wrote:
I tested it, and that doesn't work on my dslite.

I also tried to compile a new version of PuzzleManiak, with the new dswifi lib : http://www.puzzlemaniak.com/blog/?lan=english

It still doesn't work for me, but for you ?
Please let me know


This is really puzzling (eh), your new beta doesn't work either on my DS Lite or DS Phat - whereas the v1.6 and v1.8 builds work on both perfectly. For example going to online hi-scores the game stalls keeping the led on. Lower screen shows just blank / black. I'd advice to to make a separate debug build to see where exactly the stalling happens. Making timeouts for Wifi_CheckInit() / Wifi_AutoConnect() and returning proper error messages to the user at least. I'll PM you with more details...

#135069 - calcprogrammer1 - Thu Jul 19, 2007 10:55 pm

My friend tried the latest DS AIM on his DSL (he has a Games n' Music too) and it didn't work, locked at WiFi. Then we changed the router settings to Channel 10 (settings available at http://192.168.1.1 for NetGear and Linksys, http://192.168.2.1 for Belkin, others idk) and it worked perfectly. All apps that use WiFilib .3d or up should work.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#135099 - Mokda - Fri Jul 20, 2007 5:20 am

I just wanted to confirm that channel 10 does in fact make things work (at least for me).

First I swapped out my Microsoft MN-700 router for a Linksys (although I don't think I needed to do that). However, swapped routers at least enabled me to see my AP using wifi_lib_test.nds.

At this point I was using channel 1 and my signal strength showed 0% for some reason. I read the previous post and changed to channel 10. All of a sudden and I got full strength signal and was able to connect.

So, asided from my personal router issue, looks like there is some sort of bug with the dswifi lib. I'm not hardcore enough *yet* to figure out where that bug may be.

#135101 - calcprogrammer1 - Fri Jul 20, 2007 5:26 am

I'm assuming you have a DS Lite. I see all AP's from my DS regular, but today my friend's DSL was unable to connect to either my Netgear router on channel 1 or his own Belkin router on channel 1. We were at my house first, so I changed the channel to 10, and his DSL connected, and at his house we did the same, and it worked there as well.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#135106 - OSW - Fri Jul 20, 2007 6:18 am

I always connect fine using channel one on my d-link router.

maybe it's a router thing.

#135110 - wandafritsch - Fri Jul 20, 2007 7:25 am

Mokda wrote:
...looks like there is some sort of bug with the dswifi lib.

I don't think so!

Because for others it works at different channels - e. g. at channel 6 for me.

It might be either a presetting in new DS Lights or maybe a user setting(?)...
You could try different channels with WiFi-Lib_Test.

!-)

#135161 - OSW - Fri Jul 20, 2007 2:42 pm

maybe you still need to change router settings, despite your old ds working fine. since perhaps new ds's are incompatable with particular wifi settings.

or alternately you can isolate the problem furthur by testing the latest wifilib test with someone else's router who can connect with a later ndsl. If indeed you know someone who meets the criteria...

thats all i can think of now.

#135170 - calcprogrammer1 - Fri Jul 20, 2007 4:09 pm

There might be even newer DSL's that are incompatible....at least my friend's black DSL is incompatible with channel 1...we only tried that and 10. 10 seemed to work fine...We could try 6 and see if that works too.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#135174 - Mokda - Fri Jul 20, 2007 5:06 pm

wandafritsch wrote:
Mokda wrote:
...looks like there is some sort of bug with the dswifi lib.

I don't think so!

Because for others it works at different channels - e. g. at channel 6 for me.

It might be either a presetting in new DS Lights or maybe a user setting(?)...

!-)


Here are my clues leading to me thinking there is a bug with dswifi code:
- I can connect using Channel 1 with Mario Kart DS just fine with any router.
- I can't connect on Channel 1 with homebrew code to any router.
- I can connect on Channel 10 to my linksys router with any software(haven't tried my Microsoft router).

So the fact that Mario Kart DS can connect no problem, but homebrew code can't points to the homebrew libraries having a bug.

But this might only be for DS Lites, and perhaps even only the newer ones.

#135178 - calcprogrammer1 - Fri Jul 20, 2007 5:28 pm

I'm almost positive it's ONLY with NEW DS Lites. I have a DS regular, FW version 1 (PictoChat freezes), and it works on all channels with MKDS (and other WiFi games) and all homebrew.

My friend has a new DS Lite, he got it like 4 months ago. It connects using MKDS (and other WiFi games) on any channel...BUT only connects homebrew with dswifi .3d or greater and only on channel 10.


However, on DS Wifi Voice Chat, I asked "DS or DS Lite", and many people circled "Lite". This app uses dswifi .3b, so new DS Lites can't use it, but older DS Lites must be able to use WiFi correctly.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#136230 - omalone - Mon Jul 30, 2007 10:28 am

I just tried my new DS lite on another router, and everything is working fine !!!

I can't understand why, and unfortunately I won't have any chance to debug that, because

1. I'm leaving right now and I won't access this router again
2. I'm exchanging my new DS lite to an old one, so I won't have this problem again

So, I don't really know what has happened, but it seems that it's not linked to the dswifi lib

#137117 - Mokda - Wed Aug 08, 2007 1:19 am

I have a strong suspicion that the new DS hardware is having a bad interaction with the current dswifi lib. My reasoning is as follows:

a) My DS will connect just fine to any router, any channel and play fine with Mario Kart DS.

b) My DS will not connect on certain channels using dswifi lib.

I think the key would be to figure out what the differences is between a new DS (lite) and an old one is. But I don't have the money to buy and butcher the machines.

In the meantime I'll poke around in the dswifi source and see if I can find an answer. Why would one channel work, and the other not? What would make Nintendo's games connect and homebrew not with the exact same settings otherwise?

#137199 - Dood77 - Wed Aug 08, 2007 8:11 pm

Mokda wrote:
In the meantime I'll poke around in the dswifi source and see if I can find an answer. Why would one channel work, and the other not? What would make Nintendo's games connect and homebrew not with the exact same settings otherwise?

My knowledge in things wifi is very limited, but how possible, given the current work-arounds, is it that nintendo is purposely crippling our homebrew wifi capabilities?
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#137208 - tepples - Wed Aug 08, 2007 8:50 pm

Nintendo might not even have a choice in the matter. National regulatory bodies for wireless communication, such as the FCC, are charged with preventing transmissions from interfering unacceptably. For this reason, they often do not want the unwashed masses to be able to write code that directly accesses wireless communication hardware.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#137264 - masscat - Thu Aug 09, 2007 5:57 pm

Nintendo may be changing the wireless hardware for reasons other than breaking homebrew :) (change of implementation, supplier or other things).

The wireless hardware is configured using settings found in the firmware so that official games happily work even when the hardware changes. The dswifi library also does this but since the wifi hardware is not fully understood yet some of the hardware configuration may be missed or incorrectly performed hence homebrew not working as well (or at all). When (if) the wifi hardware is better understood then it will work as well as official games.

#138246 - madjo - Tue Aug 21, 2007 6:44 pm

I tried the wifi lib test software on my DSLite.
And while it did find the router I always use for connecting to WFC, it barely registered a network (even if the DS was lying next to it). But there were several others that it found that were somewhat stronger (10% instead of 1%)

Whereas my DS Phat received a strong signal off of the same AP (50 to 75%), while lying a few meters away from the router. And 100% when next to it.

I believe I have DSLite FW 5 or 7 (magenta or purple, both seem similar to me).

FWIW, I have a R4DS card.

#138261 - Wuschmaster - Tue Aug 21, 2007 11:55 pm

there are a couple of new possible mac address ranges for the newer ds lites. i guess they have different chipsets

#139295 - melw - Tue Sep 04, 2007 8:32 am

The latest wifi lib (0.3.3) has a fix in DHCP requests. It might not be related to this issue, but I've heard already several reports from people getting their homebrew wifi working with routers that worked previously only with commercial games. Worth a try nevertheless.

#139298 - wandafritsch - Tue Sep 04, 2007 9:13 am

melw wrote:
The latest wifi lib (0.3.3) has a fix in DHCP requests. It might not be related to this issue, but I've heard already several reports from people getting their homebrew wifi working with routers that worked previously only with commercial games. Worth a try nevertheless.

Do you know any homebrew using wifilib0.3.3, melw?

Put it in here, please:
My new DS Lite will not... (WIFI)

:-)

#139369 - OSW - Wed Sep 05, 2007 8:12 am

Is the wifi lib 0.3.3 very new? because i don't remember hearing about it.

#139371 - melw - Wed Sep 05, 2007 9:32 am

OSW, it's available on the devkitPro CVS. Don't know if there's still any other additions planned for the next library release.

#140590 - McBain6666 - Mon Sep 17, 2007 11:28 pm

Thank you all... I've been fighting with Homebrews Wi-Fi not working and my new DS Lite.

Well, i set channel 10 and works perfectly!

Cool that digging tru post was fruitful in the end :)