Difference between revisions of "Tips on Using Imote2"

From Cyber-Physical Systems Laboratory
Jump to navigationJump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
* [http://sensorweb.vancouver.wsu.edu/wiki/index.php/Tinyos#Install_Imote2_in_tinyos-1.x Washington State University] has a great wiki with instructions on how to configure your platform to support the Imote2.
 
* [http://sensorweb.vancouver.wsu.edu/wiki/index.php/Tinyos#Install_Imote2_in_tinyos-1.x Washington State University] has a great wiki with instructions on how to configure your platform to support the Imote2.
 
* The Imote2 uses the FTDI USB chip whose drivers may be downloaded [http://www.ftdichip.com/Drivers/VCP.htm here].
 
* The Imote2 uses the FTDI USB chip whose drivers may be downloaded [http://www.ftdichip.com/Drivers/VCP.htm here].
 +
* Use USBLoaderHost.exe to program an image onto the Imote2. 
 +
** This program is located in $TOSROOT/contrib/imote2/tools/bin/.
 +
** To install a program:  <tt>USBLoaderHost -p main.bin.out</tt>
 
* [[Toggling an External Pin on the Imote2]]
 
* [[Toggling an External Pin on the Imote2]]
 
* When sending over UART, make sure the debug board is connected.
 
* When sending over UART, make sure the debug board is connected.
* In TinyOS, TOS_LOCAL_ADDRESS is the last 2 digits of the mote id in hex
+
* In TinyOS 1.x, TOS_LOCAL_ADDRESS is the last 2 digits of the mote id in hex
 
* Even though the default maximum message size is 29 bytes, the Imote2 will only send a message if it has an even length.  The call to GenericComm.sendMsg will actually return FAIL if you try to send a 29 byte long packet.
 
* Even though the default maximum message size is 29 bytes, the Imote2 will only send a message if it has an even length.  The call to GenericComm.sendMsg will actually return FAIL if you try to send a 29 byte long packet.
 +
* Size of local variable array is very small.  If you want to use a large array, you need to declare it globally.  E.g. realA, PS, W arrays.

Latest revision as of 01:15, 25 August 2009

  • Washington State University has a great wiki with instructions on how to configure your platform to support the Imote2.
  • The Imote2 uses the FTDI USB chip whose drivers may be downloaded here.
  • Use USBLoaderHost.exe to program an image onto the Imote2.
    • This program is located in $TOSROOT/contrib/imote2/tools/bin/.
    • To install a program: USBLoaderHost -p main.bin.out
  • Toggling an External Pin on the Imote2
  • When sending over UART, make sure the debug board is connected.
  • In TinyOS 1.x, TOS_LOCAL_ADDRESS is the last 2 digits of the mote id in hex
  • Even though the default maximum message size is 29 bytes, the Imote2 will only send a message if it has an even length. The call to GenericComm.sendMsg will actually return FAIL if you try to send a 29 byte long packet.
  • Size of local variable array is very small. If you want to use a large array, you need to declare it globally. E.g. realA, PS, W arrays.