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

Custom service not found, multilink central

Hey! 

I have some trouble service UUID then i try to use the multilink central example project on a nRF51 dongle. I want it to have contact with a peripheral with sends a custom service. In the peripheral i have defined this: CUSTOM_SERVICE_UUID 0x1400 and CUSTOM_VALUE_CHAR_UUID 0x1401.

I changed the project from using ble_lbe to ble_nus. I have included the ble_nus_c.c file. In the ble_nus_c_h file i added #define BLE_CUSTOM_SERVICE_UUID 0x1400 and  #define BLE_CUSTOM_VALUE_CHAR_UUID 0x1401. At the same time I changed all BLE_UUID_NUS_SERVICE with BLE_CUSTOM_SERVICE_UUID in ble_nus_c.c. 

When i try to run the project the central manage to connect to the peripheral but i can not find the service. I added a picture from j-link viewer bellow. I also checked what the BLE_GATT_STATUS is and it ses 0x10a which i found to be BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND.

So I now wonder how to continue so I can find the service? 

Thank you in advance!

 

Parents
  • Hi,

    • What services and characteristics does the peripheral device have?
    • Is it ble_app_uart peripheral you are trying to connect to? If yes, did you make any changes to that peripheral example, e.g. the UUID values?
    • Your goal is to implement multilink central for NUS? 
    • Does it work if you try the default UUID’s for NUS ?

      #define NUS_BASE_UUID                   {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */
      
      #define BLE_UUID_NUS_SERVICE            0x0001                      /**< The UUID of the Nordic UART Service. */
      #define BLE_UUID_NUS_RX_CHARACTERISTIC  0x0002                      /**< The UUID of the RX Characteristic. */
      #define BLE_UUID_NUS_TX_CHARACTERISTIC  0x0003                      /**< The UUID of the TX Characteristic. */
Reply
  • Hi,

    • What services and characteristics does the peripheral device have?
    • Is it ble_app_uart peripheral you are trying to connect to? If yes, did you make any changes to that peripheral example, e.g. the UUID values?
    • Your goal is to implement multilink central for NUS? 
    • Does it work if you try the default UUID’s for NUS ?

      #define NUS_BASE_UUID                   {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */
      
      #define BLE_UUID_NUS_SERVICE            0x0001                      /**< The UUID of the Nordic UART Service. */
      #define BLE_UUID_NUS_RX_CHARACTERISTIC  0x0002                      /**< The UUID of the RX Characteristic. */
      #define BLE_UUID_NUS_TX_CHARACTERISTIC  0x0003                      /**< The UUID of the TX Characteristic. */
Children
Related