Handling a cmplex wrld. Hw T Cnfigure A GSM Mdem Using HyperTerminal Intrductin This dcument prvides a brief descriptin f hw t cnfigure a GSM mdem using the Windws HyperTerminal utility. Please cnsult yur mdem s dcumentatin fr mre infrmatin. Nte: This dcument shuld be read in cnjunctin with the fllwing dcuments n the Fleet Manager CD-ROM:? Fleet Manager GSM Functinality? Fleet Manager SMS Prcessr? Fleet Manager Active Events and Tracking Extensin What yu will need RS232 Cable t cnnect the mdem t yur PC s serial prt. Pwer supply fr the mdem (check specificatins). HyperTerminal, it can be installed frm yur Windws installatin disk if nt installed already. Getting started Ensure that the Windws HyperTerminal utility is installed. Cnsult yur Windws dcumentatin fr mre infrmatin. Start HyperTerminal by clicking n the Start menu and navigating the menu structure as fllws: Start? Prgrams? Accessries? Cmmunicatins? HyperTerminal Enter a name fr this sessin. Yu can save the sessin settings s that yu can reuse them the next time yu use HyperTerminal. After clicking yu are prmpted t enter additinal cnnectin infrmatin. Drp dwn the Cnnect using cmb bx and select the cmmunicatins prt t which the mdem is cnnected. Remember that a serial prt can nly be pened by a single applicatin. Make sure that n ther applicatin is using the serial prt yu select.
After clicking the buttn, the prperties f the selected cmmunicatins will be displayed. In this dialg yu must enter settings t match thse f yur mdem. Mst mdems cme with pre-cnfigured settings. Refer t yur mdem s dcumentatin fr mre infrmatin. In the example belw, the mdem cmmunicates with the persnal cmputer at a baud rate f 19200 bits per secnd and uses hardware flw cntrl. It is usually best t disable the flw cntrl ptin by selecting Nne in the cmb bx. After clicking the buttn, the HyperTerminal windw is pened. Ensure that Caps Lck is enabled. All cmmands shuld be entered in upper case. Mst mdems d nt ech the characters sent entered in the HyperTerminal windw. The first cmmand sent t the mdem enables eching and tests that the settings yu entered in the cnnectin prperties dialg are crrect. Remember that while entering this cmmand, yu may nt see the characters that yu are typing. Enter the cmmand ATE1? where? represents the Enter key n yur keybard. If the mdem is nt respnding, check that the crrect serial prt is selected and that the mdem has the crrect pwer supply. If the mdem is still nt respnding try changing the baud rate in HyperTerminal t 9600. Other baud rates can als be tried if all else fails. All f the cmmands dcumented belw are in the fllwing frmat. The bld text adjacent t the Cmmand: label indicates text that yu shuld enter int the HyperTerminal windw. The bld text adjacent t the Date : 19 December 2002 Page 2 f 5
Respnse: label indicates the respnse/s frm the mdem that will be displayed in the HyperTerminal windw. Any text between square brackets is nt part f the cmmand r respnse. Request the mde t ECHO all characters Cmmand: ATE1? [cmments] PIN cde Use the fllwing cmmand t determine whether yur SIM card requires a PIN cde t be entered befre GSM services can be accessed. Checking the PIN status Cmmand: AT+CPIN? Respnse: +CPIN: READY [N PIN required] +CPIN: SIM PIN [Need t enter a PIN, cnsult mdem dcumentatin] +CPIN: SIM PUK [PUK requested, enter this using a GSM handset] Detecting Errrs By default, mst mdems simply return ERROR when any errr ccurs. Use the fllwing cmmands t analyze r detect mre specific errrs by requesting their cdes. Enable extensive errr reprts Cmmand: AT+CMEE=1 Request mre inf n the previus errr Cmmand: AT+CEER Respnse1: +CEER: Errr XX Calls Use the fllwing cmmands t answer and place data and vice calls. Enable caller line identificatin prtcl Cmmand: AT+CLIP=1 Respnse: Extended Result: +CLIP: PhneNumber,xx Enable extra incming line infrmatin Cmmand: AT+CRC=1 Respnse: Extended Results: +CRING: ASYNC [Incming data call detected] Extended Results: +CRING: REL ASYNC [Incming data call detected] Extended Results: +CRING: VOICE [Incming vice call detected] Extended Results: +CRING: FAX [Incming fax call detected] When bth f the abve cmmands have been executed, then any incming calls will be displayed as fllws, repeated every 2 r 3 secnds (nrmal ring interval): +CRING: ASYNC +CLIP: 0839876543,129 Date : 19 December 2002 Page 3 f 5
SMS messaging Use the fllwing cmmands t send and receive SMS messages. Set the SMSC number, this is the Service Center Number. It can be acquired frm yu GSM netwrk service prvider. This number is used in ruting SMS messages t the destinatin number. The number must be entered in internatinal frmat. Set SMSC number Cmmand: AT+CSCA= +27832000001 Save this setting Cmmand: AT+CSAS Select the message service; mst mdems nly supprt a value f 0 fr this setting. Cnsult yur mdem s dcumentatin fr mre infrmatin. Cmmand: AT+CSMS=0 Respnse1: +CSMS: 1,1,1 Check the message strage setting Cmmand: AT+CPMS? Respnse1: +CPMS: SM,0,15, SM,0,15, SM,0,15 [ SM,0,15? Saved t the SIM, 0 in use, 15 free spaces fr messages] Select the preferred message frmat. Text wuld be preferred fr testing in HyperTerminal. Nte: The FM200 unit requires text frmat. Sme mdems d nt supprt text frmat messaging (e.g. the Siemens M1). If yur mdem des nt supprt text mde, it is nt suitable fr use with the FM200 unit fr SMS functinality. Cmmand: AT+CMGF=1 Respnse1: +CMGF: 1 Check/Get the New Message ntificatin settings Cmmand: AT+CNMI? Respnse1: +CNMI: 0,2,2,1,0 [Typical values, Cnsult yur mdem s dcumentatin fr mre infrmatin] Get the pssible New Message ntificatin values Cmmand: AT+CNMI=? Respnse1: +CNMI: (0..3),(0..3),(0,2),(0,1),(0,1) List all messages stred n the SIM card Cmmand: AT+CMGL= ALL Respnse1: +CMGL: 1, REC UNREAD, 081234569, +CMGL: 2, REC UNREAD, 081234569, Etc. Date : 19 December 2002 Page 4 f 5
Read a specific SMS message frm the SIM Cmmand: AT+CMGR=X [Where X is the strage lcatin number 1..maxStre] Respnse1: +CMGR: X, REC UNREAD, 081234569, Delete a specific Message frm the SIM Cmmand: AT+CMGD=X [Where X is the strage lcatin number 1..maxStre] Send an SMS message Parameter: DestinatinPhneNumber: [Where the message shuld g, Internatinal r Standard frmat] Parameter: MessageBdy: [Any standard characters. Refer t a SMS character set fr mre detail] Cmmand: AT+CMGS= DestinatinPhneNumber Respnse: > [The mdem respnds with this t shw that it is waiting fr the message] Cmmand: MessageBdy [Enter the message text] Cmmand: Ctrl-z [Hld Cntrl key and press the z key] Respnse: +CMGS: Y [Y = reference number] Example: AT+CMGS= +27829876543? > Hi There, Hw are yu Ctrl-z +CMGS: 23 Nte: DO NOT press the Enter key after entering the message text. Use nly Ctrl-z t indicate the end f the message text. Date : 19 December 2002 Page 5 f 5