Hello
I have a raven GPRS modem with Private and dinamic IP connected to a CR800 logger, i want to send the table data to a FTP server every hour, could you help me with this?
I write a basic code in base of a code taked from this post:
http://www.campbellsci.com/forum/messages.cfm?threadid=D3078AB7-BA7E-8090-CBC7178F69C8CF44
The code is below, you think this could work??
Program:
Public PTemp, batt_volt
Public FTPsuccess As Boolean
Public OutStat As Boolean
Public LastFileName As String * 31
'Define Data Tables
DataTable (Test,1,-1)
DataInterval (0,1,Hr,10)
TableFile ("USR:TEC_Datos.txt",8,-1,0,1,Hr,OutStat,LastFileName)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable
'Main Program
BeginProg
Scan (1,Min,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
CallTable Test
NextScan
SlowSequence
If IfTime(5,60,min)
SemaphoreGet (1) 'lock file resource
FTPsuccess= FTPClient("192.168.2.200","user","password","USR:TEC_Datos.txt","Campbellsci/Datos_test.txt",0)
SemaphoreRelease (1) 'release file resource
EndIf
EndSequence
EndProg
Thank you in advance
Best Regards
At the moment I have no success in sending files via FTP, check several posts and change some details in the program, but nothing yet.
1. - As I can verify that the modem is properly configured Raven XT? (the sim card that I have installed in the modem has a private IP and dynamic IP)
2.-In the logger CR800, what changes should I do with the dev config?, For example on the tab "PPP" or "Net services"
could give me some help?
In order for the datalogger to do FTP you have to have the Raven setup to use a PPP connection between it and the Raven modem. The instructions on how to do this are shown in the Raven manual at https://s.campbellsci.com/documents/us/manuals/ravenxtv.pdf in Appendix B.
The settings that need to be set in the datalogger are shown on page B-2 of the same manual.
Let me know if this does not do the trick.
-Gary