MSP430 Master Firmware for the Samewire Sense and Control Network