Welcome to Dream.In.Code
Become an Expert!

Join 149,501 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,373 people online right now. Registration is fast and FREE... Join Now!




wifi devices and programming

 
Reply to this topicStart new topic

wifi devices and programming

spullen
27 Mar, 2007 - 07:07 PM
Post #1

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
I am trying to make a small program that just finds all the wireless access points. I am wondering if anyone has any experience doing this and would like to point me in the right direction. I have seen the native wifi api from microsoft, but I don't know c++ too well, and probably would be more comfortable with java, or python, and the sample that they include with the SDK that includes the API didn't help me too much.

User is offlineProfile CardPM
+Quote Post

Israel
RE: Wifi Devices And Programming
27 Mar, 2007 - 07:43 PM
Post #2

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
Ok, I have never tried to do what your talking about. (But now that you mentioned it I'm going to have to browse this link myself... Thanks for asking such a good question! icon_up.gif ) As you may have heard one of the best tools for what you're doing is Kismet. Which is primary a Linux tool. Linux is open source so no surprise Kismet is too! You can download the source code for it from this page. You can also google and find source code for AirCrack and other Open Source wireless tools. Hopefully that should shed some light on what your doing.
User is offlineProfile CardPM
+Quote Post

spullen
RE: Wifi Devices And Programming
27 Mar, 2007 - 08:04 PM
Post #3

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Well the thing is, there are a ton of free, open source stuff for linux, but i can't really find anything for windows. All I have found is the windows native wifi api. But if you can find anything that would be great.
User is offlineProfile CardPM
+Quote Post

Israel
RE: Wifi Devices And Programming
27 Mar, 2007 - 08:55 PM
Post #4

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
Kismet has a Windoze version too...
User is offlineProfile CardPM
+Quote Post

ajwsurfer
RE: Wifi Devices And Programming
28 Mar, 2007 - 07:23 AM
Post #5

D.I.C Regular
Group Icon

Joined: 24 Oct, 2006
Posts: 298



Thanked: 2 times
Dream Kudos: 50
My Contributions
This seems like a very ambitious project for somebody who does not know C++ to well. The software that is already available that does this is built by teams of experience softare developers. Maybe a good place to start would be to participate in one of the Open Source Wireless projects that offer this functionality.
For Windoze, closed source drivers usualy have this functionalty built in. I think XP and 2K and up have this built in, while 9x and Me require the driver manufacturer to provide it. Also, great care has been built into Microsoft products to extract the maxmimum amount of dollars from companies and people who write and make drivers available.
User is offlineProfile CardPM
+Quote Post

spullen
RE: Wifi Devices And Programming
28 Mar, 2007 - 07:38 AM
Post #6

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Currently I am trying to learn c++, not just for this little project I want to do , but just in general seems like a good language to learn. So maybe an open source project would be the best way to go with this.
And I'll have to look into Kismet, and see how they have implemented. Is the source for that project open?

User is offlineProfile CardPM
+Quote Post

spullen
RE: Wifi Devices And Programming
29 Mar, 2007 - 07:21 AM
Post #7

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Actually, after examining the windows native wifi api, it doesn't seem like it should be too hard.
If you have looked at it:
You should start by getting your NIC open handle using the WlanOpenHandle function, this seems to set up the communication with your local card. Then you can use the information (or the Handle) to use the other functions. For me two of the functions really seem like they would work WlanScan, and WlanGetAvailableNetworkList, and also the struct WLAN_AVAILABLE_NETWORK which stores all of the information for an access point, and the struct WLAN_AVAILABLE_NETWORK_LIST, which I believe stores each access point, with an array to access WLAN_AVAILABLE_NETWORK.
User is offlineProfile CardPM
+Quote Post

MarcLee
RE: Wifi Devices And Programming
11 Apr, 2007 - 10:25 AM
Post #8

New D.I.C Head
*

Joined: 11 Apr, 2007
Posts: 1


My Contributions
Here is a great tool with sources for wifi connections management:
http://www.nicomsoft.com/wifiman/

---
Marc Lee
User is offlineProfile CardPM
+Quote Post

ajwsurfer
RE: Wifi Devices And Programming
12 Apr, 2007 - 08:10 AM
Post #9

D.I.C Regular
Group Icon

Joined: 24 Oct, 2006
Posts: 298



Thanked: 2 times
Dream Kudos: 50
My Contributions
Thank you MarcLee. For all you Windows guys out there, this looks like a great way to go, for the low price of $199.
User is offlineProfile CardPM
+Quote Post

spullen
RE: Wifi Devices And Programming
15 Apr, 2007 - 05:07 PM
Post #10

D.I.C Regular
Group Icon

Joined: 22 Mar, 2007
Posts: 330



Thanked: 1 times
Dream Kudos: 50
My Contributions
Yeah I saw that when I was started looking for wifi api's but it seems like an easy solution to something that could be fun and challenging (and not cost a thing, except maybe some time).
I am still figuring out the native wifi api that microsoft has, I also found another website with another sample application to go by: http://code.mincus.com/31/windows-wireless-api/
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 06:34PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month