Is it supported or is it planned to be supported?Unless your hardware is able to use BLE 4.2 Data Length Extension (only available on iPhone 7 and newer devices on iOS side), BLE transmissions are limited to 23 byte data packets over the air.
DLE is different than MTU. Even if you increase the MTU, actual data packets are still limited (unless you are extending them with 4.2 features). All this needs to be done on the peripheral. There is no way for your app to control any of these low level settings.
When your data is larger than what fits in an over the air packet, you must split it into smaller chunks and send in separate packets. I cannot answer how this would be done on your specific hardware, and you may want to consult the support channels for it to find out how you would do this with the hardware and possibly the firmware you are using.
If your hardware supports 4.2 DLE, and you can live with supporting iPhone 7 or later, using an extended data packet would be the best solution, as it will be future-proofing your solution.
BLE mtu and iPhone compatibility
BLE mtu and iPhone compatibility
I would like to ask about ble functionality. Its LE Data Packet Length Extension (Core BLUETOOTH SPECIFICATION Version 4.2 [Vol 6, Part B] 4.6.6 LE Data Packet Length Extension). ESP32 user require long data trasmission between esp32 and iPhone. He also got response from Apple:
-
- Posts: 79
- Joined: Tue Apr 26, 2016 5:10 am
Re: BLE mtu and iPhone compatibility
Yes the BLE data length extension is supported.
Initially it will connect at an mtu of 23.
iOS will then automatically negotiate a larger mtu. in iOS 10+ the MTU will be 185. in 9 and lower it is slightly smaller (about 150..? but i am not sure).
Initially it will connect at an mtu of 23.
iOS will then automatically negotiate a larger mtu. in iOS 10+ the MTU will be 185. in 9 and lower it is slightly smaller (about 150..? but i am not sure).
Re: BLE mtu and iPhone compatibility
I know it is supported in classic bluetooth, but i could not find any info about it in BLE documentation:
http://esp-idf.readthedocs.io/en/latest ... eir_type_t
Also i dont see any event to handle it in esp_gap_ble_api.h or esp_gatts_api.h
http://esp-idf.readthedocs.io/en/latest ... eir_type_t
Also i dont see any event to handle it in esp_gap_ble_api.h or esp_gatts_api.h
Re: BLE mtu and iPhone compatibility
Did you find any info specific to 4.2 DLE?
I suspect that DLE is working automatically on ESP32 from my experience with an android phone transferring much faster vs iphone 6.
The answer from Lucas.Hutchinson doesn't seem to acknowledge that MTU is different from DLE.
Here's a great overview:
https://punchthrough.com/pt-blog-post/m ... nsion-dle/
I suspect that DLE is working automatically on ESP32 from my experience with an android phone transferring much faster vs iphone 6.
The answer from Lucas.Hutchinson doesn't seem to acknowledge that MTU is different from DLE.
Here's a great overview:
https://punchthrough.com/pt-blog-post/m ... nsion-dle/
Who is online
Users browsing this forum: No registered users and 119 guests