cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble Sending Raw Image Data over UART to ESP32 with AT Commands

Aldrin
Associate II

Hi everyone,

I'm working on an embedded project involving an STM32G0B0 MCU and an ESP32-WROOM module (using AT firmware v3.4.0.0). My goal is to send a 100x100 RGB565 image (20,000 bytes) from the STM32 to another ESP32 device connected to another stm32 via TCP using AT commands.

Setup:
STM32G0B0VET6 → ESP32 (UART4 @ 115200 baud)

ESP32 connected to Wi-Fi and using TCP mode

Using AT+CIPSEND=<id>,<len>

But I'm not able to transfer the image, while searching the internet i couldn't find any refence of someone doing this, 
so i just need to know if this is even possible and if so how to do it.
Thanks.

2 REPLIES 2
TDK
Guru

Certainly there are no issues with the STM32G0 sending UART data. The content is whatever you want it to be. Whether or not someone has done this particular application seems immaterial.

Documentation suggests AT+CIPSEND cannot send more than 8192 bytes.

TDK_0-1746803564508.png

 

If you feel a post has answered your question, please click "Accept as Solution".

>>But I'm not able to transfer the image, while searching the internet i couldn't find any refence of someone doing this, so i just need to know if this is even possible and if so how to do it.

Pretend it's not an image, and that it's just arbitrary binary data? Look for more general examples, perhaps GNSS NMEA data stream, or files.

Look at what AT+CIPSENDL permits in longer form, or perhaps come up with a protocol where you split the 20KB into smaller pieces that you reassemble at your Socket Listener

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..