Logging SMS Messages

Logging SMS Messages

Last updated: December 3, 2008

This section is only applicable to lab applications and the test application with a required feature license.

You can use the Wireless Protocol Advisor (WPA) to log SMS messages.

SMS Logging Control

The test set gives you access to the protocol layers necessary to allow you to observe the SMS cell broadcast and point-to-point messages. You can capture all the messages exchanged between either the LLC or the RR and these protocol layers:

SMS Message Support

The messages in the following tables are examples of messages related to SMS. The table indicates whether each is supported in the test set. There may be more messages supported by the test set or by the Wireless Protocol Advisor. In addition, certain parameters in these messages may not be supported.

SMS Point-to-Point Messages
Messages Supported
SMS GSM Layer 3 Cell Broadcast Messages
Messages Supported
CB_BlockTypeFrame Yes
User Configurable SMS Message Parameters
Mobile-Terminated SMS Parameters on Test Set Parameters in 3GPP TS 23.040 Message Types
Content TP-User Data (TP-UD) - Deliver, Submit Report, Status Report

Message Type

TP-Message Type Indicator (TP-MTI) -

Deliver, Submit Report, Status Report

Data Coding Scheme TP-Data Coding Scheme (TP-DCS) -
(Defined in 3GPP TS 23.038)
Deliver, Submit Report, Status Report
Failure Cause TP-Failure Cause (TP-FCS) - Submit Report if RP type is set to RP-ERR
Message Reference TP-Message Reference (TP-MR) - Status Report
More Messages to Send TP-More Messages to Send (TP-MMS) - Deliver, Status Report
Parameter Indicator TP-Parameter Indicator (TP-PI) - Submit Report, Status Report
Protocol Identifier TP-Protocol Identifier (TP-PID) - Deliver, Submit Report
Reply Path TP-Reply Path (TP-RP) - Deliver
Status TP-Status (TP-ST) - Status Report
Status Report Indication TP-Status Report Indication (TP-SRI) - Deliver
User Data Header Indicator TP-User Data Header Indication (TP-UDHI) - Deliver, Submit Report, Status Report
Originating Address TP-Originating Address (TP-OA) - Deliver
Recipient Address TP-Recipient Address (TP-RA) - Status Report
Mobile Originated Parameters
Mobile-Originated SMS Parameters available for query from the test set Parameters in 3GPP TS 23.040
Coding Scheme TP-Data Coding Scheme (TP-DCS) - (Defined in 3GPP TS 23.038)
User Data Length TP-User Data Length (TP-UDL) -
Destination TP- Destination Address (TP-DA) -
Content TP-User Data (TP-UD) -
Reference No. TP-Message Reference (TP-MR) -
UDHI TP-User Data Header Indication (TP-UDHI) -
Protocol Identifier TP-Protocol Identifier (TP-PID) -
Status TP-Status Report Request (TP-SRR) -

Setting Up the Wireless Protocol Advisor (WPA)

You can use the Wireless Protocol Advisor (WPA) to log the messages exchanged between the test set and the mobile station during SMS procedures. This tool provides a means to evaluate the mobile station's performance and to troubleshoot problems.

You can set up the WPA to capture and display as much or little information as you want. For this example, the logging filter is defined to capture only SMS protocol messages. The view filter is configured to only display the SMS CP-Data messages. This allows you to view only the messages that contain the SMS message contents being exchanged between the mobile station and the test set.

Note: The cell broadcast messages can be isolated by selecting SMSCB in the log filter or view filter.

Test Set Message Filter Setup

The test set filter is useful for limiting the amount of data sent over the LAN connecting the test set and the WPA. In the example below, all messages are sent from the test set to the WPA.

All filters are accessed from the Measurement Setup view. This can be accessed from the menu bar by clicking:

WPA Logging Filter Setup

The logging filter is useful for limiting what messages get captured in your log. Using this filter, you can choose to only log certain types of messages from certain protocol layers. In this example, we are using the logging filter to limit the captured log to SMS protocol messages.

WPA View Filter Setup

The view filter has no effect on what messages are captured. It simply limits the messages that are visible on the WPA's traffic overview. The view filter can easily be enabled and disabled by right clicking your mouse in the traffic overview and selecting View Filter Enabled from the menu that appears.

In the following view filter example, the messages in the traffic overview are limited to the CP-Data messages.

SMS Message Log

For the step-by-step procedure for setting up the test set to capture this log, refer to Mobile Originated Point-to-Point Message Transfer .

The captured log allows you to determine exactly what is being exchanged between the test set and the mobile station. In this example, an SMS message was sent from the mobile station to the test set. You can look in the decode of the captured message to verify all the parameters associated with that message. The following data is only a portion of the decode belonging to the captured message. In this data, you can see the text message that was sent to the test set. Look at the letters in Octet 28 after SM Value = in the Description column.

Octet Binary Hex Description
27 00000110 06 User Data Length=6 octet(s)
28 00100000 c8 SM Value = HELLO!
29 00100010 22
30 10010011 93
31 11111001 f9
32 00001100 0c
33 00000001 01

Cell Broadcast Message Log

Agilent's Wireless Protocol Advisor (WPA) allows you to capture the cell broadcast messages sent from the test set to the mobile station, and can be used to troubleshoot the handling of received messages. The figure below is a protocol log captured from WPA when the Cell Broadcast Service has been started and the repetition period is set to 15 seconds. The protocol log below shows the message activity necessary to transmit a 3-page cell broadcast message two different times. The test set only sends one page of the message to the mobile station at a time. The message decode of the selected message (dark blue) is shown in the bottom portion of the figure. The message decode shows several parameters, including the number of pages in the message as well as the page number of the selected page.

The figure below only shows a portion of the message decode. This page of the message contains 93 octets.

Related Topics

Protocol Logging

Protocol Layers and Messages

Short Message Service (SMS)

Cell Broadcast Service (CBS)

How to use the Short Message Service Features