<?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>Mbed &#8211; IoT Expert</title>
	<atom:link href="https://iotexpert.com/tag/mbed/feed/" rel="self" type="application/rss+xml" />
	<link>https://iotexpert.com</link>
	<description>Engineering for the Internet of Things</description>
	<lastBuildDate>Wed, 12 Jun 2019 19:51:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://iotexpert.com/wp-content/uploads/2017/01/cropped-Avatar-32x32.jpg</url>
	<title>Mbed &#8211; IoT Expert</title>
	<link>https://iotexpert.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Axeda and ARM Mbed &#8211; Part 1</title>
		<link>https://iotexpert.com/axeda-and-arm-mbed-part-1/</link>
					<comments>https://iotexpert.com/axeda-and-arm-mbed-part-1/#respond</comments>
		
		<dc:creator><![CDATA[Alan Hawse]]></dc:creator>
		<pubDate>Wed, 01 Oct 2014 14:00:50 +0000</pubDate>
				<category><![CDATA[Axeda]]></category>
		<category><![CDATA[Mbed]]></category>
		<guid isPermaLink="false">https://iotexpert.com/?p=193</guid>

					<description><![CDATA[Axeda is one of several (at least a half dozen) companies that sprung up to service the &#8220;Cloud&#8221; side of the IOT boom.  They were successful enough to have been purchased in August by a company called &#8220;PTC&#8221; (for some reason it isn&#8217;t easy from their website to figure out what the letters P.T.C stand for), [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://www.axeda.com">Axeda</a> is one of several (at least a half dozen) companies that sprung up to service the &#8220;Cloud&#8221; side of the IOT boom.  They were successful enough to have been <a href="http://www.ptc.com/about/history/axeda">purchased</a> in August by a company called &#8220;<a href="http://www.ptc.com">PTC</a>&#8221; (for some reason it isn&#8217;t easy from their website to figure out what the letters P.T.C stand for), presumably for a big pile of money.  Axeda is focused on the Cloud part of the business, including tools to store, analyze and control IOT machine data.</p>
<p>Axeda offers several <a href="http://developer.axeda.com/landing/go-arm">embedded development kits</a> including ones for ARM MBED, TI, Freescale, Inventek and Raspberry Pi.  The kits aren&#8217;t so much hardware as they are a set of libraries to allow you to use those platforms to interface with the Axeda Developers Cloud.  In order for any of these kits to work you need to have:</p>
<ul>
<li>A physical layer (ethernet or wifi)</li>
<li>A network layer (tcp/ip)</li>
<li>A protocol layer (http)</li>
<li>An application layers (json formatted data)</li>
</ul>
<p>In this article, we will be focusing on the ARM MBED kit.</p>
<p>The architecture of the Axeda + MBED solution is as follows:</p>
<p><a href="https://iotexpert.com/wp-content/uploads/2014/09/architecture.png"><img fetchpriority="high" decoding="async" class="alignnone wp-image-195 size-full" src="https://iotexpert.com/wp-content/uploads/2014/09/architecture.png" alt="architecture" width="900" height="253" srcset="https://iotexpert.com/wp-content/uploads/2014/09/architecture.png 900w, https://iotexpert.com/wp-content/uploads/2014/09/architecture-600x169.png 600w, https://iotexpert.com/wp-content/uploads/2014/09/architecture-300x84.png 300w" sizes="(max-width: 900px) 100vw, 900px" /></a></p>
<p>&nbsp;</p>
<p>The ARM MBED kit is build with an NXP LPC-1768 ARM based microcontroller.  MBED is a cloud based development environment for building embedded firmware for ARM based microcontrollers.  The MBED kit is then attached to an expansion board that was designed by ARM that has two potentiometers, an ethernet port, temperature sensors etc.</p>
<p><a href="https://iotexpert.com/wp-content/uploads/2014/09/mbed.png"><img decoding="async" class="alignnone size-medium wp-image-197" src="https://iotexpert.com/wp-content/uploads/2014/09/mbed-300x260.png" alt="mbed" width="300" height="260" srcset="https://iotexpert.com/wp-content/uploads/2014/09/mbed-300x260.png 300w, https://iotexpert.com/wp-content/uploads/2014/09/mbed-600x521.png 600w, https://iotexpert.com/wp-content/uploads/2014/09/mbed.png 749w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>In order to transfer data from the development kit to the Axeda cloud, you need to format your data in a JSON message and transmit it using HTTP to the Axeda server.  This seems complicated, but it is really pretty simple.  <a href="http://en.wikipedia.org/wiki/JSON">JSON</a> stands for JavaScript Object Notation and is just a text based, human-readable format that is an alternative to XML.</p>
<p>A simple example that encodes two name value pairs (potval and temperature):</p>
<p>{<br />
&#8220;data&#8221;: [<br />
{<br />
&#8220;dataItems&#8221;: {<br />
&#8220;potvalue&#8221;: 10,<br />
&#8220;temperature&#8221;: 10<br />
}<br />
}<br />
]<br />
}</p>
<p>To transmit this to the Axeda cloud, you just embed the JSON into an HTTP POST to the correct web page (which has your Axeda Serial number. Here is the snipped of code from MBED that formats my example message.  Notice that there are two data variables, one called oil_level and one called oil_level2:</p>
<p>snprintf(http_cmd, http_cmd_sz,<br />
&#8220;POST /ammp/data/1/%s!%s HTTP/1.1\r\nContent-Type: application/json\r\nContent-Length: 65\r\n\r\n{\&#8221;data\&#8221;:[{\&#8221;di\&#8221;:{\&#8221;oil_level\&#8221;:%.2f, \&#8221;oil_level2\&#8221;:%.2f}}]}\r\n\r\n&#8221;,<br />
MODEL, SERIAL_NUM, oil_level, oil_level2);<br />
printf(http_cmd);</p>
<p>Here is the whole program:</p>
<p>The first section initializes the two ports for the potentiometers, sets up the LED output and makes a few buffers.  The blued out section of code is my serial number.</p>
<p><a href="https://iotexpert.com/wp-content/uploads/2014/10/prog1.png"><img decoding="async" class="alignnone size-large wp-image-200" src="https://iotexpert.com/wp-content/uploads/2014/10/prog1-1024x926.png" alt="prog1" width="1024" height="926" srcset="https://iotexpert.com/wp-content/uploads/2014/10/prog1-1024x926.png 1024w, https://iotexpert.com/wp-content/uploads/2014/10/prog1-600x543.png 600w, https://iotexpert.com/wp-content/uploads/2014/10/prog1-300x271.png 300w, https://iotexpert.com/wp-content/uploads/2014/10/prog1.png 1244w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<p>The next section of code starts the ethernet interface and gets an IP address.  Notice that these are library routines that are provided by the ARM MBED compiler.</p>
<p><a href="https://iotexpert.com/wp-content/uploads/2014/10/prog2.png"><img loading="lazy" decoding="async" class="alignnone size-large wp-image-201" src="https://iotexpert.com/wp-content/uploads/2014/10/prog2-1024x192.png" alt="prog2" width="1024" height="192" srcset="https://iotexpert.com/wp-content/uploads/2014/10/prog2-1024x192.png 1024w, https://iotexpert.com/wp-content/uploads/2014/10/prog2-600x113.png 600w, https://iotexpert.com/wp-content/uploads/2014/10/prog2-300x56.png 300w, https://iotexpert.com/wp-content/uploads/2014/10/prog2.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></p>
<p>Then the last section of code reads the potentiometers, and then if they have changed enough, transmit the values to the Axeda cloud over a TCP/IP socket.</p>
<p><a href="https://iotexpert.com/wp-content/uploads/2014/10/prog3.png"><img loading="lazy" decoding="async" class="alignnone size-large wp-image-202" src="https://iotexpert.com/wp-content/uploads/2014/10/prog3-1024x449.png" alt="prog3" width="1024" height="449" srcset="https://iotexpert.com/wp-content/uploads/2014/10/prog3-1024x449.png 1024w, https://iotexpert.com/wp-content/uploads/2014/10/prog3-600x263.png 600w, https://iotexpert.com/wp-content/uploads/2014/10/prog3-300x131.png 300w, https://iotexpert.com/wp-content/uploads/2014/10/prog3.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<p>In part 2, I will show how to look at your data in the Axeda cloud.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iotexpert.com/axeda-and-arm-mbed-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
