Send file with GPRS

Platform for Telematic Applications
Post Reply
maze38
Posts: 9
Joined: Tue 29. Nov 2016, 08:45

Send file with GPRS

Post by maze38 » Tue 6. Dec 2016, 14:04

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

User avatar
U.Wilhelm
Sales & Support
Sales & Support
Posts: 1158
Joined: Fri 10. Sep 2010, 19:34

Re: Send file with GPRS

Post by U.Wilhelm » Tue 6. Dec 2016, 17:30

For that you need to implement a FTP Client into your Firmware. We do not offer such a code for this unit.
--------------------------------
PEAK-System Technik
Technical Support Team
support@peak-system.com
-------------------------------

maze38
Posts: 9
Joined: Tue 29. Nov 2016, 08:45

Re: Send file with GPRS

Post by maze38 » Fri 9. Dec 2016, 11:18

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

S.Michaelsen
Hardware Development
Hardware Development
Posts: 73
Joined: Fri 10. Sep 2010, 13:11

Re: Send file with GPRS

Post by S.Michaelsen » Fri 9. Dec 2016, 11:55

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.

maze38
Posts: 9
Joined: Tue 29. Nov 2016, 08:45

Re: Send file with GPRS

Post by maze38 » Tue 13. Dec 2016, 16:45

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

S.Michaelsen
Hardware Development
Hardware Development
Posts: 73
Joined: Fri 10. Sep 2010, 13:11

Re: Send file with GPRS

Post by S.Michaelsen » Wed 14. Dec 2016, 08:16

No, I'm sorry but I can't give you any support for your FTP issues.

Post Reply