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
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.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) {} }
--- 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

Reply With Quote

