Any way to transfer image files between master and slave esp32 chips using SPI?
Posted: Tue Nov 26, 2024 12:25 am
I’m using SPI slave example which allows for data transfer between a master and slave over SPI, utilizing a GPIO for handshake between master and slave. Is there a way to transfer an image file using this protocol? This is the approach I was thinking of, but appreciate some feedback:
1. Master sends small amount of file data to slave
2. Slave saves received data to non spi buffer and signals to master to send more. This process repeats till slave has received all data from the image file.
3. Once master has transmitted all the data to slave, slave can either save the buffer to a spiffs file or so something else with the buffer.
Alternatively, what’s the best approach to transfer an image from one esp32 chip to an esp32-s3 chip over spi? A library perhaps?
1. Master sends small amount of file data to slave
2. Slave saves received data to non spi buffer and signals to master to send more. This process repeats till slave has received all data from the image file.
3. Once master has transmitted all the data to slave, slave can either save the buffer to a spiffs file or so something else with the buffer.
Alternatively, what’s the best approach to transfer an image from one esp32 chip to an esp32-s3 chip over spi? A library perhaps?