Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

NDISUIO 802.11 BSS List Scan and Disassociate problem

 
   Soft32 Home -> PDA -> Pocket PC Developer Networking RSS
Next:  [ANN]: Packet Sniffer SDK version 2.1 is released  
Author Message
compulim

External


Since: Jun 26, 2004
Posts: 12



(Msg. 1) Posted: Wed May 05, 2004 7:06 am
Post subject: NDISUIO 802.11 BSS List Scan and Disassociate problem
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hi,

I'm writing an .NET app to grab RSSIs from a 4150 and Prism card. But if the
PPC is associated with an AP, the RSSI data from OID_802_11_BSSID_LIST will
stay at the same value as the time the PPC just associated.

I can only use OID_802_11_RSSI to grab RSSI from associated AP. But I want
to grab all RSSI from nearby AP.

I found some ways to do the job but none of them work for me:

1. Set the OID_802_11_BSSID_LIST_SCAN to force a scan, but it always return
error 87.
2. Set the OID_802_11_DISASSOCIATE to force a disassociation, but it always
return error 87.
3. Set the OID_802_11_SSID with a unused AP name to force disassociation
temporarily, it always return 87 also.
4. Set the OID_DOT11_SCAN_REQUEST to force scan, still error 87.

I didn't issue IOCTL_NDISUIO_OPEN_DEVICE so I send device name in each
QUERY/SET command. I tried to issue OPEN_DEVICE command but it always return
31.

My set command is:

result = Window.DeviceIoControl(
this._hHandle,
Window.IOCTL_NDISUIO_SET_OID_VALUE,
lpInBuffer,
(uint) inBuffer.Length,
(byte *) 0,
0,
&bytesReturned,
IntPtr.Zero );

Can anyone help me?

Also, I want to ask how to grab NDIS_STATUS error code? Is that same as the
error code from GetLastError()? If yes, how to convert it to NDIS_STATUS
code (in NDIS.H)?

Thanks a lot,


Compulim
Back to top
Login to vote
compulim

External


Since: Jun 26, 2004
Posts: 12



(Msg. 2) Posted: Wed May 05, 2004 7:48 am
Post subject: Re: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fixed, I got a bug in NDISUIO struct code.

btw, how to get the NDIS_STATUS error?

"compulim" <123> wrote in message
news:%2322KeZlMEHA.3668@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I'm writing an .NET app to grab RSSIs from a 4150 and Prism card. But if
the
> PPC is associated with an AP, the RSSI data from OID_802_11_BSSID_LIST
will
> stay at the same value as the time the PPC just associated.
>
> I can only use OID_802_11_RSSI to grab RSSI from associated AP. But I want
> to grab all RSSI from nearby AP.
>
> I found some ways to do the job but none of them work for me:
>
> 1. Set the OID_802_11_BSSID_LIST_SCAN to force a scan, but it always
return
> error 87.
> 2. Set the OID_802_11_DISASSOCIATE to force a disassociation, but it
always
> return error 87.
> 3. Set the OID_802_11_SSID with a unused AP name to force disassociation
> temporarily, it always return 87 also.
> 4. Set the OID_DOT11_SCAN_REQUEST to force scan, still error 87.
>
> I didn't issue IOCTL_NDISUIO_OPEN_DEVICE so I send device name in each
> QUERY/SET command. I tried to issue OPEN_DEVICE command but it always
return
> 31.
>
> My set command is:
>
> result = Window.DeviceIoControl(
> this._hHandle,
> Window.IOCTL_NDISUIO_SET_OID_VALUE,
> lpInBuffer,
> (uint) inBuffer.Length,
> (byte *) 0,
> 0,
> &bytesReturned,
> IntPtr.Zero );
>
> Can anyone help me?
>
> Also, I want to ask how to grab NDIS_STATUS error code? Is that same as
the
> error code from GetLastError()? If yes, how to convert it to NDIS_STATUS
> code (in NDIS.H)?
>
> Thanks a lot,
>
>
> Compulim
>
>
Back to top
Login to vote
A.Arias

External


Since: Apr 19, 2004
Posts: 15



(Msg. 3) Posted: Thu May 06, 2004 3:36 am
Post subject: RE: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

I have exactly the same problem, when I query OID_802_11_BSSID_LIST I get always the same RSSI value and when I query for OID_802_11_BSSID_LIST_SCAN I am not passing the correct parameter (I get error 87). How did you arrange it?

Thank you.

Regards.
A.Arias
Back to top
Login to vote
compulim

External


Since: Jun 26, 2004
Posts: 12



(Msg. 4) Posted: Sat May 08, 2004 6:49 pm
Post subject: Re: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

For the first problem, you have to disassociate your PPC from an AP first.
Some PPC (such as 4150) didn't update the information correctly.

For the second, you are probably sending wrong message format to the NIC.

You should send,

1A 01 01 0D <-- OID
D0 41 1C 00 <-- name of device
00 00 00 00 <-- dummy

Cheers,


Compulim

"A.Arias" <anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:0FDDBE31-E285-4784-BE83-699C7C88697F@microsoft.com...
> Hello,
>
> I have exactly the same problem, when I query OID_802_11_BSSID_LIST I get
always the same RSSI value and when I query for OID_802_11_BSSID_LIST_SCAN I
am not passing the correct parameter (I get error 87). How did you arrange
it?
>
> Thank you.
>
> Regards.
> A.Arias
Back to top
Login to vote
A.Arias

External


Since: Apr 19, 2004
Posts: 15



(Msg. 5) Posted: Mon May 10, 2004 10:41 pm
Post subject: Re: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you very much.

I fixed the BSSID_LIST SCAN problem and now I detected another Sad

I was testing my program only with one access point, but when I try now with two, I can not get the correct information from the second one.

pBssid_List = (PNDIS_802_11_BSSID_LIST)pQueryOid->Data; // I tried with PNDIS_802_11_BSSID_LIST_EX too with
// similar results

fprintf(OutFile,"There are %i access points\n",pBssid_List->NumberOfItems); //this shows "2 access points"

fprintf(OutFile,"\nRSSI from AP #1: %i\n",(pBssid_List->Bssid[0]).Rssi); // this is OK
fprintf(OutFile,"SSID from AP #1: %s\n",(pBssid_List->Bssid[0].Ssid).Ssid); //this is OK

fprintf(OutFile,"\nRSSI from AP #2: %i\n",(pBssid_List->Bssid[1]).Rssi); // this is wrong
fprintf(OutFile,"SSID from AP #2: %s\n",(pBssid_List->Bssid[1].Ssid).Ssid); //this is wrong too

Any idea?

Thank you and regards
A.Arias
Back to top
Login to vote
A.Arias

External


Since: Apr 19, 2004
Posts: 15



(Msg. 6) Posted: Tue Jun 08, 2004 12:26 am
Post subject: Re: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you, I have solved my problem with BSSID_LIST_SCAN. It was only a problem of the structure size (it is different the size returned and the standard structure size so I have to see it directly in the appropriate field). But thank you anyway.

Now I have another problem Sad

When I check the received signal strength from the BSSID_LIST, It has very large oscillations (10 dB or more).

Do you have any idea to stabilize these results? (apart from doing an active scan searching for RSSI oid of each access point).

Thank you very much.
A.Arias
Back to top
Login to vote
Eric

External


Since: Jun 11, 2004
Posts: 22



(Msg. 7) Posted: Wed Jun 09, 2004 4:47 am
Post subject: Re: NDISUIO 802.11 BSS List Scan and Disassociate problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hello guys,

I am a newbie to PPC 802.11b development. I am developing an application
with network search function. I just do not know where to start. Can you
guys tell me some links/webpages so I can learn it? or just game me some
brief explainations.

Thanks a million..

eric


"A.Arias" <anonymous RemoveThis @discussions.microsoft.com> wrote in message
news:CB43E378-36EF-4B9E-B7F7-18EAFA1C06FA@microsoft.com...
> Thank you, I have solved my problem with BSSID_LIST_SCAN. It was only a
problem of the structure size (it is different the size returned and the
standard structure size so I have to see it directly in the appropriate
field). But thank you anyway.
>
> Now I have another problem Sad
>
> When I check the received signal strength from the BSSID_LIST, It has very
large oscillations (10 dB or more).
>
> Do you have any idea to stabilize these results? (apart from doing an
active scan searching for RSSI oid of each access point).
>
> Thank you very much.
> A.Arias
>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How can I get AP list? - I'm under PPC2003, wirless lan. there are several AP. I want to write simple application which can scan all of AP in ...

How to change font size in List Control - Dear all, I use the List control in my program written in eVC++ for Pocket PC. Now I want to change default font size ...

RAS problem - Hi to everyone, I wrote some code, using evc 3.0, to create a ras connection and it runs correctly, but I have problems...

InternetReadFile Problem - Hi I've been doing some testing with the Wininet API on an iPaq H5550 running Pocket PC 2003 and I've noticed that wh...

recvfrom problem - Hi there I am coding an application on the pocket pc emulator 2000 that communicates with a pc via UDP sockets. basi...

Problem with Serialize - Dear all, I am writing an Application for Pocket PC and I use a class which derives from CObject in this App. But I ha...
       Soft32 Home -> PDA -> Pocket PC Developer Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
  PDA


[ Contact us | Terms of Service/Privacy Policy ]