Questions tagged [wifi-direct]

Wi-Fi Direct is an extension to Wi-Fi, created by the Wi-Fi Alliance, that allows for Bluetooth style point-to-point networking as well as the more well known method of networking with access points that Wi-Fi traditionally uses. It is designed to make the process of connecting small intelligent devices like phones and cameras and even home appliances easier and faster. To make it easier to exchange information and files between devices as needed.

wifi-direct
Filter by
Sorted by
Tagged with
4 votes
1 answer
813 views

WiFi P2P network in Android Things

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://...
Antonio La Marra's user avatar
0 votes
1 answer
115 views

Which method is called when someone tries to connect using WifiP2PManager.connect(Channel, WifiP2pConfig,ActionListener)?

I am tring to setup WIFI P2P on 2 devices using manager.addLocalService(channel, service, ActionListener) and then connect both devices using manager.connect(channel, config, ActionListener). I ...
Lcukerd's user avatar
  • 448
3 votes
1 answer
3k views

file transfer through Wifi Direct

I am trying to write an android application that streams images taken from a first device, through the camera, to a second device with WiFi Direct. I am trying to use this GitHub project, ...
Matteo Peluso's user avatar
0 votes
0 answers
1k views

Android studio sync local database between multiple devices

I am creating a pos application on android. The database for the app is in the cloud. That causes a problem when the internet is down. To solve that problem i have created a SQLite database that keeps ...
Ivan Šimović's user avatar
1 vote
0 answers
109 views

Wifi Direct to configure new device (a la chromecast setup)

I've been digging around the developer docs for Android, and a fair bit elsewhere, yet I've been unable to find the information needed. In short, I'd like to replicate the "adding a new device to a ...
Mark's user avatar
  • 631
0 votes
1 answer
7k views

Communication between android phone and Raspberry Pi over WiFi without external modem/router?

I want to control Raspberry Pi 3 with an android application via WiFi, without external modem/router/... This application needs to do the followings: send commands to RPi send/receive files to/from ...
Omid1989's user avatar
  • 419
1 vote
1 answer
577 views

How can I measure the transmission time between two android devices?

I would like to monitor Wifi-Direct network (Bandwidth, latency etc). How can I measure the time it takes for X bytes to be received over a network (wifi direct). I mean TX + over the network + RX ...
Dani's user avatar
  • 19
0 votes
0 answers
46 views

wifi direct queries

I have 2 queries related to android wifi direct. I am able to connect my motorola phone with Redmi via Wifi Direct. However when i try to connect my Motorola phone with Xiomi device it fails. So is ...
user1122549's user avatar
1 vote
1 answer
2k views

How to "Restart" Android WiFi Hardware programmatically

I am attempting to develop an Android Application employing WiFi Direct/WiFi p2p. I am experiencing all the usual issues associated with building such an application. What I have noticed is that ...
Hector's user avatar
  • 4,516
0 votes
0 answers
168 views

Wi-Fi Scanner Android Application

I created an Android App which shows the list of available networks and provide me the connectivity to a specific WiFi network after entering wifi password. But the problem which I'm facing that my ...
Suicide Squad's user avatar
1 vote
1 answer
178 views

Do group owner change if better device joins the network in wifi direct?

I am creating a group using createGroup(c,al); method from WifiP2pManager on device A and connecting other devices to this group using connect() from client and not server(i.e one that called ...
pebble's user avatar
  • 331
0 votes
1 answer
927 views

How to create wifi direct group with 3 or more devices

Ive read the android documentation, but it has examples only to connect 2 devices with each other and it works. In last section they mention using createGroup() , but it is for legacy devices and it ...
pebble's user avatar
  • 331
2 votes
1 answer
1k views

Wifi Direct Cordova

I am trying create an app using cordova, I needed to use wifi to transfer data to another app, I searched a lot, i found many plugins which is used to scan , connect and create network, set ssid and ...
Prags's user avatar
  • 811
1 vote
0 answers
315 views

Check if WiFi and WiFi Direct can work simultaneously

Not all Android devices support simultaneous WiFi and WiFi-Direct connection - eg, Samsung S3, RedMi, OnePlus, Nexus, allows for both, but most Motorola phones I've tested on (Moto E1, E2, E3) show a ...
Crearo Rotar's user avatar
0 votes
1 answer
1k views

How to make a call one android device to other device which was connected same wifi network?

I need make call from one device to another device through WiFi.Both devices connected to same WiFi. Which protocol I have to use for this requirement. Both are android devices, Connected to same WiFi ...
Chirag Patel's user avatar
  • 1,611
0 votes
0 answers
92 views

Connect PC to phone using proximity

I'm trying to connect a PC to a phone, both running Windows 10 using either UWP's PeerFinder or PeerWatcher. In both cases they can't find each other, though two PCs do. Is there a way to accomplish ...
ispiro's user avatar
  • 27.1k
1 vote
0 answers
926 views

Android WiFi-Direct connection issues

I am developing an Android WiFiP2P application and attempting to create a WiFiP2P group. I have multiple android devices as follows:- Nexus 7 - Android 6.0.1 Nexus 9 - Android 7.1.1 Samsung Tablet - ...
Hector's user avatar
  • 4,516
1 vote
0 answers
107 views

Wifi Direct createGroup not working on some Samsung Phones (S7, A5 etc)

I want to get an Access point out of my android mobile device so that a legacy device can connect to the mobile device. To do this I use the createGroup API [https://developer.android.com/reference/...
APD's user avatar
  • 23
6 votes
3 answers
2k views

Android O issues with WiFi Peer Discovery

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 #...
Hector's user avatar
  • 4,516
0 votes
1 answer
265 views

Android WiFi Direct requestGroupInfo returns zero size list

No matter what I do, I am unable to receive information about the WiFi Direct group my device is connected to. manager.requestGroupInfo(channel, new WifiP2pManager.GroupInfoListener() { @...
Crearo Rotar's user avatar
2 votes
0 answers
581 views

Why is Android WiFi Direct and Network Discovery so unreliable?

I am investigating Android Wifi Direct and Network Discovery. I have followed the Google Android examples and come to the same conclusion on both implementations. They are completely and utterly ...
Hector's user avatar
  • 4,516
0 votes
2 answers
958 views

UWP WiFi-Direct disconnects after second incoming StreamSocketListener connection

Currently i'm about to figure out, what my Problem with WiFi direct in a UWP app on Windows 10 IoT Core is. The Goal is to let a StreamSocketListener accept incoming Connections from WiFi-direct. This ...
andy's user avatar
  • 519
1 vote
2 answers
2k views

Wifi P2P while maintaining a Wifi connection on rasperry pi 3 Raspbian using wpa_supplicant

I am pretty naive to this topic, so please excuse any dumb reply from my side. I want to connect my raspberry pi 3 to my android phone through Wifi Direct(or P2P), while maintaining its normal wifi ...
Sarthak's user avatar
  • 21
0 votes
2 answers
1k views

android - Connecting to a WiFi P2P device without discovering peers

I want to establish a WiFi-Direct Connection with another device peered through NFC. My steps are as follows: First, Device A gets its own WiFiP2P address and transmits it to Device B via NFC. Then, ...
Kavin Zhao's user avatar
0 votes
1 answer
523 views

Send and receive commands from Android device to PLC

I am trying to command a pre-programmed PLC using an Android device. I need to be able to, for example, update boolean values or receive an integer value from the PLC. The PLC is connected to a router ...
arizq29's user avatar
  • 11
1 vote
0 answers
178 views

Bypass wifi direct popup when connecting to devices

I want to connect two devices through wifi direct. And I don't want any user acceptance during the connection. Suppose I have two devices A and B, A device starts the wifi direct connection process ...
Sahil Goel's user avatar
2 votes
2 answers
749 views

Android check Wi-Fi Direct is activated

How to check that Wi-Fi Direct is activated on a device? I've tried to check Wi-Fi in the following way: WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(...
Artyom's user avatar
  • 1,175
1 vote
1 answer
949 views

Wifi Direct Group Owner Address is always 192.168.49.1, UnknownHostExeption

Was following this link to connect devices using Wifi direct to send message between two devices (device A with android 4.3 and Device B 7). When I try to connect client (device A) to server (device B)...
Prateek Khandelwal's user avatar
0 votes
0 answers
388 views

how to send message from group owner to multiple clients using WiFi-Direct?

chatManagerclass public class ChatManager implements Runnable { private static final String TAG = "ChatHandler"; private Socket socket = null; private final Handler handler; ...
dana kassir's user avatar
0 votes
0 answers
350 views

Wifi Direct Server/Client Connection

I am composing a WiFi Direct android app following guide of Google Developer's guide. I am just beginning to learn. I am stuck in sending an image from Client to Server. The following is Client and ...
soso's user avatar
  • 11
16 votes
4 answers
4k views

Wifi-Direct always disconnects after thirty minutes

I am creating a WifiP2pGroup with WifiP2pManager.connect(). This works fine but the group is always disbanded after thirty minutes, no matter whether data is being transferred or not. Does anyone know ...
joe_deniable's user avatar
  • 2,582
1 vote
1 answer
798 views

Wifi-Direct messages between PC and Android

I'm trying to write a application that allows me to send messages from my android phone to the console on my PC. I already have code to use sockets to send messages from one PC to another. Right now I ...
Ryan T.'s user avatar
  • 219
0 votes
0 answers
2k views

java.net.SocketException: socket closed on android

I am using socket to send image from server to multiple client but after sending one image to every client again when i try to send another image it say socket is close but i didn't even close the ...
Nikhil Sharma's user avatar
0 votes
0 answers
1k views

Is there any way to turn on/off WiFi Direct only not the normal WiFI??

I am finding a way to turn ON WiFi-Direct when internet connectivity is not available but when internet connectivity active and the device is connected to some other device with WiFi-Direct then it ...
Bhola Nath Mahto's user avatar
11 votes
1 answer
13k views

Set up a Wifi-Direct connection between Android and Raspberry Pi 3 Linux

I want to connect two devices using Wifi-Direct. One is a RaspBerry PI 3 (with Raspbian Jessie), the other is an Android smartphone. Raspberry as server and Android as client. I decided to use ...
Keles's user avatar
  • 389
-1 votes
3 answers
2k views

How to get Device name of your PEER using WifiP2P in Android

I am connecting two devices using wifi p2p from Android. I would like to know if there is any way for both devices to know the name of each other when the connection is established. When the device is ...
BlueMountain's user avatar
0 votes
1 answer
1k views

Android: How to check if device is connected to another device via WiFi - Direct?

I was wondering if there is a way, similar to checking if there is a WiFi connection established. ConnectivityManager connManager = (ConnectivityManager) getSystemService(Context....
Kspr's user avatar
  • 695
23 votes
1 answer
3k views

How to print a text file using WiFi Direct

I have a working Android app that displays user stats. I want to send a small report with plain text format (.txt) to a WiFi Direct printer. I have downloaded the sample demo app from Android. I did ...
Carlos's user avatar
  • 983
1 vote
2 answers
2k views

Android Wifi P2P : failed to connect to /192.168.49.1 (port 1080): isConnected failed: ECONNREFUSED (Connection refused)

I'm using this to build a wifi P2P application and when I try to connect two devices, I get the below error. java.net.ConnectException: failed to connect to /192.168.49.1 (port 1080): isConnected ...
Sri's user avatar
  • 59
0 votes
1 answer
4k views

iOS devices communication with any Wifi-direct enable devices

Can i communicate iPhone with any wifi-direct enable devices programmatically ? I have used "bonjour protocol" for peer-to-pree communication but i am only able to communicate between two iOS ...
hitesh landge's user avatar
1 vote
1 answer
108 views

I've failed to show lists of a RecyclerView

I am building my first android app using WiFi Direct to transfer text, image, and media files to peers.I am using a RecyclerView and a Fragment. I hope to show peers's list on a framelayout (a ...
soso's user avatar
  • 11
2 votes
1 answer
865 views

How should I share Files using WiFi Direct to another android device?? - Salut and LoganSquare

** SITUATION IS - ** I am creating an application that shares files between android devices. I use Salut as a WiFi Direct Wrapper. Salut uses LoganSquare for sharing data between peers connected ...
Manasvini Ganesh's user avatar
1 vote
1 answer
1k views

Creating P2P Connections with Wi-Fi : Message passing issue

I'm working with Wifi P2P Connection to send and receive messages between two Android Devices using below tutorials https://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html ...
Suresh's user avatar
  • 429
1 vote
1 answer
264 views

How to make several mobile devices (both iOS and Android) communicate without using internet

I am currently trying to develop a mobile application for both iOS and Android. It basically will be a game buzzer app, determining which of the players is granted a right to answer a specific ...
vash_s's user avatar
  • 13
0 votes
0 answers
263 views

After establishing TCP connection with server, why can't I see message sent from server?

I have made an app that should connect to a sensor via WiFi Direct, then connect to port 5001 on the sensor to get the sensor data. I have used "Simple Socket Tester" to start a server on another ...
Kspr's user avatar
  • 695
1 vote
0 answers
721 views

My TCP client can't connect to server. Get's "Connect failed: ETIMEDOUT"

I am connecting my phone to a sensor via WiFi direct. I am supposed to connect to port 5001 for sensor data. I have been having trouble setting up the TCP client so I can open the port and retrieve ...
Kspr's user avatar
  • 695
1 vote
1 answer
615 views

I need to get data from sensor over WiFi-Direct. How do I send a command to the sensor?

I have been working on this project where I am supposed to connect my phone to a sensor using WiFi Direct. Then retrieve the sensor data and visualize it on a map. I have been able to connect the ...
Kspr's user avatar
  • 695
0 votes
1 answer
922 views

WiFi P2P Connection user interaction bypass?

I am working on an Android application using WiFi Direct. The application is supposed to create a group in each device or search for peers and transfer a string to each peer, depending if the device ...
Blackfing's user avatar
0 votes
1 answer
67 views

How to know target device in WiFi direct?

I am trying to connect to my device from another device and send a simple string via wifi direct. I was able to get the list of peers available however how do I know that this is my device that I need ...
jhon sari's user avatar
1 vote
1 answer
2k views

How do I disconnect from a device when I close my app?

I am working on a project in Android Studio where I am supposed to connect two devices using Wifi-Direct. I have managed to connect to another device with Wifi-direct. My problem is that when I ...
Kspr's user avatar
  • 695

1
3 4
5
6 7
18