Moxa W406-T-CE [52/74] Configuring the at commands

Moxa W406-LX [52/74] Configuring the at commands
W315A/325A Linux User's Manual Managing Communications
4-18
Configuring the AT commands
The AT command set for connecting a GPRS module is located at /etc/chatscripts/chtgprs-connect. You
can add your own AT commands in the following the format.
# File: /etc/chatscripts/chtgprs-connect
#
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
SAY 'Starting GPRS connect script\n'
# Get the modem's attention and reset it.
"" 'ATZ'
# E0=No echo, V1=English result codes
OK 'ATE0V1'
# Set Access Point Name (APN)
SAY 'Setting APN\n'
OK 'AT+CGDCONT=1,"IP","internet"'
# Dial the number
ABORT 'NO CARRIER'
SAY 'Dialing...\n'
OK 'ATD*99***1#'
CONNECT ''
Example: Selecting the radio band
The GSM/GPRS module is configured to 900/1800 MHz by default. Althought GSM-900 and GSM-1800 are used
in most parts of the world, operators in the United States, Canada, and many other countries in the Americas
use GSM-850 or GSM-1900. For users in these areas, the radio band can be reconfigured by adding an AT
command in /etc/chatscripts/chtgprs-connect.
OK ' AT+WMBS=x'
The ‘x’ represents one of the band selections shown in the following table.
x Radio Band Selection
0 Mono-band, 850 MHz
1 Mono-band, 900 MHz
2 Mono-band, 1800 MHz
3 Mono-band, 1900 MHz
4 Dual-band, 850/1900 MHz
5 Dual-band, 900/1800 MHz
6 Dual-band, 900/1900 MHz
NOTE After setting customized connection, we recommend running the command gprscmd to initiate a GPRS
connection.
NFS (Network File System)
The Network File System (NFS) is used to mount a disk partition on a remote machine, as if it were on a local
hard drive, allowing fast, seamless sharing of files across a network. NFS allows users to develop applications
for the W315A/325A, without worrying about the amount of disk space that will be available. The W315A/325A
supports NFS protocol for client.

Содержание

Скачать