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 ):
\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