Welcome to Intel® Software Network Quick Login | Join | Help |
Search in Intel® Software Network Forums
in Go

Nerwork Class in Intel SDK

Last post 03-05-2008, 11:13 PM by MAD\fli8. 6 replies.
Sort Posts: Previous Next
 02-28-2008, 4:44 AM 30249860  

Nerwork Class in Intel SDK

hi fellas,

 

i was wondering in the network class of can i access the name of the network in which i connnect to? i can get it to log connections and disconnections but i would like the name of the network

thanks

 

 

 
 02-28-2008, 6:27 PM 30249941 in reply to 30249860  

Re: Nerwork Class in Intel SDK

Hi conrad:

I am not sure the following answer is what your need:

1) Use string sKey = Connectivity::GetNetworkAdapterKey(url,...) to get the network card key value

2) Use NetworkAdapterClass->GetInstance(sKey) to get the pNetworkInstance.

3) call pNetworkInstance->Name.GetValue() to get name information

    and pNetworkInstance->Description.GetValue() to get more detail information.

If you need more information about the network Key.Name,Descriptons,PnpDeviceId etc ,please refer the Start->Programs->Intel Mobile Platform SDK 1.3->Docs->"Programing Guide" document.

best regards!

 
 02-29-2008, 11:36 AM 30249989 in reply to 30249941  

Re: Nerwork Class in Intel SDK

Hi Mad, many thanks for getting back to me.

I have tried what you have given me, looked throught the guide you told me to look at

ill tell you want i am looking for, see whenever you connect to a wireless network, you will get a pop up saying "Wireless Network Connected" "Connected to NETWORK NAME OF NETWORK", is there anywey you can get that name from the iMSDK?

thanks

 

conrad

 
 03-02-2008, 5:29 PM 30250068 in reply to 30249989  

Re: Nerwork Class in Intel SDK

Hi conrad:

     Does the Protocol802_11Instance::Ssid property work? the property tell the works station which you have connected.

    The Event  "Associated" and "Disassociated"  can help you to indentify the Access Point changing event.

     besides , after you get the Protocol802_11::Bssid property value, you can iterator it in the ScanAP() list , then you can get more information about Associated access point .

 
 03-04-2008, 4:24 AM 30250136 in reply to 30250068  

Re: Nerwork Class in Intel SDK

thanks MAD

i  found the class there, thought it would have been in around the network classes

thanks for your help once again

 

conrad

 
 03-04-2008, 6:25 AM 30250146 in reply to 30250136  

Re: Nerwork Class in Intel SDK

Hi MAD, me AGAIN

was trying to acess the SSID, it works from the samples that the iMSDK provide, but i have tried this.

private void Print802_11Info(string sKey)

{

try

{

Protocol802_11Class my802_11Class = new Protocol802_11Class();

Protocol802_11Instance my802_11Instance = (Protocol802_11Instance)my802_11Class.GetInstance(sKey);

textBox1.Text = my802_11Instance.Ssid.GetValue();

}

catch (Exception ex)

{

textBox1.Text = ex.ToString();

}

}

 

when i try to call this method but this way

Print802_11Info(null)

i get this error

Intel.Mobile.Base.IntelMobileException: Error in GetInstance of Class
   at Intel.Mobile.Network.Protocol802_11Class.GetInstance(String sKey)
   at MoviePlayer.NET.MainForm.Print802_11Info(String sKey) 

line 700, which is the line that the instance take the sKey parameter

any help please MAD

conrad

 
 03-05-2008, 11:13 PM 30250285 in reply to 30250146  

Re: Nerwork Class in Intel SDK

Hi conrad:

     It seem that the sKey value is not correct, so what is value of the input parameter "string sKey". In MPSDK, the key value is something like "

\\?pci#ven_14e4&dev_1677&subsys_01791028&rev_01#4&1d7eff9e&0&00e0#{ad498944-762f-11d0-8dcb-00c04fc3358c}\{8efadf78-91b9-4772-84af-0bd4a5bae936}

    so my suggestion is that if you have only one wireless adapter , you can copy the sample code which use Protocol802_11Collection to iterator the ProtocolInstance.

 

good luck!

 

 
View as RSS news feed in XML

Shortcuts


Tags For This Post

...

Community Tags

...