.NET Components for Mobility

Issue trying out Widcomm support

Last post 06-29-2009 8:58 AM by alanjmcf. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 06-23-2009 2:59 PM

    • DaveP
    • Top 500 Contributor
    • Joined on 06-10-2009
    • Posts 3

    Issue trying out Widcomm support

    I have an existing project using the 2.3 production release with a device obviously using the Microsoft stack. I want to try the Widcomm stack and got a dongle with the Widcomm stack and downloaded the beta 2.4 version. However, I must be missing something as I'm having issues, the main one being that the  BluetoothRadio.PrimaryRadio is always null indicating to me that it can't see the device.

     I installed the Widcomm SDK and copied over btwapi.dll. Using the Widcomm software installed with the dongle I know the device is functional and can discover other devices, etc

     I'm no Bluetooth expert, and it's probably something simple I'm missing. Any suggestions?

    Thank you.

  • 06-24-2009 5:19 AM In reply to

    Re: Issue trying out Widcomm support

    Can you download the Test32FeetWidcommWin32.zip file from the release page[1] and run it from the same folder as your application.  What does it report.  When all successful it should report:

    32feet.NET using Widcomm stack dependency checker tool.
    We will attempt to load and use the 32feetWidcomm support.

    Did find 32feetWidcomm.dll file. :-)
    Did find 32feetWidcomm.dll DLL. :-)
    DLL found at >>D:\temp\32feetWidcomm.dll<<
    Calling init function...
    BtIf_Create
       Success
    Calling radio address function...
    BtIf_GetLocalDeviceInfoBdAddr
       Success, local address is 00-09-99-99-99-99
    Hit Return to continue>

    And e.g. when btwapi.dll is missing (which is not your situation) a dialog box pops up:

    ---------------------------
    Test32FeetWidcommWin32.exe - Unable To Locate Component
    ---------------------------
    This application has failed to start because btwapi.dll was not found. Re-installing the application may fix this problem.
    ---------------------------
    OK  
    ---------------------------

    and the program reports:

    32feet.NET using Widcomm stack dependency checker tool.
    We will attempt to load and use the 32feetWidcomm support.

    Did find 32feetWidcomm.dll file. :-)
    Didn't find 32feetWidcomm.dll DLL!  A dialog box should have reported which dependency is missing, otherwise see the event log.
    Hit Return to continue>

     

    [1] 2.4 release http://32feet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28849

    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-24-2009 9:18 AM In reply to

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

    Re: Issue trying out Widcomm support

     Hi,

    I have a similar situation, the code runs on a machine with a microsoft stack and now I want to run it on a Widcomm stack. I downloaded and ran the  Test32FeetWidcommWin32.zip and it is successful, however the program still throws a PlatformNotSupportedException saying "No supported bluetooth protocol stack is found." when it attempts to instantiate a BluetoothClient object. Any suggestions?

    I might have something very basic or simple wrong...

     

    Thanks!

  • 06-24-2009 9:39 AM In reply to

    • DaveP
    • Top 500 Contributor
    • Joined on 06-10-2009
    • Posts 3

    Re: Issue trying out Widcomm support

     Thanks for the response, but yep, same with me. It runs the 32feetWidcomm test successfully, but still have BluetoothRadio.IsSupported == false and PrimaryRadio == null. Could something with the Widcomm software installed with the dongle be locking necessary resources or something?I don't know if that is possible, but it seems like it probably some little thing causing issues.

  • 06-24-2009 10:25 AM In reply to

    • DaveP
    • Top 500 Contributor
    • Joined on 06-10-2009
    • Posts 3

    Re: Issue trying out Widcomm support

     User Error.

     It was a dumb mistake, I somehow had both versions (2.3 and 2.4) linked in? Anyways it was using 2.3. Deleting it fixed the issue.

     Thanks.

  • 06-25-2009 5:11 AM In reply to

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

    Re: Issue trying out Widcomm support

    This doesn't seem to be the problem I'm having, Visual Studio seems as if the prokect is only referencing the 2.4 library, and I deleted the previously referenced 2.2 library just to be sure. The Widcomm dependency checker test still runs successfully, the code compiles and runs with BluetoothRadio.IsSupported == false then it throws that exception I mentioned before, PlatformNotSupportedException... it could definitely be a small problem, I just don't know where to start...

  • 06-25-2009 9:07 AM In reply to

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

    Re: Issue trying out Widcomm support

    It seems to have fixed itself... I just copied the files into a new project and added the references to the project from scratch. I still don't know what the problem was. Thanks anyway.

  • 06-29-2009 8:58 AM In reply to

    Re: Issue trying out Widcomm support

    Many thanks both.  Glad to hear its working for you. :-)

    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.
Page 1 of 1 (8 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.