Re: Talking directly to Wireless card
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Thu, 19 May 2005 09:36:50 -0700
And you have the latest code from the Vault? If IsWireless returns false,
then the wireless card driver is not set up to use the Windows Zero Config
API/UI in Windows CE. The code asks WZC for information on the indicated
adapter name and, if something is returned, it's wireless; if an error comes
back, it's not, as far as WZC is concerned. The only way to make that work
if this is returning an error would be to get a driver for your 'card' which
*is* designed to work with WZC.
If the WZC UI *is* used to configure the wireless 'card' (the standard
Windows CE dialog showing nearby access points pops up for configuration of
the card, as opposed to configuring it via a Control Panel applet or
external application), then we'll need to debug into the source for the
Adapter class to track the problem down. Debug into IsWireless() first, as
that's central to having anything else that has to do with wireless work.
Double-check the adapter name and make sure that it matches the name of the
adapter shown in the Network & DialUp Connections applet on the device. If
it doesn't there is a problem. If it does match and the call to
WZCQueryInterface() still returns an error, then the driver doesn't support
WZC and no minor changes to Adapter are going to make it work.
Paul T.
"Adam" <adam.crossland@xxxxxxxxx> wrote in message
news:1116519863.058360.315960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sorry that I didn't provide a core dump. I was planning to try to
> figure out the cause of the problem myself, thus my original request
> for information about the adapters themselves.
>
> Yes, I have stepped through the code as it executes.
>
> My wireless CF card is found as an Adapter.
> IsWireless returns false. Inside SignalStrengthInDecibels,
> retval = NDISUIOPInvokes.DeviceIoControl... returns false.
>
> Ignoring that (as I know it is a wireless adapter), I call
> NearbyAccessPoints.
> Inside RefreshList, whether it is being called by the constructor or
> being called from my code, again the NDISUIOPInvokes.DeviceIoControl
> call returns false.
>
> That call is perfectly opaque to me right now, but if someone call
> point me to some info about it, I might be able to work this out.
>
> Paul G. Tobey [eMVP] wrote:
>> "does not work correctly for me" is pretty useless information. What
>
>> happens? Have you single-stepped through to see where whatever is
> happening
>> is happening? Are you using the latest code? There have been many
> changes
>> rolled in over time.
>>
>> Paul T.
>>
>> "Adam" <adam.crossland@xxxxxxxxx> wrote in message
>> news:1116512187.552084.238260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> > Chris, I am actually using OpenNETCF to build my project, but the
>> > Adapter class does not work correctly for me, so I was hoping to
>> > discover the cause, fix it and contibute my solution back to the
>> > project. I'm not sure that there is enough information in the
> Adapter
>> > source code for me to be able to fix it, so I am hoping that
> someone
>> > who knows about the low-level interaction with these devices can
>> > provide more info.
>> >
>> > For what it is worth, my hardware is a Dell Axim 5 running PocketPC
>> > 4.20 with a Symbol CF 802.11b card. Of course, I am hoping that my
>> > application will work on all PPC/wireless card combos.
>> >
>> > Adam
>> >
>> > Chris Tacke, eMVP wrote:
>> >> The Adapter class in the SDF provides this.
>> >>
>> >> www.opennetcf.org/sdf
>> >>
>> >>
>> >> --
>> >> Chris Tacke
>> >> Co-founder
>> >> OpenNETCF.org
>> >> Has OpenNETCF helped you? Consider donating to support us!
>> >> http://www.opennetcf.org/donate
>> >>
>> >>
>> >> "Adam" <adam.crossland@xxxxxxxxx> wrote in message
>> >> news:1116511095.034286.16050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> >> > I'm building a project which I would like to be able to talk
>> > directly
>> >> > to a wireless card to retreive the SSIDs of in-range access
> points.
>> >> > I've searched prety extensively for theis information using
> Google,
>> > but
>> >> > I have not had any luck.
>> >> >
>> >> > My project is in C#, but I can translate from any programming
>> > language.
>> >> >
>> >> > If any of you good folks could point me in the right direction,
> I
>> > would
>> >> > appreciate it very much.
>> >> >
>> >> > My kindest regards,
>> >> >
>> >> > Adam
>> >> >
>> >
>
.
- Follow-Ups:
- Re: Talking directly to Wireless card
- From: Adam
- Re: Talking directly to Wireless card
- References:
- Talking directly to Wireless card
- From: Adam
- Re: Talking directly to Wireless card
- From: Chris Tacke, eMVP
- Re: Talking directly to Wireless card
- From: Adam
- Re: Talking directly to Wireless card
- From: Paul G. Tobey [eMVP]
- Re: Talking directly to Wireless card
- From: Adam
- Talking directly to Wireless card
- Prev by Date: .NET CF and Internet connections with GPRS etc
- Next by Date: Re: Background app
- Previous by thread: Re: Talking directly to Wireless card
- Next by thread: Re: Talking directly to Wireless card
- Index(es):
Relevant Pages
|
Loading