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

nrf52832 NUS UUID problem

Hi,

I use examples : nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs;

Change the NUS_BASE_UUID to "0000ffe5-0000-1000-8000-00805f9b34fb",but it can't work,allways generate error,error code is 0x4001,why can't I use this UUID?Can I solve this problem?

Thanks!

Parents
  • Hi

    I need some more details to help you out here. What kind of device are you flashing this application onto, an nRF52 DK or a custom board? What function is it that returns this 0x4001 error? Does it occur when you leave the NUS_BASE_UUID as is? If not, please control that the length of your UUID is the same as NUS_BASE_UUID.

    As a side note, if you modify yhe NUS UUID (NUS_BASE_UUID) to your own UUID (any other value) the nRFConnect application won't recognize it as a UART service just so you know.

    Best regards,

    Simon

  • Thank you for your reply. I have solved this problem.

    #define NUS_SERVICE_UUID_TYPE   BLE_UUID_TYPE_BLE              // BLE_UUID_TYPE_VENDOR_BEGIN              /**< UUID type for the Nordic UART Service (vendor specific). */

    After changing BLE_UUID_TYPE_VENDOR_BEGIN to BLE_UUID_TYPE_BLE, it can run normally. Although I don't know why.

    Thanks!

    Best regards,

  • BLE_UUID_TYPE_BLE indicates that the UUID is a Bluetooth SIG UUID, while BLE_UUID_TYPE_VENDOR_BEGIN specifies that it will be a Vendor UUID type.

    Best regards,

    Simon

Reply Children
No Data
Related