Firmware - Utah-WiESEL/wren_wsn GitHub Wiki

Base Station Pins

  1. GND
  2. 3.3V
  3. SCL
  4. SDA
  5. Reset
  6. 5V
  7. GND
  8. NC

Bus Pirate

We are current using the Sparkfun Bus Pirate as the I2C Master for the Base Station. The Bus Pirate provides a communication link between the motes and the PC. TinyOS was ported to support the new BSL and new programming interface.

To set up for I2C, please follow the direction in the link below:

http://wiesel.ece.utah.edu/redmine/projects/hacks/wiki/SparkFun_Bus_Pirate_I2C

Note: Jumper 3.3V to VPU

3.3V Power Supply

We need 3.3 Volts for the address line. This could be achieved using a simple regulator and the existing 5 Volts power supply. Currently, we are not using the addressing line. The functionality is there for future exploits.

BSL & Test Application

The repo includes the I2C BSL source code. While you can compile it yourself, we provide the hex output of the I2C BSL and the test application. This hex binary is to be used with the gang programmer to program 8 motes at the same time.

Step 1:

Configure the MSP-GANG Programmer Software. Follow the screenshots. Replace "blink" with the correct program file.

Step 2:

Program the MSP-GANG Programmer with the new image.

Step 3:

Plug the WRENs in and press go.

You can also program each WREN by yourself using MSP430EZFET and mspdebug.

The included test application will test all components of the WREN. While the test is in the process, the LED will remain blue. Once all tests have completed, the status of success or failure is given by the LED. Here’s the meaning of light indicator:

Status:

Blue: in progress

Green: success

Red: error (# of blinks)

1x: Charging

2x: Radio

3x: Accelerometer

4x: Real Time Clock

5x: Flash

Note: If the mote has more than one problem, the light will stop for a short time before blinking the remaining error(s).

Serialization

This step is serializing the motes for radio communication and also inventory purposes. Check out this link for a more detailed process.

Step 1:

Program the motes with WRENSerializer.

Step 2:

Serialize the WRENs.

Step 3:

Use a laser to engrave the numbers on top. (In case you don’t have a laser cutter, feel free to use any other mean)

Step 4:

Clean up.

Note: This step will also test out the I2C BSL portion as well as put on a serial number for the mote. If the serialization is completed successfully, congratulations your WRENs are ready to go. Enjoy collecting a large amount of data.

Laser engrave settings for WREN Case

  • Raster
  • speed: 100%
  • power: 25%