.NET Components for Mobility

32feet - ObexListener problem HTC Diamond

Last post 10-15-2008 4:34 PM by gmazzaglia. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 10-03-2008 8:48 AM

    32feet - ObexListener problem HTC Diamond

    Hi, I'm testing a bluetooth application on HTC Diamond. I can send data but I can't receive data, the cellular that send data to the HTC (nokia 6131) show the messege: unable to connect (I disabled the option "Receive all incoming beams" in Setting, Connection of HTC).I'm try with DeviceListener example but don“t work.

    Thanks.

    Gustavo.

     

    This is the code on HTC Diamond: 

       public override int connect()
        {
            //Inicia la escucha del servidor de bluetooth
            mobjBltListener = new InTheHand.Net.ObexListener(InTheHand.Net.ObexTransport.Bluetooth);
            mobjBltListener.Start();
            System.Threading.Thread objHilo = new System.Threading.Thread(new System.Threading.ThreadStart(BltReceive));
            objHilo.Start();

            return 0;
        }

     

        private void BltReceive()
        {
            while (mobjBltListener.IsListening)
            {
                InTheHand.Net.ObexListenerContext objContext = mobjBltListener.GetContext();
                InTheHand.Net.ObexListenerRequest objRequest = objContext.Request;
                byte[ bytResult = new byte[objRequest.InputStream.Length];
                int intRet;
                intRet = objRequest.InputStream.Read(bytResult, 0, (int) objRequest.InputStream.Length);
                if (intRet > 0)
                {
                    _stream = bytResult;
                    _com.execute();
                }
            }
        }

     

     

  • 10-03-2008 4:34 PM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    Just a thought.  It isn't a authentication problem?

    If you stop your application and re-enable "Receive all incoming beams", can the Nokia connect then?

    Alan

    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.
  • 10-03-2008 5:15 PM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    Yes, if I re-enable "Receive all incoming beams", the cellular receive the message sended for the Nokia device. What happend? What kind of configuration I need to implement?

    Thanks.

    Gustavo.

     

  • 10-07-2008 2:10 PM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    Hmm.  Can you run the SdpBrowser sample application and get it to dump all the SDP Record on the PDA when your application it running.  Does it list one supporting OBEX?

    Alan

    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.
  • 10-14-2008 4:12 PM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    I have a problem with SDPBrowser application. This application is a Pocket Pc project and when I run in the devices the controls in the UI are very little. What can I focus when I run this application? Can you give me the steps to execute for detect if Obex is running?

    When I send a note from de nokia 6131, I've received the message: "note send fail". I can send data but I can't receive.

    Thanks for your help.

    Gustavo.

     

  • 10-15-2008 10:37 AM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    I meant, but didn't explain, that you ran the SdpBrowserDesktop app on your PC.  It can discover the PPC device and list the Bluetooth services on it remotely.  That should show whether your server app is running correctly.

    Alan

    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.
  • 10-15-2008 4:34 PM In reply to

    Re: 32feet - ObexListener problem HTC Diamond

    I found the problem !!! I can receive the message sended from the client device (nokia 6131). 

    In the HTC Diamond there is the option Enable Sharing Files (tab FTP, menu Configuration - Connections - Bluetooth). I have checked this option and then I've received the messege. 

    Thanks for your help.

    Gustavo.

     

     

Page 1 of 1 (7 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.