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.

  • 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 )

  • Hi,

    I have tested my ACI lines integerity by sending 31 bytes of data in echo packet and i have received all 31 bytes correctly. So i don't see an issue here with MISO line also.

    I am able to receive some response for any command i sent except for the below setup command when i sent, it just stucks there, no response from nRF8001.

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

    To be more clear, this is first time NRF8001 is powered-up, in the sense i have never configured or setup on this device yet. So, am i supposed to do anything before trying to set up??

Related