Skip to content

jhonnyjester/p2pcommunication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 

Repository files navigation

P2P Communication

This project is a proof of concept on establishing a P2P connection between two or more android-devices, and make them communicate using Multicast (UDP). This is accomplished by utilizing the WiFi P2P API, also known as WiFi Direct.

Prerequisites

Getting started

If you encounter problems, see "troubleshooting" section further down.

  • Install Java Development Kit
  • Install Android Studio Bundle
  • Set up Android SDK with Android Support Library
  • Install Git
  • Check out the project from GitHub repository
  • Import project in Android Studio

Things to note

  • All devices you want to connect to each other have to search for each other simultaneously. This is because each device will not advertise itself to other devices until the discovery process is started.
  • If you disconnect from a WiFi Direct network, you have to run the discovery process again before trying to reconnect. If you don't, you will get a "Busy"-error, and you may have to turn WiFi on your phone off and on again.

Troubleshooting

FAQ

  • Minimum SDK version: 16
  • Target SDK version: 21

Libraries used

About

Proof of concept on establishing a P2P connection between two or more android-devices

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%