Dear All:
Hi. I am following the tutorials on TinyOS Doc. And I have encountered
this problem:
source code:
* uint8_t dummyVar1 = 123;
event void Boot.booted() {
for (; dummyVar1 > 0; dummyVar1--) {
printf("%u ", dummyVar1);
printfflush();
for (j = 0; j < 100; j++) {
for (i = 0; i < 10; i++) {}
}
}
} *
here is the output of net.tinyos.tools.PrintfClient:
*Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising
123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105
104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56
55 54 53 52 51 50 49 48 47
*
output of net.tinyos.tools.Listen:
*serial@/dev/ttyUSB0:115200: resynchronising
00 FF FF 00 00 1C 00 64 31 32 33 20 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
00 FF FF 00 00 1C 00 64 31 32 32 20 31 32 31 20 31 32 30 20 31 31 39 20 31
31 38 20 31 31 37 20 31 31 36 20
00 FF FF 00 00 1C 00 64 31 31 35 20 31 31 34 20 31 31 33 20 31 31 32 20 31
31 31 20 31 31 30 20 31 30 39 20
00 FF FF 00 00 1C 00 64 31 30 38 20 31 30 37 20 31 30 36 20 31 30 35 20 31
30 34 20 31 30 33 20 31 30 32 20
00 FF FF 00 00 1C 00 64 31 30 31 20 31 30 30 20 39 39 20 39 38 20 39 37 20
39 36 20 39 35 20 39 34 20 39 33
00 FF FF 00 00 1C 00 64 20 39 32 20 39 31 20 39 30 20 38 39 20 38 38 20 38
37 20 38 36 20 38 35 20 38 34 20
00 FF FF 00 00 1C 00 64 38 33 20 38 32 20 38 31 20 38 30 20 37 39 20 37 38
20 37 37 20 37 36 20 37 35 20 37
00 FF FF 00 00 1C 00 64 34 20 37 33 20 37 32 20 37 31 20 37 30 20 36 39 20
36 38 20 36 37 20 36 36 20 36 35
00 FF FF 00 00 1C 00 64 20 36 34 20 36 33 20 36 32 20 36 31 20 36 30 20 35
39 20 35 38 20 35 37 20 35 36 20
00 FF FF 00 00 1C 00 64 35 35 20 35 34 20 35 33 20 35 32 20 35 31 20 35 30
20 34 39 20 34 38 20 34 37 00 00 *
Why is this happen? Why doesn't the for loop run to the final state?
Confused by this. And see from the tools.Listen, Why the prinfflush() does
not perform as expected? Can anyone help me? Lots of thanks.
--
Yours,
Sisu Xi
Phone: 138-1180-3470
Blog: xisisu.spaces.live.com
This is my future, if I do not fight for it, who will?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help