Bluetooth BEE : Connect:failed

wireless communication and related Bees.

Moderators: lily.li, violet, jessie

Post Reply
Delene
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Feb 10, 2012 9:39 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Bee

Bluetooth BEE : Connect:failed

Post by Delene » Fri Feb 10, 2012 9:49 pm

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

yuriq
Elementary-3
Elementary-3
Posts: 383
Joined: Wed Dec 07, 2011 5:33 pm

Re: Bluetooth BEE : Connect:failed

Post by yuriq » Tue Feb 14, 2012 9:48 am

Dear customer,

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

Thank you for your support.

Best regards,

Yuri

User avatar
Steve Chang
Elementary-2
Elementary-2
Posts: 290
Joined: Tue Jan 18, 2011 2:14 pm

Re: Bluetooth BEE : Connect:failed

Post by Steve Chang » Fri Mar 09, 2012 9:41 am

Delene wrote: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
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.

CommonSurname
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sat May 19, 2012 8:55 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Seeeduino, DSO Quad, etc.

Re: Bluetooth BEE : Connect:failed

Post by CommonSurname » Sat May 19, 2012 9:21 am

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: Select all

CONNECT:FAIL

+BTSTATE:1
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: Select all

+BTSTATE:3

CONNECT:OK

+BTSTATE:4
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?

Tobe
Pre-kindergarten
Pre-kindergarten
Posts: 34
Joined: Tue Jan 17, 2012 11:04 am
Are you a staff member of seeedstudio?: yes
Which products/projects are your favorite?: Seeeduino

Re: Bluetooth BEE : Connect:failed

Post by Tobe » Fri May 25, 2012 1:17 pm

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.

Post Reply