Hello, I have written a simple application where I am storing "HI" in mote and trying to see if it is stored. The LED blinks show that it is, but the printf command does not print anything.
I have done all needed setup. When I run "*java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:iris". *it simply displays "serial@/dev/ttyUSB0:57600: resynchronising" and then cursor keeps blinking on the screen without displaying anything, while the LEDs still blink. #include <avr/pgmspace.h> #include <printf.h> module SnRM { uses interface Leds; uses interface Boot; uses interface Timer<TMilli> as Timer0; } implementation { unsigned char fsmCode[] PROGMEM = { "HI"}; uint16_t i; unsigned char var1, var2; event void Boot.booted() { call Timer0.startPeriodic( 250 ); } event void Timer0.fired() { var1 = pgm_read_byte(&fsmCode[0]); call Leds.led1Toggle(); var2 = pgm_read_byte(&fsmCode[1]); call Leds.led0Toggle(); printf("This is first letter %c", var1); printf("This is second letter %c", var2); printfflush(); } }
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help