Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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.