<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wsn.cse.wustl.edu/index.php?action=history&amp;feed=atom&amp;title=Testing_the_Imote2_Sensor_Board</id>
	<title>Testing the Imote2 Sensor Board - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wsn.cse.wustl.edu/index.php?action=history&amp;feed=atom&amp;title=Testing_the_Imote2_Sensor_Board"/>
	<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;action=history"/>
	<updated>2026-11-15T23:01:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=468&amp;oldid=prev</id>
		<title>Liangfok: /* Running the iMoteConsole */</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=468&amp;oldid=prev"/>
		<updated>2008-01-23T00:43:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running the iMoteConsole&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:43, 23 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l261&quot; &gt;Line 261:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 261:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To change the default sampling frequency, refer to [[Imote2 560Hz Accelerometer Sampling]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To change the default sampling frequency, refer to [[Imote2 560Hz Accelerometer Sampling]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=467&amp;oldid=prev</id>
		<title>Liangfok: /* Running the iMoteConsole */</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=467&amp;oldid=prev"/>
		<updated>2008-01-23T00:42:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running the iMoteConsole&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:42, 23 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l260&quot; &gt;Line 260:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 260:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;*actualSamplingRate = requestedSamplingRate;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;*actualSamplingRate = requestedSamplingRate;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%). &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;To change the default sampling frequency, refer to [[Imote2 560Hz Accelerometer Sampling]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Imote2ConsoleBuff2.png|center|thumb|586px|The ImoteConsole buffer viewer (connected).]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Imote2ConsoleBuff2.png|center|thumb|586px|The ImoteConsole buffer viewer (connected).]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=466&amp;oldid=prev</id>
		<title>Liangfok: /* Running the iMoteConsole */</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=466&amp;oldid=prev"/>
		<updated>2008-01-23T00:41:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running the iMoteConsole&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:41, 23 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l253&quot; &gt;Line 253:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 253:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* StartCollection&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* StartCollection&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The parameters to GetData are [channel] [numSamples] [sampleRate in Hz] [warmup in ms]. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The parameters to GetData are [channel] [numSamples] [sampleRate in Hz] [warmup in ms].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note:  By default, [sampleRate in Hz] only accepts 100000.  This is a bug in the default imote2 distribution.  To fix this bug, go to&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Note:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt; By default, [sampleRate in Hz] only accepts 100000.  This is a bug in the default imote2 distribution.  To fix this bug, go to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;$TOSROOT\contrib\imote2\tos\sensorboards\BasicSensorboard\BasicSensorboardAccelDataM.nc&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;$TOSROOT\contrib\imote2\tos\sensorboards\BasicSensorboard\BasicSensorboardAccelDataM.nc&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Change line 154 to&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Change line 154 to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;*actualSamplingRate = requestedSamplingRate;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;*actualSamplingRate = requestedSamplingRate;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=465&amp;oldid=prev</id>
		<title>Liangfok: /* Running the iMoteConsole */</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=465&amp;oldid=prev"/>
		<updated>2008-01-23T00:40:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running the iMoteConsole&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:40, 23 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l253&quot; &gt;Line 253:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 253:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* StartCollection&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* StartCollection&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The parameters to GetData are [channel] [numSamples] [sampleRate in Hz] [warmup in ms].  Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The parameters to GetData are [channel] [numSamples] [sampleRate in Hz] [warmup in ms].   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Note:  By default, [sampleRate in Hz] only accepts 100000.  This is a bug in the default imote2 distribution.  To fix this bug, go to&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;$TOSROOT\contrib\imote2\tos\sensorboards\BasicSensorboard\BasicSensorboardAccelDataM.nc&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Change line 154 to&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;*actualSamplingRate = requestedSamplingRate;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  After executing StartCollection, you should see the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Imote2ConsoleBuff2.png|center|thumb|586px|The ImoteConsole buffer viewer (connected).]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Imote2ConsoleBuff2.png|center|thumb|586px|The ImoteConsole buffer viewer (connected).]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=423&amp;oldid=prev</id>
		<title>Liangfok: /* Compilation */</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=423&amp;oldid=prev"/>
		<updated>2008-01-16T19:41:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Compilation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:41, 16 January 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Compilation ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Compilation ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The first step is to &lt;/del&gt;compile the application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;First &lt;/ins&gt;compile the application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
	<entry>
		<id>http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=361&amp;oldid=prev</id>
		<title>Liangfok: New page: TestSensorBoard is an Imote2 application that comes with TinyOS 1.x.  It is used to test the Imote2's ITS400 sensor board and is located in tinyos-1.x/contrib/imote2/test/TestSensorboard. ...</title>
		<link rel="alternate" type="text/html" href="http://wsn.cse.wustl.edu/index.php?title=Testing_the_Imote2_Sensor_Board&amp;diff=361&amp;oldid=prev"/>
		<updated>2007-12-11T22:46:51Z</updated>

		<summary type="html">&lt;p&gt;New page: TestSensorBoard is an Imote2 application that comes with TinyOS 1.x.  It is used to test the Imote2&amp;#039;s ITS400 sensor board and is located in tinyos-1.x/contrib/imote2/test/TestSensorboard. ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;TestSensorBoard is an Imote2 application that comes with TinyOS 1.x.  It is used to test the Imote2's ITS400 sensor board and is located in tinyos-1.x/contrib/imote2/test/TestSensorboard. For more information, read the README its directory.&lt;br /&gt;
&lt;br /&gt;
== How to Run TestSensorBoard ==&lt;br /&gt;
&lt;br /&gt;
=== Compilation ===&lt;br /&gt;
The first step is to compile the application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd $TOSROOT/contrib/imote2/test/TestSensorboard/&lt;br /&gt;
make imote2 SENSORBOARD=BasicSensorboard USE_USB=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the output of a successful compilation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p build/imote2&lt;br /&gt;
xscale-elf-as -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-1.x/t&lt;br /&gt;
s/platform/pxa27x/../imote2/flash.s /opt/tinyos-1.x/tos/platform/pxa27x/../imot&lt;br /&gt;
2/binarymover.s /opt/tinyos-1.x/tos/platform/pxa27x/barecrt.s /opt/tinyos-1.x/t&lt;br /&gt;
s/platform/pxa27x/mmu_table.s /opt/tinyos-1.x/tos/platform/pxa27x/util.s  -o bu&lt;br /&gt;
ld/imote2/asms.o&lt;br /&gt;
cd /opt/tinyos-1.x/tos/platform/pxa27x/lib; make;&lt;br /&gt;
make[1]: Entering directory `/opt/tinyos-1.x/beta/platform/pxa27x/lib'&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o bufferManagement.o bufferManagement.c&lt;br /&gt;
In file included from bufferManagement.c:2:&lt;br /&gt;
assert.h:8: warning: `C' attribute directive ignored&lt;br /&gt;
In file included from bufferManagement.c:4:&lt;br /&gt;
systemUtil.h:28: warning: `C' attribute directive ignored&lt;br /&gt;
systemUtil.h:28: warning: `spontaneous' attribute directive ignored&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o downsample.o downsample.c&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o frequency.o frequency.c&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o paramtask.o paramtask.c&lt;br /&gt;
In file included from paramtask.c:4:&lt;br /&gt;
systemUtil.h:28: warning: `C' attribute directive ignored&lt;br /&gt;
systemUtil.h:28: warning: `spontaneous' attribute directive ignored&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o profile.o profile.c&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o queue.o queue.c&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o systemUtil.o systemUtil.c&lt;br /&gt;
In file included from systemUtil.c:2:&lt;br /&gt;
systemUtil.h:28: warning: `C' attribute directive ignored&lt;br /&gt;
systemUtil.h:28: warning: `spontaneous' attribute directive ignored&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o utils.o utils.c&lt;br /&gt;
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos&lt;br /&gt;
1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/   -c&lt;br /&gt;
-o wmmx.o wmmx.c&lt;br /&gt;
xscale-elf-ar  -rvs libimote2.a bufferManagement.o downsample.o frequency.o par&lt;br /&gt;
mtask.o profile.o queue.o systemUtil.o utils.o wmmx.o&lt;br /&gt;
r - bufferManagement.o&lt;br /&gt;
r - downsample.o&lt;br /&gt;
r - frequency.o&lt;br /&gt;
r - paramtask.o&lt;br /&gt;
r - profile.o&lt;br /&gt;
r - queue.o&lt;br /&gt;
r - systemUtil.o&lt;br /&gt;
r - utils.o&lt;br /&gt;
r - wmmx.o&lt;br /&gt;
make[1]: Leaving directory `/opt/tinyos-1.x/beta/platform/pxa27x/lib'&lt;br /&gt;
    compiling TestSensorboard to a imote2 binary&lt;br /&gt;
ncc -o build/imote2/main.exe -O1 -g -DCC2420_DEF_CHANNEL=15 -I/opt/tinyos-1.x/t&lt;br /&gt;
s/lib/CC2420Radio -I/opt/tinyos-1.x/tos/lib/Flash -DAUTO_BATTERY_MONITORING=1 -&lt;br /&gt;
all -Wshadow -DDEF_TOS_AM_GROUP=0x07 -Wnesc-all -target=imote2 -fnesc-cfile=bui&lt;br /&gt;
d/imote2/app.c -board=BasicSensorboard -DBOOTLOADER -I../../tos/sensorboards/Fr&lt;br /&gt;
mework -I../../tos/interfaces -I../../tos/include -I../../tos/sensorboards/Basi&lt;br /&gt;
Sensorboard -I../../tos/lib/I2CBusSequence       -DUSE_USB=1 -DIDENT_PROGRAM_NA&lt;br /&gt;
E=\&amp;quot;TestSensorboard\&amp;quot; -DIDENT_USER_ID=\&amp;quot;FOKSUN\&amp;quot; -DIDENT_HOSTNAME=\&amp;quot;quadcore\&amp;quot;&lt;br /&gt;
DIDENT_USER_HASH=0x6f78dd3bL -DIDENT_UNIX_TIME=0x474db757L -DIDENT_UID_HASH=0x1&lt;br /&gt;
26d0b4L TestSensorboard.nc -lm  build/imote2/asms.o /opt/tinyos-1.x/tos/platfor&lt;br /&gt;
/pxa27x/lib/libimote2.a&lt;br /&gt;
In file included from TestSensorboard.nc:9:&lt;br /&gt;
In component `TestSensorboardM':&lt;br /&gt;
TestSensorboardM.nc: In function `GetData.callApp':&lt;br /&gt;
TestSensorboardM.nc:166: warning: passing argument 9 of `GenericSampling.prepar&lt;br /&gt;
' from incompatible pointer type&lt;br /&gt;
TestSensorboardM.nc: In function `WriteData.write':&lt;br /&gt;
TestSensorboardM.nc:393: warning: assignment from incompatible pointer type&lt;br /&gt;
In file included from ../../tos/sensorboards/BasicSensorboard/BasicSensorboardA&lt;br /&gt;
celDataC.nc:17,&lt;br /&gt;
                 from ../../tos/sensorboards/BasicSensorboard/SensorboardC.nc:2&lt;br /&gt;
,&lt;br /&gt;
                 from TestSensorboard.nc:12:&lt;br /&gt;
In component `BasicSensorboardAccelDataM':&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc: In funct&lt;br /&gt;
on `SensorData.getSensorData':&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:130: warn&lt;br /&gt;
ng: assignment from incompatible pointer type&lt;br /&gt;
In C file:&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/imote2/BluSHM.nc: At top level:&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/imote2/BluSHM.nc:113: warning: `UartSend.send' cal&lt;br /&gt;
ed asynchronously from `generalSend'&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/imote2/BluSHM.nc:120: warning: `USBSend.send' call&lt;br /&gt;
d asynchronously from `generalSend'&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:192: warn&lt;br /&gt;
ng: `RawData.BulkTxRx' called asynchronously from `AccelRead'&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:326: warning: `SendVarL&lt;br /&gt;
nPacket.sendDone' called asynchronously from `USBInterrupt.fired'&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:328: warning: `SendJTPa&lt;br /&gt;
ket.sendDone' called asynchronously from `USBInterrupt.fired'&lt;br /&gt;
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:331: warning: `BareSend&lt;br /&gt;
sg.sendDone' called asynchronously from `USBInterrupt.fired'&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng: `SensorData.getSensorDataDone' called asynchronously from `RawData.BulkTxRx&lt;br /&gt;
one'&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng: `SensorData.getSensorDataDone' called asynchronously from `RawData.BulkTxRx&lt;br /&gt;
one'&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:46: warni&lt;br /&gt;
g: non-atomic accesses to shared variable `gAccelRxBuffer':&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:98: warni&lt;br /&gt;
g:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng:   non-atomic write&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:279: warn&lt;br /&gt;
ng:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:48: warni&lt;br /&gt;
g: non-atomic accesses to shared variable `gAccelRxBufferPos':&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:277: warn&lt;br /&gt;
ng:   non-atomic read&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:280: warn&lt;br /&gt;
ng:   non-atomic write&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc: In funct&lt;br /&gt;
on `BasicSensorboardAccelDataM$SensorData$getSensorData':&lt;br /&gt;
../../tos/sensorboards/BasicSensorboard/BasicSensorboardAccelDataM.nc:130: warn&lt;br /&gt;
ng: assignment from incompatible pointer type&lt;br /&gt;
TestSensorboardM.nc: In function `TestSensorboardM$GetData$callApp':&lt;br /&gt;
TestSensorboardM.nc:166: warning: passing arg 9 of `TestSensorboardM$GenericSam&lt;br /&gt;
ling$prepare' from incompatible pointer type&lt;br /&gt;
TestSensorboardM.nc: In function `TestSensorboardM$WriteData$write':&lt;br /&gt;
TestSensorboardM.nc:393: warning: assignment from incompatible pointer type&lt;br /&gt;
    compiled TestSensorboard to build/imote2/main.exe&lt;br /&gt;
          178204 bytes in ROM&lt;br /&gt;
           13636 bytes in RAM&lt;br /&gt;
            9216 bytes in STACK&lt;br /&gt;
          239292 bytes available in HEAP&lt;br /&gt;
xscale-elf-objcopy --output-target=binary build/imote2/main.exe build/imote2/ma&lt;br /&gt;
n.bin.out&lt;br /&gt;
xscale-elf-objcopy --output-target=binary build/imote2/main.exe build/imote2/ma&lt;br /&gt;
n.bin.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Possible Error 1: No Medium Found ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/include: No medium found&lt;br /&gt;
cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/lib/gcc-lib/xscale-elf/Wasabi-3.3.1/include: &lt;br /&gt;
No medium found&lt;br /&gt;
cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/xscale-elf/sys-include: No medium found&lt;br /&gt;
cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/xscale-elf/include: No medium found&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' In this case, the error is because there is no media in drive E.  In your case, the drive may be a different letter or there may be more than one drive having the same problem.  For each drive, either disconnect it or put some media into it.&lt;br /&gt;
&lt;br /&gt;
==== Possible Error 2: Invalid Target ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nesc1: NESC_MACHINE, unknown field name starting at gcc=xscale-elf-gcc&lt;br /&gt;
nesc1: invalid target described in env NESC_MACHINE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' Edit $TOSROOT/beta/platform/imote2/.platform and remove &amp;quot;gcc=xscale-elf-gcc&amp;quot; from the end of $ENV{NESC_MACHINE} on line 12.&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
The next step is to install TestSensorboard onto an Imote2.  This can either be done using a JTAG dongle and an Imote2 programmer board, or, if the mote has the USB BootLoader installed, the application can be directly over USB using USBLoaderHost.exe as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USBLoaderHost -p build/imote2/main.bin.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the output of a successful installation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program Mode, File name = build/imote2/main.bin.out&lt;br /&gt;
File Size 178204&lt;br /&gt;
Device detected&lt;br /&gt;
Device detected&lt;br /&gt;
GET_IMAGE_DETAILS Received.&lt;br /&gt;
ImgSize=178204, Num Packets= 2922&lt;br /&gt;
Total Packets Uploaded = 0, 0.00% completed&lt;br /&gt;
Sending CRC Check command 21967&lt;br /&gt;
Total Packets Uploaded = 546, 18.00% completed&lt;br /&gt;
Sending CRC Check command 9073&lt;br /&gt;
Total Packets Uploaded = 1092, 37.00% completed&lt;br /&gt;
Sending CRC Check command 10643&lt;br /&gt;
Total Packets Uploaded = 1638, 56.00% completed&lt;br /&gt;
Sending CRC Check command 9334&lt;br /&gt;
Total Packets Uploaded = 2184, 74.00% completed&lt;br /&gt;
Sending CRC Check command 17902&lt;br /&gt;
Total Packets Uploaded = 2730, 93.00% completed&lt;br /&gt;
Sending CRC Check command 45344&lt;br /&gt;
Image Download Completed&lt;br /&gt;
CRC of the Image = 46516, Total Size = 178204&lt;br /&gt;
Time taken for Upload 8967 Milli Seconds&lt;br /&gt;
Image Verification Completed.&lt;br /&gt;
Loading Image to boot location and marking it as golden.&lt;br /&gt;
Time Elapsed till IMG_VERIFY 11592 Milli Seconds&lt;br /&gt;
Time Elapsed 17264 Milli Seconds&lt;br /&gt;
Successfully copied image to boot location.&lt;br /&gt;
&lt;br /&gt;
Mapped Boot Image to golden. Booting New Image.&lt;br /&gt;
&lt;br /&gt;
Overall Time Elapsed 19675 Milli Seconds&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Possible Error 1: Command Not Found ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bash: USBLoaderHost: command not found&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' Add USBLoaderHost to your path.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PATH=$PATH:$TOSROOT/contrib/imote2/tools/bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To prevent having to enter the above command each time you open up a new command prompt, you can add it to ~/.bashrc.&lt;br /&gt;
&lt;br /&gt;
=== Running the iMoteConsole ===&lt;br /&gt;
Connect an ITS400 sensor board to the Imote2 and attach the Imote2 to your PC via USB.  Open iMoteConsole from tinyos-1.x/contrib/imote2/tools/bin.  The following GUI should appear:&lt;br /&gt;
&lt;br /&gt;
[[image:Imote2Console.png|center|thumb|577px|The main ImoteConsole screen.]]&lt;br /&gt;
&lt;br /&gt;
Select the Imote2 device (it should start with USB) and click on the &amp;quot;View Buffer in Window&amp;quot; button.  The following GUI should appear:&lt;br /&gt;
&lt;br /&gt;
[[image:Imote2ConsoleBuff1.png|center|thumb|577px|The ImoteConsole buffer viewer (not connected).]]&lt;br /&gt;
&lt;br /&gt;
Click on the &amp;quot;Connect&amp;quot; button.  In the main text area of the window, type Enter to get a BluSH&amp;gt; prompt.  Execute ls to view a list of valid commands.&lt;br /&gt;
&lt;br /&gt;
To collect accelerometer readings, execute the following in the ImoteConsole:&lt;br /&gt;
&lt;br /&gt;
* GetData 1 560 100000 100&lt;br /&gt;
* StartCollection&lt;br /&gt;
&lt;br /&gt;
The parameters to GetData are [channel] [numSamples] [sampleRate in Hz] [warmup in ms].  Currently, the sampling rate for the accelerometer is ignored (it is fixed at 280Hz +- 10%).  After executing StartCollection, you should see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:Imote2ConsoleBuff2.png|center|thumb|586px|The ImoteConsole buffer viewer (connected).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming you see &amp;quot;Sampling SUCCESS for channel 1&amp;quot;, two files with extensions .dat and .raw will appear in the directory from which you launched iMoteConsole.  The .dat file contains the sensor readings in gravity units, whereas the .raw contains the raw sensor readings.  You can re-run GetData and StartCollection numerous times.  Each time the data will be stored in unique files.&lt;br /&gt;
&lt;br /&gt;
Launch Matlab and edit tinyos-1.x/contrib/imote2/tools/src/Matlab/GenericSampling/SensorRecordImport/process.m.  Modify MOTE to contain your mote's ID and Collection for loop to be the collection that you want to analyze.   The script will import the sensor readings and plot them on a graph in both the time and frequency domains (see example graph below).  You can then use Matlab to perform other operations on the data.&lt;br /&gt;
&lt;br /&gt;
[[image:Imote2TestSBMatlab.png|center|thumb|568px|Matlab plot of accelerometer readings.]]&lt;/div&gt;</summary>
		<author><name>Liangfok</name></author>
		
	</entry>
</feed>