.NET Components for Mobility

CE 6.0 support for OBEX??

Last post 06-15-2007 10:37 PM by PeterFoot. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-13-2007 9:42 PM

    • timm
    • Not Ranked
    • Joined on 06-13-2007
    • Posts 0

    CE 6.0 support for OBEX??

    Hello all,

    I'm not new to CE, but new to managed development and OBEX. It looked like the 32feet framework was just what I needed. I tried to build and deploy the example DeviceListener.exe application and got the following error: Missing Method Exception, Can't find PInvoke DLL BthUtil.dll. I'm assuiming that Microsoft has either changed the name for 6.0 or possibly depricated it as I have generic bluetooth support on the embedded module that I'm working with and can find and pair devices.

     Any ideas would be most appreciated.

     Thanks,
     Tim

  • 06-15-2007 11:40 AM In reply to

    Re: CE 6.0 support for OBEX??

    Is it definately the Microsoft Bluetooth stack that is installed, we support only it.  Here's some words from a user's guide we're creating:

    Supported hardware and software

    The library is supported both in a version for desktop Windows, and in versions for NETCFv1 and NETCFv2.  On both platforms various companies have provided software protocol stack software to use connected Bluetooth hardware.  For instance, on desktop Windows there are well known stacks from Microsoft, Widcomm (now Broadcom) and Toshiba.  On CE platforms there are also stacks from Microsoft and Widcomm/Broadcomm, to visually identify which stack is installed see http://www.peterfoot.net/VisuallyIdentifyYourBluetoothStack.aspx.  On both platforms only the Microsoft stack is supported.

    On a device where there is no Bluetooth hardware connected, or a non-Microsoft stack is present the library will obviously not function.  Opening a socket will fail with an exception, and getting the list of local radios (BluetoothRadio.AllRadios) will return a zero length array, and getting the primary radio (BluetoothRadio.PrimaryRadio) will return null/Nothing, thus code like the following will fail with a NullReferenceException.

    BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable

    On desktop Windows it is generally possible to disable the third-party stack and install the Microsoft stack.  The document Belkin F8T012 and Microsoft Stack downloadable from http://32feet.net/files/folders/1118/download.aspx describes how to install the Microsoft stack, and also includes the steps necessary to install a bluetooth device that Windows wasn’t originally aware of.

    On machines with the Toshiba software, from Add/Remove programs remove Bluetooth Stack for Windows by Toshiba, then run the C:\TOSHIBA\MS_Bluetooth\BtMon2Inst.exe installer to install the BT monitor, and finally reboot the machine, whereupon the system will detect the radio and install the necessary Microsoft-supplied drivers as above.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-15-2007 10:37 PM In reply to

    Re: CE 6.0 support for OBEX??

    BthUtil.dll is used only by the radio mode setting and is possibly not present on all devices. Try setting the bluetooth mode manually and using the rest of the library and see if you can establish a connection, do discovery etc

     Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (3 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.