Image Transfer through FTP


#1

Hi,

I have connected Wavecom (Q4 New series ) modem and camera module to processor,
I need to send the Image captured by the camera to FTP server.
The image is stored in Flash memory as JPG format,
I do the following procedure to send textfile thro FTP
I will send below AT commands to the wavecom modem from the processor,

at+wipcfg=1
at+wipbr=1,6     
at+wipbr=2,6,11,"APN"   
at+wipbr=2,6,0,""   
at+wipbr=2,6,1,""   
at+wipbr=4,6,0   
at+wipcreate=4,1,"IP",21,"username","pw"
OK
at+wipfile=4,1,2,"./my.txt"
CONNECT
//open the text file
//send line by line
+++

But i dont know how to transfer an image file :exclamation: ,
I can send the hex values of JPG image as a text file to server :bulb: ,
In that case file size will be very big :exclamation: ,

Is it possible to transfer an Image(jpg/bmp) using wavecom Q24 series modem :question:
It will be helpful if some one suggest a solution to this issue,

Thanks in advance ,
Arvin


#2

Hiya,

Yep, You have described the way to do it - convert the image to text (using binhex or uuencode or similar) and then upload the file.

You could also try sending the file as pure binary - but you will have to escape any DLE and ETX characters in the binary data. Read the section on AT+WIPFILE in the WIP AT Commands guide for more info on how to escape these characters.

ciao, Dave


#3

Thanks Dave,
I will try solution and get back,
Regards,
Arvin


#4

In my case “connect” is not coming
always error


#5

So take a look at the commands shown here, and the ones you’re using, and spot what’s different!

viewtopic.php?f=7&t=5139#p20867