wifi-direct

Client/Peer communication with Wi-Fi Direct on Android

不想你离开。 提交于 2019-12-06 07:18:26
问题 I have three Android devices: A, B, and C. They are connected via Wi-Fi Direct (assuming B is the group owner). I just have two questions: Can B connect as a client to another Wi-Fi Direct group? Can A or C connect as a client to another Wi-Fi Direct group? 回答1: I've tested your issues 2 days ago. B can connect to device D only if D isn't the owner of some group, and therefore D will be joined to B's group as a client. When A/C are connected to B as clients, when they'll try to send a

WiFi Direct in Windows 10 says “UnsupportedHardware” althought it should be supported

夙愿已清 提交于 2019-12-06 01:59:06
问题 I'll try to keep it short. I've been running in Windows 10 (10130) Microsoft's WiFi Direct Services example available on GitHub , the C# one in Visual Studio 2015 RC. Now, in their Build conference they said you can run in CMD a command to know if your WiFi adapter is compatible with WiFi Direct netsh wlan show wirelesscap Which gives me a big YES, your wireless adapter is compatible . Wi-Fi Direct Device : Supported Wi-Fi Direct GO : Supported Wi-Fi Direct Client : Supported But when I run

WiFi Direct for Android Version 2.3+

故事扮演 提交于 2019-12-05 20:40:19
I have noticed on the official Android blog that WiFi Direct APIs are supported on google phone which are having versions 4.0 or later. Also I have seen the code to access WiFi Direct API. But I have doubt that on some blogs people have written that some 2.3 version android devices also support WiFi Direct. So same code we are writing for 4.0 or later , will work on the 2.3 version android devices which support WiFi Direct?. I have failed to find the code which is compatible to android version 2.3 Again I have noticed ,Alternate solution for this is "AllJoyn" (https://www.alljoyn.org/) , but

WifiP2pManager return BUSY state on CreateGroup

巧了我就是萌 提交于 2019-12-05 19:15:39
问题 sometime when I try to create a group in WifiDirect it returns back WifiP2pManager.BUSY message as reason for failure. I am not sure why this happens. But if I restart the WIFI interface it will again work. What could be the possible reason for this? How this can be avoided? is there any way to overcome this if it ever happens? Thanks 回答1: In my case I was getting this error because I was not removing the group before trying to create it again. In that case the WifiManager is returning a BUSY

Wifi direct connection disconnects automatically after a few seconds in Raspberry Pi

旧城冷巷雨未停 提交于 2019-12-05 12:24:16
I am using this configuration for wifi direct connection in Raspberry PI 2 B+ ctrl_interface=DIR=/var/run/wpa_supplicant driver_param=use_p2p_group_interface=1 update_config=1 device_name=Raspberry_pi device_type=1-0050F204-1 p2p_go_intent=1 p2p_go_ht40=1 country=IN and then started wpa supplicant using sudo wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/p2p.conf -B and then add new group using sudo wpa_cli -iwlan0 p2p_group_add and then set an IP using ifconfig p2p-wlan0-0 192.168.1.20 and then set the pin using sudo wpa_cli -ip2p-wlan0-0 wps_pin any 0000 up to this, everything is

WiFi P2P network in Android Things

纵然是瞬间 提交于 2019-12-05 11:52:17
I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html , so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } } However when I try to run the app, with WiFI enabled, the SystemServiceRegistry shows a message stating

Get Android network interface IP address

回眸只為那壹抹淺笑 提交于 2019-12-05 10:14:22
I am writing a wifi-direct application for Android. I am trying to make a socket connection to a device. Since the group owner intent function doesn't seem to work (it just assigns randomly it appears) I have to find a way to transfer the clients IP address to the host. The only address I know of is the host device which comes in the group info object that WifiP2pManager can get me. I know which device is the host and which one is the client so I can open a socket for a connection to arrive or attempt to connect to the other one. What I need to do is find a way to transfer the device's IP

wifi-direct end connection to peer on Android?

一笑奈何 提交于 2019-12-05 08:03:44
Is there any way to end the connection to a peer over Wifi-Direct? I tried cancelConnect and removeGroup. Both of them returned Busy? thanks. this is the method I am using to disconnect from peer. I noticed from logs that the android built in app also uses the same method to disconnect the peers. public static void disconnect() { if (mManager != null && mChannel != null) { mManager.requestGroupInfo(mChannel, new GroupInfoListener() { @Override public void onGroupInfoAvailable(WifiP2pGroup group) { if (group != null && mManager != null && mChannel != null && group.isGroupOwner()) { mManager

WiFi Direct on Android not working properly

那年仲夏 提交于 2019-12-04 13:08:51
问题 I am trying to develop an app using wifi direct in android Jelly Bean 4.1.1. If p2p is enabled I immedialtely call mManager.discoverPeers(mChannel, actionListener); After that I am getting a call back to the onPeersAvailable(WifiP2pDeviceList) I am testing with 2 Samsung(Google) Nexus device and wifi direct is turned on on both. But this call back is returning an empty list of peers. But for instance if I click on the Search Peers button on the default wifi direct interface immedialtely the

Android WifiP2p - Get notified when a discovered device goes unavailable

ぐ巨炮叔叔 提交于 2019-12-04 08:35:15
I'm developing a Wifi-direct app in which i'm listing the devices that are available and when the device goes to "unavailble" status i have to remove it from the list. I tried with the WifiDirectDemo sample, it successfully adds discovered devices in the list but when the device goes unavailable it is not getting notified. "WIFI_P2P_PEERS_CHANGED_ACTION" intent is not fired when device goes unavailable. When i try "discoverPeers" again, "onPeersAvailable" method gets the device list that are already discovered. It is not removing the unavailble devices. Is there any way to get notified when