1. Manually Testing a Cellular Modem


The purpose of this document is to help a user manually test a cellular modem's compatibility with WIN-911 Standard, Interactive, and Advanced.  These instructions do not apply to a cellular modem being used with WIN-911 Version 7.


  1. Install and Configure PuTTY

                PuTTY Download (64 bit)


A. Serial/USB Modem Setup



NOTE: Serial Line COM port will need to match the COM port the cellular modem is attached to on your computer.



B. Ethernet/IP Modem Setup



NOTE: Host Name (or IP address) will need to match the Host or IP of the cellular modem on your network.




C. Test Required Initialization Strings


Manually test modem initialization strings performed by WIN-911.  The modem must support every command listed below. 

  • ATE1  <ENTER>
  • AT  <ENTER>
  • AT+GMM (get modem model)  <ENTER>
  • AT+CMGF=1 (TEXT mode)  <ENTER>
  • AT+CNMI=2,1 (feedback)  <ENTER>
  • AT+CSCS=? (what character set/encoding is supported)  <ENTER>
  • AT+CSCS= “UCS2” (set character set/encoding, make sure to include the parenthesis)  <ENTER>
  • AT+CMGD=1,4 (delete)  <ENTER>
  • AT+CREG? (registration, see Appendix for details)  <ENTER>
  • AT+CSQ (signal quality, see Appendix for details)  <ENTER>
  • AT+CMGR=? (support read)  <ENTER>
  • AT+CMGS=? (support send)  <ENTER>




D. How to Send an SMS Message


WIN-911 requires the modem's character encoding to be set to UCS2. This means you will need to enter the phone number and text message using the UTF-16 format. You cannot just type in plain text. You must convert both the phone number and SMS message text into Unicode. To do the conversion, you can use find help in Github


Type your message in the Convert text box, then hit the Convert button. A + or a 00 is required in front of the country code.


Scroll down towards the bottom of the page, on the right, you will see UTF-16 code units conversion.


Phone Number and Message converted: 

Phone Number: +33989123456 = 002B00330033003900380039003100320033003400350036

SMS Message:  TEST = 0054004500530054


Send Command: AT+CMGS


AT+CMGS=“[fully qualified phone number (in hexadecimal format)]” <ENTER>

> [message to send (in UTF-16 format] <CTRL><Z> 


[fully qualified phone number] = ((Either a “+” or 00)(country code + phone number))

<CTRL> and <Z> must be pressed at the same time to send the SMS message.


Example:

AT+CMGS= “002B00330033003900380039003100320033003400350036” <ENTER>  

> 0054004500530054<CTRL><Z>

-> +CMGS: ###

-> OK


You should receive the message TEST on your phone.



E. Test Long SMS Message Support


Next, we need to confirm that Long SMS Messages are supported. Normally this can be tested by sending an SMS message over 70 characters. Most modems will automatically break a message apart and then it is rebuilt by the cellular device receiving the message. Some modems do not have this functionality. 


To send a message longer than 70 characters, copy and paste the message below into PuTTY. You can paste into PuTTY by right-clicking the mouse.


AT+CMGS=“[fully qualified phone number (in UTF-16 format)]” <ENTER>

 > 00570065006C0063006F006D006500200074006F0020007400680065002000570049004E002D003900310031002000530079007300740065006D002100200046006F007200200069006E0073007400720075006300740069006F006E00730020006F006E00200068006F007700200074006F00200075007300650020007400680065002000730079007300740065006D002C0020006D0061006B00650020007300750072006500200079006F0075007200200053004D005300200063006F006E006E0065006300740069006F006E002000690073002000730061007600650064002C00200061006E0064002000730065006E006400200069006E0020007400680065002000740065007800740020002200680065006C0070002E0022 <CTRL><Z>


You should receive this message on your phone:

Welcome to the WIN-911 System! For instructions on how to use the system, make sure your SMS connection is saved, and send in the text "help."



F. APPENDIX - AT Command Details



  • Checking if SIM card needs a PIN 

If the SIM requires a PIN, it must be disabled. A PIN is different from a Password when using Ethernet/IP modems. Passwords can remain enabled.

AT+CPIN? <ENTER>

> +CPIN: READY

> OK


READY: SIM card is not pending for any password. (REQUIRED)

SIM PIN: SIM card is waiting for SIM PIN.

SIM PUK: SIM card is waiting for SIM PUK.


  • Checking modem signal quality

AT+CSQ <ENTER>

> +CSQ: 12,99

> OK


The first number should be higher than 11. The second number is not important.


  • Checking if SIM card is registered to the network

AT+CREG? <ENTER>

> +CREG: 0,1

> OK


0,0: not registered, SIM is not currently searching a new operator to register to.

0,1: registered, home network. (GOOD RESPONSE)

0,2: not registered, but ME is currently searching a new operator to register to.

0,3: registration denied.

0,4: unknown.

0,5: registered, roaming.


  • Selecting TEXT mode (REQUIRED)

AT+CMGF=1 <ENTER>

> OK

  • Selecting New Message Indication (REQUIRED)

AT+CNMI=2,1 <ENTER>

> OK

  

  • For customer’s using non-Roman alphabets

(e.g. Chinese, Arabic, Hebrew, Japanese, Korean, and others)


Check which character sets are supported by the modem.

AT+CSCS=?

> +CSCS: (“GSM”, “IRA”, “8859-1”, “PCCP437”, “UCS2”)

> OK


WIN-911 should automatically set the modem to “UCS2” at startup, if “UCS2” is supported. UCS2 support is required for WIN-911 to send SMS messages.


Set Text Mode parameters to support non-Roman alphabets.

AT+CSMP=17,167,0,8 <ENTER>

> OK

 

Save the settings to the modem.

AT&W <ENTER>

> OK