<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Pool &#187; SMS</title>
	<atom:link href="http://www.hlouis.com/category/develop/sms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hlouis.com</link>
	<description>Help, I can&#039;t swimming......</description>
	<lastBuildDate>Tue, 04 May 2010 15:27:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>First octet of the SMS-DELIVER PDU</title>
		<link>http://www.hlouis.com/develop/sms/first-octet-of-the-sms-deliver-pdu/</link>
		<comments>http://www.hlouis.com/develop/sms/first-octet-of-the-sms-deliver-pdu/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 02:12:14 +0000</pubDate>
		<dc:creator>Louis</dc:creator>
				<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://www.guidemarvin.com/mypool/index.php/develop-note/sms/first-octet-of-the-sms-deliver-pdu/</guid>
		<description><![CDATA[First octet of the SMS-DELIVER PDU
The first octet of the SMS-DELIVER PDU has the following layout:


Bit no
7
6
5
4
3
2
1
0


Name
TP-RP
TP-UDHI
TP-SRI
(unused)
(unused)
TP-MMS
TP-MTI
TP-MTI


where the fields have the following meaning:


Name
Meaning


TP-RP
Reply path. Parameter indicating that reply path exists.


TP-UDHI
User data header indicator. This bit is set to 1 if the User Data field starts with a header


TP-SRI
Status report indication. This bit is set to [...]]]></description>
			<content:encoded><![CDATA[<h1>First octet of the SMS-DELIVER PDU</h1>
<p>The first octet of the SMS-DELIVER PDU has the following layout:</p>
<table border="1">
<tr bgcolor="#ffffcc">
<th>Bit no</th>
<td>7</td>
<td>6</td>
<td>5</td>
<td>4</td>
<td>3</td>
<td>2</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<th>Name</th>
<td>TP-RP</td>
<td>TP-UDHI</td>
<td>TP-SRI</td>
<td>(unused)</td>
<td>(unused)</td>
<td>TP-MMS</td>
<td>TP-MTI</td>
<td>TP-MTI</td>
</tr>
</table>
<p>where the fields have the following meaning:</p>
<table>
<tr bgcolor="#ffffcc">
<th>Name</th>
<th>Meaning</th>
</tr>
<tr>
<td>TP-RP</td>
<td>Reply path. Parameter indicating that reply path exists.</td>
</tr>
<tr>
<td>TP-UDHI</td>
<td>User data header indicator. This bit is set to 1 if the User Data field starts with a header</td>
</tr>
<tr>
<td>TP-SRI</td>
<td>Status report indication. This bit is set to 1 if a status report is going to be returned to the SME</td>
</tr>
<tr>
<td>TP-MMS</td>
<td>More messages to send. This bit is set to 0 if there are more messages to send</td>
</tr>
<tr>
<td>TP-MTI</td>
<td>Message type indicator. Bits no 1 and 0 are both set to 0 to indicate that this PDU is an SMS-DELIVER</td>
</tr>
</table>
<h3>Example</h3>
<p>A first octet of &#8220;04&#8243; (hex) has the following meaning:</p>
<table border="1">
<tr bgcolor="#ffffcc">
<th>Bit no</th>
<td>7</td>
<td>6</td>
<td>5</td>
<td>4</td>
<td>3</td>
<td>2</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<th>Name</th>
<td>TP-RP</td>
<td>TP-UDHI</td>
<td>TP-SRI</td>
<td>(unused)</td>
<td>(unused)</td>
<td>TP-MMS</td>
<td>TP-MTI</td>
<td>TP-MTI</td>
</tr>
<tr>
<th>Value</th>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>1</td>
<td>0</td>
<td>0</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.hlouis.com/develop/sms/first-octet-of-the-sms-deliver-pdu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AT commands interface</title>
		<link>http://www.hlouis.com/develop/sms/at-commands-interface/</link>
		<comments>http://www.hlouis.com/develop/sms/at-commands-interface/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 02:08:29 +0000</pubDate>
		<dc:creator>Louis</dc:creator>
				<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://www.guidemarvin.com/mypool/index.php/develop-note/sms/at-commands-interface/</guid>
		<description><![CDATA[The following link is AT commands interface document v90
This document describes the messages exchanged between an external application module and the WAVECOM GSM mobile station, based on AT commands in order to control incoming and outgoing calls.
This document presents the AT-commands implemented for the voice call teleservice, the data teleservice and the short message teleservice.
AT [...]]]></description>
			<content:encoded><![CDATA[<p>The following link is AT commands interface document v90</p>
<blockquote><p>This document describes the messages exchanged between an external application module and the WAVECOM GSM mobile station, based on AT commands in order to control incoming and outgoing calls.</p>
<p>This document presents the AT-commands implemented for the voice call teleservice, the data teleservice and the short message teleservice.</p></blockquote>
<p><a id="p31" rel="attachment" title="AT v90 Commands Interface" href="http://www.guidemarvin.com/mypool/index.php/develop-note/sms/at-commands-interface/at-v90-commands-interface/" /><a id="p31" href="http://www.hlouis.com/hlouis_com/wp-content/uploads/2006/11/at_v90.pdf">AT v90 Commands Interface</a></p>
<blockquote />
]]></content:encoded>
			<wfw:commentRss>http://www.hlouis.com/develop/sms/at-commands-interface/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Type-of-Address octet</title>
		<link>http://www.hlouis.com/develop/sms/the-type-of-address-octet/</link>
		<comments>http://www.hlouis.com/develop/sms/the-type-of-address-octet/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 02:00:06 +0000</pubDate>
		<dc:creator>Louis</dc:creator>
				<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://www.guidemarvin.com/mypool/index.php/develop-note/sms/the-type-of-address-octet/</guid>
		<description><![CDATA[The Type-of-Address octet
The Type-of-Address octet indicates the format of a phone number. The most common value of this octet is 91 hex (10010001 bin), which indicates international format. A phone number in international format looks like 46708251358 (where the country code is 46). In the national (or unknown) format the same phone number would look [...]]]></description>
			<content:encoded><![CDATA[<h1>The Type-of-Address octet</h1>
<p>The Type-of-Address octet indicates the format of a phone number. The most common value of this octet is 91 hex (10010001 bin), which indicates international format. A phone number in international format looks like 46708251358 (where the country code is 46). In the national (or unknown) format the same phone number would look like 0708251358. The international format is the most generic, and it has to be accepted also when the message is destined to a recipient  in the same country as the MSC or as the SGSN.</p>
<table border="1">
<tr bgcolor="#ffffcc">
<th>Bit no</th>
<td>7</td>
<td>6</td>
<td>5</td>
<td>4</td>
<td>3</td>
<td>2</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<th>Name</th>
<td>Always set to 1</td>
<td colspan="3">Type-of-number</td>
<td colspan="4">Numbering Plan Identification</td>
</tr>
</table>
<p>Note that bit no 7 should always be set to 1<br />
Bits 6, 5 and 4 deonte the Type-of-number<br />
Bits 3, 2, 1, 0 denote the Numbering-Plan-Identification</p>
<h3>Type of number</h3>
<table border="1">
<tr bgcolor="#ffffcc" align="left">
<th width="40">Bits<br />
6 5 4</th>
<th>Meaning of the Type-of-number bits (6, 5 and 4)</th>
</tr>
<tr>
<td>0 0 0</td>
<td>Unknown. This is used when the user or network has no a priori information about the numbering plan. In this case, the Address-Value field is organized according to the network dialling plan,  e.g. prefix or escape digits might be present.</td>
</tr>
<tr>
<td>0 0 1</td>
<td>International number.</td>
</tr>
<tr>
<td>0 1 0</td>
<td>National number. Prefix or escape digits shall not be included.</td>
</tr>
<tr>
<td>0 1 1</td>
<td>Network specific number. This is used to indicate administration/service number specific to the serving network, e.g. used to access an operator.</td>
</tr>
<tr>
<td>1 0 0</td>
<td>Subscriber number. This is used when a specific short number representation is stored in one or more SCs as part of a higher layer application. (Note that &#8220;Subscriber number&#8221; shall only be used in connection with the proper PID referring to this application).</td>
</tr>
<tr>
<td>1 0 1</td>
<td>Alphanumeric, (coded according to GSM TS 03.38 7-bit default alphabet)</td>
</tr>
<tr>
<td>1 1 0</td>
<td>Abbreviated number</td>
</tr>
<tr>
<td>1 1 1</td>
<td>Reserved for extension</td>
</tr>
</table>
<h3>Numbering Plan Identification</h3>
<p>The Numbering-plan-identification applies for Type-of-number = 000, 001 and 010. For Type-of-number = 101 bits 3,2,1,0 are reserved and shall be transmitted as 0000. Note that for addressing any of the entities SC, MSC, SGSN or MS, Numbering-plan-identification = 0001 will always be used. However, for addressing the SME, any specified Numbering-plan-identification value may be used.</p>
<table border="1">
<tr bgcolor="#ffffcc" align="left">
<th width="50">Bits<br />
3 2 1 0</th>
<th>Meaning of the Numbering Plan Identifiation bits (3, 2, 1 and 0)</th>
</tr>
<tr>
<td>0 0 0 0</td>
<td>Unknown.</td>
</tr>
<tr>
<td>0 0 0 1</td>
<td>ISDN/telephone numbering plan (E.164/E.163).</td>
</tr>
<tr>
<td>0 0 1 1</td>
<td>Data numbering plan (X.121).</td>
</tr>
<tr>
<td>0 1 0 0</td>
<td>Telex numbering plan</td>
</tr>
<tr>
<td>1 0 0 0</td>
<td>National numbering plan</td>
</tr>
<tr>
<td>1 0 0 1</td>
<td>Private numbering plan</td>
</tr>
<tr>
<td>1 0 1 0</td>
<td>ERMES numbering plan (ETSI DE/PS 3 01-3)</td>
</tr>
<tr>
<td>1 1 1 1</td>
<td>Reserved for extension</td>
</tr>
</table>
<p>All other values are reserved.</p>
<h3>Example</h3>
<p>A Type-of-Address octet of &#8220;81&#8243; (hex), unknown phone number format, looks like:</p>
<table border="1">
<tr bgcolor="#ffffcc">
<th>Bit no</th>
<td>7</td>
<td>6</td>
<td>5</td>
<td>4</td>
<td>3</td>
<td>2</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<th>Name</th>
<td>Always set to 1</td>
<td colspan="3">Type of number</td>
<td colspan="4">Numbering plan identification</td>
</tr>
<tr>
<th>Value</th>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>1</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.hlouis.com/develop/sms/the-type-of-address-octet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMS and the PDU format</title>
		<link>http://www.hlouis.com/develop/sms/sms-and-the-pdu-format/</link>
		<comments>http://www.hlouis.com/develop/sms/sms-and-the-pdu-format/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 01:58:07 +0000</pubDate>
		<dc:creator>Louis</dc:creator>
				<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://www.guidemarvin.com/mypool/index.php/develop-note/sms/sms-and-the-pdu-format/</guid>
		<description><![CDATA[
SMS and the PDU format
Introduction
The SMS message, as specified by the Etsi organization (documents GSM 03.40 and GSM 03.38), can be up to 160 characters  long, where each character is 7 bits according to the   7-bit default alphabet. Eight-bit messages (max 140 characters) are usually not viewable by the phones as  [...]]]></description>
			<content:encoded><![CDATA[<p><img border="0" align="sd" src="http://www.dreamfabric.com/sms/gsmlogo.gif" /></p>
<h1>SMS and the PDU format</h1>
<h3>Introduction</h3>
<p>The SMS message, as specified by the <a href="http://www.etsi.org/">Etsi</a> organization (documents GSM 03.40 and GSM 03.38), can be up to 160 characters  long, where each character is 7 bits according to the  <a href="http://www.dreamfabric.com/sms/default_alphabet.html"><em> 7-bit default alphabet</em></a>. Eight-bit messages (max 140 characters) are usually not viewable by the phones as  text messages; instead they are used for data in e.g. smart messaging (images and ringing tones) and <a href="http://www.3glab.org/ota.html"> OTA provisioning of WAP settings.</a> 16-bit messages (max 70 characters) are used for Unicode  (UCS2) text messages, viewable by most phones. A 16-bit text message of  class 0 will on some phones appear as a <a href="http://www.dreamfabric.com/sms/alert.html">Flash SMS</a> (aka blinking SMS or  alert SMS).</p>
<h3>The PDU format</h3>
<p>There are two ways of sending and receiving SMS messages: by text mode and  by PDU (protocol description unit) mode. The text mode (unavailable on some phones) is just an  encoding of the bit stream represented by the PDU mode. Alphabets may differ and there are several encoding alternatives when displaying an SMS  message. The most common options are &#8220;PCCP437&#8243;, &#8220;PCDN&#8221;, &#8220;8859-1&#8243;, &#8220;IRA&#8221; and &#8220;GSM&#8221;. These are all set by the <a href="http://www.fastlogic.co.za/faq59.htm">at-command</a> AT+CSCS, when you read the message in a computer application. If you read the message on your phone, the phone will choose a proper encoding. An application capable of reading incoming SMS messages, can thus use text  mode or PDU mode. If text mode is used, the application is bound to (or limited by) the set of preset encoding options. In some cases, that&#8217;s just  not good enough. If PDU mode is used, any encoding can be implemented.</p>
<p><span id="more-29"></span></p>
<h3>Receiving a message in the PDU mode</h3>
<p>The PDU string contains not only the message, but also a lot of  meta-information about the sender, his SMS service center, the time stamp etc. It is all in the form of hexa-decimal <em>octets</em> or decimal <em>semi-octets</em>. The following string is what I received <em>on a <a href="http://www.nokia.com/phones/6110/index.html">Nokia 6110</a></em> when sending the message containing  &#8220;hellohello&#8221; from <a href="http://www.mtn.co.za/">www.mtn.co.za</a>.</p>
<table>
<tr>
<td bgcolor="yellow">07</td>
<td bgcolor="cyan">917283010010F5</td>
<td>040BC87238880900F10000993092516195800AE8329BFD4697D9EC37</td>
</tr>
</table>
<p>This octet sequence consists of three parts: An initial octet indicating the length of the SMSC information (&#8220;07&#8243;), the SMSC information itself (&#8220;917283010010F5&#8243;), and the SMS_DELIVER part (specified by ETSI in GSM 03.40).</p>
<p><em>Note: on some phones (e.g. Ericssson 888?) the first three (colored) parts are omitted when showing the message in PDU mode!</em></p>
<table border="1">
<tr>
<th>Octet(s)</th>
<th>Description</th>
</tr>
<tr>
<td bgcolor="yellow">07</td>
<td>Length of the SMSC information (in this case 7 octets)</td>
</tr>
<tr>
<td bgcolor="cyan">91</td>
<td><a href="http://www.guidemarvin.com/mypool/index.php/develop/sms/the-type-of-address-octet/">Type-of-address</a>  of the SMSC. (91 means international format of the phone number)</td>
</tr>
<tr>
<td bgcolor="cyan">72 83 01 00 10 F5</td>
<td>Service center number(in decimal semi-octets). The length of the phone number is odd (11), so a trailing F has been added to form proper octets. The phone number of this service center is &#8220;+27381000015&#8243;. See below.</td>
</tr>
<tr>
<td>04</td>
<td><a href="http://www.guidemarvin.com/mypool/index.php/develop/sms/first-octet-of-the-sms-deliver-pdu/">First octet of this SMS-DELIVER message</a>.</td>
</tr>
<tr>
<td>0B</td>
<td>Address-Length. Length of the sender number (0B hex = 11 dec)</td>
</tr>
<tr>
<td>C8</td>
<td><a href="http://www.guidemarvin.com/mypool/index.php/develop/sms/the-type-of-address-octet/">Type-of-address</a> of the sender number</td>
</tr>
<tr>
<td>72 38 88 09 00 F1</td>
<td>Sender number (decimal semi-octets), with a trailing F</td>
</tr>
<tr>
<td>00</td>
<td>TP-PID. <a href="http://www.dreamfabric.com/sms/pid.html">Protocol identifier</a>.</td>
</tr>
<tr>
<td>00</td>
<td>TP-DCS <a href="http://www.dreamfabric.com/sms/dcs.html">Data coding scheme</a></td>
</tr>
<tr>
<td>99 30 92 51 61 95 80</td>
<td>TP-SCTS. <a href="http://www.dreamfabric.com/sms/scts.html">Time stamp</a> (semi-octets)</td>
</tr>
<tr>
<td>0A</td>
<td>TP-UDL. User data length, length of message. The TP-DCS field indicated 7-bit data, so the length here is the number of septets (10). If the TP-DCS field were set to indicate 8-bit data or Unicode, the length would be the number of octets (9).</td>
</tr>
<tr>
<td>E8329BFD4697D9EC37</td>
<td>TP-UD. <a href="http://www.dreamfabric.com/sms/hello.html">Message &#8220;hellohello&#8221;</a> , 8-bit octets representing 7-bit data.</td>
</tr>
<tr>
<th>Octet(s)</th>
<th>Description</th>
</tr>
<tr>
<td bgcolor="yellow">00</td>
<td>Length of SMSC information. Here the length is 0, which means that the SMSC stored in the phone should be used. <em>Note: This octet is optional. On some phones this octet should be omitted! (Using the SMSC stored in phone is thus implicit)</em></td>
</tr>
<tr>
<td>11</td>
<td><a href="http://www.dreamfabric.com/sms/submit_fo.html">First octet of the SMS-SUBMIT message</a>.</td>
</tr>
<tr>
<td>00</td>
<td>TP-Message-Reference. The &#8220;00&#8243; value here lets the phone set the message reference number itself.</td>
</tr>
<tr>
<td>0B</td>
<td>Address-Length. Length of phone number (11)</td>
</tr>
<tr>
<td>91</td>
<td><a href="http://www.dreamfabric.com/sms/type_of_address.html">Type-of-Address.</a> (91 indicates international format of the phone number).</td>
</tr>
<tr>
<td>6407281553F8</td>
<td>The phone number in semi octets (46708251358). The length of the phone  number is odd (11), therefore a trailing F has been added, as if the phone number were &#8220;46708251358F&#8221;. Using the unknown format (i.e. the Type-of-Address 81 instead of 91) would yield the phone number octet sequence 7080523185 (0708251358). Note that this has the length 10 (A), which is even.</td>
</tr>
<tr>
<td>00</td>
<td>TP-PID. <a href="http://www.dreamfabric.com/sms/pid.html">Protocol identifier</a></td>
</tr>
<tr>
<td>00</td>
<td>TP-DCS. <a href="http://www.dreamfabric.com/sms/dcs.html">Data coding scheme</a>.This message is coded according to the 7bit default alphabet. Having &#8220;04&#8243; instead of &#8220;00&#8243; here, would indicate that the TP-User-Data field of this message should be interpreted as 8bit rather than 7bit (used in e.g. smart messaging, OTA provisioning etc).</td>
</tr>
<tr>
<td>AA</td>
<td><a href="http://www.dreamfabric.com/sms/vp.html">TP-Validity-Period</a>. &#8220;AA&#8221; means 4 days. <em>Note: This octet is optional, see bits 4 and 3 of the <a href="http://www.dreamfabric.com/sms/submit_fo.html">first octet</a></em></td>
</tr>
<tr>
<td>0A</td>
<td>TP-User-Data-Length. Length of message. The TP-DCS field indicated 7-bit data, so the length here is the number of septets (10). If the TP-DCS field were set to 8-bit data or Unicode, the length would be the number of octets.</td>
</tr>
<tr>
<td>E8329BFD4697D9EC37</td>
<td>TP-User-Data. These octets represent the message &#8220;hellohello&#8221;.  How to do the transformation from 7bit septets into octets is shown <a href="http://www.dreamfabric.com/sms/hello.html">here</a></td>
<td>&nbsp;</td>
</tr>
</table>
<h2>Links</h2>
<ul>
<li><a href="http://www.dreamfabric.com/sms/cms_error.html">CMS error codes</a></li>
<li><a href="http://www.nobbi.com/sms_pdu.htm">Versenden von Kurznachrichten mittels PDU</a></li>
<li><a href="http://www.etsi.org/">Etsi</a></li>
</ul>
<p><font size="2" /></p>
<address><font size="2"><font size="2"><font size="2">This page has been visited [an error occurred while processing this directive] times and is written and maintained by Lars Pettersson (<a href="mailto:lars.pettersson@email.nu">lars.pettersson@email.nu</a>).</font></font></font></address>
]]></content:encoded>
			<wfw:commentRss>http://www.hlouis.com/develop/sms/sms-and-the-pdu-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
