Jump to content

Wifi Download Speed on Local Network vs. Internet


hogi

Recommended Posts

hi,

 

first i want to thank all developers of DSWifi for their excellent work. Keep it up! :thumbsup1:

 

 

I use PAlib for programming on the Nintendo DS and since it unfortunately doesn't have a good GetHTTP() function, i am currently writing one myself. The basic structure exists and works. But i noticed some weird thing, which is the reason for this post.

If I download files from servers like google.com, wikipedia... i only get a download speed of max. 3kb/s. First i thought my code was responsible, but then i tested it with a webserver program running on my PC (ip: 192.168.2.100) and i suddenly got download rates of about 80kb/s, with the same code!

 

So:

DS -> Internet: 3kb/s

DS -> Local Network (only through my router): 80kb/s

 

I thought this has something to do with timing (and possibly packet loss?), so i checked what PAlib does internally. It seems the DSWifi function Wifi_Timer(ms) is called every 50ms. I changed this to 10ms, which probably resulted in a very little increase of download speed in both local network and internet. But the difference between these two is still huge.

 

 

Could someone please explain to me, what Wifi_Timer(ms) does exactly and what the best value for the interrupt period is. Also, what is "sgIP"? i came across this expression several times in the documentation.

I would very appreciate it, if someone could help me fixing this "speed problem" :lol:

 

 

greets, hogi

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...