Q2686RD HTTP PUT file

Hi Everyone,

I am trying to upload a file to the http server created in the local network using NAT, with Q2686RD. But i am unable to upload the file.

Following is the Status of the module

ati9
"DWL","V10c05","","Sierra Wireless",62640,"051513 10:45","a0836b50","00010000"
"FW","FW_752_34_3.Q2687RDG","R7.52.0.201306260837.Q2686RD","Sierra Wireless",673436,"062613 08:37","89796368","001d0000"
"MODEM","1.3.36","201306260837.Q2686RD","Sierra Wireless",1713240,"062613 08:37","85a2fb97","00020000"
"OAT","v1.3.20130627140543","Extended AT Application","Sierra Wireless",1526724,"062713 14:05","994a69ab","002a0000"
 -"Developer Studio","2.3.1.201305211601-R11859"
 -"Open AT OS Package","6.52.0.201305021500"
 -"Firmware Package","7.52.0.201306260837"
 -"Internet Library Package","5.56.0.201305170830"
 -"Location Library Package","1.5.2.201305140750"
 -"Security Library Package","2.2.0.201306261000"
 -"eCall Library Package","1.2.3.201306191228"
 -"Jamming Library Package","1.0.0.201305170931"
 -"ExtendedATApplication Library Package","1.3.0.201306271404"
"ROM","800000"
"RAM","200000"
"DWLNAME","Q2686RD"

OK

Following is the commands i am using to upload the file and their replies.

AT+WIPCFG=1

OK
AT+WIPBR=1,6

OK
AT+WIPBR=2,6,11,"airtelgprs.com"

OK
AT+WIPBR=2,6,0,""

OK
AT+WIPBR=2,6,1,""

OK
AT+WIPBR=4,6,0

OK
AT+WIPCREATE=5,1,"http://122.175.3.43",80,"tagv","tagv123","User-Agent","WIPHTTP/1.1","Content-Type","text/html","Connection","Keep-Alive"

OK

+WIPREADY: 5, 1
AT+WIPOPT=5,1,1,52

+WIPOPT: 5,52,1

OK
AT+WIPOPT=5,1,2,50,1000

OK
AT+WIPOPT=5,1,2,51,1000

OK
AT+WIPFILE=5,1,2,"http://122.175.3.43/IMEI.txt","tagv","tagv123","Content-Length",8

CONNECT
somedata
OK
AT+WIPCLOSE=5,1

OK
AT+WIPBR=5,6

OK
AT+WIPBR=0,6

OK
AT+WIPCFG=0

OK

Please do intimate me regarding the changes in the command pattern or parameter. I don’t have any prior knowledge regarding HTTP.

Hiya,

First thing is that your data length is probably wrong - it looks like you haven’t counted the end of line characters (0x0A and 0x0D) - these add another two characters to the upload length.

But, if you’re not familiar with the HTTP protocol, you had better go and read up about it as it sounds that you’re a little confused about how it works…

Have a look at this URL to get started: http://jmarshall.com/easy/http/ - it’s a good overview of how HTTP works, and what you have to do to write clients (which is what you are doing) and servers.

ciao, Dave