<?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>TKJ Electronics &#187; WiShield</title>
	<atom:link href="http://elec.tkjweb.dk/blog/tag/wishield/feed/" rel="self" type="application/rss+xml" />
	<link>http://elec.tkjweb.dk/blog</link>
	<description>The electronics-blog</description>
	<lastBuildDate>Sun, 20 Jun 2010 11:51:40 +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>WiFi SMS Gateway</title>
		<link>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/</link>
		<comments>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:04:00 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[GM862]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[SMS Gateway]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[WiShield]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=170</guid>
		<description><![CDATA[After a long search on the internet, trying to find a cheap SMS Gateway, I got the idea to create one myself.
As I already had a GM862 module laying around, and I&#8217;ve got the WiShield WiFi module for the Arduino too, I thought it would be easy &#8211; but it wasn&#8217;t!
The hardware setup is pretty [...]]]></description>
			<content:encoded><![CDATA[<p>After a long search on the internet, trying to find a cheap SMS Gateway, I got the idea to create one myself.<br />
As I already had a GM862 module laying around, and I&#8217;ve got the <a href="http://www.asynclabs.com/store?page=shop.product_details&amp;flypage=flypage.tpl&amp;product_id=17&amp;category_id=6">WiShield</a> WiFi module for the Arduino too, I thought it would be easy &#8211; but it wasn&#8217;t!</p>
<p>The hardware setup is pretty easy, except the powering for the GM862, as it requires about 3.8V. That was made with a Linear LT1528 3A low dropout voltage regulator.<br />
After alot of testing and measuring, I finally made a working circuit, and afterwards an Eagle Schematic.</p>
<div id="attachment_174" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi_SMS_Gateway_Schematic.png"><img class="size-medium wp-image-174" title="WiFi SMS Gateway - Schematic" src="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi_SMS_Gateway_Schematic-300x145.png" alt="WiFi SMS Gateway - Schematic" width="300" height="145" /></a><p class="wp-caption-text">WiFi SMS Gateway - Schematic</p></div>
<p>Â </p>
<p>In the following picture you will see the hardware setup, which consists of the Arduino with the WiShield on the top, the GM862 on <strong>two</strong> breadboards, and alot of wires!</p>
<div id="attachment_180" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi-SMS-Gateway-Hardware.JPG"><img class="size-medium wp-image-180" title="WiFi SMS Gateway - Hardware" src="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi-SMS-Gateway-Hardware-300x168.jpg" alt="WiFi SMS Gateway - Hardware" width="300" height="168" /></a><p class="wp-caption-text">WiFi SMS Gateway - Hardware</p></div>
<p>Â </p>
<p>But the real problems appeared when I started programming! I had alot of troubles with the serial connection between the Arduino and the GM862 module, which apparently wasn&#8217;t caused by the hardware setup!</p>
<p>Â <br />
After alot of debugging I figured it out, and a simple SMS sending code was working <img src='http://elec.tkjweb.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Then after a couple of hours I&#8217;ve added the WiFi parsing code which sends an SMS to the requested number, with the requested message, read from the GET parameters!</p>
<p>You can grab the code here, and try it out:</p>
<pre>/*<br />
 * WiFi SMS Gateway sketch by Thomas Jespersen - http://elec.tkjweb.dk/blog<br />
 * --- Remeber to change the PIN, if any, in the setup() routine! ---<br />
 */</p>
<p>#include &lt;WiServer.h&gt;</p>
<p>#define WIRELESS_MODE_INFRA	1<br />
#define WIRELESS_MODE_ADHOC	2</p>
<p>// Wireless configuration parameters ----------------------------------------<br />
unsigned char local_ip[] = {192,168,1,111};	// IP address of WiShield<br />
unsigned char gateway_ip[] = {192,168,2,254};	// router or gateway IP address<br />
unsigned char subnet_mask[] = {255,255,255,0};	// subnet mask for the local network<br />
const prog_char ssid[] PROGMEM = {"SSID"};		// max 32 bytes<br />
<a href="http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/#cut-1">Read more...</a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
