You are reading a single comment by @erikboto and its replies.
Click here to read the full conversation.
-
Found this comment at Internet / Transferring files:
Note: by default .pipe will use a relatively small chunk size (the
amount of data read and written in one go). Replacing f.pipe(res) with
f.pipe(res, {chunkSize:512}); will drastically increase file transfer
speeds as it better matches the block size of SD cards.
I'm using a puck.js v2 + esp8266 (ESP-01) module on Serial1 to serve files stored on an SD-card.
While I understand that this will never be a super fast file transfer method, I wonder what kind of speed could be expected? I'm currently getting between 600-700 bytes/s, and increasing the UART speed from 115200->460800 didn't really make a difference so I suspect that the UART is not the bottleneck.
Example code: