wifi-direct

Wifi P2P service discovery works intermittently

烂漫一生 提交于 2019-11-28 15:54:30
Wifi P2P service discovery is not behaving as expected. I am seeing intermittent issues where the DNSSD listeners are not called always and hence I have no clue of nearby devices running the same app. I am using the following two APIs - one to register a service to be discovered by other devices and the other to discover the nearby services running on other devices. Any idea if I am doing anything wrong here or is there some specific sequence of other android API calls that need to be made before I call these APIs to ensure that the listeners are always called whenever there is a new service

How to auto-accept Wi-Fi Direct connection requests in Android

▼魔方 西西 提交于 2019-11-28 05:33:39
I have 2 Android devices using WiFi Direct. On one device I can get information about the other device using the WifiP2pManager class, and request a connection to the other device. However when I request a connection, the other device pops up a little window and asks the user if they want to accept the connection request. Is it possible to auto-accept these connection requests? I.E to be able to connect to the other device without user confirmation? Based on the comments, do you really need to connect to the devices if you just want to track and log the vehicles around you ? I don't know the

Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

假如想象 提交于 2019-11-28 04:07:53
I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity , and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs. Is the Wi-Fi Direct technology in this framework compatible with Android's Wi-Fi Direct? Can this framework actually be used for cross-platform P2P networking? The device is not found by either when advertising or browsing with MultipeerConnectivity. Tried on Galaxy Tab 2: barbazoo This is what we know: There's no BTLE/Bluetooth 4.0 advertisement visible on my Texas Instruments

connect to android devices using wifi direct without prompt

孤街浪徒 提交于 2019-11-27 20:36:31
问题 i am trying to connect two android devices using WIFI direct and i was successful. But the problem is the second device has to accept the a connection prompt after the other device initiates the connection. It is undesirable for what i am trying to achieve. I saw a few post here in stack overflow itself saying that currently its not possible. But came across an app called SUPERBEAM which user WIFI direct but without the prompt. A search in google gave me the following link from xda forum

How to be notified when a peer is no longer available in the Wi-Fi Direct range?

。_饼干妹妹 提交于 2019-11-27 20:12:51
I am developing an Android application based on the use of Wifi Direct API. I have registered in my Activity a BroadcastReceiver in order to be notified about the following Wifi Direct events: WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION I believed that any change in the list of peers (the inclusion or exclusion of a peer in the Wifi Direct range) could trigger the BroadcastReceiver . In my app, when a new peer is found, its name is correctly

Steps to programmatically cast from android to miracast receiver

我们两清 提交于 2019-11-27 18:12:52
问题 I'm trying to write an app that will start casting the screen from an Android phone to a TV via miracast. I'm using an HDMI dongle since the TV in question doesn't natively support miracast. I have been trying the code here, but it needs an Application ID which I have got following these steps. My question is, the instructions seem to indicate that I need to register the miracast dongle so it will talk to an unpublished 'debug' app. However, only Google Cast devices are mentioned and that isn

WiFi Direct (Android 4.0) with multiple (3+) devices

怎甘沉沦 提交于 2019-11-27 06:38:22
Like here: Automatic authentication for Android WiFi Direct I want to create a mobile ad-hoc Wifi network with Android devices. But unlike the linked question above I want to use the official Android WiFi Direct API which is availabe since Android 4.0. So is there a way to not only connect 2 devices via WiFi Direct but also three or more? So messages could be passed from one device to another using several other devices in between (therefore spanning a larger distance between the sender and receiver)? The Wifi Direct demo only works for pairing two devices and I could not find a way to do

Can I change the group owner in a persistent group in Wi-Fi Direct?

删除回忆录丶 提交于 2019-11-27 04:18:24
When creating a group via Wi-Fi Direct, I know that I can make a persistent group. My question is: can I create a persistent group, but each time change the group owner (i.e; each turn the group owner will be one of the devices in the group). Also, when creating a persistent group, it is required to accept the connection only the first time, right? Bill G You can now create a new persistent group via WifiP2pManager.createGroup(..) . It will create a new group and make the calling device (A) group owner and can do what you described. The only problem is once you create a group and connect to

How to get each device's IP address in Wi-Fi Direct scenario?

别来无恙 提交于 2019-11-27 03:28:36
Starting from ICS, Wi-Fi Direct is introduced. Normally, we use the WifiP2pManager class to operate on Wi-Fi Direct, but it seems that it can only retrieve the GroupOwner IP address after connected. But, actually, any device all came negotiate to become the GroupOwner. In Upper Application, we need to get the peer's IP address, or each peer's IP address in a group so that we can send/communicate with them. How to get each IP address in Wi-Fi Direct? Include own IP address and each peer in the group? I encountered the same problem. Since both devices know the group owner's ip, it is already

Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

南笙酒味 提交于 2019-11-27 00:22:31
问题 I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity, and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs. Is the Wi-Fi Direct technology in this framework compatible with Android's Wi-Fi Direct? Can this framework actually be used for cross-platform P2P networking? 回答1: The device is not found by either when advertising or browsing with MultipeerConnectivity. Tried on Galaxy Tab 2: 回答2: