nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Android does not use Data Length Extension for L2CAP Coc

Hello,

I'm trying to transfer data to an L2CAP CoC on a nRF52832 from iOS and Android devices.
I've configured the MTU and MPS so that the SDU fits in a single packet with extended Data Length.

On iOS, it's working as expected and I'm getting a good throughput (65 kB/s).

On Android, instead, the L2CAP message is fragmented at the Link Layer and the throughput is low. I can see that the extended Data Length is negotiated correctly to 251 bytes and I've seen the phone sending long packets in ATT during previous tests, so I know it's able to do it. The device is a Pixel 4.

Is there a reason for Android to not use long packets on L2CAP CoC? I can't think of any.

Parents Reply
  • Hello Sigurd,

    I don't currently have another device running Android 10 or higher (needed for L2CAP CoC APIs).

    I'm attaching the logs.
    Unfortunately, nRF sniffer drops basically all packets on iOS with the optimised parameters (MTU=240). I'm attaching a second iOS log with lower MTU=220 which is logged mostly fine, so you can get a better idea. Android would have the same fragmentation issue on MTU=220.

Children
Related