Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

FTPClient unsent files


duncan May 12, 2017 12:37 AM

I have a CR1000 programmed to write two files to FTP every 6 hours - 10 and 12 minutes after turning on the modem. The relavant code (without actual credentials) is:

  SlowSequence
  Do
    Delay(1,10,Sec)
      FTPResult2=FTPClient ("ftp.box.com", "usr", "pw", "Table2", "FTP_Table2_",2, 10,360,Min,8)
      FTPResult=FTPClient ("ftp.box.com", "usr", "pw", "Table1", "FTP_Table1_",2, 12,360,Min,8)        
  Loop    
EndProg

Table1 is typically around 800 B in size and it always comes through. Table2 is around 1.5 kB and it comes through about 50% of the time. When Table2 does succeed, only the most recent data is sent - not any missing files.

I am assuming that file size is the issue. Mobile signal is fairly weak where the logger is deployed. Is there something I can do to increase the success rate of sending Table2? (e.g. send smaller files more often or increase Timeout in FTPClient or ?)

Also, is it expected that missing files would not be sent? When testing the logger before deployment, sending files was disrupted by removing power to the modem and these missing data were sent once power was restored. However, this was done with small files (~600 B) and good mobile signal.

thanks

      Duncan


duncan Jun 14, 2017 09:26 AM

In case anyone else encounters this issue, I solved this by sending smaller files more often (every 2 hours). Nearly all the time files come through when specified. On occasion when files fail to send at the correct time, they now get sent at some later attempt. 

Log in or register to post/reply in the forum.