Page 1 of 1

Send file with GPRS

Posted: Tue 6. Dec 2016, 14:04
by maze38
Hi,

I wrote a file on the SD card and I want to send it on a ftp server or something else via GPRS.
Your example (serverComm.c) send CAN values or data store in structure but not an entire file.
Is it possible ? if yes, How can I do that ?

Thanks

Best regards.

Stephane

Re: Send file with GPRS

Posted: Tue 6. Dec 2016, 17:30
by PEAK-Support
For that you need to implement a FTP Client into your Firmware. We do not offer such a code for this unit.

Re: Send file with GPRS

Posted: Fri 9. Dec 2016, 11:18
by maze38
Thanks for reply.

I try to code my ftp client, and I always have a CME ERROR 812 error.
Then I try your serverComm.c example and I have the same error ??

WIND: 3
AT+WHWV
Hardware Version 2..00

AT+CFUN=1
OK
WIND : 3
CREG : 0
WIND : 1
CREG : 2
WIND : 4
WIND : 7
AT+WIPCFG=1
OK
AT+WIPBR=1,6
OK
AT+WIPBR=2,6,11,"xxxxxx"
OK
AT+WIPBR=2,6,0,"xxxxxx"
OK
AT+WIPBR=2,6,1,"xxxxxx"
OK
AT+WIPBR=4,6,0
CME ERROR 812

I don't know where is the probleme.

I find on sierra wireless forum that someone solve the problem by update the CPU WMP50 firmware !

Thanks

Stephane

Re: Send file with GPRS

Posted: Fri 9. Dec 2016, 11:55
by S.Michaelsen
Well, as you may read in the WIPAT command user guide the CME ERROR 812 means "bearer connection failure : GPRS network failure". So it looks rather like there is an problem with your network connection then a problem with the WMP50.
You may for example enable the tunneling of the modem data to the external UART to communicate directly with the modem to gather further information about the problem.

Re: Send file with GPRS

Posted: Tue 13. Dec 2016, 16:45
by maze38
Ok,

I find the problem, in fact data into the command AT+WIPBR=2,6,... was incorrect.
Now I have a connection to the server but I have a problem when I send a file

AT+WIPFILE=4,1,2,"./test.txt"
CONNECT

And nothing else during long time and then

+CME ERROR 841.

I try to upload a file from the ftp server :

AT+WIPFILE=4,1,1,"./test1.txt"
CONNECT
aazeertyuiop
qsdfghjklm
wxcvbn,;:!
123<
456
789
OK

But no file on the SD Card ?!?!

Do you have an idea ?

Thanks
Regards

Re: Send file with GPRS

Posted: Wed 14. Dec 2016, 08:16
by S.Michaelsen
No, I'm sorry but I can't give you any support for your FTP issues.