Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Telit Cinterion IoT Developer Community

ZOC Script. FTP Put transfer a file. AT TCP/IP Commands

Showcase, January 14, 2016 - 10:44am, 3973 views

Please, read the article before to start

https://iot-developer.thalesgroup.com/showcase/zoc-terminal-emulator

The script transfer file to a FTP server using AT TCP/IP commands  (FTP put)

Requisites:

 -BGS2 / AGS2

 -SIM Card introduced in the SIM Card Tracer with the pin enabled and module booked in the network

----------------------------------

Edit the script with any text editor. Look at for the line:

_addressPut_ = "ftpput://user:pass@ip/test1.txt"

introduced the user, password and ip of the ftp server and the file name. User and password of the FTP server.

file = "C:\test1.txt"

Name and path of the stored file in your computer to be transferred

CALL ZocSend "AT^^SICS=1,apn,APN^M"

APN of your carrier

CALL ZocSend "AT^^SICS=1,user,""userAPN""^M"

userAPN for the user of the APN

CALL ZocSend "AT^^SICS=1,passwd,""passwordAPN""^M"

passwordAPN password of the APN

----------------------------------

Regards

ALopez

Author

Alopez's picture
Alopez