http://tinyos.stanford.edu/tinyos-wiki/index.php?title=Boomerang_RSSI_Readings&feed=atom&action=historyBoomerang RSSI Readings - Revision history2024-03-29T10:49:11ZRevision history for this page on the wikiMediaWiki 1.31.14http://tinyos.stanford.edu/tinyos-wiki/index.php?title=Boomerang_RSSI_Readings&diff=4829&oldid=prevMartinvilu: Added to the "Boomerang" Category2011-04-06T19:02:10Z<p>Added to the "Boomerang" Category</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 19:02, 6 April 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l48" >Line 48:</td>
<td colspan="2" class="diff-lineno">Line 48:</td></tr>
<tr><td class='diff-marker'> </td><td style="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;"></td><td class='diff-marker'> </td><td style="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;"></td></tr>
<tr><td class='diff-marker'> </td><td style="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;"><div>With the above interface,  the RSSI readings are represented as positive, unsigned integers.  To convert the above RSSI reading to dBm we need to subtract 173 from the reading (approximately, the actual number is somewhat dependent on the individual radio chip).  For example, if the above reading yields 120, the measured signal strength is about -53dBm.</div></td><td class='diff-marker'> </td><td style="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;"><div>With the above interface,  the RSSI readings are represented as positive, unsigned integers.  To convert the above RSSI reading to dBm we need to subtract 173 from the reading (approximately, the actual number is somewhat dependent on the individual radio chip).  For example, if the above reading yields 120, the measured signal strength is about -53dBm.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="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;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Boomerang]]</ins></div></td></tr>
</table>Martinviluhttp://tinyos.stanford.edu/tinyos-wiki/index.php?title=Boomerang_RSSI_Readings&diff=65&oldid=prevJpolastre: New page: == Reading RSSI values from Tmote Sky == When a Tmote Sky receives a packet, it stores the signal strength of the incoming packet in the TOS_Msg structure. It is also possible to read th...2007-10-23T04:18:10Z<p>New page: == Reading RSSI values from Tmote Sky == When a Tmote Sky receives a packet, it stores the signal strength of the incoming packet in the TOS_Msg structure. It is also possible to read th...</p>
<p><b>New page</b></p><div>== Reading RSSI values from Tmote Sky ==<br />
<br />
When a Tmote Sky receives a packet, it stores the signal strength of the incoming packet in the TOS_Msg structure. It is also possible to read the signal strength in the absence of the incoming packets. Such functionality is useful for estimating the noise floor of a particular channel and locating sources of interference such as 802.11 networks and microwave ovens. The default radio stack does not include such functionality; this document includes instructions for how to incorporate the needed functionality into the radio stack. <br />
<br />
You will need to modify two files <tt>CC2420ControlM.nc</tt> and <tt>CC2420RadioC.nc</tt>. The preferred way of doing such modifications is to copy these files to a local application directory, and perform the modification there. Note that these files by default are located in <tt>/opt/moteiv/tos/lib/CC2420</tt>. The modifications to the <tt>CC2420RadioC</tt> are fairly simple, all we need is to connect an extra <tt>Resource</tt> to use in RSSI reading:<br />
<br />
implementation {<br />
...<br />
components new CC2420ResourceC() as CmdRSSI;<br />
...<br />
CC2420ControlM.CmdRSSI -> CmdRSSI;<br />
}<br />
<br />
<br />
We modify <tt>CC2420ControlM</tt> to provide an extra <tt>ADC</tt> interface, and to use an additional <tt>Resource</tt>: <br />
provides {<br />
...<br />
interface ADC as RSSI;<br />
...<br />
}<br />
<br />
uses {<br />
...<br />
interface ResourceCmd as CmdRSSI;<br />
...<br />
}<br />
<br />
implementation { <br />
...<br />
async command result_t RSSI.getData() { <br />
call CmdRSSI.deferRequest();<br />
return SUCCESS;<br />
}<br />
<br />
event void CmdRSSI.granted(uint8_t rh) { <br />
uint16_t data;<br />
data = call HPLChipcon.read(rh, CC2420_RSSI);<br />
call CmdRSSI.release();<br />
data += 0x7f;<br />
data &= 0x00ff;<br />
signal RSSI.dataReady(data); <br />
<br />
}<br />
<br />
async command result_t RSSI.getContinuousData() { <br />
return FALSE;<br />
}<br />
<br />
With the above interface, the RSSI readings are represented as positive, unsigned integers. To convert the above RSSI reading to dBm we need to subtract 173 from the reading (approximately, the actual number is somewhat dependent on the individual radio chip). For example, if the above reading yields 120, the measured signal strength is about -53dBm.</div>Jpolastre