AT Commands  

To configure and operate your modem, ‘Attention Codes’ (known as AT commands) are required. AT Commands are the language your computer uses to control your modem.

AT

Description

A

Answers an incoming call on the B channel

A/

Repeat last command

$B

Set Baud Rate (The available speed steps are 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 bps).  

The default is 0 (Autobaud). Used to fix the Baud Rate to a specific speed or to allow Auto baud. E.g. AT$B0 = Sets Auto baud, AT$B9600 = Fix Baud Rate at 9600  

When using fixed baud rate AT commands at 9600 baud will still be accepted.

&C

Carrier Detect (CD) control

AT&C0 forces carrier detect on at all times

AT&C1 (default) follows the state of carrier detect on the remote host system.  Is raised after connection.

AT&C2 carrier detect drops temporarily after disconnection, but remains on at all other times.

D

Dial a remote device.  e.g.  ATD6173344 5566

Non-numerical characters {T P * # <space>,} are ignored.

ATDT<number>, ATDP<number>, ATD<number>

D 1831 [Directory number ]  , Restrict the presentation of the CLI on this call, put the Directory number in the setup for billing.

D 1832 [directory number ]  , Allow the presentation of the CLI on this call, put the Directory number in the setup for billing

&D

Data Terminal Ready (DTR) Control

AT&D0 Ignore DTR from the Terminal.

AT&D1 AETA will enter command state whenever DTR goes high to low.

AT&D2 (default) Hang up any current call and prepare to accept commands from the terminal.

E

Echo

ATE0 Echo off disables reflecting AT command characters back to the terminal.

ATE1 (default) Echo on.  Any received AT command character is sent back to the terminal.

&F 

&F1

Factory Default

AT&F Restores all settings back to factory default.  This command only affects the AT commands and S registers associated with the port this is issued on.  It has no effect on AT* commands or on other ports on the AETA.  

AT&F1 Restores all settings back to factory default.  This command affects AT and AT* commands and S registers.  This command clears all incoming data phone numbers and clears all Ethernet and PPP settings.

H

Hang Up

ATH Hang up on the current data call.

I

Information

ATI return the identification information of the AETA

ATI9 returns the plug and play identifier

L

Used to change Speaker volume. Command is accepted, but has no effect.

M

Used to change Speaker Mode. Command is accepted, but has no effect.

O

Go On-Line

ATO return from command state to the on-line data transfer state.

P

Select pulse dialling. Command is accepted, but has no effect.

Q

Quiet Mode

ATQ0 (default) Enable result codes output to the terminal.

ATQ1 Disables result codes to the terminal.

ATQ2 Disable result code in answer mode only (This command may not be supported in the future)..

\Q

Flow Control

AT\Q0 disables flow control

AT\Q1 enables bi-directional XON/XOFF software flow control

AT\Q2 (default) enable unidirectional RTS/CTS hardware flow control

AT\Q3 enables bi-directional RTS/CTS hardware flow control

%R

Read all S registers

AT%R Read and display all the S registers

&S

DSR Control

Control the state of DSR line.

AT&S0 DSR always active.

AT&S1 DSR is active when connection exists.

Sn?

Read S register value

e.g.  ATS51?     Retrieves the telephone number

Sn=

Write S register value

e.g.  ATS51=6173344 5566

T

Select Tone Dialling. Command is accepted, but has no effect.

\T

Idle Timeout

Time before the link will hang up the line if no data on the connection.

AT\T2 sets up the timer to hang up after 2 minutes idle time

AT\T0 disables the idle timer so it will not cause a hang up

Idle Timeout can be set in minutes with valid values of 0 to 255.

V

Result code format

ATV0 All results returned in short form

ATV1 (default) results returned in long form

%V

AETA version number can only be read.

AT%V displays the version number of the software in the AETA

&V

Display current configuration

Shows all the current parameters

&W

Save current configuration

AT&W This will retain the parameters even if the AETA is turned off

X

X<value> Description

ATX0 CONNECT result code is given upon entering online data state. Dial tone and busy detection are disabled.

ATX1 CONNECT <text> result code is given upon entering online data state. Dial tone and busy detection are disabled.

ATX2 CONNECT <text> result code is given upon entering online data state. Dial tone detection is enabled, and busy detection is disabled.

ATX3 CONNECT <text> result code is given upon entering online data state. Dial tone detection is disabled, and busy detection is enabled.

ATX4 CONNECT <text> result code is given upon entering online data state. Dial tone and busy detection are both enabled.

Z

Reset

ATZ resets the AETA without changing the configuration.  Current calls would be lost.

+++

Enter Command Mode

+++ Must be a half second of no data activity before and after “+++”.

+GMI

Request Manufactures Identification

+GMM

Request Model Identification

+GMR

Request Revision Identification

+GSN

Read the AETA serial number

+GCAP

Request complete Capabilities list

*AnCm=b

Call waiting activate or deactivate  (n = Phone port (1 or 2), m = PN/Msn location (0,1,2,3), b = active (1) or deactivate (0)).

For example AT*A1C0=1   selects Call waiting for phone port 1, with phone number in MSN number 0 (PN) and activates it.  

*AnFm=b

Local call forward on busy (n = Phone port (1 or 2), m = PN/Msn location (0,1,2,3), b = active (1) or deactivate (0)).

For example AT*A1F2=1 selects local call forward for phone port 1, with phone number in MSN number 2 and activates it.

*AnMm=phone number

Directory number for each PN/Msn on each port. (n = Phone port (1 or 2), m = PN/Msn location (0,1,2,3), MSN Phone number to use)

For example to set the phone number for phone port 2, MSN 0 (PN) and the MSN Phone Number is 07 3555 1234.  AT*A2M0=0735551234.

*AnPm=b

Activate Calling Line Identification Presentation Analog (CLIPA).   (n = Phone port (1 or 2), m = PN/MSN location (0,1,2,3), b = activate (1) or deactivate (0)).

I.E. AT*A2P3=1 will activate CLIPA on phone port 2, for MSN location 3.

*B0= b

Activate local call pickup (b = Activate (1) Deactivate (0)) AT*B0=1

*D0 = phone number

Data Port Directory number for incoming calls to the Serial or USB port. To receive incoming data calls to this data port the port must be programmed with a valid phone number or a #. See Configuring your data port for incoming calls for more information.  This port is presented with all incoming data calls by default.

*D1 = phone number

Incoming number for PPP sessions that are destined for the Ethernet Port. To receive incoming data calls to this data port the port must be programmed with a valid phone number or a #. See Configuring your data port for incoming calls for more information.

*E0 = "IP address"

Ethernet IP Address in dotted decimal.   
AT*E0="172.168.0.1"

*E1 = "IP subnet Mask"

Ethernet Subnet Mask  
AT*E1="255.255.255.0"

*E2 = Idle time out in seconds

This command sets the length of time the Ethernet port can remain idle before the dial-up PPP connection to the ISP is disconnected (in seconds).  

e.g. AT*E2 = 120  equals 2 minutes

*E3 This command selects the mode of operation for the Network Address Translation (NAT).  

AT*E3 = 0  Disabled

AT*E3 = 1  Static

AT*E3 = 2  (default) Dynamic

May not be fully implemented in all version.

*P0=phone number

PPP Dial-Up Phone Number Used for Ethernet PPP sessions only

*P1="UserName"

PPP Dial-Up Username Used for Ethernet PPP sessions only

*P2="Password"

PPP Dial-Up Password Used for Ethernet PPP sessions only

*P3=0 or 1

PPP Enable Multilink

AT*P3=0 disable Multilink,   AT*P3=1 enable Multilink.

*P4=threshold

PPP Multilink Bring-Link-Up Threshold.  Threshold is entered as a percentage of the current link capacity. The valid range is 50% to 100%, with a default value of 70%.

*P5=threshold

PPP Multilink Bring-Link-Down Threshold.  Theshold is entered as a percentage of the current link capacity. The valid range is 0% to 49%, with a default value of 30%.

*P6=Interval

PPP Multilink Threshold Interval. This is the interval in seconds over which the two Thresholds above are measured.

AT*N(Row Number 01-20) = “<External IP Address>:<External Port>-<Internal IP Address>:<Internal Port>-<Protocol Number>”

Static NAT table Entries

AT*N(Row Number 01-20)= “<External IP Address>:<External Port>-<Internal IP Address>:<Internal Port>-<Protocol Number>”

AT*N(Row Number)?

              Response is that row of the table.

  

The AETA will use the static NAT translation table while operating in both static NAT mode (AT*E3 = 1) or dynamic NAT mode (AT*E3 = 2).

 

External IP Address: The packets source IP address as seen by the network connected to the ISDN PPP link. This is usually a real (globally unique) IP address. 

External Port: The source port address of packets as seen by the network connected to the ISDN PPP link.

Internal IP Address: Destination address of mapped IP packets destined for the LAN.     

Internal Port: Destination port of mapped IP packets destined for the LAN.

Protocol Number: The protocol that this static NAT rule will use. Possible values are:  0 Will match all protocol types, 1 ICMP, 6 TCP and 17 UDP.

Note: The Dynamic and Static NAT rules use the same table space. Adding a Static NAT rule has the potential to overwrite an existing Dynamic NAT rule.  No warning will be given.

May not be implemented in all versions. 

AT*S

 

Change from USB to serial port

AT*S0 Automatic setting (default)

AT*S1 setting port to serial

AT*S2 setting port to USB

AT*S? will return the current setting.

When both the USB and serial (DB9) ports are in AT command mode (controlled from the NMS) then either can be used dependent on the above settings. The default (AT*S0) setting is to have the AETA automatically select which to use.  In this mode the AETA will accept AT commands on the serial (DB9) until the AETA detects that a cable has been connected between the USB port and a PC (or other host device). AT commands will then only be accepted on the USB port. This behaviour can be overridden by use of the *S1 and *S2 options.

If the NMS has only set one of the ports  (DB9 or USB) to handle AT commands then the AT*S settings is ignored.

*V0

The V120 mode of operation.

AT*V0=0 Acknowledged Multi-frame (this is to be default after multi-frame is implemented).

AT*V0=1 Unacknowledged Multi-frame (initially the default as acknowledged isn’t implemented).

*V1

AT*V1= The V120 frame size.  (valid range 2 to 260, default 235)

 

ATV0 short form response codes.

Code

Meaning

0

OK

1

Connect

2

Ring

3

No Carrier

4

Error

5

Connect 1200

6

No Dial tone

7

Busy

8

No Answer

10

Connect 2400

11

Connect 4800

13

Connect 9600

15

Connect 14400

16

Connect 19200

22

Connect 64000

24

Connect 128000

65

Connect 28800

66

Connect 38400

67

Connect 57600

68

Connect 115200

 

S register settings

Register

Description

S0

Auto Answer number of rings

ATS0=0 (default) disables answering incoming data calls

ATS0=n where n is a value 0 to 255 rings

S3

Command Line Termination Character  

Character recognized by the AETA to terminate an incoming command line from the DTE.

Range 0 to 127. Default value 13.

S4

Response Formatting character  

The character generated by the AETA for header, trailer, and termination of result codes and information text.

Range 0 to 127. Default value 10.

S5

Command line editing Character  

Character recognized by the AETA to delete a character of the incoming command line from the DTE.

Range 0 to 127. Default value 8.

S6

Pause before blind dialling  

Pause before blind dialling. This S-register is provided for compatibility, but has no effect.

S7

Connection completion timeout  

The time in seconds that the AETA will wait for a call to be established after the dialling sequence. Note that the ISDN network will clear down a un-answer call within 90 seconds overriding this timer.

Range 1 to 255. Default value 255.

S8

Comma Dial Modifier Time  

This S-register is provided for compatibility, but has no effect.

S10

Automatic disconnect delay  

This S-register is provided for compatibility, but has no effect.

S59

ISDN connection status can only be read

ATS59? Returns 0 for connection not synchronised to ISDN network

ATS59? Returns 1 for connection ready for calls.

S65

Voice telephone number logged for an incoming voice call, can only be read.

ATS65?

S67

Data telephone number logged for an incoming data call can only be read.

ATS67?

S71

Protocol on the data port

ATS71=1 (default) PPP (Internet) asynchronous to synchronous conversion

ATS71=2 V.120