UsbSerial icon indicating copy to clipboard operation
UsbSerial copied to clipboard

write large data problem ~15kB

Open bronek999 opened this issue 11 months ago • 0 comments

I have old project with STM32F10x USB CDC , it is 100% working with felHR85/USBSerial. Async communication no problem. Now I have ARM CortexM0 project (based on YICHIP YC3121) and USB works only with small packets.

Tried async and sync communication, Android sent 15kB, valid return code of connection.bulkTransfer(..... But device receive only 2kB.

10 hours lost, and solution is set MAX_BULK_BUFFER to 64 bytes.

Why there is no option (without manual package import and rewriting source) modify bulkTransfer packet size ?

bronek999 avatar Jan 28 '25 22:01 bronek999