I would like to send an image(JPEG) captured by a pi-zero (in a in-closed container) to an pi3 for storage and analysis. Currently I have UART via gpio set up, but so far I have only been able to send strings, is there an example somewhere of transferring large file (3 MB) to get me started?
I have a pizero in a rotating container, connected to the outside via a slip ring, another pi handles the user interface and image storage. Internet connection is not available and I can only spare two cables on the slip ring for data transmission. Data integrity and transmission speed matters in my application. Right now I'm thinking I should connect the two Pis with two wires via PPP and use TCP sockets for the actual data transfer.
I also wonder if UART is a proper protocol for my application, or is it way too slow for my application? Would socket communication via WLAN be better?
Thank you in advance!