wifi-direct

Android P2P service discovery callbacks not being called

六月ゝ 毕业季﹏ 提交于 2019-12-01 07:28:16
问题 I'm fairly new to Android and I'm working on an application that will exchange data over WIFI direct and I would like to use DNS Service Discovery instead of pure P2P discovery to get more useful information like device "nick names" etc. So far I've followed the tutorials at http://developer.android.com/training/connect-devices-wirelessly/index.html and read through the documentation. My application seems to register it's local service successfully and the onSuccess callback from

How change the device name in WiFi direct p2p?

六月ゝ 毕业季﹏ 提交于 2019-12-01 03:27:38
Is it possibile to change the device name of WiFi direct through the code? I've tried to: private WifiP2pDevice wDevice; wDevice.deviceName = "newName"; But, obviously it doesn't work. Any idea?! user3409573 Following code use Reflection api of Java,It is less preferrable due to lack of efficiency but Android does not provide another way so, You can use it works with charm : try { Method m = wpm.getClass().getMethod( "setDeviceName", new Class[] { WifiP2pManager.Channel.class, String.class, WifiP2pManager.ActionListener.class }); m.invoke(WifiP2pManager wifimngr,WifiP2pManager.Channel

Can an Android device broadcast an SSID?

孤人 提交于 2019-12-01 01:50:47
I want to look at data coming from a Nintendo 3DS on an Android device. The 3DS will automatically try and connect to any router with the SSID of "Nintendo_3DS_continuous_scan_000". I know it should be possible, since tethering apps do essentially the same thing. I've tried looking at Wifi Direct or Wifi P2P , but so far I haven't seen any option to set an SSID. Am I looking at the wrong library for this project? EDIT: I found a library here that handles the Access Points. I've successfully tested it once now, so I'm off to try crazy things. Ryan Smith If the android device can be used as a

Android Wifi Direct: How to send data from Group Owner to the clients?

别等时光非礼了梦想. 提交于 2019-12-01 00:36:00
I've got a problem using wifi direct. I managed to connect 2 devices and send data from the client to the group owner, because the group owner ip is the one that everybody knows. I managed also to find out the IP of the client and pass it to the group owner but I can't send data from the group owner to the client, even if it should be simmetric. I'm using Intent and startService() to send data and AsynkTask for receive. Using only 2 devices I noticed that the client IP is always the same (192.168.49.10), so I give it to the intent manually. Here's the method where I'm trying to create the

Is it possible to connect two or more WiFi Direct groups?

时光怂恿深爱的人放手 提交于 2019-11-30 22:54:54
I am currently experimenting with WiFi-Direct (WiFiP2p) for a project I'm working on and wanted to know if one can create bridge between groups, thus joining them together? Based upon the white paper released by the WiFi Alliance, it should be possible (though "The P2P Specification does not describe the mechanism for this capability – implementation is specific to the vendor"). I have looked through the internet and have found some answers ( this , this , etc.) but I feel that none are particularly conclusive. Looking at Andoid's API hasn't helped much either. The scenario I'm trying to

Android rename device's name for wifi-direct

匆匆过客 提交于 2019-11-30 20:48:03
I am trying to connect two devices using Wifi Direct, but i want to implement programmatically not by user initiated. And for that i have to change Device's WifiDirect's name like below picture : Now discover peers using following methods : wifiP2pManager.discoverPeers(channel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Log.d(TAG, "onSuccess"); } @Override public void onFailure(int reason) { Log.d(TAG, "onFailure"); } }); Connect to particular peer via following code : public static void connectPeer(WifiP2pDevice device, WifiP2pManager manager, Channel channel,

Can an Android device broadcast an SSID?

瘦欲@ 提交于 2019-11-30 20:47:45
问题 I want to look at data coming from a Nintendo 3DS on an Android device. The 3DS will automatically try and connect to any router with the SSID of "Nintendo_3DS_continuous_scan_000". I know it should be possible, since tethering apps do essentially the same thing. I've tried looking at Wifi Direct or Wifi P2P , but so far I haven't seen any option to set an SSID. Am I looking at the wrong library for this project? EDIT: I found a library here that handles the Access Points. I've successfully

Is it possible to use Wi-Fi Direct from a non Universal application?

只谈情不闲聊 提交于 2019-11-30 17:56:22
问题 I've been trying to code a simple command-line based application (using C# and .NET from Visual Studio 2015 and Windows 10) to start a Wi-Fi Direct advertiser following Microsoft's Universal Samples, but manually adding references to the necessary *.dll and *.winmd assemblies instead of creating a UniversalWindowsPlatform project. (System.Runtime.WindowsRuntime from Refference Assemblies and Windows from Windows Kits\10\Union Metadata\Windows.winmd) This is the relevant code: public void

Is multicasting possible with Wi-Fi Direct?

雨燕双飞 提交于 2019-11-30 14:17:19
I'm a bit confused about the new Wi-Fi Direct feature in Android ICS. Is it possible to create a P2P group with multiple devices, and send multicast packets from a source peer to the other peers? Unfortunately, I don't have any devices that are Wi-Fi Direct enabled, so I can only browse the examples that I find online. In these examples, I could only find peers establishing 1-on-1 connections. So, is multicasting possible? Is it possible to create a p2p group with multiple devices ? Based on the Industry white paper and the technical specs, yes it is possible to create a group with multiple

Wi-Fi Direct and “normal” Wi-Fi - Different MAC?

廉价感情. 提交于 2019-11-30 14:03:20
I'm currently trying to connect two phones which know each other's MAC address via Wi-Fi Direct, and stumbled upon the following problem: The MAC address, which I receive from WifiManager wifiMan = (WifiManager) this .getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInf = wifiMan.getConnectionInfo(); MAC_ADDRESS = wifiInf.getMacAddress(); is slightly different than the one I receive from the WifiP2pManager when discovering and requesting peers. Example: a0:xx:xx:... turns into a2:xx:xx.... Does anyone know why? I did not find any way to get the "Wi-Fi Direct MAC address", and as I thought