.NET Components for Mobility

Finding devices in range without connection

Last post 10-08-2008 3:25 AM by UrK. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-23-2008 11:16 AM

    • UrK
    • Top 500 Contributor
    • Joined on 09-23-2008
    • Posts 3

    Finding devices in range without connection

    Hi,

    I use InTheHand library in a small proximity detection program (btprox.sf.net). I order to detect if the device is in range, I try to connect to it and keep the connection open.This eats device's batteries.

    Is there any way to detect if the device is in range without attempting to connect?

    Thank you in advance,

  • 10-07-2008 2:10 PM In reply to

    • winny
    • Top 500 Contributor
    • Joined on 10-07-2008
    • Posts 2

    Re: Finding devices in range without connection

    I'm trying to achieve the same thing and hadn't considered that issue!

    Is it an option for you to poll for what devices in range on a given interval? The problem is that you won't know immediately when a device drops out of proximity I guess.

    Paul

  • 10-07-2008 4:08 PM In reply to

    • UrK
    • Top 500 Contributor
    • Joined on 09-23-2008
    • Posts 3

    Re: Finding devices in range without connection

     Right now I do use polling. But, in order to detect if the device is in range, I make a connection attempt. If it succeed, the device is in range, otherwise, it is lost.

  • 10-08-2008 3:16 AM In reply to

    • winny
    • Top 500 Contributor
    • Joined on 10-07-2008
    • Posts 2

    Re: Finding devices in range without connection

    I was trying this without any paired devices on my system and 2 phones set discoverable, therefore they did only show up when in range. This is no good because it's obviously not a good idea to leave your device permanently discoverable.

  • 10-08-2008 3:25 AM In reply to

    • UrK
    • Top 500 Contributor
    • Joined on 09-23-2008
    • Posts 3

    Re: Finding devices in range without connection

    Leaving security aside, even devices that were discoverable appear in the list, though the connection fails.
Page 1 of 1 (5 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.