Forum >How do you configure 2 BLUNOS to connect to each other?
General

How do you configure 2 BLUNOS to connect to each other?

userHead visualxl 2014-04-29 22:27:53 2494 Views3 Replies
I bought 2 BLUNOs. I tried to display the RSSI on the LCD.

My RSSI is displayed if my BLUNO connects to an iPhone. However, when I bind it to another BLUNO, I am unable to see any RSSI values. Below are my setup settings:

PERIPHERAL
Code: Select all
void setup() {
Serial.begin(115200);
Serial.println("AT+SETTING=DEFPERIPHERAL");
delay(250);
Serial.println("AT+ROLE=ROLE_PERIPHERAL");
delay(150);
Serial.println("AT+NAME=Baby-G2");
delay(150);
Serial.println("AT+BIND=<MASTER MAC ADDRESS>"); //Destination MAC to bind to
//Serial.println("AT+CMODE=UNIQUE");
}
//CENTRAL
Code: Select all
void setup() {
Serial.begin(115200);
Serial.println("AT+SETTING=DEFCENTRAL");
delay(250);
Serial.println("AT+ROLE=ROLE_CENTRAL");
delay(150);
Serial.println("AT+NAME=Baby-GMASTER");
delay(150);
Serial.println("AT+BIND=<PERIPHERAL MAC ADDRESS>"); //Destination MAC to bind to
//Serial.println("AT+CMODE=UNIQUE");
}
Both BLUNO's LINK light is on. However, for some reason, my CENTRAL MAC address is now empty. What happened?

Am I missing something?

Update 1:

I brought up the Serial Monitor and I can see the RSSI on the PERIPHERAL. But I cannot see the RSSI on the CENTRAL.
2014-04-30 18:44:40 Hello visualxl,
Yeah, in the CENTRAL mode, the BLUNO mac address will always be 0x00000000000.
Only in the  PERIPHERAL mode, it will display its mac address. And you could make a connection from CENTRAL, if you know the PERIPHERAL address.
For unbind, you are right, changing the mac address to anther device one will be OK.
userHeadPic Grey.CC
2014-04-30 00:58:12 And why is my CENTRAL MAC address is 0x000000000000?

And how do I unbind?

Update 1:
CENTRAL seems to be always 0x000000000000 if I were to bind it to PERIPHERAL. In order to get back the MAC address back, do this:
Code: Select all
AT+ROLE=ROLE_PERIPHERAL
AT+BIND=0x000000000000
AT+RESTART
And you should be able to get your MAC address back.

To unbind, you just have to: (correct me if I am wrong)
Code: Select all
AT+BIND=0x000000000000
userHeadPic visualxl
2014-04-29 23:50:20 [quote="visualxl"]
Update 1:

I brought up the Serial Monitor and I can see the RSSI on the PERIPHERAL. But I cannot see the RSSI on the CENTRAL.
[/quote]

Thats quite interesting, I'm not entirely familiar with this platform, but this might explain a few things. Perhaps the RSSI has to be read from peripherals and sent back to the Central manually.
userHeadPic Jose