• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BLE Write Command while Write Request is pending
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BLE Write Command while Write Request is pending


  • Subject: Re: BLE Write Command while Write Request is pending
  • From: András Kövi <email@hidden>
  • Date: Mon, 03 Feb 2014 15:35:03 +0100

You use the CBCharacteristicWriteWithResponse flag. It blocks all communication until the server sends some response. This is probably a consequence of the way the API is designed: all requests must be responded inside the appropriate callback on the peripheral manager side. There is no way to defer processing or send response later.

Actually, this is something that may require some adjustment on the API side as there are cases when the response is ignored by the framework which causes disconnection. Also, your use case is clearly not supported currently.

Regards,
Andras


2014-02-03 Walter Stephan <email@hidden>:
Hi all,

The Bluetooth specification says:

Version 4.0, Vol 3, Part F, section 3.3.2:

"It is possible for a server to receive a request and then a command before responding to the original request. The flow control of requests is not affected by the transmission of commands."

We are trying to use this like so:
The iOS app is acting as a GATT client. We first send a Write Request (CBCharacteristicWriteWithResponse) and then send one or several Write Commands (CBCharacteristicWriteWithoutResponse) before the GATT server sends either a Write Response or an Error Response.

What we are seeing is that iOS seems to queue up the Write Commands and it only puts them on the air after it got a response.

Has anyone encountered the same problem? Is there something we can do about it, or does iOS simply not support this?

Best regards,
Stephan Walter
Embedded Software Engineer

Swissphone Wireless AG
Faelmisstrasse 21
Postfach 81
CH-8833 Samstagern
Tel: +41 44 786 77 52
Fax: +41 44 786 77 71
email@hidden
www.swissphone.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: BLE Write Command while Write Request is pending
      • From: Etan Kissling <email@hidden>
References: 
 >BLE Write Command while Write Request is pending (From: Walter Stephan <email@hidden>)

  • Prev by Date: BLE Write Command while Write Request is pending
  • Next by Date: Slowness / Lag in receiving notifications through peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
  • Previous by thread: BLE Write Command while Write Request is pending
  • Next by thread: Re: BLE Write Command while Write Request is pending
  • Index(es):
    • Date
    • Thread