I need help. I cannot see my earlier ongoing ticket!? I have been working With it for the last couple of Days and today i was asked to share my Project but now the whole ticket is gone:( What to do, do i need to do it all again or can you guys pick it up somewere?/Kalle
If you dont have any backup.
I have tried to change parameters in example codes but i Always get the error code 0x3001 if i change the number of Connection (doenst matter if i increase peripherals or centrals). If i change it from 1 to let us say 2 or more, i get 0x3001.The function that return this error message is:ret = sd_ble_gap_adv_start(&adv_params, m_conn_cfg_tag);
The parameter that i change is:
#define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT (1)
In my last ticket we get so far that i was asked to send/share my Project. I asked how, if the responsible person had an >FTP or email for sharing this Project. After that the ticket dissapeared.
Do you enable ble in the application before starting advertising? Error 0x3001 indicates that ble is not enabled (BLE_ERROR_NOT_ENABLED). You enable it by calling these functions below:
static void ble_stack_init(void)
err_code = nrf_sdh_enable_request();
// Configure the BLE stack using the default settings.
// Fetch the start address of the application RAM.
uint32_t ram_start = 0;
err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start);
// Enable BLE stack.
err_code = nrf_sdh_ble_enable(&ram_start);
// Register a handler for BLE events.
NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);
Everything works if i set the parameter above to 1. Than i can cennect my peripheral to a central. The problem is that i want to connect two cenrals to my peripheral (one custom made Product which acts as a central and one mobile phone). To do so i want to set:#define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT (1) to (2).
When doing this i get the 0x3001 error in return.
Alright, hard to tell what the problem is without seeing the code, have you started from any example code? Because there is an example on the exact same thing you are searching for in the sdk folder -> examples/ble_peripheral/experimental/ble_app_multiperipheral
Maybe compare your code with this one, if you haven't done that yet, and see if you maybe notice something that is different.
Can i give you the code by email or ftp? I have made a small project which only has the BLE functionality.