.NET Components for Mobility

Bluetooth Obex transfer on Widcomm

Last post 03-14-2010 7:11 PM by derricksambo. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 03-09-2010 5:51 PM

    Bluetooth Obex transfer on Widcomm

    Hi all,

    I hope I'm posting in the correct forum. If not, I would gladly follow any pointers on where to post this question.

    I've been using the 32feet libraries with Brecham Obex and AndyH SWF stuff for my application that needs to receive a file. The application has to run on Windows Mobile 6.5. The other device sends the file over Bluetooth using Obex PUT to my phone. I have no way to infleunce that other device so I have to be able to receive a file with Obex.

    Using the above software (I've re-used the sample code that I've found in the Brecham package) I got this working in the WM6.5 emulator and even on another WM6.0 device (Palm Treo500v). On a HTC Touch 2 with WM6.5 however, I get a SocketException. I tracked this down as being a problem with a difference in the Bluetooth stack. The HTC apparently uses the Widcomm stack. But the 32feet libraries should work with both MS and Widcomm stacks. Am I missing something?

    Thanks in advance for any thoughts and help,

    Derrick

  • 03-10-2010 4:57 PM In reply to

    Re: Bluetooth Obex transfer on Widcomm

    Widcomm does not support sockets so if Andy's server accesses btCli.Client then there'll be an error.  IIRC Andy has various IO models for the server (including one that I contributed): sync networkstream, async networkstream, and async sockets.  Maybe one of them doesn't access that property.  Have a look at the source or ask in the Brecham.Obex forum.

  • 03-12-2010 6:33 AM In reply to

    Re: Bluetooth Obex transfer on Widcomm

    Hi Derrick

    I've updated the Brecham.Obex Server to support running on 32feet.NET's Widcomm support.  Get it at http://inthehand.co.uk/files/folders/objectexchange/entry9942.aspx  Widcomm's built-in OPP/FTP server will have to be stopped before the server is started...

    (Otherwise, there is support in the native Widcomm API for creating an OBEX server but it isn't clear that one can replace the built-in OPP server anyway...)

    Andy

  • 03-12-2010 7:08 AM In reply to

    Re: Bluetooth Obex transfer on Widcomm

    Hi Andy,

    Thanks very much! I'll give it a shot this evening.

    Derrick

  • 03-13-2010 12:00 PM In reply to

    Re: Bluetooth Obex transfer on Widcomm

    Don't know if you tried it, but there was mistake.  I'd fixed the BluetoothOPP listener code but not the BluetoothFTP listener.  So I've re-uploaded the release just now.  This version also included a desktop WinForms runner too.
  • 03-14-2010 7:11 PM In reply to

    Re: Bluetooth Obex transfer on Widcomm

    Finally got around to try this final version and it seems to work! Well, it did at least once. After that I added some extra logic to the app and since then it didn't find the BT device anymore. Apparantly the BT device is still in use by the OS. I tried almost every combination of BT settings on the HTC Touch2 but to no avail. And the user guide is to superficial on this topic. So I still have some more work to do. Maybe I'll start with a hard reset first....

    Anyway, the StackFactory seems to do the job. Thanks very much!

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