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
  • You changed the MAC / device ID that the unit tries to connect to. This means that the devices tries to find and connect to the addresses mentioned above. Do you have periferial devices with that address. Not the same as UUID. normally the MAC address is used or a program defined replacment for that number.

  • In event handle add:

    case BLE_GAP_EVT_ADV_REPORT:
    LOG_INFO("Advertisement received Address  %02X %02X %02X %02X %02X %02X",p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[0],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[1],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[2],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[3],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[4],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[5]);
    break;
    

    Then you can see what addresses you received advertisement from

Reply
  • In event handle add:

    case BLE_GAP_EVT_ADV_REPORT:
    LOG_INFO("Advertisement received Address  %02X %02X %02X %02X %02X %02X",p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[0],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[1],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[2],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[3],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[4],p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[5]);
    break;
    

    Then you can see what addresses you received advertisement from

Children
No Data
Related