.NET Components for Mobility

DiscoverDevices() does not return any value.

Last post 09-06-2010 4:27 AM by kasun. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-04-2010 1:10 AM

    • kasun
    • Top 100 Contributor
    • Joined on 01-31-2009
    • Posts 10

    DiscoverDevices() does not return any value.

    Hi I am having problems in recieving found devices. I use a loop, first it was ok, now even after a restart the divicediscovery does not return any device. what is the solution? is it like stack over flow? how can I solve this. help needed ASAP! this is my code... public BluetoothClient12() { bc = new BluetoothClient(); bc.InquiryLength = new TimeSpan(5000); } public Dictionary deviceIdentifier() { Dictionary btDictionary = new Dictionary(); //Array of type BluetoothDeviceInfo BluetoothDeviceInfo[ discoveredDevices = bc.DiscoverDevices(10, false,true, true); } when I debug, discoveredDevices is always empty.
  • 09-05-2010 3:34 PM In reply to

    Re: DiscoverDevices() does not return any value.

    Is this still occuring?  Maybe a reboot would fix it?  Can other devices discover the devices in range?
  • 09-06-2010 1:45 AM In reply to

    • kasun
    • Top 100 Contributor
    • Joined on 01-31-2009
    • Posts 10

    Re: DiscoverDevices() does not return any value.

    well a reboot did not fixed it. tried it several time. I think it is more like a stack over flow or something. because when i install the 32 feet library in another computer and run the code it works perfectly for a few minutes. may be after around 3 4 debugging in visual studio. the discoverDevices() begin to not return any devices in range. yes. other devices can discover. so if that the case is there a way to remove devices found in the windows Bluetooth stack?
  • 09-06-2010 4:21 AM In reply to

    Re: DiscoverDevices() does not return any value.

    Stack overflow is something else entirely. :-)

    What platform is this on?  What happens if you do discovery through the platform's own user-interface?  e.g. in Windows 7 through via Devices and Printers UX[1].  Does discovery there find it?

     

     

    [1] Slide 13 at http://www.alanjmcf.me.uk/comms/bluetooth/Bluetooth%20in%20Windows%207.html

     

  • 09-06-2010 4:27 AM In reply to

    • kasun
    • Top 100 Contributor
    • Joined on 01-31-2009
    • Posts 10

    Re: DiscoverDevices() does not return any value.

    windows xp service pack 2. with windows I can find and pair. what I cant understand is, why the method DiscoverDevices() have trouble in giving the discovered device list. I only need to get the Bluetooth iD of the discovered devices.
Page 1 of 1 (5 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting