Hi,
I'm trying to build a prototype using the Adafruit nRF8001 Breakout and an mbed ARM CPU.
After Reset, I get a Device Started Event, telling me the chip is in Setup mode.
I'm then trying to send the first Setup message I've got from nRFgo Studio. The answer I would expect is a Command Response Event with an Transmission Continue Status. Instead, I get a Command Response Event with Status Success (0x00). This is the only response I get, even after issuing the following Setup commands.
Any idea what could be wrong?
Regards, Thomas
Update:
Using the Echo command in Test mode, I can now see that I'm somehow missing the last byte of every transmission. That explains my problem. Now I just have to find out what I'm doing wrong. I don't think the module is at fault. Thanks!
> P
nRF8001::readWrite(...): sending packet:
Length: 0 bytes
nRF::readWrite(0) done, got 4 bytes.
nRF8001::handleResponse(...): received packet:
Length: 4 bytes
Op-Code: evt_device_started (0x81)
Test mode!
No error!
Credits available: 0
> E
nRF8001::readWrite(...): sending packet:
Length: 21 bytes
Op-Code: cmd_echo (0x02)
Data: 0x42 0x23 0xDE 0xAD 0xBE 0xEF 0xFF 0x00 0x99 0x01 0x5F 0x8E 0x35 0x22 0x01 0x19 0x94 0x23 0x42 0xFF
nRF::readWrite(21) done, got 4 bytes.
> P
nRF8001::readWrite(...): sending packet:
Length: 0 bytes
nRF::readWrite(0) done, got 21 bytes.
nRF8001::handleResponse(...): received packet:
Length: 21 bytes
Op-Code: evt_echo (0x82)
Data: 0x42 0x23 0xDE 0xAD 0xBE 0xEF 0xFF 0x00 0x99 0x01 0x5F 0x8E 0x35 0x22 0x01 0x19 0x94 0x23 0x42 0x00
nRF::handleResponse(...): echo with 20 bytes
0x42 0x23 0xDE 0xAD 0xBE 0xEF 0xFF 0x00 0x99 0x01 0x5F 0x8E 0x35 0x22 0x01 0x19 0x94 0x23 0x42 0x00