You are on page 1of 18

WM-E1 2G Dual Band GSM/GPRS

modem with RS232 and


RS485 Interface support
Installation Guide and
Modem Configuration

_____________________________________
Rev: 1.2.0
2012-10-18

Document specifications
This documentation was made for the installation and configuration of the WM-E1 2G
Dual Band GSM/GPRS modem with RS232 and RS485 Interface support.

Document Version:

REV 1.2.0

Hardware Type/Version:

WM-E1 2G for A1800 V3.1.0

Software Version:

V 1.01

Status:

Final

Created:

12-01-2010

Last Modified:

18-10-2012

Chapter 1. Installation Guide


The communicator can be used for remote data collection from a meter through GPRS data
connection.

1.1 RS232 or RS485 connection for A1800 metering


The wire-connection between the Modem RS485 Interface and the Meter RS485
Interface can be setting up based on the next Figure.

2
2

4
2
3

1: AC Power output (to the modem): Red, Black


2: RS485 connection: The Modem RS485 Interface is connected to the meters
RS485 connector consideration to the wire colours from left to right:
white, brown, yellow, green
3: 230VAC Power Input: Blue, Brown
4: RS232 port: DSUB-9 connector for Modem

1.2 Modem Technical Data


Power Supply

100 240 VAC / 10%

Frequency bands

GSM 900/1800MHz

Operating Temperature

-20 - +55C

Storage Temperature

-20 - +70C

Humidity

0 - 95% non-condensing

Physical Dimensions

W x L x H =161 x 70 x 36mm

Chapter 2. Modem Configuration


2.1 Configuring the modem
This part of the document presents the usage of the standard Hayes AT commands
which was set as utilized in conventional landline modems.
A comprehensive list of AT commands used by the WM-E1 2G CSD/GPRS-GSM modem
follows.
The configuration could also accept the AT commands written in lower case.
The commands can be accepted in N81 and E71 formats also.
The required settings for the GSM/GPRS modem to operate with the A1800 Meters are:
AT+0

enable 9600,8,n,1 mode for the modem

AT&W

to save the settings

2.2 AT Command set


AT+ commands should be used alone, not concatenated ie AT+A<cr> not
AT+ABC=1<cr> etc).
ATA

Causes the modem to answer an incoming call. - Local interface only

The WM-E1 2G modem are set to accept the incoming call for the 3rd ringing.

ATD

Dial Command - Local interface only

Causes the modem to go online and dial the following telephone number subject to the
parameters set into the dial string.
eg: ATDT 12345 123456^m
Where "D" = Dial, "T" = Tone (Compatibility only), ^m = Carriage return.

ATE

Local Echo in command mode.

ATE0

Local Echo off

ATE1

Local Echo on
5

ATH

Hang Up command - Local interface only

This command causes the modem to disconnect from the telephone line

identifier

command

(displays:

WM-E1

ATI

Module

ATO

Return to online state command - Local interface only

2G

V1.13)

This command returns to modem for the online data transmission state following an
online command mode session, ie. it is used to return for data mode after the +++
escape sequence has been entered.

ATQ

Quiet mode

It defines the modem generated messages to send to the DTE or not. It can be used to
disable the result codes.
ATQ0

Quiet mode off - doesnt send

ATQ1

Quiet mode on - send

ATV

Enable the Verbose mode

Defines whether the above messages are displayed as readable text or numeric values.
ATV0

Verbose mode disabled

ATV1

Verbose mode enabled

ATX

Result codes

These are the messages which were generated by the modem when the connection or
the disconnection is attempted.
ATX0

Selects the Basic code set

ATX1

Selects the extended result code set

ATX2.3.4

Same as ATX1

ATZ

Modem Reset

Resets the modem without changing any parameters.

AT&C

Carrier control

This parameter defines the operation of pin 1 (DCD) of the 9-pin RS232C interface.
AT&C0

Always on

AT&C1

Fixed to this setting - Carrier goes high when online

AT&C2

Off

in

command

mode

On

when

modem

online

AT&D
Determines how the ME responds if the pin 4 (DTR) is changed from ON to OFF state
during data connection*
AT&D0

ignores status of the DTR line eg. not connected

AT&D1

ON->OFF on DTR: Change to command mode while retaining the data


connection. (like +++ escape sequence)

AT&D2

ON->OFF on DTR: Disconnect the data connection (only for CSD)

*Firmware supported, but not wired by default

AT&K

Flow-control selection*

AT&K0

DCD and DTR lines can be used for signaling

AT&K3

RTS and CTS lines can be used

*Hardware configuration must be matched with setting

AT&V

View Configuration

Example response:
DTE SPEED

9600

DTE FORMAT

N81
7

COMMAND ECHO

E0

RESULT MESSAGES

Q0

VERBOSE MESSAGES

V1

EXTENDED MESSAGES

X4

DTR(C108) OPTIONS

&D0

DCD(C109) OPTIONS

&C1

FLOW CONTROL

&K0

AUTO ANSWER

S0=3

SHOW RINGS

S1=1

INACT. TIMER CSD

S30=6

INACT. TIMER TCP

S31=12

PERIODIC RESTART

S32=0

RETRANSM. FILT.

S34=1

ATH FIX

S35=0

OK
DTE speed in baud, 1200 .. 9600, frame formats:
N81 : 8 data bits, no parity, one stop bit
E71 : 7 data bits, even parity, one stop bit
E0, Q0, V1, X4, &D0, &C1 are standard parameters for compatibility
&K0 is a proprietary setting for compatibility
Sxx parameters:
S0

Standard parameter (can be set vith ATS0=y)


Number of rings before the modem answers to a CSD call
0 (zero) means the auto answer is disabled
Maximum value 99
8

S1

Enable (1) or disable (0) RING URC presentation for CSD call

S30

connection timeout for CSD connection, in 10 seconds,( 6 = 60 seconds)


Maximum value 99

S31

connection timeout for TCP connection, in 10 seconds


Maximum value 99

S32

periodic (daily) automatic restart enabled (1) or disabled (0)

S34

applies a fix in data transfer against lost of connection on high latency


GPRS networks when set to 1.

S35

applies compatibility fix for some PC applications when the modem used on the

PC

side in CSD mode if set to 1.

S parameters can be set with ATSx=y command, for example:


ATS0=3 modem will answers after 3 rings for incoming CSD call.

AT&F

Restore the factory Configuration

Configures the modem to the factory default settings (does not default AT+autosave
commands)

AT&W

Write the configuration into a non-volatile RAM

AT+ commands are autosaved and therefore execution of this command is not
necessary to save these into the memory.

A/

Re-executes the last command

+++

TIES (Time Independent Escape Sequence)

When issued to the modem in "online" state this command will place the modem
into "online" command mode.
The ATS35 setting controls the response.

***

Remote Access command.

When this command issued from a remotely connected modem, this will enable the
remote user to interrogate and configure the WM-E1 2G modem device. (For more
information on this feature contact for dealer advice, please.)

AT+Gn

Set CSD/GPRS Mode

AT+G0

Sets to CSD mode

AT+G1

Turns on GPRS Mode

AT+G3

Turns on GPRS Mode and sets AT+0

AT+G4

Turns on GPRS Mode and sets AT+1

These commands autosaved.

AT+I

Reports WM-E1 2G modem type, firmware version number, local settings

WM-E1 2G BG2-E v1.13 Q0 +0 G0/0 P1


response details:
WM-E1 2G

product ID string

BG2-E

internal module type

v1.13

firmware version

Q0

current ATQ setting (quiet mode)


10

+0

current local serial interface baud rate/parity setting

G0/0

configured GPRS mode and status


0/0 : GPRS mode off
3/0 : GPRS on, noy yet started
3/3 : GPRS on, ready for incoming connection

P1

AT+IP?

GSM network registration status


P1

Registered on network

P2

Searching network

Reports current GPRS Listen mode address and port

IP: 192.168.0.100:6001

AT+R

Resets modem and causes the modem to execute a 10 second power cycle

AT+S

Displays Signal Strength

Toggles on / off (default off).

Remote AT+S

AT+n

Reports last known Signal Strength

Set baud rate/parity for RS232/RS485 port

Note, when set to no parity, the GSM module will still responds for the AT commands
with even parity.
This is automatically saved.

11

Command Baud

Parity

AT+0
AT+1
AT+2
AT+3
AT+4
AT+5
AT+6
AT+7

N81
E71
N81
E71
N81
E71
N81
E71

(N

9600
9600
4800
4800
2400
2400
1200
1200
=

None,

Even,

number

of

or

stop

Commands can be used only on local interface


AT+CBST?
This command gives information regarding the cellular network bearer channel.
Response: 7,0,1 (9600 bps rate, Asynchronous, Non transparent).

To change CBST for use when making outgoing calls:


AT+CBST=n,0,1
n=0 analogue auto bauding (automatic selection of the speed)
4 - 2400 bps (V.22bis)

- 4800 bps (V.32)

- 9600 bps (V.32) - factory default, preferred for mobile-mobile connection

70

- 4800 bps (V.110 or X.31 flag stuffing)

71

- 9600 bps (V.110 or X.31 flag stuffing)

AT+CPIN?
This command can be used for checking the SIM card status according to GSM standards

12

bits)

AT+CLCC
This command can be used for listing current CSD calls in command mode according to GSM
standards

AT+COPS
AT+COPS queries the present status of the modem's network registration

AT+CIMI
AT+CIMI delivers the International Mobile Subscriber Identity (IMSI). The IMSI permits
the TE to identify the individual SIM attached to the ME.

AT+CGSN
Delivers the International Mobile Equipment Identity (IMEI).

2.3 Modem result codes:


Numeric
(VO)
1
2
3
4
5
6
7
8

Verbose
(V1)
OK
CONNECT
RING
NO CARRIER
ERROR
NO DIAL
TONE
BUSY
NO ANSWER

Legend
Command line executed without errors.
Connection.
Ringing signal detected.
Carrier lost or never present.
Invalid Command.
No dial tone detected.
Busy signal detected.
No answer from remote modem.

13

2.4 GPRS operation


AT+Gn
AT+G0

Sets to CSD mode

AT+G1

Turns on GPRS Listen Mode

AT+G3

Turns on GPRS Listen Mode and AT+0

AT+G4

Turns on GPRS Listen Mode and AT+1

These followings commands are required to use the fixed IP Firmware:


Make sure You are communicating with the modem by entering AT+I and check that
You get the expected response.
Now You must enter in the correct APN which You wish to use by the command
AT+CGDCONT=1,"IP","server.com"

- replace server.com with Your APN

AT#USERID="username"
AT#PASSW="password"
These previous commands will be autosaved.
AT#sktsav
Apply new GPRS settings
AT&W
Interface settings will be saved.
The current APN settings can be checked with the AT+CGDCONT? command.

2.5 GPRS Listen mode configuration


Then enter one of the programming menus by entering the command AT+W
You will then see a /?> prompt.
14

At this prompt You can enter /V to read the port number which is stored in the device.
To set the port number enter the command /U and then type in the 5 digit port
number eg 08080 or 12345 etc.
Once the port has been entered, check it with /V and then exit the menu with /G
From this point You will be back into the normal AT command mode where You can
type AT+I to check the configuration of the modem.
Now You can enter AT+G1 (or G3,G4) to put the modem into GPRS mode.
Once the modem is in AT+Gn mode, it will be ready for a GPRS connection from the
host. Once the connection has finished, this will resets and switches back to the GPRS
listen mode and will be ready for the next connection. If the modem has powered down,
it will save the settings and will come back into GPRS mode when will be powered on
again.
The modem will be ready for GPRS TCP connection about 2 minutes after startup or
network failure. Current status can be monitored with AT+I.
The next CSD or TCP connection can be initiated one minute later than the current
connection closed.
The modem still accessible in CSD mode, even when configured GPRS service is not
available, excluding the time when it tries to restore the status of GPRS connection.

2.6 Modem Remote configuration


To enable the GPRS mode on a remote GSM/GPRS Modem You would need SIM cards
(already activated with CSD service) the modem, and You should follow the next steps.
You should use ATE1V1Q0 command to disable quiet mode for the modem that You use
on a PC/Laptop. Save settings with AT&W
1. Connect to the remote modem from Hyperterminal (use the command
ATDxxxxxxxxxx, where xxxxxxxxxx is the CSD number of the SIM installed in the remote
modem).
2. After You received, Connect in Hyperterminal You should enter the following
commands:
Version a)
If You dont know what APN is set into the modem, use the following commands:
15

***
commands)

- enter remote command mode (only for a limited set of

AT+(command) - enter "module" command remotely - needed to setup the


APN,
user and password.

Wait a few seconds and You will see an OK message at the command prompt.
Now You may enter the following commands:

AT+CGDCONT=1,IP,internet - You must obtain the exact APN (internet)


from the mobile operator that provided to Your fixed IP SIM card

AT#USERID=username - You must obtain the exact USERID (username)


from the mobile
operator that provided to Your fixed IP SIM card

AT#PASSW=password - You must obtain the exact PASSWORD (password)


from the mobile operator that provided to Your fixed IP SIM card

AT#SKTSAV to apply new GPRS settings

AT&W

Disconnect the modems using +++ command followed by ATH command.

Reconnect to the remote modem, enter remote command mode with ***
Use the command AT+G1 to enable GPRS mode.

16

Version b)
If Your modem already has the correct APN and the correct APN user name and
password, use the following commands:
*** - enters remote command mode (only for a limited set of commands)

AT+G1 - enable GPRS mode

NOTE:
Once the modem switched in AT+G1 (GPRS listen mode) it will stay in that mode
even after power off on.
In case of power disconnection, this will be re-initializing and enter into this mode
again. After a communication session, the socket will close then the modem will
start listening again and ready for the next connection. The GPRS socket can be
interrupted any time by incoming CSD Call and once the call has finished the
modem will starts the socket listening again.

3. Disconnect from the remote modem. Use the following commands:


+++
ATH
or unplug the modem that You used on a PC/Laptop from the power supply.
NOTE: Listen port is 65000 by default.
You can enter remote command mode in TCP mode also when the modem properly
configured for TCP/IP already, and the configured service is available.

17

Chapter 3. Legend
CSD

Circuit Switched Data (CSD) is the original form of data transmission developed for the time
division multiple access (TDMA)-based mobile phone systems like Global System for Mobile
Communications (GSM).
GSM

GSM (Global System for Mobile Communications) is the most popular standard for mobile
telephony systems in the world. GSM is a cellular network, which means that mobile phones
connect to it by searching for cells in the immediate vicinity.
GPRS

General Packet Radio Service (GPRS) provides more efficient packet-based data transmission
directly from the mobile phone at speeds similar to HSCSD.
GPRS extends the GSM circuit switched data capabilities and makes some additional services
possible.
RS485

RS-485 is a standard defining the electrical characteristics of drivers and receivers for use in
balanced digital multipoint systems.
Digital communications networks implementing the RS485 standard can be used effectively
over long distances and in electrically noisy environments. Multiple receivers may be connected
to such a network in a linear, multi-drop configuration. These characteristics make such
networks useful in industrial environments and similar applications.
RS232

In telecommunications, RS-232 (Recommended Standard 232) is a standard for serial binary


single-ended data and control signals connecting between a DTE (Data Terminal Equipment)
and a DCE (Data Circuit-terminating Equipment). It is commonly used in computer serial ports.
The standard defines the electrical characteristics and timing of signals, the meaning of signals,
and the physical size and pinout of connectors.

18

You might also like