I'm trying to communicate a Nokia 6230 with a GPS receiver using bluetooth. The GPS offers a serial port service (UUID 0x1101).
I'm using the Nokia example java program bpsppEcho. So I modified the UUID number to 0x1101, in order to be able to discover the service. Also I had to change the validation part on the server module that check if the device discovered is a phone cause the GPS receiver is obviously not a phone.
I'm able to find the device and the service, the problem comes when I try to open the connection, The phone asks por the authentication code so I type 1111 which is the authentication code for pairing with this GPS receiver, right after that a window appears saying that the connection will be rejected because of a security problem. And I can see some IOException=null on the log of the application. The athentication code is correct cause I can connect the GPS receiver to my PC without problems. Also if I write a wrong code the window appears indicating that the pairing was unsuccesful. I debugged the code to find where exactly the problem is happening and it is in the ServerConnectionHandler class on line 219 :
connection = (StreamConnection) Connector.open(url);
the url extracted from the service record looks like this:
So I went to the config menu and get in the paired devices options, I start a search for nearby devices. Same thing happened, I saw my GPS receiver and when I press connect, I'm asked for the authentication code, as soon as I type it and accept, the same window appears saying that there was a security problem and the connection is rejected.
So here's the question for the Nokia expert or any one who had succeded opening an SPP conection with the Nokia 6230:
Are the generic devices services some how locked on the Nokia 6230?
Is there a way to register this service or my application so the Phone doesn't reject it?