Bluetooth BEE : Connect:failed

I recently purchased the bluetooth BEE modules and am trying to connect them to my laptop’s bluetooth device.

I have followed the wiki post.

I send it

\r\n+STWMOD=1\r\n
OK
WORK:MASTER
+BTSTATE:0
+BTSTATE:1

\r\n+STOAUT=1\r\n
OK
WORK:MASTER
+BTSTATE:0
+BTSTATE:1

\r\n +STPIN=1234\r\n
OK
WORK:MASTER
+BTSTATE:0
+BTSTATE:1

\r\n+STNA=Scale\r\n
OK
WORK:MASTER
+BTSTATE:0
+BTSTATE:1

\r\n+INQ=1\r\n
OK
+BTSTATE:2
+RTINQ=0,D,F0,43,49,EB;DELENE

\r\n+CONN=00,0D,F0,43,49,EB\r\n
OK
+BTSTATE:3

I then get prompted by the computer to enter my pass code - 1234

CONNECT:FAIL
+BTSTATE:1

The computer tells me they are paired, but the BEE tells me they are not.

If I do the above in slave mode, it also doesn’t connect.

What am I missing?

Many thanks
Delene

Dear customer,

Your PC is MASTER your BEE is SLAVE that could be work.

Thank you for your support.

Best regards,

Yuri

You may follow this:

  1. Try more times.
  2. Recover the PIN code to 0000, and then try again.
  3. Set the BT module work in Slave mode, and try to use PC to connect BT.

I am having the a similar issue. Setting the device mode as “Master”, sending +INQ=1, setting my PC or phone to ‘discover’ mode, get an address command (+RTINQ=aa,bb,cc,dd,ee,ff;name), use the address received to run +CONN=aa,bb,cc,dd,ee,ff, the PC or phone prompts for PIN and after entry:

[code]CONNECT:FAIL

+BTSTATE:1[/code]

The connection seems to fail (according to the Bee’s output), but the PC and phone both recognize the Bee’s attempt and allow connection to the address. My phone displays ‘Paired’ and my PC allows me to access the device and asks me if I’d like to set up a Serial connection on a COM port. Opening the COM port with PuTTY leads to the Bee’s state changing to

[code]+BTSTATE:3

CONNECT:OK

+BTSTATE:4[/code]

Using “PuTTY” I can send characters and they are received by the Bee.

Alternatively, using my Android phone, if I start the “BlueTerm” app the device is recognized, but not connected. I can connect without PIN as though it is a previously connected device and send characters there also.

I tried “Slave” mode too, but despite being in “+INQ=1” mode with both of the LEDs flashing the device isn’t discovered by either PC or phone.

I feel like I’m missing something here.
Must it be the “Slave” device that initiates connection to a known address?

Hi,there
If you want to connect to the device,you have to know its address and name.
You can consult the demo code of the master.