wifi-direct

WiFi Direct for Android Version 2.3+

冷暖自知 提交于 2019-12-22 11:02:15
问题 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

WiFi P2P network in Android Things

独自空忆成欢 提交于 2019-12-22 08:15:54
问题 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); .... } }

WiFi P2P network in Android Things

耗尽温柔 提交于 2019-12-22 08:15:04
问题 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); .... } }

iOS Wifi-Direct Communication

强颜欢笑 提交于 2019-12-21 23:17:58
问题 I'm wondering if there's a way for two iPhones to communicate with Wifi-Direct Exclusively. (No Bluetooth, No Servers, Just Wifi-Direct) Correct me if I'm wrong, but MultiPeerConnectivity, GameKit, and CFNetServices don't allow using exclusively Wifi-Direct. If they do can someone show me an example? Thanks for your time! 回答1: The Multipeer Connectivity framework does not support Wi-Fi Direct but it does support direct ad-hoc connections between two iOS devices using a proprietary Apple

Choose Wifi Direct Channel / Frequency Band in Android SDK?

天涯浪子 提交于 2019-12-21 19:50:19
问题 I've been looking over the Android Wifi direct APIs and I can't seem to find out if it is possible to change the frequency/channel Wifi direct uses to communicate? (channels 1, 6, or 11 for example) Does anybody know if this is possible with the developer API? If not, does anybody know if there is some third party library that could possibly require root access to accomplish this? Thanks in advance for any help you can provide. 回答1: In order to change the channel of the Wifi Direct of your

range of distances in which Wi-Fi direct works

醉酒当歌 提交于 2019-12-20 23:30:05
问题 I'm developing an android app which is based on WiFi Direct technology(P2P), so I really need to know how many meters is the range of android WiFi direct performance.based on Android API Guides: you can discover and connect to other devices when each device supports Wi-Fi P2P, then communicate over a speedy connection across distances much longer than a Bluetooth connection. but knowing that is not enough for me. because of my aim I need numbers! I mean a range of distances in which Wi-Fi P2P

How to WifiP2pDevice.deviceName for current device?

百般思念 提交于 2019-12-20 06:24:43
问题 I know similar questions are asked but the answers didn't work for me. I tried this answer but it throws null pointer exception. I also saw this answer but WifiP2pManager does not have any property or method that returns device name. Can anyone please help? I basically want to show user their device name and let them change it if they want to set custom name. Thanks. 回答1: If you're still looking for the answer, here's how: Identify own device name This becomes available upon receiving the

Alternative to discovering peers with Wifi Direct as it requires both phones running WiFi Direct discovery

爷,独闯天下 提交于 2019-12-19 09:50:32
问题 I am trying to discover WiFi Direct peer to peer android devices but peers are discovered only when both phones are running WiFi Direct discovery. What I have Understood so far is, they will see each other only when they are both scanning for WiFi direct connections at the same time. This is because the way WiFi Direct works is that when phones are scanning for WiFi Direct connections, they will negotiate with the other peers for the role of Access Point or Slave device. Hence both need to

Available service types in WifiP2pDnsSdServiceInfo.newInstance

限于喜欢 提交于 2019-12-19 04:15:16
问题 I'm programming an android application that uses Wifi Direct. I'm trying to start my service and I'm calling WifiP2pDnsSdServiceInfo.newInstance. However, I have been searching for the different service types that I could use, and so far I have only found "_presence._tcp". I understand that I should somehow find a service type that "makes sense" with what my application tries to accomplish. Can I just "invent" it? Is there any available list of protocols? Thanks a lot! 回答1: Android

Available service types in WifiP2pDnsSdServiceInfo.newInstance

此生再无相见时 提交于 2019-12-19 04:15:07
问题 I'm programming an android application that uses Wifi Direct. I'm trying to start my service and I'm calling WifiP2pDnsSdServiceInfo.newInstance. However, I have been searching for the different service types that I could use, and so far I have only found "_presence._tcp". I understand that I should somehow find a service type that "makes sense" with what my application tries to accomplish. Can I just "invent" it? Is there any available list of protocols? Thanks a lot! 回答1: Android