This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI Packet

I want to use ATMEGA 328 to send a packet over to the chip as follows:

SPDR = packet ;

Can some one kindly post what the content of this packat should be ? is it possible to transfer a 32 Byte packet in this way to the BLE chip ?

Thanks in advance for you support. Any sample application code for this would be much appriciated.

Parents
  • Hi,

    If you want to interface with the nRF8001, you may want to have a look in the nRF8001 spec. Chapter 7 Interfaces, and from chapter 18 to 27 are important to know how it works (how to interface your MCU with nRF8001).

    It's actually good idea to follow what we do in the Arduino SDK as Awneil pointed out.

    We also provided the SDK for nRF8001 but using our own MCU (nRF8200). It may not as similar to Atmel chip as the Arduino

  • ECHO is an ACI command.

    The SDK includes an ECHO example - ble_aci_transport_layer_verification:

    /**
     * echo project to verify the SPI/ACI connectivity
     */
    
    /** @defgroup my_project my_project
    @{
    @ingroup projects
    @brief Echo project to loop data from the mcu to the nRF800 and back
    
    @details
    This project is a test project to verify the SPI/ACI.
    The data in the ACI echo command send and the data
    received in the ACI echo event should be the same.
    
Reply
  • ECHO is an ACI command.

    The SDK includes an ECHO example - ble_aci_transport_layer_verification:

    /**
     * echo project to verify the SPI/ACI connectivity
     */
    
    /** @defgroup my_project my_project
    @{
    @ingroup projects
    @brief Echo project to loop data from the mcu to the nRF800 and back
    
    @details
    This project is a test project to verify the SPI/ACI.
    The data in the ACI echo command send and the data
    received in the ACI echo event should be the same.
    
Children
No Data
Related