i am using 7 semi ESP32-S3 + EC200U-CN CAT1 module and i want to transfer the file from sd card which is connected with esp32-s3 to cloud by using ec200u-cn so give me solution how i can do this
Hi Maheshwari,
Thank you for sharing your setup details. You can follow the steps below to transfer the files using FTP
- Connect ESP32-S3 to EC200U-CN and
- Initialize SD Card on ESP32-S3
- Mount SD card
- Open the required file in read mode
- Read the file in small chunks (512/1024 bytes)
- Initialize EC200U-CN with AT commands below:
ATE0
AT+CPIN?
AT+CSQ
AT+CREG?
- Configure APN and Activate Data
AT+CGDCONT=1,“IP”,“”
AT+CGACT=1,1
- Configure FTP Parameters
AT+QFTPCFG=“contextid”,1
AT+QFTPCFG=“account”,“”,“”
- Open FTP Connection
AT+QFTPOPEN=“ftp.server.com”,21 // Replace the url with the target server
- Start File Upload
AT+QFTPPUT=“filename.bin”,1
Wait for CONNECT
-
Send File Data over UART
-
Send data chunk by chunk until file ends
End Upload: Send +++ to finish transfer
Wait for OK / response
- Close FTP Session
AT+QFTPCLOSE