语言

Menu
Sites
Language
Wi-Fi direct return to NULL


Hi all~

I have a problem about wi-fi direct. 

Now, I developing native app using wi-fi direct.

I use ' Tizen::Net::Wifi::WifiDirectDeviceManager::GetWifiDirectDeviceN() ' namespace.

However, I using that, I receive only NULL.

NULL is error mean. But I don't know cause. Please let me know.

Below included screen shot.

My development environment is RD-QP device. And I reference to Wi-Fi Direct sample app in SDK 2.2.1

Thank you for your concern :)

 

 

编辑者为: JS Hong 28 6月, 2014

响应

9 回复
Alex Ashirov

Hi,
You can check the following:
1. The specific error code can be accessed using the GetLastResult() method. 
2. Check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&). 

Alex Dem

Hi, just fyi:
I was able to get valid pointer (on RD-QP device) this way in Native example->WifiDirectChat.
Alexey.

JS Hong

Really?

What is your develop condition?

Ubuntu? Windows? and SDK 2.2.1? Native app? Web app? 

Please tell me detail.

I have two RD-PQ devices. However I get to fail all devices when run as WifiDirectChat app.

Really is that sample a WifiDirectChat? So then, If you send to me your project and *.tpk package file?

I don't konw why I get Null pointer from all devices.

JS Hong

Oh... I forget write my e-mail. Sorry.

My e-mail address is  Hcode1210@gmail.com 

I'll wait for your response.

Thank you.

Alex Dem

Hi,
I have checked with WifiDirChat on M0 (RD-PQ) and on M1 devices and just have added code in MainForm::Initialize to get logs:

result r;
WifiDirectDevice* pWifiDirectLocalDevice1 =null;
pWifiDirectLocalDevice1=WifiDirectDeviceManager::GetWifiDirectDeviceN();
AppLog("pWifiDirectLocalDevice1=%d",pWifiDirectLocalDevice1);
r = GetLastResult();
AppLog("_Result=%s",GetErrorMessage(r));

It was ok.
Do you have interrnet connection? Is wi-fi working? maybe you have not installed wlan driver on M0.
Alexey.

JS Hong

Hi,

Yes, I tried that all. And I checked internet connection. Wi-Fi working is success of course.

However.. I First hear about wlan driver. If you tell me detail?

Where I download the wlan driver?

 

Thank you.

Alex Dem

Hi,
If you have flashed 'M0 device' firmware by himself you should install this driver (wlan and other) after 'M0 binary'.
But if you have working wifi and access to internet , it mean that it is installed already.
Alexey.

JS Hong

Hi,

Thank you for your comment.

If you check the your devices model name?

My devices model name is GT-I9300. 

Alex Dem

Hi,
My M0 device is GT-i9300 too. My firmware is 2.2.1 (Settings->About phone->Version) latest for M0.
Alexey.