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

error code 0x05, SoftDevice S130 testing

Hi,

i'm testing softdevice s130 central/peripheral example. I modefied the uuid of device to which my nrf58122 should connect, but i get error 0x05 (Device not found) everytime.

Edit:

I changed uuid of devices on which to connect.

static const ble_gap_addr_t gs_hb_peripheral_address[NUMBER_OF_PERIPHERALS] 
                                          = {BLE_GAP_ADDR_TYPE_RANDOM_STATIC, {0x00, 0xA0, 0x50, 0x0D, 0x24, 0x19} /*MY DEVICE UUID*/,
                                            BLE_GAP_ADDR_TYPE_RANDOM_STATIC, {0x00, 0x04, 0x80, 0x20, 0x00, 0xC8} ,
                                            BLE_GAP_ADDR_TYPE_RANDOM_STATIC, {0x25,0xED ,0xA4, 0x6B, 0xC6, 0xE7} };

and while using terminal to see log i get:

S130_DEMO_LOG: ..\..\..\src\main.c: 873: (Peripheral 0) Connecting to device: [00 A0 50 0D 24 19]

S130_DEMO_LOG: ..\..\..\src\main.c: 892: Connecting to device: [00 A0 50 0D 24 19]

S130_DEMO_LOG: ..\..\..\src\main.c: 897: (Peripheral 0) Connection error: error code 0x5
(Peripheral 0) Device not found.
Parents
  • To get advertisement packages you also need to start the scanner.

    #define SCAN_INTERVAL                           MSEC_TO_UNITS(130, UNIT_0_625_MS)
    #define SCAN_WINDOW                             MSEC_TO_UNITS(30, UNIT_0_625_MS)
    static ble_gap_scan_params_t        m_scan_param;
    static void scan_start(void)
    {
    uint32_t              err_code;
    
    LOG_INFO("Scan started");
    // No devices in whitelist, hence non selective performed.
    m_scan_param.active       = 0;            // Active scanning set.
    m_scan_param.selective    = 0;            // Selective scanning not set.
    m_scan_param.interval     = SCAN_INTERVAL;// Scan interval.
    m_scan_param.window       = SCAN_WINDOW;  // Scan window.
    m_scan_param.p_whitelist  = NULL;         // No whitelist provided.
    m_scan_param.timeout      = 0x0000;       // No timeout.
    
    err_code = sd_ble_gap_scan_start(&m_scan_param);
    APP_ERROR_CHECK(err_code);
    }
    
Reply Children
No Data
Related