wifi-direct

Customized channel wifi direct

北战南征 提交于 2019-12-04 06:52:13
问题 Can anyone tell me, is there any option to customize wifi direct channels? I need to customize it not only between ch1, ch6 and ch11, but also in another channels selected by me. How can I do that? 回答1: In order to change the channel of the Wifi Direct of your device you need to do the following: 1- Root your phone 2- Download any File manager App: Such as ES File Explorer 3- On ES File Explorer, go to Tools, then turn ON the Root Explorer and click on it then mount RW 4- Using ES File

Android O issues with WiFi Peer Discovery

前提是你 提交于 2019-12-04 05:21:20
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" defaultConfig { applicationId "com.research.wifi_direct" minSdkVersion 19 targetSdkVersion 26 versionCode 1

How change the device name in WiFi direct p2p?

▼魔方 西西 提交于 2019-12-04 00:48:34
问题 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?! 回答1: 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,

Forgetting old WiFi Direct connections

我只是一个虾纸丫 提交于 2019-12-03 15:25:10
Is there a way to forget old WiFi Direct connections(in code)? I need this so as to change who becomes Group owner. I am setting groupOwnerIntent = 15 and yet not becoming Group owner. If you want just to discinnect from existant WiFiP2p connection, than just call WiFiP2pManager#removeGroup . Doesnt matter is device GO or peer. If you are talking about forgeting persistant groups - u can also remove it. But it can only be achieved via reflection. And also no matter is device GO or peer. manager.removeGroup(channel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Log.d

WiFi-Direct on JellyBean, WPA Supplicant messed up

青春壹個敷衍的年華 提交于 2019-12-03 13:42:48
问题 so a couple of months ago I've started developing some WiFi-Direct applications. A few days ago, I updated both of my Galaxy Nexus to Jelly Bean (4.1.x) and tested my applications, but it seems like there's something messed up again.. It was already a pain in the ass to get the main functionality set up on ICS, but now it does not work anymore. All i get is something like this in my logcat: /wpa_supplicant( 392): p2p0: P2P-PROV-DISC-PBC-REQ a2:0b:ba:xy:zz:xx p2p_dev_addr=a2:0b:ba:xy:zz:xx pri

WiFi Direct on Android not working properly

别说谁变了你拦得住时间么 提交于 2019-12-03 08:53:31
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 second device fires the WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION and this inturn calls

Android Wi-Fi Direct Network

喜夏-厌秋 提交于 2019-12-03 07:50:36
问题 I am developing an application on Android where I am searching for all the peers in the range and afterwards connect with all of them, The device who initiated the the discovery become the group owner and all others become client, I have done all the connection thing but now I want to the group owner to send the message to all the connecting peers, How to achieve this and also please tell me what is the methodology in peer-to-peer communication , Does p2p in Android also use IP to send and

Scan for MFI products over Wi Fi

筅森魡賤 提交于 2019-12-03 07:19:12
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:nil]; So I expect to see an accessory in the delegate method - (void)accessoryBrowser:

Android NSD not discovering all services

荒凉一梦 提交于 2019-12-03 06:38:24
问题 I'm trying to run an application using Android Native Service Discovery but sometimes when I run the application, it doesn't discover all services from my network. I'm running the code from https://github.com/joeluchoa/nsd using four galaxy nexus and most of the times each of them discoveries different number of services at the same time. Basically I run a service with a ServerSocket: ServerSocket server = new ServerSocket(0); Log.i(TAG, "IP " + server.getInetAddress() + ", running on port "

range of distances in which Wi-Fi direct works

心不动则不痛 提交于 2019-12-03 06:33:17
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 works. Typical Wi-Fi devices extend their signal up to 100 meters . Source However the biggest of