Tips on Using Imote2

From Cyber-Physical Systems Laboratory
Jump to navigationJump to search
  • 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.