Sie sind auf Seite 1von 4

CONFIGURING SIEMENS GSM MODEMS

For Use With Davis Weather Stations

Application Note

19

INTRODUCTION This application note describes some of the considerations and configurations options necessary to connect a Siemens M1- or M20-based GSM modem with a Davis weather station. The Davis weather stations communicate with PCs using the Davis WeatherLink data logger. CHARACTERISTICS OF WEATHERLINK COMMUNICATION The WeatherLink was designed to talk directly to a PC serial port. In order for any other connection medium to be used (such as telephone modem, radio, or GSM modem), it must provide a transparent connection to the PC. The WeatherLink sends a short fixed "modem init. string" upon powerup. The WeatherLink transmits to the GSM modem at a fixed baud rate (2400 baud) which is set by dip switch prior to powerup. The WeatherLink is command-driven. This means that it will receive commands from the PC and send back a response code possibly followed by data. It never sends commands to, nor receives replies from, the GSM modem. The WeatherLink can only receive calls. It never originates calls. There are no provisions for flow control between the WeatherLink and the modem. Do not use a GSM service that is slower than the WeatherLink baud rate. If the WeatherLink loses power, it loses all stored data. When it is powered back up, it will re-send the "modem init.string." If the GSM modem sends any characters to the WeatherLink when the GSM modem is re-powered, it could leave the WeatherLink in an undefined state.

SETTING UP YOUR GSM SERVICE 1. Ask your provider to activate your GSM Network Data Channel at 2400 baud, instead of the usual 9600. The best results are obtained when all parts of the data path are at the same baud rate (2400). 2. Request a Subscriber Identity Module (SIM) with the Personal Identification Number (PIN) disabled. If this is not possible, then you will have to enter and disable the PIN with either a computer or an attached handset. 3. Do not get Call Waiting, the WeatherLink can only talk to one PC at a time. If your service has this feature automatically, use the command given below to disable Call Waiting (M20 modems only).

3/2/99

19 - 1

CONFIGURING YOUR GSM MODEM Note: If you have an M1 modem and the PIN is already disabled, skip this section. 1. Connect the GSM modem to a PC running a terminal emulation program such as ProComm or HyperTerminal. 2. If required, enter your PIN using the command: AT+CPIN="<PIN#>","".
Make sure you include the quotation marks, and substitute your actual PIN for <PIN#>.

3. If you have an M20 modem, enter the command settings from the table below.
First try configuring your modem without the optional commands and add them later if you experience problems.

4. At this point, the GSM modem is configured and does not require a PIN for operation. CONFIGURING YOUR SOFTWARE 1. Open the Davis WeatherLink software. 2. Create a new station by choosing "New Station" in the File menu. If you do not have any stations on your computer, this will be selected automatically when the software is started. 3. In the Serial Settings Dialog, indicate that you are using a modem connection and enter the GSM modem's phone number in the Phone Number: entry box. 4. Enter "22" in the box labeled "After Connect Wait: ___ sec". This causes the software to wait 22 seconds after the connection is made before sending any commands to the WeatherLink. 5. Make sure the serial port selected in the Serial Settings dialog is the one for a modem attached to the computer.
The weather station will not be attached directly to the PC.

6. Select OK. ASSEMBLING YOUR SYSTEM It is a good idea to test your system "at home" before installing it in the field. 1. Connect your weather station to the sensors you will install in the field. This step is optional, but will verify that the sensors are working. 2. Apply power to the GSM modem. 3. Connect the WeatherLink to the weather station. 4. Connect the WeatherLink to your GSM modem using a WeatherLink RADIO/SRModem Adapter (Part # 7944). 5. Apply power to the station. You will hear three beeps if all goes well on powerup. 6. The WeatherLink's modem init. string sets the auto-answer setting to 4 rings. See the table below for the complete list of the commands contained in the modem init. string.

19 - 2

3/2/99

TESTING YOUR SYSTEM 1. Open the Davis WeatherLink software.


2. Either open or create a new station as described above.

3. 4. 5. 6.

If you are using the GroWeather software, use the "Connection Test" button to test the connection between the PC through the phone system to the GSM modem and the weather station. If you are using the WeatherLink software, use the "Set Time" command, or the "Bulletin" command. Verify that the modem attached to the PC dials correctly, the GSM modem rings and answers, and that the station is responding correctly. Use the Bulletin or Summary command to verify that the sensors are working. To test that long downloads operate correctly, set the archive interval on the station to 1 minute wait for one or two hours, and download. Examine the communication error log file with the "View Log" command.
Momentary communication lapses and errors during automatic downloads will appear here. Contact your dealer if you experience serious difficulties.

INSTALLING YOUR SYSTEM


To install the GSM module in the field, determine the optimum field location for your station and assemble your system as described both above and in the station and modem manuals.

Siemens GSM Module M20 Initialization Commands


Function Load factory defaults Set fixed GSM <-> station baud Enable auto-answer Disable flow control Disable data compression Set disconnect delay Disable call waiting Turn off command echo Do not display result codes Save settings M20 Command* AT&F AT+IPR=2400 AT+CBST=4 ATS0=4 AT+IFC=0,0 AT+DS=0 ATS10=30 AT+CCWA=0,0 ATE0 ATQ1 AT&W Save in user profile Comments Start from a known configuration Set fixed local rate to 2400 baud Select a 2400 baud bearer service (optional) Auto answer after 4 ring (can be set between 1 and 5) Disable all flow control Disable data compression (optional) Allow 3 seconds, default is 1.5 seconds (optional) (optional)

* Each "0" in the command column is a zero, not the letter "O".

WeatherLink Modem Initialization String The following commands are sent by the WeatherLink on the third beep when it is powered up:
Function Enable auto-answer Turn off command echo Do not display result codes Select user profile 0 Save settings Command* ATS0=4 ATE0 ATQ1 AT&Y0 AT&W Save in user profile 0 Comments Auto answer after 4 rings Set fixed local rate to 2400 baud

* Each "0" in the command column is a zero, not the letter "O".

Note: The modem initialization string sends all of these commands in one line: ATS0=4 E0 Q &Y0 &W

3/2/99

19 - 3

19 - 4

3/2/99

Das könnte Ihnen auch gefallen