Large data transfer between PC and ESP8266
Posted:
Fri May 12, 2023 1:47 pm
by Daniel Mitnisky
I have a 2.8 inch TFT display hooked up to ESP8266 over SPI. The goal is to make the display show a QR code image (back-and-white, 220x220 pixels) received from a PC via USB. The image HEX file is around 400-500 KB. Is ESP8266 capable of receiving this amount of data at once or should some "portioning" be implemented to achieve this?
Re: Large data transfer between PC and ESP8266
Posted:
Wed May 24, 2023 4:16 am
by esp8266_dude
If You use TCP (or FTP), it can receive it by once.
Re: Large data transfer between PC and ESP8266
Posted:
Wed May 24, 2023 6:49 am
by QuickFix
Daniel Mitnisky wrote:The image HEX file is around 400-500 KB.
I'm a bit confused: 220 by 220 pixels would only take 48.400 bits (a bit shy of 50kB): there must be a more optimal way to reduce your data.
You could even just
let your ESP generate the QR code on its own.
Re: Large data transfer between PC and ESP8266
Posted:
Wed May 24, 2023 6:25 pm
by davydnorris
Even smaller - a QR code is made up of black or white pixels, so use one bit per pixel.
220 x 220 / 8 is just over 6k bytes