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

How is iOS's support for BLE write request?

A little background with this question

So, long story short:

To send data using notification, in android, you must first enable CCCD descriptor of matching attribute (which is usually a characteristic)

The proper way to do that is using some sort of "write request".

Problem: it is often confused with "write".

Now you are asking: then use "write request"? Here's the problem: official android API does not support write request, it only has "write".

Now again you are asking, then override some parent method/class and use "write request" afterwards? Here's another problem: you can, but you would be using a different android library/bluetooth framework, a non-official one which is prone to problems OR you will have to tap right into some lower level android properties, which may or may not be legal, and usually is very, very complicated.

So here I'm trying to ask, does iOS have the same problem? Does it distinguish "write" and "write request" per ble specs well?

Parents
  • @RK I'm not sure when you started approaching this issue but it seems that you either don't have any contextual background information on this problem, or you do but no complete.

    I successfully sub-ed CCCD before, with a different softdevice (S110). Now I'm using S140, which according to Nordic staff, correctly corrected a non-BLE specification compliant behavior and as the result I'm now not able to subscribe to CCCD. And in both debug mode and sniffing, ample evidence points to the direction that A. both write types are ignored by the softdevice and B. no matter how I juggle the setWriteType method, the packets send over the air will be displayed as write no response, in my previous question, referred to in this question, screen caps were presented to demonstrate that.

    And I'm almost certain the nRF Toolbox is using a different library than the official one, (continued)

Reply
  • @RK I'm not sure when you started approaching this issue but it seems that you either don't have any contextual background information on this problem, or you do but no complete.

    I successfully sub-ed CCCD before, with a different softdevice (S110). Now I'm using S140, which according to Nordic staff, correctly corrected a non-BLE specification compliant behavior and as the result I'm now not able to subscribe to CCCD. And in both debug mode and sniffing, ample evidence points to the direction that A. both write types are ignored by the softdevice and B. no matter how I juggle the setWriteType method, the packets send over the air will be displayed as write no response, in my previous question, referred to in this question, screen caps were presented to demonstrate that.

    And I'm almost certain the nRF Toolbox is using a different library than the official one, (continued)

Children
No Data
Related