BLE Friend Hardware Reset

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

Where are you adafruit support mike?

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

My last post is unanswered and is 24 hours old...

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: Ble friend "couldn't factory reset"

Post by chrismolloy »

I seem to have two threads going on the same subject. can we use the other one?
I am using the arduino environment and the monitor

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

I was able to reset the module using the DFU pin. the factory reset pad on the back of the board does not reset the board.
Still "unable to factory reset" when running the factory reset sketch.

ble.begin(VERBOSE_MODE) results in an "OK" indicating that there was a successful communication to the board.
just the reset is not working.

here is the output of the factory reset sketch:

Adafruit Factory Reset Example
------------------------------------------------
Initialising the Bluefruit LE module: OK!
Performing a factory reset:
AT+FACTORYRESET

<- Couldn't factory reset

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: BLE Friend Hardware Reset

Post by adafruit_support_mike »

About the FCR pad on the back of the BLE module: are you connecting that to GND before connecting the 5v pin, and holding it low while the board powers up? That's how that signal behaves.

Only connecting power and ground while doing a factory reset is fine.

About the factory reset sketch failing, what voltage do you see on the MOD pin while the sketch is running?

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

Here is the state of the MOD pin. I connected it to D7 and read it just Prior to the factory reset command.

Adafruit Factory Reset Example
------------------------------------------------
Initialising the Bluefruit LE module: OK!
Mode Pin State: 1 <<------------------------------------------------------------
Performing a factory reset:
AT+FACTORYRESET

<- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

Adafruit Factory Reset Example
------------------------------------------------
Initialising the Bluefruit LE module: OK!
Mode Pin State: 1 <<------------------------------------------------------------
Performing a factory reset:
AT+FACTORYRESET

<- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ CANT FIGURE OUT WHERE THIS IS COMING FROM. TRIED TRACING THE CODE IN THE LIBRARIES, BUT CAN NOT FIND ANY INSTANCE OF
Serial.print

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: BLE Friend Hardware Reset

Post by adafruit_support_mike »

I asked for the voltage on the M0 pin, not the output from the serial monitor. There are some hardware issues I want to rule out.

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

Re: BLE Friend Hardware Reset

Post by adafruit_support_rick »

Can you try a different set of pins on your redboard? You may have a bad pin.

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

4.9vdc

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

using pins 2 thru 7

Adafruit Factory Reset Example
------------------------------------------------
Initialising the Bluefruit LE module: OK!
Performing a factory reset:
AT+FACTORYRESET

<- Couldn't factory reset

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

I get exactly the same response with the ble friend removed from the circuit!

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

to be clear, I unplugged the module from the circuit and the software still reported OK for ble.begin()

User avatar
chrismolloy
 
Posts: 30
Joined: Mon Dec 10, 2012 6:15 pm

Re: BLE Friend Hardware Reset

Post by chrismolloy »

I tried a genuine UNO instead of the redboard with the same results. I also downgraded the library to the previous 2 versions with no change.

hooked it up with an FTDI and everything works perfectly.

I will try communicating from the arduino software serial back thru the FTDI to a terminal program to confirm the software serial is working.

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

Re: BLE Friend Hardware Reset

Post by adafruit_support_rick »

Looking at the library, I think there's a bug in begin. It looks like it will always return OK.

So, are you using the correct constructor in your sketch? You're connected with software spi? Are you using the software SPI constructor?

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

Return to “Other Arduino products from Adafruit”