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

MCP android long write

Hi, I'm trying to write a long byte array with the nrf master control panel on android. I'm unsure if the app is able to, but in any case I'm not getting the event: BLE_EVT_USER_MEM_REQUEST. I simply get the BLE_GATTS_EVT_WRITE with BLE_GATTS_OP_WRITE_CMD and the length of the data is cut to 20 bytes.

I can see on the app that char_ext_props.reliable_wr is enabled, furthermore I set:

  • cccd_md = BLE_GATTS_VLOC_STACK
  • attr_md = BLE_GATTS_VLOC_USER
  • max_len = 200

I'm using:

  • SDK 6.1
  • SD S110 7.0.0
  • android 5.1
  • master control panel 2.1.1

Does anyone know what i'm doing wrong?

Parents
  • @Bart: I don't think you need char_ext_props.reliable_wr = 1 if you just want long write. Not sure what could be wrong in your case but can you try my example here and let me know the result?

  • Thanks for the reply, I checked the code, cause I'm working on linux and I don't know how to use all the settings you include with the project to compile and upload it :) It doesn't include the handling of the write event as far as i could tell.

Reply
  • Thanks for the reply, I checked the code, cause I'm working on linux and I don't know how to use all the settings you include with the project to compile and upload it :) It doesn't include the handling of the write event as far as i could tell.

Children
No Data