String type parameters, Command lines – Synaccess Networks NP-0801DTM User Manual

Page 17

Advertising
background image

INTRODUCTION 

 

 

17 

HSPA+ AT Commands Reference Guide

 

ƒ

The response to the test command (trailing =?) may change in the future to allow the description of new 
values and functions. 

Note: Issuing the read command (trailing ?) causes the command to be executed. 

ƒ

Whether or not the equipment implements the action command (in this case issuing the corresponding 
test command ‐ trailing =? ‐ returns the OK result code), and, if subparameters are associated with the 
action, the ranges of subparameters values that are supported. 

Action commands do not store the values of any of their possible subparameters. Moreover: 

If all the subparameters of a parameter type command +CMD (or #CMD or $CMD) are optional, issuing AT+CMD=<CR> (or 
AT#CMD=<CR> or AT$CMD=<CR>) causes the OK result code to be returned and the previous values of the omitted 
subparameters to be retained. 

String Type Parameters 

A string, enclosed between quotes or not, is a valid string type parameter input. According to V.25ter space 
characters are ignored on the command line and may be used freely for formatting purposes, unless they are 
embedded in numeric or quoted string constants. Therefore a string containing a space character has to be 
enclosed between quotes to be considered a valid string type parameter. For example typing AT+COPS=1,0,"A1" is 
the same as typing AT+COPS=1,0,A1; typing AT+COPS=1,0,"A BB" is different from typing AT+COPS=1,0,A BB. 

A string is always case sensitive. 

Some commands require you to always place the input string parameters within quotes. When this is required, the 
command descriptions explicitly tell you so. 

Command Lines 

A command line is made up of three elements: the prefix, the body and the termination character. 

The command line prefix consists of the characters “AT” or “at”. To repeat the execution of the previous 
command line, use the characters “A/” or “a/” or AT#/ or at#/. 

Using parameter S3, you can select the termination character. The default is <CR>

The structures of the command line are: 

„

ATCMD1<CR> where AT is the command line prefix, CMD1 is the body of a basic command  and <CR> is the 
command line terminator character. 

The name of the command never begins with the character “+” 

„

ATCMD2=10<CR> where 10 is a subparameter. 

„

AT+CMD1;+CMD2=, ,10<CR> These are two examples of extended commands They are delimited with 
semicolon. In the second command the subparameter is omitted. 

The name of the command always begins with the character “+”. 

ƒ

+CMD1?<CR> This is a read command for checking current subparameter values. 

ƒ

+CMD1=?<CR> This is a test command for checking possible subparameter values. 

These commands might be performed in a single command line as shown below: 

ATCMD1 CMD2=10+CMD1;+CMD2=, ,10;+CMD1?;+CMD1=?<CR> 

„

It is recommended to separate the basic commands and the extended commands into different command lines.  

Advertising