Proximity sample

This sample demonstrates how to use the PeerFinder, ProximityDevice, and PeerWatcher classes to communicate with nearby devices.

 
 
 
 
 
4.5 Star
(13)
35,004 times
Add to favorites
11/26/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Proximity sample support for Windows and WP?
    1 Posts | Last post August 19, 2015
    • Proximity sample on PC is for Wifi-Direct.And,on windows phone is for bluetooth.Is my conclusion alright?
      Thanks   
  • Connection issues
    1 Posts | Last post July 20, 2015
    • On Surface RT sample stucks displaying message "Peer Watcher is running" and does not find any peers. Whereas on Desktop machine detects near by devices but stucks on the Connecting screen once I try to connect with Surface RT. Why sample is not finding peers on a surface RT and not connecting to Surface RT on Dekstop?
  • ConnectAsync fails after using repeatedly
    2 Posts | Last post September 15, 2014
    • Hi, taking this sample code we have developed an application and we have noticed that PeerFinder.ConnectAsync will start failing and giving us a null SocketStream object after using it repeatedly, we also notice that when the ConnectAsync fails it takes a while to finish its execution, like a minute or a little bit more, my question is, is there any way to shorted the time ConnectAsync takes to connect?
      We are using Dell Latitude 10 ST2 Tablets.
      
    • Hi, 
      I am facing the same problem. When I launch the app for the first time, it works fine. But when I launch it repeatedly, it is really unstable, but most of the times, the connection fails with the WinRT error "The parameter is incorrect".
      Did you manage to fix this issue?
  • Connection Issues
    2 Posts | Last post August 28, 2014
    • I also repeatedly get an 
      
      "The enumeration is out of range (Exception from HRESULT: 0x800706F5)"
      
      Error. Weird thing is, between two devices, say A and B, connecting from A to B is fine, connecting from B to A throws the above.
      
      This issue seems particular to Peerfinder and the Socket class, as it happens in similar proximity apps as well. Anyone dealt with this issue before?
    • Hi Nicolaas. Do you have any news about this problem? ´cause I´m facing the same troubles. best regards, Gernot
  • Should this work cross platform with bluetooth paired devices
    2 Posts | Last post August 18, 2014
    • Hi, 
      
      I am trying to build an app that would let open stream socket and transfer data between Surface and Windows Phone 8.1, when devices are paired via Bluetooth (not NFC).   
      
      My app is Universal app, that uses PeerFinder.FindAllPeersAsync() to find peers on other devices. 
      
      Problem is that FindAllPeersAsync() never returns cross platform peers. It does return peer information from another device running on the same platform device though.   
      
      Tried to use AlternateIdentities, but that didn't work either. 
      
      PeerFinder.AlternateIdentities.Add("WindowsPhone", "8afd79b7-24ce-40c0-b5d0-d725bc266037");
      
      PeerFinder.AlternateIdentities.Add("Windows", "8afd79b7-24ce-40c0-b5d0-d725bc266037_ng4w16g7kda60!App");
      
      AlternateIdentities works with NFC though. 
      
      
      Any help is appreciated. 
      
      Thanks
      Agris
      
      
      
    • FindAllPeersAsync (or PeerWatcher) on Windows uses Wi-Fi Direct to find nearby peers. On Phone, it uses Bluetooth. Cross-platform discovery of peers is currently not supported.
  • any plans to support proximity across Windows and WP?
    1 Posts | Last post July 23, 2014
    • Hi,
      
      At the moment I do not seem to be able to connect to/from a Windows Phone app to/from a windows app using proximity as Phone only seems to support Bluetooth and Windows only seems to support WiFi Direct. I've tried to force each OS to use Bluetooth and the Windows App errors and each into Wifi direct and the Phone app errors.
      
      Are there any plans to support the more connectivity options to enable cross operating system connectivity. 
      
      I want to be able to browse for devices whether they are phones or tablets and communicate using the PeerFinder approach. 
      
      thanks
      
      Steve 
  • WiFi direct inconsistent connection
    1 Posts | Last post July 23, 2014
    • Hi,
      
      I am running this sample on 3 Win 8.1 devices and get different results depending upon which device initiates the connection. I can get a successful connection between all of the devices but the connectivity is inconsistent.
      the 3 devices are: Lenovo ThinkPad W520 (Win 8.1 Enterprise), Surface Pro (Win 8.1)& Dell Venue 8 Pro (Win 8.1 Pro). all devices are found on each device using peer finder. 
      
      surface connecting to Lenovo times out, surface to dell works, 
      
      Lenovo to surface fails with “A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F”, Lenovo to Dell works 
      
      Dell to both Lenovo and Surface fails to connect with "The enumeration is out of range (Exception from HRESULT: 0x800706F5)"
      
      The WIFI drivers on all devices are up to date.
      
      Any ideas or help would be appreciated.
      
      Thanks
      
      Steve
      
  • The sample build is broken for C++
    1 Posts | Last post May 23, 2014
    • Looks like the Assets are not being picked up correctly.
  • Should this work cross platform?
    2 Posts | Last post April 23, 2014
    • I wasn't able to get it working. If I installed the samples on my phone and tablet should they be able to see each other? Is there a way to do that?
    • Only if connecting via NFC "tap". Windows browse (PeerFinder.FindAllAsync/PeerWatcher.Start) uses Wi-Fi Direct. Windows Phone browse uses Bluetooth. NFC tap can use Bluetooth on both Windows and Windows Phone to connect.
      
      "Windows: For scenarios that use wireless browsing, each device must have a wireless chip that supports Wi-Fi Direct installed.
      
      Windows Phone: For scenarios that use wireless browsing, each device must have a wireless chip that supports Bluetooth installed."
      
  • proximity sample not working in Infrastructure mode.
    2 Posts | Last post April 02, 2014
    • Hi,
      
      i downloded this applicastion and made some changes and deployed on two devices.
      i am able to find and connect with two devices through bluetooth.
      my devices does not support the wi-fi direct.
      i have connected two devices to single AP and turned OFF bluetooth since i have made PeerFinder.AllowInfrastructure,PeerFinder.AllowWiFiDirect,AllowBluetooth made TRUE.
      According to applicastion it should find and connect to other device via Infrastructure mode but i am getting the EXCEPTION HRESULT 0*8007048F
      
      Any hint would be highly appreciated! Thank you all.
    • Infrastructure mode will only work for a connection made by an NFC "tap", it will not work for "browse" (PeerWatcher or PeerFinder.FindAllAsync). Browse only uses WFD.
1 - 10 of 44 Items