.NET Components for Mobility

Bluetooth discovery on XP/Vista

Last post 07-09-2009 9:36 AM by alanjmcf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-09-2009 4:23 AM

    • claire
    • Top 500 Contributor
    • Joined on 06-22-2009
    • Posts 4

    Bluetooth discovery on XP/Vista

     Hi,

    I have a program written using the 32Feet 2.4 libraries and a Widcomm stack that discovers bluetooth devices in the area and then decides which to send a pair request to or add a serial port connection to, etc. This works fine on XP SP2, however when I try to run the same program on Vista with the same bluetooth dongle it does not discover any devices. I wonder if there are some security settings on Vista that stop the program from discovering bluetooth devices in the area?... I noticed that until you explicitly ask Vista to search for discoverable devices in the area, it only shows devices that have been previoulsly paired, but I don't know how to get around this, I thought BluetoothClient.DiscoverDevices() would return all the discoverable devices regardless of which ones the OS displays. 

     Thanks!

    Claire

  • 07-09-2009 9:36 AM In reply to

    Re: Bluetooth discovery on XP/Vista

    From the user's guide:

    "A set of flags can be passed to DiscoverDevices to select which devices will be returned: ‘remembered’, ‘authenticated’, ‘unknown’, and ‘discoverable only’.  When ‘discoverable only’ (new in v2.4) is set, only devices in range and in discoverable mode will be returned.  When ‘unknown’ alone is set the same discoverable devices are found but any devices in the remembered set will be removed from the list.

    On desktop Windows with the Microsoft stack there is no API to get the discoverable devices only, the remembered and discoverable devices are returned merged into one list.  ‘discoverable only’ thus does not work on that platform, it is undefined whether it will return all or zero devices."

    The discoverableOnly flag returns an empty list currently, that seems much less confusing than returning a list that contains devices that haven't been in range!  It might be worth us starting to open cases with Microsoft noting how annoying this lack of feature is...

Page 1 of 1 (2 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting