http://tinyos.stanford.edu/tinyos-wiki/index.php?title=Boomerang_Serial_Forwarder_Tips&feed=atom&action=historyBoomerang Serial Forwarder Tips - Revision history2024-03-29T05:04:25ZRevision history for this page on the wikiMediaWiki 1.31.14http://tinyos.stanford.edu/tinyos-wiki/index.php?title=Boomerang_Serial_Forwarder_Tips&diff=4832&oldid=prevMartinvilu: Added to the "Boomerang" Category2011-04-06T19:02:51Z<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-l63" >Line 63:</td>
<td colspan="2" class="diff-lineno">Line 63:</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>SerialForwarder should now run properly without the error message.</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>SerialForwarder should now run properly without the error message.</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_Serial_Forwarder_Tips&diff=75&oldid=prevJpolastre: New page: == Tips == === MOTECOM environment variable === Instead of starting SerialForwarder every time you want to connect to your Tmote wireless network, the MOTECOM environment variable simpli...2007-10-23T04:26:12Z<p>New page: == Tips == === MOTECOM environment variable === Instead of starting SerialForwarder every time you want to connect to your Tmote wireless network, the MOTECOM environment variable simpli...</p>
<p><b>New page</b></p><div>== Tips ==<br />
<br />
=== MOTECOM environment variable ===<br />
<br />
Instead of starting SerialForwarder every time you want to connect to your Tmote wireless network, the MOTECOM environment variable simplifies connecting to the network on a per-application basis.<br />
<br />
The SerialForwarder method of readings from the network works as follows:<br />
<br />
java net.tinyos.sf.SerialForwarder -comm serial@COMXX:tmote &<br />
java net.tinyos.tools.Listen<br />
<br />
Instead, with the MOTECOM variable, you can combine the two statements into one line:<br />
<br />
MOTECOM=serial@COMXX:tmote java net.tinyos.tools.Listen<br />
<br />
== Protocol ==<br />
<br />
Gilman Tolle has written an article about the SerialForwarder packet format for TinyOS 1.1.x. The same SerialForwarder 1.1.x protocol is used in Moteiv's Boomerang distribution. <br />
<br />
=== Mote-side Packetizer (FramerM) Protocol ===<br />
<br />
The Packetizer (FramerM) protocol is responsible for packing messages into a frame and transmitting those messages from a mote to the SerialForwarder application running on a PC.<br />
<br />
[http://cents.cs.berkeley.edu/tinywiki/index.php/Packetizer_Protocol TinyWiki: FramerM/Packetizer connection to SerialForwarder 1.1.x]<br />
<br />
=== IP Socket Connections ===<br />
<br />
The protocol described in the document below is the information transmitted over a socket when connecting to SerialForwarder from another PC.<br />
<br />
[http://cents.cs.berkeley.edu/tinywiki/index.php/Serial_Forwarder_Protocol TinyWiki: SerialForwarder Protocol 1.1.x]<br />
<br />
== Troubleshooting ==<br />
<br />
=== TOS_Msg length is invalid: header_length ===<br />
<br />
'''Problem:'''<br />
<br />
I executed SerialForwarder with parameters -comm serial@COM5:57600 and I get a stream of data, which goes like this:<br />
<br />
"Received message:1A 01 08......<br />
TOS_Msg length is invalid: header_length=260, real length=36... modifying msg to fit" <br />
<br />
'''Solution:'''<br />
<br />
Run SerialForwarder by entering the following command on a single line:<br />
<br />
java net.tinyos.sf.SerialForwarder -comm serial@COM4:tmote<br />
<br />
SerialForwarder needs to know which platform is connected. By specifying "tmote" instead of "57600", SerialForwarder understands the incoming packets and correctly parses them.<br />
<br />
For more startup information, please see Moteiv's<br />
[http://www.moteiv.com/products/docs/tmote-sky-quickstart.pdf Tmote Sky Quick Start Guide].<br />
<br />
=== Could not find a platform specific version of TOSMsg ===<br />
<br />
The Telos java classes for parsing packets over the UART/USB has not been compiled. Compile the classes for Telos by going into your TinyOS directory and making the java classes in net.tinyos.message.telos by executing the following commands in a cygwin window:<br />
<br />
cd /opt/tinyos-1.x<br />
cd tools/java/net/tinyos/message/telos<br />
make<br />
cd ../../../../<br />
java net.tinyos.sf.SerialForwarder -comm serial@COMx:tmote<br />
<br />
SerialForwarder should now run properly without the error message.</div>Jpolastre