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

[nRF8001] Changing setup without using nRFGo

Hi,

Is there a way to modify any of the contents of the setup generated by nRFGo?

The services.h file generates SETUP_MESSAGES_CONTENT to populate setup_msgs[]

const hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] = SETUP_MESSAGES_CONTENT;

Can a user change any of the data defined or are there protective mechanisms such as checksums.

Every time my device is powered I would like it to change the Bluetooth Device Name UNTILL a successful bond where that name would persist.

There may be other elements of the setup that I would like to change also.

Thanks, Kirem

Parents
  • Is it possible to change the SETUP_MESSAGES_CONTENT in software? I want to add a unit specific id on every device with the SW. I'm using 'Custom Advertisement Types' with hex 0xFF to set this data.

    At start up i would like to load an id from flash and set it in the variable like:

    for(int i = 0; i < 5; i++)
    {
    	setup_msgs[33].buffer[i + 4 +3] = myData[i];
    }
    
    aci_state.aci_setup_info.number_of_pipes    = NUMBER_OF_PIPES;
    aci_state.aci_setup_info.setup_msgs 		= (hal_aci_data_t*)setup_msgs;
    aci_state.aci_setup_info.num_setup_msgs     = NB_SETUP_MESSAGES;
    

    But i get this in the errors in the log:

    Evt Device Started: Setup ACI Command 6 Evt Cmd respone: Status 88

    Or can you recommend another what to set the custom data?

Reply
  • Is it possible to change the SETUP_MESSAGES_CONTENT in software? I want to add a unit specific id on every device with the SW. I'm using 'Custom Advertisement Types' with hex 0xFF to set this data.

    At start up i would like to load an id from flash and set it in the variable like:

    for(int i = 0; i < 5; i++)
    {
    	setup_msgs[33].buffer[i + 4 +3] = myData[i];
    }
    
    aci_state.aci_setup_info.number_of_pipes    = NUMBER_OF_PIPES;
    aci_state.aci_setup_info.setup_msgs 		= (hal_aci_data_t*)setup_msgs;
    aci_state.aci_setup_info.num_setup_msgs     = NB_SETUP_MESSAGES;
    

    But i get this in the errors in the log:

    Evt Device Started: Setup ACI Command 6 Evt Cmd respone: Status 88

    Or can you recommend another what to set the custom data?

Children
No Data
Related