public MicaSerial(Mote micaZMote) {
mote = (MicaZMote) micaZMote;
MicaZ micaZ = mote.getMicaZ();
/* this should go into some other piece of code for serial data */
AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
if (usart != null) {
usart.connect( new avrora.sim.mcu.USART.USARTDevice() {
public avrora.sim.mcu.USART.Frame transmitFrame() {
return null;
// return new avrora.sim.mcu.USART.Frame((byte)'a', false, 8);