Hi David,
    now the code is going little better but i don't know why of this behaviour:
 
i explain you in a simple way:
 
i have 2 nodes, every node creates a new packet every 10 seconds. When they 
create or receive a packet, they inject them in a buffer with the same 
generation (a parameter to distinguish). If the packet is new they create a new 
buffer, otherwise they read from flash the correct buffer for injecting the 
packet into.
 
Well, it seems easy, but for now all is working except the fact that: in my 
flash the node are writing in the right places (for reading i'm not sure..), so 
they recognize if the correspondent buffer exists. But they inject in this way 
the packet:
 
in flash, the buffer with 
-generation=0 has:  the pck from node 0, generation 0 and the pck from node 1 
generation 1(so the generation is wrong, may be it's wrong in the reading?..)
-generation1 : from node 0 generation 1 and from node 1 generation2.
and so on
it means by node1 there is not matching (it differs by 1 generation)
 
i see all these things on node 0, that is the first which starts working.  
 
And also the data i read on mote 0 by your flashbridgeviewer application are 
not correct. In the matrix field i can see that the real data aren't matching 
with the displayed ones by some bytes (from 1 byte for generation 0 to 4 bytes 
to generation 3!). But the other fields are ok, so my functions for injecting 
or other are working properly. 
I attached a simple version of my code, may be it would be easy to find an 
error...i think however in the reading phase from flash...but i'm gonna crazy 
on finding it..
 
thanks for your availability
cheers
Daniele 
 
 
 
 
 

         

Attachment: BcastM_bckup_for_DAVID.nc
Description: BcastM_bckup_for_DAVID.nc

0x0 to 0x120
_________________________________________________
00 00 00 40 01 00 02 00   00 00 00 00 00 00 00 00   |  [EMAIL PROTECTED]  
##############
01 00 26 C2 03 8D 94 AF   D0 2E D2 2A 00 01 BD 65   |   #&Â#??¯  Ð.Ò*##½eÕ     
D5 B5 7C E7 D8 AF 41 94   02 00 00 00 0C 00 02 00   |   µ|çدA?  ####
01 02 00 01 00 00 00 01   00 00 00 80 3F 01 00 02   |   #######  ###??####     
00 01 00 00 00 00 00 00   00 01 00 E8 5E 32 E3 4D   |   #######  ###è^2ãM#     
14 AF E5 44 06 00 01 FE   EE C3 99 2D 4C 82 1B 29   |   ¯åD###þ  îÃ?-L?#)M     
4D 02 00 00 00 0C 00 02   00 01 02 00 01 00 00 00   |   ####
01 00 00 00 80 3F 01 00   02 00 02 00 00 00 00 00   |   ###??##  #########     
00 00 01 00 9A B3 ED 54   26 C2 0A 9A BA FA 00 01   |   ###?³íT  &  
22 5B A9 4D 8C 07 11 34   72 FB 02 00 00 00 0C 00   |   [©M?#
02 00 01 02 00 01 00 00   00 01 00 00 00 80 3F 01   |   #######  #####??##     
00 01 00 03 00 00 00 00   00 00 00 01 00 73 6D 54   |   #######  #####smT/     
2F E5 49 1C B6 E2 4A 00   00 00 00 00 00 00 00 00   |   åI#¶âJ#  #########     
00 00 00 01 00 00 00 0C   00 01 00 01 01 00 00 00   |   ######
00 00 FF FF FF FF FF FF   FF FF FF FF FF FF FF FF   |   #ÿÿÿÿÿÿ  ÿÿÿÿÿÿÿÿÿ     
FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF   |   ÿÿÿÿÿÿÿ  ÿÿÿÿÿÿÿÿÿ     
FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF   |   ÿÿÿÿÿÿÿ  ÿÿÿÿÿÿÿÿÿ     
FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF   |   ÿÿÿÿÿÿÿ  ÿÿÿÿÿÿÿÿ      

00 00 00 40
01 00
02 00
00 00
00 00 
00 00 00 00
01 00 26 C2 03 8D 94 AF   D0 2E D2 2A  first row of matrix
00 01    second
02 00 00 00
0C 00
02 00
01
02 00
01 00
00 00 
01 00

These are the fields in order of the first buffer (generation 0-> 00 00)

but the first pck from node 1 has to be (second row without 00 01):
67 D1 BD 65 D5 B5...  
and not 
BD 65 D5 B5...
so i lose the first 2 bytes here, for example..
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to