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

nRF8001 setup issues

Hello,

I am sending below setup packet to nRF8001, and i don't get any response form nRF8001. ACI as such works fine, i tried sending diff commands and able to receive response, but when i send below packet which i copied from ublue_setup.gen.out.txt, no response. Please help...

0x07,0x06,0x00,0x00,0x03,0x02,0x42,0x07.

Parents
  • Each setup message will generate a command response event which needs to be processed, which appears to be your mis-understanding. See section 24 of the nRF8001 data sheet for the setup command.

    All command responses for the setup will carry the Transaction_continue except the last command response which will have Transaction_complete as the status code. The status codes are listed in the appendix of the nRF8001 datasheet.

    A status of 0x83 means device state is invalid.

    Action: Send a trace of the aci commands and events from chip reset time If that is not possible can you get an SPI capture with an logic analyzer ?

    For placing the Setup in NVM look at these posts

    devzone.nordicsemi.com/.../

    devzone.nordicsemi.com/.../

    [Edited] I notice that you are using the setup format for a C version IC on a D version IC. This will work, but you will lose some features. I suggest that you select the D version in the pulldown in nRFgo studio. nRFgo Studio -> nRF8001 configuration -> Device pulldown

    I suggest that you still take a look at the porting guide for the nRF8001 so you do not miss any of the steps.

    Since you have received the ACI Device Started Event, it looks like the MISO path is ok, but you need to verify the MOSI path. I would suggest that you verify the ACI as suggested in the porting guide and then do the Setup.

Reply
  • Each setup message will generate a command response event which needs to be processed, which appears to be your mis-understanding. See section 24 of the nRF8001 data sheet for the setup command.

    All command responses for the setup will carry the Transaction_continue except the last command response which will have Transaction_complete as the status code. The status codes are listed in the appendix of the nRF8001 datasheet.

    A status of 0x83 means device state is invalid.

    Action: Send a trace of the aci commands and events from chip reset time If that is not possible can you get an SPI capture with an logic analyzer ?

    For placing the Setup in NVM look at these posts

    devzone.nordicsemi.com/.../

    devzone.nordicsemi.com/.../

    [Edited] I notice that you are using the setup format for a C version IC on a D version IC. This will work, but you will lose some features. I suggest that you select the D version in the pulldown in nRFgo studio. nRFgo Studio -> nRF8001 configuration -> Device pulldown

    I suggest that you still take a look at the porting guide for the nRF8001 so you do not miss any of the steps.

    Since you have received the ACI Device Started Event, it looks like the MISO path is ok, but you need to verify the MOSI path. I would suggest that you verify the ACI as suggested in the porting guide and then do the Setup.

Children
  • Hi,

    Thanks for the reply. Unfortunately i dont have way to collect traces. It's through debugging, am looking at the responses received by the NRF8001.

    If i send only first packet of setup and wait for response, the NRF8001 is never sending response.

  • Hello,

    While i try to capture from scope, can you please tell me if the setup data am trying to send are correct? Am using version D chip of nRF8001.

    Thanks, Raghu

  • Can you attach the services.h file that you are using ?

  • Am really sorry, if my questions are confusing. I am not using ACI library as such. I am trying to implement my own ACI functions on PIC controller. So i took binary(hex) data generated in service.h file and am sending them from my code.

    by the way i dont see a way to attach a file, hence copying entire services.h file here

    /**
    * This file is autogenerated by nRFgo Studio 1.17.1.3252
    */
    
    #ifndef SETUP_MESSAGES_H__
    #define SETUP_MESSAGES_H__
    
    #include "hal_platform.h"
    #include "aci.h"
    
    
    #define SETUP_ID 0
    #define SETUP_FORMAT 2 /** nRF8001 Cx */
    #define ACI_DYNAMIC_DATA_SIZE 105
    
    
    
    
    #define GAP_PPCP_MAX_CONN_INT 0xffff /**< Maximum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
    #define GAP_PPCP_MIN_CONN_INT  0xffff /**< Minimum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
    #define GAP_PPCP_SLAVE_LATENCY 0
    #define GAP_PPCP_CONN_TIMEOUT 0xffff /** Connection Supervision timeout multiplier as a multiple of 10msec, 0xFFFF means no specific value requested */
    
    #define NB_SETUP_MESSAGES 9
    #define SETUP_MESSAGES_CONTENT {\
        {0x00,\
            {\
                0x07,0x06,0x00,0x00,0x02,0x02,0x42,0x07,\
            },\
        },\
        {0x00,\
            {\
                0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x06,0x00,0x01,\
                0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
            },\
        },\
        {0x00,\
            {\
                0x1e,0x06,0x10,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
                0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x03,0x90,0x00,\
            },\
        },\
        {0x00,\
            {\
                0x1f,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04,0x05,0x05,0x00,\
                0x02,0x28,0x03,0x01,0x02,0x03,0x00,0x00,0x2a,0x04,0x04,0x14,\
            },\
        },\
        {0x00,\
            {\
                0x1f,0x06,0x20,0x1c,0x05,0x00,0x03,0x2a,0x00,0x01,0x52,0x61,0x67,0x68,0x75,0x63,0x73,0x65,0x6d,0x69,\
                0x2e,0x63,0x6f,0x6d,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,\
            },\
        },\
        {0x00,\
            {\
                0x1f,0x06,0x20,0x38,0x05,0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,0x00,0x01,0x2a,0x06,0x04,0x03,0x02,\
                0x00,0x05,0x2a,0x01,0x01,0x00,0x00,0x04,0x04,0x05,0x05,0x00,\
            },\
        },\
        {0x00,\
            {\
                0x1f,0x06,0x20,0x54,0x06,0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2a,0x06,0x04,0x09,0x08,0x00,0x07,0x2a,\
                0x04,0x01,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,0x04,0x04,\
            },\
        },\
        {0x00,\
            {\
                0x0d,0x06,0x20,0x70,0x02,0x02,0x00,0x08,0x28,0x00,0x01,0x01,0x18,0x00,\
            },\
        },\
        {0x00,\
            {\
                0x06,0x06,0xf0,0x00,0x02,0xd1,0xb8,\
            },\
        },\
    }
    
    #endif
    
  • Can you attach the file in your question and remove it from the comment or at least add the pre-formatted option to it. (Its the icon with 101 010 )

Related