BLE- echoDemo Code never advertised
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- rich1812
- Posts: 32
- Joined: Wed Apr 01, 2015 12:01 am
BLE- echoDemo Code never advertised
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?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
Please post clear, detailed pictures of both sides of the nRF8001, showing your soldering and wiring
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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 (446.3 KiB) Viewed 653 times
-
- IMG_20170705_235120 (1).jpg (415.08 KiB) Viewed 653 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
Which phone app are you using?
Can you post your Arduino sketch?
Can you post your Arduino sketch?
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
Please post the complete serial monitor trace
- John_Brooks
- Posts: 1
- Joined: Thu Jul 06, 2017 4:29 pm
Re: BLE- echoDemo Code never advertised
nRF8001 - echoDemo code is never advertised. Can you replace the board?
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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?
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
Please post clear, detailed pictures of both sides of the module, showing your soldering and wiringJohn_Brooks wrote:nRF8001 - echoDemo code is never advertised. Can you replace the board?
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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.
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.
- gsherman0830
- Posts: 15
- Joined: Tue Apr 21, 2015 8:07 am
Re: BLE- echoDemo Code never advertised
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BLE- echoDemo Code never advertised
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
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
Please be positive and constructive with your questions and comments.