BLE- echoDemo Code never advertised

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rich1812
 
Posts: 32
Joined: Wed Apr 01, 2015 12:01 am

BLE- echoDemo Code never advertised

Post by rich1812 »

Hello, I follow this tutorial https://learn.adafruit.com/getting-star ... troduction step by step. When I run the echoDemo example, the serial monitor on Arduino IDK, only shows "Adafruit Bluefruit Low Energy nRF8001 Print echo demo" but it never gets to "Advertising started", why is that? Is there a bug in the code?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

Please post clear, detailed pictures of both sides of the nRF8001, showing your soldering and wiring

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

I am having the same issue, i believe that i can see the BLE device on my phone but cant connect to it and in Serial it doesnt say that it is advertising, See images.
Attachments
IMG_20170705_235056 (1).jpg
IMG_20170705_235056 (1).jpg (446.3 KiB) Viewed 653 times
IMG_20170705_235120 (1).jpg
IMG_20170705_235120 (1).jpg (415.08 KiB) Viewed 653 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

Which phone app are you using?

Can you post your Arduino sketch?

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

I was using nrfuart v2.0 to look for the module but I the echodemo test had not worked yet. i was using the stock example for echodemo to see if the serial monitor reported that the device was advertising.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

Please post the complete serial monitor trace

User avatar
John_Brooks
 
Posts: 1
Joined: Thu Jul 06, 2017 4:29 pm

Re: BLE- echoDemo Code never advertised

Post by John_Brooks »

nRF8001 - echoDemo code is never advertised. Can you replace the board?

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

the only thing that the serial monitor is showing is "Adafruit Bluefruit Low Energy nRF8001 Print echo demo" nothing else is happening. are there supposed to be LED's lit on the BLE board to indicate anything?

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

I added a serial print in the loop after the status is pinged that prints out the value. it is showing a value of 134. see below:

BTLEserial.pollACI();
Serial.println("Test1");
// Ask what is our current status
aci_evt_opcode_t status = BTLEserial.getState();
// If the status changed....
if (status != laststatus) {
// print it out!
if (status == ACI_EVT_DEVICE_STARTED) {
Serial.println(F("* Advertising started"));
}
if (status == ACI_EVT_CONNECTED) {
Serial.println(F("* Connected!"));
}
if (status == ACI_EVT_DISCONNECTED) {
Serial.println(F("* Disconnected or advertising timed out"));
}
// OK set the last status change to this one
laststatus = status;
}
Serial.println("Test2");
Serial.println(status);
delay(100);


Serial Monitor:
Test1
Test2
134
Test1
Test2
134
Test1
Test2
134

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

A status of 134 is ACI_EVT_DISCONNECTED. That means that your sketch never actually started the nRF8001. Not sure why that would happen. I'll look into it some more

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

John_Brooks wrote:nRF8001 - echoDemo code is never advertised. Can you replace the board?
Please post clear, detailed pictures of both sides of the module, showing your soldering and wiring

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

Hello, i have not heard anything back after your reply about what the 134 code meant. do you have any more information about what the problem might be?
i have to be honest that this method of troubleshooting is incredibly frustrating, i have purchased lots of things from you in the past but this BLE issue and the way i have had to go about troubleshooting is tedious. sparkfun at least has an online chat option.

User avatar
gsherman0830
 
Posts: 15
Joined: Tue Apr 21, 2015 8:07 am

Re: BLE- echoDemo Code never advertised

Post by gsherman0830 »

it seems to me that for some reason the nrf8001 is not trying to do anything, is there a way that i can troubleshoot that side of the system? i have loaded the echoDemo program and it does nothing, are there any specific questions that i can help answer for me to get this to work, what would you do to troubleshoot the device.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: BLE- echoDemo Code never advertised

Post by adafruit_support_rick »

Sorry! This dropped through the cracks. Thanks for rattling my cage.

The nRF8001 doesn't show any lights or anything.
Let's try replacing it. Please email [email protected] with a link to this post for a replacement

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”