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.

FTP over Serial Port via Telit GPRS Modem(2G)


misafirv Nov 10, 2020 08:41 PM

I have CR6 series datalogger. 

File transfer to ftp server via ethernet connection successful. The program is below.

How can I do the same with Telit GPRS (2G) modem with RS232 connection instead of ethernet connection?

Public BattV
Public PTemp_C
Public Temp_C

Public FTPResult
Public Flag
Public PingMe
Public TraceMessage


Units BattV=Volts
Units PTemp_C=Deg C
Units Temp_C=Deg C

'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,5,Sec,10)
Sample(1,BattV,FP2)
Sample(1,PTemp_C,FP2)
Average(1,Temp_C,FP2,False)
Sample(1,Temp_C,FP2)
EndTable

DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)
EndTable

'Main Program
BeginProg
'Main Scan
Scan(5,Sec,1,0)
'Default CR6 Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default CR6 Datalogger Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,50)
'Type T Thermocouple measurements 'Temp_C'
TCDiff(Temp_C,1,mv200C,U1,TypeT,PTemp_C,True,0,50,1,0)
'Call Data Tables and Store Data
CallTable Table1
CallTable Table2
NextScan

SlowSequence

Do
PPPOpen
Delay(1,15,Sec)
FTPResult=FTPClient ("1.1.1.1", "ftp_User", "ftp_pass*.", "Table1", "Table1.csv", 8, 0, 5, Sec, 1012)
Loop

EndProg


misafirv Nov 11, 2020 06:16 PM

I connected my GPRS modem to Data Logger's RS232 port. RS232 is selected in the device configuration manager program, PPP tab. IP address: 0.0.0.0. Username and password are blank. Modem Dial String: PPP and Response: set to CONNECT.

But it didn't work.
Error code: "ppp state: opening -> Failed to meet protocol." looks like.

How can I run FTP with serial port GPRS modems? What am I doing wrong?

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