Author Topic: WiFi Connection  (Read 34390 times)

wimpel

  • Guest
WiFi Connection
« on: March 11, 2010, 11:45:45 AM »
Hello!

I'm testing .NET WCL 6.7.3.0 version with WiFi connections.

When I'm tring to connect to any listed wifi networks, I always get the error 57. What does it mean?
Connection works when i use and connect to existing profile which was created by Windows driver.

And one more question - how to set password/key for secured WiFi network to log in?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WiFi Connection
« Reply #1 on: March 11, 2010, 12:38:55 PM »
Hi,

All error codes are described in documentation. WCL does not include 57 as error code. So I can guess it is Reason code. There is StringFromReason method whoch may convert Reason code to something readable.

WCL can connect to WiFi network with Profile only. You have to create profile before connect to WiFi. Please, refer to MSDN about WiFi profile creation.

wimpel

  • Guest
Re: WiFi Connection
« Reply #2 on: March 11, 2010, 12:55:24 PM »
Thank you for reply.

I wasn't very precisly,
StringFromReason(Reason = 87) gives: "WiFi Error: 00000057"
what does it mean?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WiFi Connection
« Reply #3 on: March 11, 2010, 01:20:17 PM »
Hi

It looks like ERROR_INVALID_PARAMETER. It may appear because of not valid profile.

wimpel

  • Guest
Re: WiFi Connection
« Reply #4 on: March 11, 2010, 02:22:46 PM »
OK, I will check MSDN.

But in you WiFi - demo program i have simple situation:
- One network called umpc_wifi
- I also have profie called umpc_wifi
- Network is listed twice on networklistview (once with profile, once without it)
- umpc_wifi is adhoc network, without secure.

When I click Connect near Profiles list which fires
Code: [Select]
Iface.Connect(wcl.wclWiFiConnectionMode.cmProfile, wcl.wclWiFiBssType.btAny, "umpc_wifi", ref Reason)everything works

But when I click Connect near Networks, no matter which network (with or without profile) is selected
Code: [Select]
Iface.Connect(wcl.wclWiFiConnectionMode.cmAuto, wcl.wclWiFiBssType.btAny, "umpc_wifi", wcl.wclWiFiConnectionFlag.cfNone, ref Reason)the Reason parameter returns with 87 code

Which parameter could be invalid?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WiFi Connection
« Reply #5 on: March 11, 2010, 02:31:07 PM »
Hi

There are 2 way to connect: to network directly and to network with profile. Connection to network directly is supported on Vista and Win7 only. On WinXP only connection with profile is supported. That is why you can not connect when using connect button near Networks list.

We are still impoving WiFi support in WCL based on our customers feedbacks so it may be hard to use sometimes. Howeever, any your feedback will be appriciated.

wimpel

  • Guest
Re: WiFi Connection
« Reply #6 on: March 15, 2010, 11:24:18 AM »
I'm testing it on XP and Vista and problem appears on both systems - but ok I can connect using profiles.

One more question: How often informations about network and BSS are refreshing and depents on?

I have two AP and I'm moving between them with my laptop - the signal strength refreshes once a minute, I need it more often.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WiFi Connection
« Reply #7 on: March 15, 2010, 01:46:33 PM »
Hi

Usualy it depends on your hardware.

 

Sitemap 1 2 3 4 5 6 7