SIM300 FTP IMPLEMENATION. (Step by Step Approach)



Similar documents
Quectel Cellular Engine

Quectel Cellular Engine

TCPIP Application Note for WCDMA Solution V2.0

FTP protocol (File Transfer Protocol)

Immotec Systems, Inc. SQL Server 2005 Installation Document

µtasker Document FTP Client

GSM. Quectel Cellular Engine. HTTP Service AT Commands GSM_HTTP_ATC_V1.2

File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

ichip FTP Client Theory of Operation Version 1.32

IIS, FTP Server and Windows

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

APPLICATION NOTE. CC5MPX Digital Camera and IPn3Gb Cellular Modem 10/14. App. Note Code: 3T-Z

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Using AT commands to control TCP/IP stack on SM5100B-D modules

F-SECURE MESSAGING SECURITY GATEWAY

TECHNICAL NOTE TNOI27

File Transfer And Access (FTP, TFTP, NFS) Chapter 25 By: Sang Oh Spencer Kam Atsuya Takagi

Configuring the WT-4 for ftp (Ad-hoc Mode)

Administrasi dan Manajemen Jaringan 2. File Transfer Protocol (FTP)

SITRANS RD500 Configuring the RD500 with PSTN or GSM modems and Windows-based servers and clients for communication Objective:

RMCS Installation Guide

EXTENDED FILE SYSTEM FOR FMD AND NANO-10 PLC

Lab Configure and Test Advanced Protocol Handling on the Cisco PIX Security Appliance

How to put the DVR online

Device Log Export ENGLISH

EXPLORER. TFT Filter CONFIGURATION

Setting Up Scan to SMB on TaskALFA series MFP s.

IMF Tune Quarantine & Reporting Running SQL behind a Firewall. WinDeveloper Software Ltd.

Quectel Cellular Engine

This sequence diagram was generated with EventStudio System Designer (

TICO-EN. TiXML-Console TICO. User Manual V

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

CatTraQ Live 3 GPRS Tracking

EXTENDED FILE SYSTEM FOR F-SERIES PLC

FILE TRANSFER PROTOCOL INTRODUCTION TO FTP, THE INTERNET'S STANDARD FILE TRANSFER PROTOCOL

1 Getting Started. Before you can connect to a network

If you examine a typical data exchange on the command connection between an FTP client and server, it would probably look something like this:

Upgrade your Software

Volume SYSLOG JUNCTION. User s Guide. User s Guide

TSX ETZ Configuration of your computer for TSX ETZ direct connection by serial link. Eng V1.0

Updating MNS-BB CUSTOMER SUPPORT INFORMATION PK012906

F-Secure Messaging Security Gateway. Deployment Guide

HOW TO USE THE File Transfer Protocol SERVER ftp.architekturaibiznes.com.pl

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

How to use FTP Commander

Using Internet or Windows Explorer to Upload Your Site

TP-LINK TD-W8901G. Wireless Modem Router. Advanced Troubleshooting Guide

Quick Scan Features Setup Guide

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

1. Introduction What is Axis Camera Station? What is Viewer for Axis Camera Station? AXIS Camera Station Service Control 5

1. The Choose Setup Language option opens where you select a corresponding language. Click OK.

System1200 Using NTRIP via Internet

WWA FTP/SFTP CONNECTION GUIDE KNOW HOW TO CONNECT TO WWA USING FTP/SFTP

Setting Up Your FTP Server

Georgia State Longitudinal Data System

Introduction. How does FTP work?

Software installation and configuration IEC-line series

Chapter7 Setting the Receiving PC for Direct Upload. Setting the Receiving PC for Direct Upload For Windows For Macintosh...

Follow these steps to prepare the module and evaluation board for testing.

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. G.Bianchi, G.Neglia, V.Mancuso

HP Security Modules. Software Upgrade Guide. Part number: Document version: 6PW

Setup Instructions for Secure Hummingbird FTP

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

File Transfer Examples. Running commands on other computers and transferring files between computers

List of FTP commands for the Microsoft command-line FTP client

OCS Training Workshop LAB14. Setup

Setting up and creating a Local Area Network (LAN) within Windows XP by Buzzons

Exploring the world of Canon EOS photography. EOSmagazineQ. from July-September Wireless world Communication without cables

While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied.

How to setup FTP and Secure FTP for XD Series

SIM800 Series_IP_Application Note_V1.02

LifeSize Video Communications Systems Administrator Guide

SIM800 Series_SSL_Application Note_V1.01

IP Phone Configuration and Troubleshooting Guide

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

FTP e TFTP. File transfer protocols PSA1

Configuring the WT-4 for ftp (Infrastructure Mode)

How to publish your NAS on the internet ThecusOS 6

Administrator's Guide

WS_FTP Server. User s Guide. Software Version 3.1. Ipswitch, Inc.

Installation & Configuration Manuel. Socket Server. OpenAT application

Server Setup. Basic Settings

Guideline for setting up a functional VPN

Step-by-Step Guide for Creating and Testing Connection Manager Profiles in a Test Lab

Notification messages

IP SERIAL DEVICE SERVER

- Basic Router Security -

2010 Ing. Punzenberger COPA-DATA GmbH. All rights reserved.

Configuring Web services

Windows Based FTP Server with Encryption and. other Advanced Features.

Tera Term Telnet. Introduction

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Nokia E61i Configuring connection settings

Configuring the WT-4 for ftp (Ad-hoc Mode)

Canon WFT-E1 (A) Wireless File Transmitter. Network Support Guide

How to Remotely View Security Cameras Using the Internet

How to setup Mobility Extension on the 2N OfficeRoute and 2N VoiceBlue Enterprise

Transcription:

SIM300 FTP IMPLEMENATION (Step by Step Approach) 1. Introduction to FTP Implementation: My task was to regularly write some binary data to a file located on a remote server. Server «strange», i.e. to establish that there is, moreover, that there are already - you can not. For my reasons, FTP is suitable for this task, as well as possible. FTP - FILE TRANSFER PROTOCOL - is described in detail in http://www.rfc-editor.org/rfc/rfc959.txt In the same way, you can find a description and HTTP, etc. Here I will only do that for me has proved important, and what had to deal. The basic idea is that FTP uses two connections - Control Connection and Data Connection. The first one is for transmission of commands and responses encoded ASCII, and there is throughout a conversation exchange. A second set and closed as needed and are intended strictly for data transmission, which can be both text and binary. Control Connection initiates a client - in this case the SIM300 modem. The second connection may initiate any of the parties. In our case, this will make the remote FTP-server (acting as a client), as well as the SIM300 at one time, there can be only one connection as a client and one - as a server (see the description of the command AT + IPCCON). How is the connection you want to transfer data, you can choose the command AT + IPCCON. ( Choose Conenction)

2. AT Commands for the FTP Implementation Below I give an example of data in the file, which I did, SIM300 connect to COM1, all the commands typed into Hyperterminal. How to configure APN, I do not give, but write your configuration: at + cipscont? SHOW APPTCPIP CONTEXT + CDNSORIP: 0 + CIPSPRT: 1 + CIPHEAD: 0 + CIPFLP: 1 + CIPSRIP: 0 + CIPCSGP: 1 Gprs Config APN: www.umc.ua Gprs Config UserId: Gprs Config Password: Gprs Config inactivitytimeout: 0 + CIPDPDP: 1 Detect PDP Inerval: 10 Detect PDP Timer: 3 App Tcpip Mode: 0 So, firstly check the registration on the network, and the fact that we have the GPRS: at + creg? + CREG: 0,1 at + cgreg? + CGREG: 0,1 at + cgatt? + CGATT: 1 Now a number of commands, without which the TCP / IP does not work: at + cstt at + ciicr at + cifsr

88.214.93.220 The last command returns this IP-address. It will change with the next register in the network. Now the fun part. Check the current port numbers: at + clport? TCP: 2020 UDP: 3030 Start the server: at + cipserver SERVER Checking if desired that it works: at + cipserver? + CIPSERVER: 1 Important: if you first install the TCP-connection as a client, the server can not run until you change the port command AT + CLPORT. So, we have the server running, it waits for someone to open the connection to port 2020. That would be Data Connection. Out of curiosity can type in your browser (putting your IP!) http:// 88.214.93.220:2020 But if you want to continue the experiments with the FTP, so the connection should be closed. Now we will connect to a remote FTP-server. But we can not do this until you change the port - it is we have a busy server. at + clport = "TCP", "2021" at + clport? TCP: 2021 UDP: 3030 Port shifts, it is now possible to access FTP-server. If you know only the name of the server, you need to get its IP-address via the DNS (this is not considered). Port to access

the FTP-server standard - 21. at + cipstart = "tcp", "70.84.17.228", "21" CONNECT 220---------- Welcome to Pure-FTPd [TLS] ---------- 220-You are user number 5 of 30 allowed. 220-Local time is now 17:59. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 10 minutes of inactivity. As we can see, the server is answered (you can try - a real address). Now he needs to say something in 10 minutes, otherwise it closes the connection. This command will send the dialed line FTP-server > We need to write on the server - for this command USER: user vyy There is an important point. For the FTP server, the end of the command is a sequence of characters <CR> <LF>, which correspond to the codes # 13, # 10. When you click <ENTER> in Hyperterminal, it forms the only <CR>. To add <LF>, you need to, keeping <ALT>, recruited additional keyboard «010». You'll notice that the cursor down one line down (<LF> - is «line»). Now, to send a message, you press CTRL + Z. So you need to do each time I send commands FTP-server. There are other ways of sending a message (see AT + CIPSEND). As a result, we get: > User vyy SEND 331 User vyy. Password required We asked to have the password for this command PASS: > Pass mypass SEND 230-User vyy has group access to: vyy 230. Current restricted directory is /

We are authorized, we are in the root directory. We can create the directory TEST command MKD. When dialing command register does not matter, but in the file name and directories - no. > Mkd TEST SEND 257 "TEST": The directory was successfully created Now you have to enter into this directory (the command CWD): > Cwd TEST SEND 250. Current directory is / TEST Now you have to tell the server that he set up Data Connection, where it will be necessary. For this PORT command must specify IP-address and port with which the FTP-server must set the Data Connection. > Port 88,214,93,220,7,228 SEND 200 PORT command successful Note: IP Address, we obtain the command AT + CIFSR. But in the PORT command of the addresses are separated by a comma, not point. The port number is transmitted in the form of two numbers (senior and junior bytes) - 7 * 256 +228 = 2020 - this is our port, where we start the server. You can now begin to transfer data. I enjoyed using APPE (append). If the file is there - it adds data to it, if not - create a file. There are other teams. In addition, it is necessary to choose the format of data transmission (transfer mode). This will depend, as the end record in the file. I still used the transfer mode by default. > Appe file.txt SEND 150 Connecting to port 2020 REMOTE IP: 70.84.17.228

So, Data Connection is established. You can now send data. But for this we must switch to connect the server: at + cipccon = 2 Transmits data > Text for file 12345 SEND Do not forget to send you press CTRL + Z. <Enter> Here, you can not recruit as These data are in the file, not in the command FTP-server. To send a command, not data, we can go back to the Control Connection: at + cipccon = 1 And pass the FTP-server command ABOR (interrupt command APPE): > ABOR SEND CLOSED CLOSED As we can see - it's two CLOSED - that is, shut down both the connection and Control, and Data. Why - do not know yet. If you want to continue - we have to re-establish the connection: at + cipstart = "tcp", "70.84.17.228", "21" CONNECT 220---------- Welcome to Pure-FTPd [TLS] ---------- 220-You are user number 1 of 30 allowed. 220-Local time is now 18:41. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 10 minutes of inactivity. If you go to the FTP-server through a browser - will see a folder TEST and file file.txt. Regarding the reading of files from FTP-server - it works, instead of commands APPE file.txt type "RETR file.txt", or "LIST" to read the directory. There is however one

complication. When reading the file we will go and have the data from this file (on port 2020), and a message from the FTP-server (port 2021). But the modem will send them via COM-port mixed, and you'll see them on screen. Obviously, it is necessary to command AT + CIPHEAD allow the IP-headers, to distinguish the source of the data came. But I have not yet tried. If you find inaccuracies or would like to supplement - will be grateful. E-mail: vyy@mail.ru Forum: http://electronix.ru/forum/index.php?showtopic=34386