Automatic reconection with BlueDuino rev.2


#1

Is there any way to configure an automatic reconnection when the connection link is lost first bluetooth and then you enter the connection field?. Sorry for my bad English.

Regards


#2

firmware 2.2.3 add a new command AT+AUTH, please try to change the auth mode to “auth and bond”

AT+AUTH3

But you need set same passcode for both peripheral and central.

Let me know if this work


#3

…Cut of sketch:


Serial1.println(“AT+AUTH3”);
delay (1000);
Serial1.println("AT+PIN=123456);
delay(1000);
Serial1.println("AT+CONN123456789010);
delay(1000);

The setup is correct (I Check in Monitor Serie), pero no working

Regards


#4

Sorry:
Serial1.println(“AT+AUTH3”);
delay (1000);
Serial1.println(“AT+PIN=123456”);
delay(1000);
Serial1.println(“AT+CONN123456789010”);
delay(1000);


#5

This is my setup():
void setup(){
Serial.begin(9600);
Serial1.begin(9600);
pinMode(9,OUTPUT);// Pone el pin9 como salida para Vibro
delay(200);
Serial1.println(“AT+ROLE2”); // Lo hace central
delay(1200);
Serial1.println(“AT+RESET”); // Reset
delay(1200);
Serial1.println(“AT+POWR1”); // Le pone potencia TX=4db
delay(1200);
Serial1.println(“AT+AUTH3”);
delay(1200);
Serial1.println(“AT+PIN=123456”);
delay(1200);
Serial1.println(“AT+CONN00158300C355”); //conecta al BLE esclavo
delay(3000);

vibra();
}
And this the answer of the monitor serial:
OK+Set:2
OK+RESE
T
OK+Set:1
OK+S
et:3
OK+Set:1234
56
OK+CONNA

Say I’m connecting to a slave BLE sh-hc-08 (BLE)…
If the connection is lost, … or I turn off the slave BLE, when it lights it does not pairing anymore


#6

First, you should make this changes before reset

Serial1.println("AT+ROLE2"); // Lo hace central
delay(200);
Serial1.println("AT+POWR1"); // Le pone potencia TX=4db
delay(200);
Serial1.println("AT+AUTH3");
delay(200);
Serial1.println("AT+PIN=123456");
delay(200);
Serial1.println("AT+RESET"); // Reset
delay(2000);

The BLE sh-hc-08 is a BLE module from other manufacture? It can’t connect directly if it’s not in bonding mode. Please check the AT command manual for that module.

We’ll try to test with other BLE module also.


#7

I´ll try to test new sketch. The ble slave is Bolutek Co…In slave mode you have the following AT commands:
In slave mode you have the AT commands:
http://www.martyncurrey.com/bluetooth-modules/
And I do not see any to bind.


#8

These are the AT commands in slave mode:

http://www.martyncurrey.com/wp-content/uploads/2016/02/AT-09-BT-05_BBLE_05.jpg.


#9

Please check the AT+TYPE command for hc-08. I think it’s similar with our AT+AUTH command


#10

I have already changed the sketch according to your instructions, I already tried “AT + TYPE3” in the HC-08, but it still does not work.

Regards


#11

I think the AT + TYPEx command works only in master mode

regards


#12

I will test it later when I got a HC-08 also.


#13

Ok April, thanks for you support…One question…You will have to see that the HC-08 has only one characteristic and the bluduino two…one for TX and another for RX?

Regards.


#14

Yes. For Blueduino, that is


#15

Hello April, thanks for your interest. Have your engineers tested the connection and autoreconexion between blueduino and HC_08?


#16

Hi,

We got HM-10 module recently. Here’s update