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



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

Quectel Cellular Engine

Quectel Cellular Engine

ADH8060/8066 GSM/GPRS Module

OCS Training Workshop LAB14. Setup

AT Commands Examples. Examples for u-blox GSM/GPRS modules. Application Note. locate, communicate, accelerate. Abstract

SIMCom_3G_SSL_Application Note_V1.10

SIM800 Series_SSL_Application Note_V1.01

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

SIM300 FTP IMPLEMENATION. (Step by Step Approach)

Quectel Cellular Engine

Revision: 002 Date: September Porting Guide From EdSoft V3.10 to WIPSoft V2.00

SIM800 Series_IP_Application Note_V1.02

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

TCPIP Application Note for WCDMA Solution V2.0

Installation & Configuration Manuel. Socket Server. OpenAT application

EXPLORER. TFT Filter CONFIGURATION

SIM800 Series_TCPIP_Application Note_V1.00

Novatel U530 & U630 O2 Branded Datacards Installation instructions for: O2 version of Mobilink Software: Version

FTP Automation Guide

Immotec Systems, Inc. SQL Server 2005 Installation Document

5.1 Overview of Wireless Card Activation and Configuration

Overview - Using ADAMS With a Firewall

Overview - Using ADAMS With a Firewall

Computer Networks. Chapter 5 Transport Protocols

GPS/SMS/GPRS TRACKER TK103A VEHICLE CAR REALTIME TRACKING DEVICE SYSTEM

Connected Device Design Guidelines and Common AT Commands

Technical Support Information

Integrating Social Network Services with Vehicle Tracking Technologies

How To Track A Car With Gps And Gsp/Gsm/Gprs Technology

Operation Instructions

Why SSL is better than IPsec for Fully Transparent Mobile Network Access

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

Fleets Vehicle GPS Tracker TR-11E User Manual (Version 1.0)

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

Chapter 11. User Datagram Protocol (UDP)

Integrating Social Network Services with Vehicle Tracking Technologies

GPS Vehicle and personal location tracker. User manual

Talk2M ewon Internet Connection How To

Improved Digital Media Delivery with Telestream HyperLaunch

Real Time Web based Vehicle Tracking using GPS

Fleets Vehicle GPS Tracker TS20 User Manual. (Version 1.0)

SMC7004ABR Barricade Broadband Router Installation Instructions

Quectel Cellular Engine

Ethernet Interface Manual Thermal / Label Printer. Rev Metapace T-1. Metapace T-2 Metapace L-1 Metapace L-2

WIRELESS ALARM MONITORING. User Manual V1.2

Ethernet Port Quick Start Manual

F2103 GPRS DTU USER MANUAL

µtasker Document FTP Client

Rapid Assessment Key v2 Technical Overview

LESSON Networking Fundamentals. Understand TCP/IP

PerleVIEW Device Management System User s Guide

VPN Direct connection How To

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

SwiftBroadband and IP data connections

2014 GSM SHIELD COMPATIBLE WITH ARDUINO GSM SHIELD USING SIMCOMM (SIM900A)

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

NetView for z/os V6.1 Packet Trace Analysis

VisorALARM-Manager Application Quick Guide. (Ver. 1.3) Dm 380-I. V:3.0

The application of TTCN-3 in M2M Testing

CatTraQ Live 3 GPRS Tracking

GSatTrack. Fleet Broadband Tracker. User Manual April 2011 GSE. Global Satellite Engineering. : gsat.us

Network Layers. CSC358 - Introduction to Computer Networks

Print Audit Facilities Manager Technical Overview

IDD-213T User Manual. (Rev. 1.0) China Aerospace Telecommunications Limited

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

Application Layer. CMPT Application Layer 1. Required Reading: Chapter 2 of the text book. Outline of Chapter 2

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

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

TCP SYN Flood - Denial of Service Seung Jae Won University of Windsor wons@uwindsor.ca

Guideline for setting up a functional VPN

Minimal network traffic is the result of SiteAudit s design. The information below explains why network traffic is minimized.

3.1 RS-232/422/485 Pinout:PORT1-4(RJ-45) RJ-45 RS-232 RS-422 RS-485 PIN1 TXD PIN2 RXD PIN3 GND PIN4 PIN5 T PIN6 T PIN7 R+ PIN8 R-

Architecture and Data Flow Overview. BlackBerry Enterprise Service Version: Quick Reference

Technical Manual. (TLT-2H GPS/GSM Vehicle Tracker) V1.5

Firewall Port Handling in TENA Applications

Network Attached Storage. Jinfeng Yang Oct/19/2015

! encor e networks TM

4G Business Continuity Solution. 4G WiFi M2M Router NTC-140W

TCP/IP Network Connectivity and ION Meters

Integrating VoltDB with Hadoop

PART 1 CONFIGURATION 1.1 Installing Dashboard Software Dashboardxxx.exe Administration Rights Prerequisite Wizard

How To Write A Command Line On An At Command Prompt On A Microsoft Dce (Dce) (Aldo) (Dte) (I.O.A.A) (Toshiba) (For A Microt

Mini A8 Instructions. Location Inquiry /Track Inquiry/ Battery status Inquiry Electronic fence/voice Callback/ Emergency Alarm.

Teltonika FM41XX. Configurator v. 1.0

WinSALTS. The 32-bit version of the WinSALTS Program. WinSALTS Training Handout Modified for ROM II EDI Users 10 March 10, 2005 Version 5.

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

WynnYeen International (China) Limited GPS/GSM (GPRS) Vehicle Tracker Operation Instructions

(Refer Slide Time: 02:17)

GPS Vehicle Tracker USER MANUAL VT-108

USER MANUAL V5.0 VT300

How do I get to

F-SECURE MESSAGING SECURITY GATEWAY

Real Time Vehicle Tracking System Using GPS and GPRS

New OBD Smart PC Tool User Manual

2.1 Dial the SIM card number in tracker, it will hang up and reply a SMS with http link and real-time latitude and longitude automatically.

GSM / GPRS / GPS VEHICLE TRACKER XT-009

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Transcription:

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

Revision history Version Date Author Update description 1.0 20080620 Steven Create Shao 1.1 20080920 Steven Shao Added AT+SDATATSEND/SDATATREAD and support for 1460bytes per packet

Contents 1: Overview Of The TCP/UDP AT Commands... 4 2: Use of the AT commands and examples... 5 2.1 Mobile Originated GPRS session... 5 2.2 Disconnection and retransmission... 7 2.3 Error handling... 7

1: Overview of the TCP/UDP AT Commands The TCP/IP features provided by the AT commands for the SM5100B-D are intended to provide a subset of the features normally available at the socket level when using a conventional TCP/IP stack, with some simplifications and customizations based on the specific features of the SM5100B-D. The new commands allow the application writer to create and destroy UDP and TCP sockets, to control underlying GPRS PDP contexts, to transfer data to and from the module, and to interrogate IP status information about the active link. The internal TCP/IP stack allows TCP connections are limited to a maximum of 10. The socket interface is provided by a series of AT commands outlined below. AT+SDATACONF Configure the parameters of TCP/UDP connection AT+SDATASTART Start the TCP/UDP connection AT+SDATATSEND Send the TCP/UDP data(transparent, maximum length is 1460 bytes) AT+SDATASEND Send the TCP/UDP data(hex format) AT+SSTRSEND Send the TCP/UDP data(string format) AT+SDATASTATUS Query the socket status and the TCP sent/ acknowledged/received bytes AT+SDATAREAD Read the received TCP/UDP data AT+SDATATREAD Read the TCP/UDP data(transparent) AT+SDATARXMD Set the received mode(hex or string format) AT+TRT Set the TCP maximum retry times For more detailed information on the TCP/IP AT commands and their parameters, please refer to the AT commands manual for the SM5100B-D This document applies to firmware versions IDH.SC6600D-BASE4_R1.0.0011_B03 or newer.

2: Use of the AT commands and examples 2.1 Mobile Originated GPRS session System Power On: +SIND:1 (SIM INSERTED) +SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1 (SIM READY) +SIND:11 (REGISTERED TO NETWORK) +SIND:3 (CALL READY) +SIND:4 (SMS READY) -> Query and waiting for GPRS attached to network AT+CGATT? +CGATT : 1 (GPRS Attached) -> Setup PDP Context (in this example China Mobile in China) AT+CGDCONT=1, IP, cmnet -> Configure the PDP context parameters of PCO if the user and password is needed for GPRS APN AT+CGPCO=0, user, password, 1 -> Activate PDP Context AT+CGACT=1,1 -> Configure the remote host and port, we can open a TCP connection AT+SDATACONF=1, TCP, www.sina.com.cn,80 (to a remote host name) or AT+SDATACONF=1, TCP, 211.123.11.21,1234 ( to a remote IP address) -> Start TCP/UDP connecting AT+SDATASTART=1,1 -> Query the socket connecting status

AT+SDATASTATUS=1 +SOCKSTATUS: 1,0,0104,0,0,0 (0 means socket not connected, 0104 means socket is connecting) AT+SDATASTATUS=1 +SOCKSTATUS: 1,1,0102,0,0,0 (1 means socket connected) -> Start sending data AT+SDATATSEND=1,10 >1234567890 <Ctrl+Z> (data is sent to socket buffer and waiting to send) -> If necessary you can query if the data is sent successfully and acknowledged by remote host (for TCP only) AT+SDATASTATUS=1 +SOCKSTATUS: 1,1,0102,10,10,0 (total sent 10 bytes and acked 10 bytes, data is successfully sent) -> Clear the total sent and acknowledged bytes if necessary AT+SDATASTATUS=0 -> Query the total sent and acknowledged bytes AT+SDATASTATUS=1 +SOCKSTATUS: 1,1,0102,0,0,0 -> When data is received from the remote host, following URC appears +STCPD:1 (connection 1 has received data from remote host) -> Read the data AT+SDATATREAD=1 (read the data from connection 1) +SDATA: 1, 10,1234567890 (received 10 bytes from remote host, hex format) -> Close the TCP/UDP connection AT+SDATASTART=1,0 (close the connection 1) -> If the socket has been terminated by the remote host, following URC appears +STCPC:1 (connection 1 is terminated by the remote host)

2.2 Disconnection and retransmission TCP provides reliable transmission through the use of re transmission of unacknowledged data. The module behaves in the following manner to determine when this should happen. 1: If the link at some point drops out i.e. server crashes, RF coverage is lost, etc, the unit will start retransmissions. 2: The first retransmission will occur 2 seconds after initial transmission, the second 4 seconds later, the third 8 seconds, the fourth 16 seconds, and the fifth 32 seconds later, from then on they will occur every 64 seconds. 3: The socket is closed after the appropriate number of retransmissions has been reached as determined by the AT+TST command, the maximum retransmission number is 12. Obviously this does not apply to UDP as it is connectionless and unreliable. 2.3 Error handling The most possible errors during TCP/UDP session are listed following: 26 +CME ERROR:28 +CME ERROR: GPRS operation failure 27 +CME ERROR:29 +CME ERROR: GPRS send data failure +CME ERROR: 28 This means GPRS PDP context activate failure, the most possible cause is due to the wrong APN, user and password or GPRS network failure. If the APN, user and password is correct, firstly you need close the TCP/UDP connection (AT+SDATASTART=1, 0) if the connection is still active, then deactivate (AT+CGACT=0, 1) and activate PDP context (AT+CGACT=1, 1), restart the TCP/UDP connection if PDP Context is successfully activated. If it still doesn t work, you may need detach (AT+CGATT=0) and attach (AT+CGATT=1) the GPRS network. Otherwise you need use AT+CFUN to restart the module. +CME ERROR: 29 This means TCP/UDP data send failure, the most possible cause is due to the socket is disconnected. You can use AT+SDATASTATUS check the TCP connection status, if the socket is disconnected, you need restart the TCP/UDP connection. Otherwise if the socket is still connected you need check whether the length of input data is right.