<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ady Wicaksono Daily Activities &#187; SMS</title>
	<atom:link href="http://adywicaksono.wordpress.com/category/sms/feed/" rel="self" type="application/rss+xml" />
	<link>http://adywicaksono.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Oct 2009 13:21:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='adywicaksono.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/35e77ac243304307fb32ad2f396f4bce?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ady Wicaksono Daily Activities &#187; SMS</title>
		<link>http://adywicaksono.wordpress.com</link>
	</image>
			<item>
		<title>Sending SMS to J2ME application</title>
		<link>http://adywicaksono.wordpress.com/2008/02/10/sending-sms-to-j2me-application/</link>
		<comments>http://adywicaksono.wordpress.com/2008/02/10/sending-sms-to-j2me-application/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 06:52:00 +0000</pubDate>
		<dc:creator>adywicaksono</dc:creator>
				<category><![CDATA[SMS]]></category>
		<category><![CDATA[j2me]]></category>

		<guid isPermaLink="false">http://adywicaksono.wordpress.com/?p=103</guid>
		<description><![CDATA[The Wireless Messaging API (WMA) is an optional package for J2ME that
provides  platform-independent access to wireless communication resources
like Short Message Service (SMS). If URI for HTTP is defined by http://
then URI for SMS resource is defined by sms://. Example resource identifier
for SMS is sms://:50000, means the port of SMS is 50000.
For example you have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=103&subd=adywicaksono&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Wireless Messaging API (WMA) is an optional package for J2ME that<br />
provides  platform-independent access to wireless communication resources<br />
like Short Message Service (SMS). If URI for HTTP is defined by http://<br />
then URI for SMS resource is defined by sms://. Example resource identifier<br />
for SMS is sms://:50000, means the port of SMS is 50000.</p>
<p>For example you have a J2ME application that listen to specific port, then<br />
how to send SMS to the receiver would be this J2ME application? Simple approach<br />
is to create another J2ME application that act as sms sender. But what is the<br />
real PDU (protocol data unit) involved for sending it?</p>
<p>If you see GSM 03.40 specification, you will find that we need to set some<br />
special UDH (user data header) inside the 140 octet of TP-UD. This UDH is like this<br />
060504C3500000, the details is:<br />
0&#215;06  : TP-UDHL, means the user data header length -&gt; length of &#8220;0504C3500000&#8243; = 6 octet<br />
0&#215;05  : Application port addressing scheme, 16 bit address, means we have port range up<br />
to 2^16 = 65536, so port 50000 is in the range<br />
0&#215;04  : Length of application port addressing scheme -&gt; length of &#8220;C3500000&#8243; = 4 octet<br />
0xC350: Destination port, convert 0xC350 to decimal, you will have 50000<br />
0&#215;0000: Source port</p>
<p>For working example, please run this WMA java example taken from Sun JME toolkit<br />
On the phone side we see that application is waiting for incoming SMS at port 50000</p>
<p><a href="http://adywicaksono.files.wordpress.com/2008/02/choose-sim-receiver.jpg" title="choose-sim-receiver.jpg"><img src="http://adywicaksono.files.wordpress.com/2008/02/choose-sim-receiver.jpg" alt="choose-sim-receiver.jpg" /></a><br />
<a href="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-listening-for-incoming-sms.jpg" title="sim-receiver-listening-for-incoming-sms.jpg"><img src="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-listening-for-incoming-sms.jpg" alt="sim-receiver-listening-for-incoming-sms.jpg" /></a></p>
<p>We&#8217;re now sending the SMS using AT+command, here&#8217;s the PDU:</p>
<p>55010A91560996658600F5A71F060504C3500000496E6920636F6E746F6820666C61736820534D53206C686F</p>
<p>To break down that PDU please refer to GSM 03.40 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , meanwhile I will focus on the 1st byte<br />
that inform us that this PDU contain UDHI (user data header indicator) and the TP-UD of SMS<br />
which is 1F060504C3500000496E6920636F6E746F6820666C61736820534D53206C686F</p>
<p>1F: TP-UDL (user data length)<br />
060504C3500000 : this is the UDH (see above)<br />
496E6920636F6E746F6820666C61736820534D53206C686F : this is the data</p>
<p>and here&#8217;s the screenshot at the mobile phone after receiving this SMS</p>
<p><a href="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-receive-sms.jpg" title="sim-receiver-receive-sms.jpg"><img src="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-receive-sms.jpg" alt="sim-receiver-receive-sms.jpg" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adywicaksono.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adywicaksono.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adywicaksono.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adywicaksono.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adywicaksono.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adywicaksono.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adywicaksono.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adywicaksono.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adywicaksono.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adywicaksono.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adywicaksono.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adywicaksono.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=103&subd=adywicaksono&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://adywicaksono.wordpress.com/2008/02/10/sending-sms-to-j2me-application/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2603c1d4fb29e3de4c1aa91d9239fc32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adywicaksono</media:title>
		</media:content>

		<media:content url="http://adywicaksono.files.wordpress.com/2008/02/choose-sim-receiver.jpg" medium="image">
			<media:title type="html">choose-sim-receiver.jpg</media:title>
		</media:content>

		<media:content url="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-listening-for-incoming-sms.jpg" medium="image">
			<media:title type="html">sim-receiver-listening-for-incoming-sms.jpg</media:title>
		</media:content>

		<media:content url="http://adywicaksono.files.wordpress.com/2008/02/sim-receiver-receive-sms.jpg" medium="image">
			<media:title type="html">sim-receiver-receive-sms.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>How to send &#8220;Flash SMS&#8221;</title>
		<link>http://adywicaksono.wordpress.com/2008/02/08/how-to-send-flash-sms/</link>
		<comments>http://adywicaksono.wordpress.com/2008/02/08/how-to-send-flash-sms/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 02:56:48 +0000</pubDate>
		<dc:creator>adywicaksono</dc:creator>
				<category><![CDATA[SMS]]></category>
		<category><![CDATA[Telco - GSM]]></category>

		<guid isPermaLink="false">http://adywicaksono.wordpress.com/?p=90</guid>
		<description><![CDATA[Flash SMS is a type of SMS which will be displayed directly on screen once received. This one is known working on Nokia mobile phone, I don&#8217;t know with others. As we know, normal SMS once received is saved either on SIM card or mobile phone memory and then user is noticed by a beep [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=90&subd=adywicaksono&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Flash SMS is a type of SMS which will be displayed directly on screen once received. This one is known working on Nokia mobile phone, I don&#8217;t know with others. As we know, normal SMS once received is saved either on SIM card or mobile phone memory and then user is noticed by a beep or similar SMS alarm. Flash SMS is different.</p>
<p>Flash SMS is done by define message class part of TP-DCS of SMS PDU to zero (0&#215;00), what TP-DCS is? Please read GSM 03.40 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Here&#8217;s an example of SMS PDU (in hexadecimal):</p>
<p>15010A91561904472800F4A718496E6920636F6E746F6820666C61736820534D53206C686F</p>
<p>Let us breakdown:</p>
<ul>
<li>1st byte: 0&#215;15 or in binary 00010101
<ul>
<li>TP-MTI (bit 0&amp;1) = 01 means this PDU SMS type is SMS-SUBMIT</li>
<li>TP-RD (bit 2) = 1 means reject duplicate if there&#8217;s a same SMS with same TP-MR</li>
<li> TP-VPF (bit 4&amp;3) = 10 means this SMS contain validity period info with relative format</li>
<li>TP-SRR (bit 5) = 0 means we don&#8217;t ask for delivery report</li>
<li>TP-UDHI (bit 6) = 0 means no user data header information (UDHI)</li>
<li>TP-RP (bit 7) = 0 means reply path unused</li>
</ul>
</li>
<li> 2nd byte: TP-MR = 0&#215;01, means message reference number is 0&#215;01</li>
<li>3rd byte: TP-DA length = 0&#215;0A, this is length of destination address.I want to send to my own number which is 6591407482 -&gt; see there&#8217;re 10 digits, to TP-DA should be 0&#215;0A or 10 in decimal</li>
<li>4th byte: TON/NPI info =  0&#215;91 or in binary format 10010001
<ul>
<li>TON (bit 6,5,4) = 001 -&gt; means International Number</li>
<li>NPI (bit 3,2,1,0) = 0001 -&gt; means ISDN telephone number</li>
</ul>
</li>
<li>5th byte .. 9th byte: 5619044728 -&gt; this is the destination number 6591407482 but written in BCD semioctet format</li>
<li>10th byte: TP-PID = 0&#215;00 -&gt; means use default protocol identifier</li>
<li>11th byte: TP-DCS = 0xF4 or in binary format 11110100
<ul>
<li>Bit 3,2 = 01, means TP-UD (user data) is encoded using 8 bit format</li>
<li><b>Bit 0,1 = 00, means  class 0 {this will make this sms become flash sms}</b></li>
</ul>
</li>
<li>12th byte: TP-VP = 0xA7 means this SMS is valid only for 24 hours</li>
<li>13th byte: TP-UDL = 0&#215;18 means the user data/message part length is 24 character</li>
<li>the rest byte:
<ul>
<li>496E6920636F6E746F6820666C61736820534D53206C686F
<ul>
<li>Thi is hex representation of string &#8220;Ini contoh flash SMS lho&#8221;, you may use http://www.ttdpatch.net/cgi-bin/str2hex.pl to convert from hex to string and vice versa</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Now we try to send it using AT+Command, here&#8217;s an example session</p>
<p><a href="http://adywicaksono.files.wordpress.com/2008/02/flash-sms-1.png" title="flash sms at command"><img src="http://adywicaksono.files.wordpress.com/2008/02/flash-sms-1.png?w=771&#038;h=214" alt="flash sms at command" height="214" width="771" /></a></p>
<p>And the result on mobile phone is:</p>
<p><a href="http://adywicaksono.files.wordpress.com/2008/02/flashsms.jpg" title="flash sms phone result"><img src="http://adywicaksono.files.wordpress.com/2008/02/flashsms.jpg" alt="flash sms phone result" /></a></p>
<p>Now, save it before you lost it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adywicaksono.wordpress.com/90/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adywicaksono.wordpress.com/90/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adywicaksono.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adywicaksono.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adywicaksono.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adywicaksono.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adywicaksono.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adywicaksono.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adywicaksono.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adywicaksono.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adywicaksono.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adywicaksono.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=90&subd=adywicaksono&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://adywicaksono.wordpress.com/2008/02/08/how-to-send-flash-sms/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2603c1d4fb29e3de4c1aa91d9239fc32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adywicaksono</media:title>
		</media:content>

		<media:content url="http://adywicaksono.files.wordpress.com/2008/02/flash-sms-1.png" medium="image">
			<media:title type="html">flash sms at command</media:title>
		</media:content>

		<media:content url="http://adywicaksono.files.wordpress.com/2008/02/flashsms.jpg" medium="image">
			<media:title type="html">flash sms phone result</media:title>
		</media:content>
	</item>
		<item>
		<title>Cool article on PDU SMS hacking</title>
		<link>http://adywicaksono.wordpress.com/2007/11/01/cool-article-on-pdu-sms-hacking/</link>
		<comments>http://adywicaksono.wordpress.com/2007/11/01/cool-article-on-pdu-sms-hacking/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 10:01:39 +0000</pubDate>
		<dc:creator>adywicaksono</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">http://adywicaksono.wordpress.com/2007/11/01/cool-article-on-pdu-sms-hacking/</guid>
		<description><![CDATA[see this URL http://www.vallejo.cc/proyectos/envio%20sms%20english.htm
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=55&subd=adywicaksono&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>see this URL <a href="http://www.vallejo.cc/proyectos/envio%20sms%20english.htm" target="_blank">http://www.vallejo.cc/proyectos/envio%20sms%20english.htm</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adywicaksono.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adywicaksono.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adywicaksono.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adywicaksono.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adywicaksono.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adywicaksono.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adywicaksono.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adywicaksono.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adywicaksono.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adywicaksono.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adywicaksono.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adywicaksono.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adywicaksono.wordpress.com&blog=1143364&post=55&subd=adywicaksono&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://adywicaksono.wordpress.com/2007/11/01/cool-article-on-pdu-sms-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2603c1d4fb29e3de4c1aa91d9239fc32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adywicaksono</media:title>
		</media:content>
	</item>
	</channel>
</rss>