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 Tutorial

#151498 - Funky Gibbon - Wed Feb 27, 2008 11:46 pm

Hello All,

has anyone created a Wifi Tutorial for the DS, there some good examples out there but not explaining the basic steps to setting up and simple data transfer, i know nothing about Wifi so couldn't begin to start creating a tutorial, so could someone please explain in plain english the steps to setting up Wifi for me and other noobs, or point us in the right direction to finding a good tutorial

Cheers

#151503 - Cydrak - Thu Feb 28, 2008 1:52 am

Well, there's two main ways to use wifi AFAIK.

First there's dswifi, which is easily gotten with the dkPro updater. With this one you connect to an access point, either to other hosts online or to another DS on the same AP. Both TCP and UDP are supported.

To use this, there is a little setup involved (explained in dswifi7.h/dswifi9.h). You'll need to have ARM9 and ARM7 code--and some method of cooperation--to get it going on both sides. Then you just need to be comfortable with Berkley-style sockets. Eg., send(), recv(), select() calls. If that's not familiar, and you do PC dev, it might be easier to look for socket tutorials, and learn on the PC first; dswifi is very similar to basic sockets on Linux or Windows.

Then there's liblobby, which I know next to nothing about. It looks to be aimed at local "ad hoc" networking... that is, DS-to-DS, without an AP.