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

Long Attributes

Hi, I need to have long attributes. So I need 'Read Blob' operation for read and Queued writes ('Prepare Write' and 'Execute Write'). Does Soft Device for nrf51822 support mentioned commands?

Best regards, Artem Zemlyanukhin

Parents
  • Hi there,

    Read Long as a GATT server has been supported since very early versions of the SoftDevice.

    Version 6.0.0-1.alpha of the SoftDevice adds Write Long (and Reliable Write) support to the SoftDevice GATT server.

    Hope that helps,

    Carles

  • Hi Carles,

    I have some questions about Write Long.

    Because Master Control Panel 3.4.0 doesn't support 'Prepare Write' and 'Execute Write' I use CC2540-based usb dongle (from TI) and BTool software to test Write Long. I decided to implement 'GATTS Queued Writes: App handled, one or more attributes require authorization'. But I can't catch 'BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST' after I send PrepareWriteRequest or ExecuteWriteRequest via BTool. As I saw in your Message Sequence Charts, I also have to handle 'BLE_EVT_USER_MEM_REQUEST' and call 'sd_ble_user_mem_reply'. But I don't know where I can handle 'BLE_EVT_USER_MEM_REQUEST' event, stack doesn't call 'ble_evt_dispatch' with corresponding event. Do you have any example how to use Write Long?

    Best Regards, Artem Zemlyanukhin

Reply
  • Hi Carles,

    I have some questions about Write Long.

    Because Master Control Panel 3.4.0 doesn't support 'Prepare Write' and 'Execute Write' I use CC2540-based usb dongle (from TI) and BTool software to test Write Long. I decided to implement 'GATTS Queued Writes: App handled, one or more attributes require authorization'. But I can't catch 'BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST' after I send PrepareWriteRequest or ExecuteWriteRequest via BTool. As I saw in your Message Sequence Charts, I also have to handle 'BLE_EVT_USER_MEM_REQUEST' and call 'sd_ble_user_mem_reply'. But I don't know where I can handle 'BLE_EVT_USER_MEM_REQUEST' event, stack doesn't call 'ble_evt_dispatch' with corresponding event. Do you have any example how to use Write Long?

    Best Regards, Artem Zemlyanukhin

Children
No Data
Related