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

"ble_app_uart_pca10056e_s112" not working on the custom 2811 board and the 2840 DK Board

Hi,

We have designed a custom board using the nRF52811 chip which has BLE 5.0. I tried running the "ble_app_uart_pca10056e_s112" example on the custom board and it did not work as expected. I was not able to see the "Nordic Uart" device listed on the "nRFConnect" App. The following debug logs were observed:

1) ble_advertising_init() API: return error code of 7 (NRF_ERROR_INVALID_PARAM )

2) ble_advertising_start() API call: return error code of 8(NRF_ERROR_INVALID_STATE)

It means the BLE advertising does not start at all.

Similar observations were found when I run the  "ble_app_uart_pca10056e_s112" example on the nRF52840 DK Board.

When I replace the 128 bit UUID in the example code with a 16bit UUID, the example code works fine on both the boards and the device gets advertised.

I have a few questions related to my above observations:

  1. Is 128 bit UUID not supported by the S112 soft device?If yes, what modification are required to be done in the example code to support the 128 bit UUID
  2. Does the 128 bit UUID not work due to the memory limitation(24K RAM) of the 2811 chip ?

Please let me know on this as my development activity is stuck since Im not able to add a custom 128 bit UUID.

Regards,

DPanchal

Parents
  • Hello DPanchal,

    If you are seeing ble_advertising_init() and ble_advertising_start() returning something other than NRF_SUCCESS, you will not be able to see any advertisements.

    Q1: Is 128 bit UUID not supported by the S112 soft device?If yes, what modification are required to be done in the example code to support the 128 bit UUID

    A1: I don’t think the issue is the 128 bit UUID. What changes do you do in the project when you change the UUID, except changing the UUID itself. Do you change the UUID type from BLE_UUID_TYPE_VENDOR_BEGIN to BLE_UUID_TYPE_BLE as well?

    Does it work if you try to run it on an nRF52832 with S113?

     

    Q2: Does the 128 bit UUID not work due to the memory limitation(24K RAM) of the 2811 chip ?

    A2: This is the same question as Q1, is it not? Have you tried the unmodified ble_app_uart\pca10040e\s112 on your device?

     

    Best regards,

    Edvin

Reply
  • Hello DPanchal,

    If you are seeing ble_advertising_init() and ble_advertising_start() returning something other than NRF_SUCCESS, you will not be able to see any advertisements.

    Q1: Is 128 bit UUID not supported by the S112 soft device?If yes, what modification are required to be done in the example code to support the 128 bit UUID

    A1: I don’t think the issue is the 128 bit UUID. What changes do you do in the project when you change the UUID, except changing the UUID itself. Do you change the UUID type from BLE_UUID_TYPE_VENDOR_BEGIN to BLE_UUID_TYPE_BLE as well?

    Does it work if you try to run it on an nRF52832 with S113?

     

    Q2: Does the 128 bit UUID not work due to the memory limitation(24K RAM) of the 2811 chip ?

    A2: This is the same question as Q1, is it not? Have you tried the unmodified ble_app_uart\pca10040e\s112 on your device?

     

    Best regards,

    Edvin

Children
No Data
Related