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.

Reply
  • 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.

Children
  • Sorry i meant MAC and not UUID. Yes the first address is the address of my periferial device.

  • Are you sure you entered the bytes in the correct order?

  • Can you please explain, what exactly do you mean by correct order?

    When i print address of my peripheral device i get:

    Start Advertisement with addr: 00a0500d2419
    
  • Looking closely i saw that address in example is backwars so i put mine backwards too, like:

    {0x19, 0x24, 0x0D, 0x50, 0xA0, 0x00}
    

    but still no success.

  • 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