Other Parts Discussed in Thread: BLE-STACK
Hi,
I'm running into the HCI hardware error `HW_FAIL_INADEQUATE_PKT_LEN` while running the "ble5_simple_peripheral_cc2640r2lp_app" (simplelink sdk v5.30.0-3).
In this case, the example project is slightly modified in order to test the max throughput capabilities of the system. The only changes I've made were to add support for `GATT_PROP_WRITE_NO_RSP` to one of the write characteristics, so that it can support the speedier unacknowledged writes.
To replicate the failure, I simply have to dump enough data from my central device (workstation running Ubuntu 22.04) - usually I'm consistently able to hit the error state by attempting to transfer 2MBs worth of data.
The only reference to this issue I've been able to find online is this bug report/ticket where the description indicates that the error occurs upon the reception of a fragmented L2CAP PDU, whereby something breaks upon receiving a 3-byte payload.
Upon sniffing the packets during the replication of this failure, I also observe that the last packet transmitted corresponds to the transmission of a 3-byte L2CAP fragment, equal to the one mention on the bug report.
So far, everything seems to be pointing towards an HCI software/hardware issue. Are there any known workarounds?
Henrique