Skip to content

California State University, Los Angeles — Department of Computer Science, Senior Design — School Year 2017-2018

Notifications You must be signed in to change notification settings

kevintongg/ndnwifi

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

California State University, Los Angeles — Department of Computer Science, Senior Design — School Year 2017-2018

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages