Forum >Why do I still see CENTRAL BLUNO on my BLE Scanner?
General

Why do I still see CENTRAL BLUNO on my BLE Scanner?

userHead visualxl 2014-06-09 16:49:27 5180 Views9 Replies
Here are my codes for CENTRAL configuration:
Code: Select all
void masterConfiguration() {
Serial.print("+++");
delay(250);
Serial.println("AT+SETTING=DEFCENTRAL");
delay(250);
Serial.println("AT+ROLE=ROLE_CENTRAL");
delay(150); //150
Serial.println("AT+NAME=BabyMaster");
delay(150);
Serial.println("AT+BIND=0x883314DC6FEF"); //PERIPHERAL Bluno
delay(150);
Serial.println("AT+TXPOWER=0");
Serial.println("AT+EXIT");
}
I don't understand why do I still see CENTRAL BLUNO on my BLE Scanner? Am I missing something?
2014-06-11 04:48:35 Nope. It seems to be a GSM shield issue. I had to add a 'false' boolean in the GSM constructor. I shall write about that someday ~ ;) userHeadPic visualxl
2014-06-11 03:37:32 Hmm.. I may consider that. Another question that I have is, would a standard GSM shield interfere with the BLUNO?

I noticed that whenever I issue a delay of let say 30 seconds within some loop, the GSM is not able to initialise. I am trying to replicate the same thing on a standard Uno to see whether will it give the same problem.
userHeadPic visualxl
2014-06-11 03:26:38 For some projects I've used an LCD to display the output of certain commands, or even the LED when data is received.

You could send your AT command and parse the response. If is OK or good, then turn on LED on board. or print it on LCD to check what is going on.

Another way is to use the software serial or altsoftware serial. and enable another pin to output at commands answer through Arduino.

My guess is that none of the AT commands are being sent appropiately. Have you initilized the Serial port? with right baud rate?
userHeadPic Jose
2014-06-10 20:21:22 Grey / Jose,

Negative. Both:
Code: Select all
Serial.print("+++"); //it does enter AT mode.
Serial.write("+++"); //It also enter AT mode
I replaced with '.write', and my ROLE is still PERIPHERAL and the name still has not changed to reflect "BabyMaster" yet. That's mean it does not enter AT MODE?
Code: Select all
Serial.write("+++");
  delay(250);
  Serial.println("AT+SETTING=DEFCENTRAL");
  delay(250);
  Serial.println("AT+ROLE=ROLE_CENTRAL");
  delay(150);  //150
  Serial.println("AT+NAME=BabyMaster");
  delay(150);
  Serial.println("AT+BIND=0x883314DC6FEF"); //PERIPHERAL Bluno
  delay(150);
  Serial.println("AT+TXPOWER=0");
  Serial.println("AT+EXIT");
I changed it back to "Serial.print("+++");" and it disappears from my phone. Well.. I don't why like that.
userHeadPic visualxl
2014-06-10 01:34:52 ;D

Give it a try, and let us know! paste your code if you have any probs
userHeadPic Jose
2014-06-09 19:12:23 Oh crap, I have not implement that yet. Haha. Sorry man. userHeadPic visualxl
2014-06-09 19:08:17 Hey, visualxl
You want to use the code to set the role of the ble device?
As what I said just now, it doesn't enter the AT mode, so the Role setting command should not be work.
userHeadPic Grey.CC
2014-06-09 18:52:31 No Grey,

My android can see the BLUNO. But what I meant is, it is not supposed to be able to see CENTRAL right?

I've got to like RESET it a couple of times before it disappear from my BLE Scanner.
userHeadPic visualxl
2014-06-09 18:30:36 Hello visualxl?
Your mean your Android app can't find any BLUNO device with the newest firmware?

There are some faults in your code:
If you want to into the AT Mode, you should use "Serial.write("+++");"
And it is better to use "AT+TXPOWER=4", 4 is the largest number of the transmitting power.
userHeadPic Grey.CC