Sensors FAQ


How to get around with the MSB 430...














How to get information about sensors hardware?
How do I start coding on the sensors?
How do I compile my source code for sensors?
How do I load my compiled code on the sensors?
How do I install a JTAG flashing cable?
How do I display the output of a sensor?
How to install a USB communication cable?
How to check the port of a USB communication cable?
How do I change the address (or ID) of a node?
How do I get more information about Scatterweb code etc.?






HOW DO I GET INFORMATION ABOUT THE SENSORS HARDWARE ?

  1. download the "First Steps" document, available here
  2. study it



HOW DO I START CODING ON THE SENSORS?

  1. download the framework available here, and copy it in your C: drive as C:/MSB/
  2. download template and example applications, available here, and copy them in C:/MSB/Applications
  3. study them



HOW TO COMPILE MY SOURCE CODE ON THE SENSORS?

  1. Pre-requisite: Windows XP SP2. Have Cygwin, including DEVEL\make GNU MAKE >= 3.81 is needed (to check type: make -v). Cygwin is freeware, available here.
  2. If it is not done already, install mspgcc (available here). Make sure, that cygwin\bin and mspgcc\bin directories are included in the PATH. If you see errors about duplicate cygwin dlls, ensure that Cygwin is in the path before msgpcc, then remove all cygwin*.dll files from the mspgcc\bin directory
  3. See System\makefile.platform for some configuration variables that might need to be adjusted for your environment
  4. open a windows cmd shell
  5. go to the scatterweb application directory by typing: "cd C:\MSB\Applications\application-directory"
  6. type the build command: "make"
  7. Make sure, that cygwin\bin and mspgcc\bin directories are included in the PATH. If you see errors about duplicate cygwin dlls, ensure that Cygwin is in the path before msgpcc, then remove all cygwin*.dll files from the mspgcc\bin directory.
  8. To remove build and object files type "make clean"



HOW TO INSTALL JTAG FLASHING CABLE?

  1. download the driver and DLLs (available here, search for "MSP430-JTAG-ISO drivers add support for all devices released by TI" in the page)
  2. plug in the JTAG cable (usually grey color) on a USB port of the computer
  3. when Windows asks for drivers indicate the directory "driver" in what you downloaded
  4. if windows says that it does not pass the logo testing, click on "Continue Anyway", then on Finish
  5. then copy the DLLs (those next to the "driver" directory) in mspgcc/bin. Overwrite if needed.



HOW DO I LOAD MY COMPILED CODE ON THE SENSORS?

  1. to load compiled code on a sensor node, flash the node with the JTAG cable. If it is not installed yet, follow the steps in How do I install a JTAG flashing cable?
  2. once your application is compiled, and the flasher cable is installed
  3. plug the J-TAG cable on the node and on a USB port of the computer, and make sure the node has power
  4. in the command prompt type cd application directory path\MSB\out (example with OLSR: C:\MSB\Applications\application-directory\MSB\out )
  5. in the command prompt, type then mspfetcon -pi +ebp out.hex -FET=TIUSB (mspfetcon can be found in the "tools" directory, and "out.hex" may have to be replaced with the application name "application.hex")
  6. alternatively, simply type "make flash JTAGPORT=TIUSB" in the command line.



HOW TO DISPLAY THE OUTPUT OF A SENSOR?

  1. plug in the communication cable (usually black color) on a USB port of the computer. If the cable is not installed yet, follow the steps in How to install a USB communication cable?
    .
  2. lauch the common windows application HyperTerminal
  3. plug in the communication cable (usually black color) on a USB port of the computer
  4. in Hyperterminal, create a new connection
  5. check the name of the USB cable that you are using (usually COMM1, or any other number than 1, see How to check the port name of a communcation cable?)
  6. set the following properties for the connection: 115200 bps, no stream control, and in ASCII configuration, check in the first 2 boxes
  7. store these connection settings, for example with the name "COMM1-settings"
  8. turn on the sensor
  9. you may also have to disconnect and then reconnect the HyperTerminal connection too. In this case turn off and back on the sensor one more time and you should see output printed on the screen.



HOW TO INSTALL A USB COMMUNICATION CABLE?

  1. download the driver for the USB communication cable, available here
  2. plug in the communication cable (usually black color) on a USB port of the computer.
  3. when Windows asks for drivers indicate this directory.
  4. this step may have to be repeated once.



WHAT IS THE NAME OF THE PORT OF A COMMUNICATION CABLE?

  1. go to "Panneau de configuration", then to "System", and then to "hardware" (or "Materiel")
  2. click on "hardware manager" (or "gestionnaire de peripheriques")
  3. click on Ports (COM and LPT)
  4. you will then see the names of all connected USB Serial (typically a name is COM3, or COM1)



HOW TO CHANGE THE ADDRESS (OR ID) OF A NODE?

  1. once your node is connected and you have set up Hyperterminal to communicate with it
  2. in the Hyperterminal window, type for instance "id 53"
  3. the node's ID is changed to 53. To verify it, turn off the node and turn it back on. It should state "Node address: 53" in the preamble



HOW DO I GET MORE DETAILED INFORMATION ABOUT SCATTERWEB CODE ETC. ?

  1. check the pages of the Freie Universitaet Berlin here