×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Italy
    Posts
    15

    Nokia 6600: midlet bluetooth-enabled applications don't work

    Hi,

    I installed the btsppEcho Nokia example (it's a simple chat application) into a Nokia 6600 (firmware v. 4.09.1 26/02/2004 and also on another Nokia 6600 with firmware v. 5.27.0 28/06/2004), I run it and I founded that the bluetooth connection doesn't work.

    More specifically, I tried to run the application both in client and server mode, but I get the same behavior. If I run btsppEcho in client mode (it waits to receive a connection from the server...) no other device (mobile phone or workstation bluetooth enabled) can discover this service (while it can discover other non-midlet bluetooth services). Otherwise, if I run btsppEcho in server mode (the server tries to discover other btsppEcho services), it can't discover any other service... but I have other devices that correctly run btsppEcho.

    I also tried btl2capEcho (the same application, except that it uses the L2CAP protocol instead of RFCOMM protocol) and I have the same problem. Finally, I tried with my own application and I have the same problem.


    --- Proof of concept ---

    Here is a trivial bluetooth application that DO NOT work on my Nokia 6600 (while it works on series 60 Nokia emulator):

    Note: LogScreen is a Form that shows me some logging information

    Code:
    public class Main
            extends MIDlet
    {
            private static final UUID SERVICE_UUID = new UUID("af006dd2c0684194aeabf91664e827e3", false);
            private static final String SERVICE_NAME = new String("Trivial Service");
            private static final String SERVICE_URL = new String("btspp://localhost:" + SERVICE_UUID + ";name=" + SERVICE_NAME);
            private LogScreen logScreen;
    
            public Main()
            {
                    logScreen = new LogScreen();
            }
    
            public void startApp()
            {
                    Display.getDisplay(this).setCurrent(logScreen);
    
                    try
                    {
                            StreamConnectionNotifier connectionNotifier = (StreamConnectionNotifier) Connector.open(SERVICE_URL);
                            logScreen.appendLog("Waiting a connection");
    
                            StreamConnection connection = connectionNotifier.acceptAndOpen();
                            logScreen.appendLog("Connection received");
                    }
                    catch (IllegalArgumentException exception)
                    {
                            logScreen.appendLog(exception.getMessage());
                    }
                    catch (ConnectionNotFoundException exception)
                    {
                            logScreen.appendLog(exception.getMessage());
                    }
                    catch (IOException exception)
                    {
                            logScreen.appendLog(exception.getMessage());
                    }
                    catch (SecurityException exception)
                    {
                            logScreen.appendLog(exception.getMessage());
                    }
            }
    
            public void pauseApp()
            {}
    
            public void destroyApp(boolean unconditional)
            {}
    }
    I run the trival application on Nokia 6600 and I try to discover it services from another device (it's a computer with a bluetooth dongle): the computer discovers all Nokia 6600 services (like Fax, OBEX File Transfer and Bluetooth Serial Port) but it DOESN'T find the Trivial service. Otherwise, if I run the trivial application on the emulator, I have no problems.

    --- End of proof of concept ---


    Have anyone ever had a problem like this?
    Can you help me, please?


    Any suggestion will be appreciated!

    Thanks,
    Marco Pracucci
    Last edited by pracucci; 2005-11-14 at 10:50. Reason: Inserted a proof of concept

  2. #2
    Registered User
    Join Date
    May 2005
    Location
    Italy
    Posts
    15

    Thumbs up SOLVED

    I have solved the problem: the "server" application didn't register the bluetooth service in the Public Browse Group, so the "client" application was not able to discover the service.

    Detailed instructions, about the registering of a service in the Public Browse Group, have been published at the following link:
    http://discussion.forum.nokia.com/fo...ad.php?t=68022

    Marco Pracucci
    Last edited by pracucci; 2005-11-24 at 20:18. Reason: SOLVED

Similar Threads

  1. Nokia 6600 Network (Http and Socket) connections do not work!
    By jimmichr in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2006-07-14, 07:48
  2. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  3. Replies: 5
    Last Post: 2004-03-04, 04:14
  4. Replies: 5
    Last Post: 2003-02-07, 11:25
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×