Bluetooth module CONECT:FAIL

Hello,

I try to connect my phone, a HTC Desire with your bluetooth module connected on an ATMEGA32 with RS232.

I put the bluetooth module in MASTER mode :
\r\n+STWMOD=1\r\n

After I send name :
\r\n+STNA=XXX\r\n

After I send this command :
\r\n+STOAUT=1\r\n

After, this one :
\r\n+INQ=0\r\n
\r\n+INQ=1\r\n

At this moment bluetooth module send this string (with my MAC address and my name :wink: ):
\r\n+RTINQ=aa,bb,cc,dd,ee,ff;name\r\n

So I send this command :
\r\n+CONN=aa,bb,cc,dd,ee,ff\r\n

At this moment bluetooth module send this string
\r\n+BTSTATE:3\r\n

and my phone ask me pin code, I enter 0000 (it’s the good pin code), and just after, bluetooth module send this string :
CONECT:FAIL
\r\n+BTSTATE:1\r\n

And I don’t understand why… on my phone I can see bluetooth module name on screen with this status : paired, disconnected.

Can you help me please ?

Thanks

Hi,

It seems everything works ok, and the only thing you need is to install a serial tool on your HTC Desire.
Here is a link http://www.seeedstudio.com/forum/viewtopic.php?f=4&t=687&hilit=bluetoothBee,
which is the similar problem, except using Computer to connect BluetoothBee.

May this helpful to you!

Regards,

-Icing

Hello, thanks for your answer,

I just finish to develop the android phone side, and it’s work ! I can see the \r\n+BTSTATE:4\r\n for the first time !

Thanks

Hi all!
I discover same problem on HTC Desire HD (BT ver 2.1).
On HTC Hero (BT ver 2.0) pairing OK.

May be it’s BT 2.1 backward compatibility problem?
If yes, how resolve it?