9 years, 11 months ago.

Can't send/receive with nRF8001_SimpleChat example and BLE_nRF8001 library

Hi,

I'm having problems using the RedBearLabs BLE_nRF8001 library. I'm using a Seeeduino Arch board with RedBearLab BLE Shield v1.1 I've got the example code compiled and running on my board. When I use the iOS BLE Controller App and set it to SimpleChat I can see the BLE device and connect to it, BUT I can't seem to send or receive. Here's what I get debugged to the serial terminal...

Connected to central

hello

Received from terminal: 5 bytes

The "hello" is what I typed into the serial terminal, which should go through the BLE Shield to the iOS App but it doesn't arrive. If I send from the App nothing arrives at my board (i.e. I see nothing debugged on the serial terminal).

I've attached my main.cpp file /media/uploads/tomhulbert/main.cpp

Any help would be appreciated.

Thanks!

Question relating to:

This program demonstrate how to apply BLE_nRF8001 library on mbed platform working with RedBearLab BLE Shield v2.1 or above. BLE, nRF8001, RedBearLab

1 Answer

9 years, 11 months ago.

Hi,

I haved just tried out that BLE Shield v1.1 and SeedStudio Arch working well together while running the nRF8001_SimpleChat program. The code I modified in the example list below:

// For MK20
/*SPI spi(PTD2, PTD3, PTD1);      
DigitalInOut BLE_RDY(PTA12);  
DigitalInOut BLE_REQ(PTA2); */

// For SeeedStudio Arch
SPI spi(P1_22, P1_21, P1_20);    
DigitalInOut BLE_RDY(P1_26);  
DigitalInOut BLE_REQ(P1_27); 

Please try the original example first to verify the BLE function.

Accepted Answer

Thank you! That worked. Not sure what I did wrong originally, but I changed those three lines in my code and it is now working.

posted by Tom Hulbert 25 Dec 2014