Actions
Bug #4331
closedsimtrace2 firmware fails to zend zero-length packet on IN endpoint if transfer size == wMaxPacketSize
Start date:
12/15/2019
Due date:
% Done:
100%
Spec Reference:
Description
wMaxPacketSize for full-speed devices such as the SAM3S devices as per the USB specification is 64.
Similar to what's known from DFU transfers on control transfers, we also need to send zero-length packets on bulk endpoints whenever the transfer size is exactly a multiple of the wMaxPacketSize. See USB 2.0 Specification Section 5.8.3 Bulk Transfer Packet Size constraints.
This is not implemented in the simtrace2 firmware and I just hit this reliably when a 50 byte APDU payload was transferred (which tother with our headers added up to 64 bytes).
Related issues
Updated by laforge over 4 years ago
- % Done changed from 0 to 80
fix submitted in https://gerrit.osmocom.org/c/simtrace2/+/16611
Updated by laforge over 4 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
patch merged.
Updated by laforge over 4 years ago
- Related to Bug #4335: Unexpected/malformed data from SIM applet causes simtrace2-sniff to stop until simtrace2 board is reset added
Actions