wifi-direct

App crash while sending data over a socket using WifiP2p connection

北慕城南 提交于 2020-01-06 06:54:30
问题 App crashes while sending data over a socket using wifi p2p connection I am testing a simple chat application between HTC_Desire_10 pro (running Android 6.0) and OPPO A83 (running Android 7.1.1). I have the same app running on the two devices. The app first turns wifi on, then starts discovering peers on a users click event. The user can choose the device they want to connect to from a dynamically generated peer list. The two devices are able to connect successfully. I am able to send a text

How to Broadcast message from Group Owner to all or particular client(s) ? Android Wi-Fi Direct

会有一股神秘感。 提交于 2020-01-05 04:19:08
问题 I am developing demo to send and receive data through WIFI DIRECT . It works fine multiple clients are connecting to the owner and all clients can send data and also Group owner receives those all data from clients. I have used wifi direct demo of google. But the problem is, I am not getting how to send data from Group owner to all or particular client(s). I tried to do this after storing client's IP but it is not working. I am searching for this since last two days but haven't got proper

if this linux commands applicable for android WIFI DIRECT?

老子叫甜甜 提交于 2020-01-02 19:24:06
问题 i found resources talk about Wifi direct commands in linux at this link . i am wondered if these commands are applicable for android WIFI DIRECT ??? i need to access WIFI direct from terminal using rooted device. 来源: https://stackoverflow.com/questions/15314877/if-this-linux-commands-applicable-for-android-wifi-direct

Android O issues with WiFi Peer Discovery

China☆狼群 提交于 2020-01-01 10:06:22
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

Android O issues with WiFi Peer Discovery

ぐ巨炮叔叔 提交于 2020-01-01 10:06:11
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

Scan for MFI products over Wi Fi

半世苍凉 提交于 2020-01-01 03:25:07
问题 In iOS 8, Apple allows us to connect to a device via Wifi direct and share wifi network credentials with it. We can do it in wifi settings page but also in an app. I'm trying to launch a scan to find wifi MFI devices. I can see those in the wifi settings but not in app. Here is how I do this: EAWiFiUnconfiguredAccessoryBrowser *_wifiBrowser = [[EAWiFiUnconfiguredAccessoryBrowser alloc] initWithDelegate:self queue:nil]; [_wifiBrowser startSearchingForUnconfiguredAccessoriesMatchingPredicate

How can I handle multiple clients connected to a server using sockets?

こ雲淡風輕ζ 提交于 2019-12-31 22:29:31
问题 I have an Android app that needs to let multiple devices connect. One device should act as the group owner and issue instructions to all of the clients to do specific things. I suppose it's comparable to a wireless handheld game where one player is the host. I have a couple of questions so I will try to keep them concise. Even an answer to just the first would help. First, I've successfully paired a single server and single client phone using sockets. I did this using Android's Wi-Fi Direct

WiFi Direct device connection with other Android devices

眉间皱痕 提交于 2019-12-30 11:31:15
问题 Can I connect a WiFi Direct enabled device to any other device which doesn't have WiFi Direct feature but supports WiFi hotspot connection? Does WiFi direct uses specialized hardware to be present on both devices? Will network discovery work in such cases? 回答1: It is possible. Code taken from a talk I gave at Droidcon UK 2013. You need to call the createGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener listener) method of the WifiP2pManager class. This will create a Wi-Fi Direct

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

懵懂的女人 提交于 2019-12-30 07:24:08
问题 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

Is multicasting possible with Wi-Fi Direct?

此生再无相见时 提交于 2019-12-30 04:50:08
问题 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? 回答1: Is it possible to create a p2p group with multiple devices ?