Hello,
I'm working on test of dissemination protocol which is DIP with Micaz. When
I simulate DIP (TestDip) several times, it looks working fine. That is, I
can see SUMMARY/VECTOR/DATA except INVALID. However, when I tested it with
Micaz, I couldn't see SUMMARY message in Listen application(I see this via
SerialForwarder MIB510 with USB serial port). My test environment is as
follow.
----------------------------------------------------------------------
Micaz#1 - Node ID 0
Micaz#2 - Node ID 1
Micaz#3 - Node ID 2
Micaz#4(Listener) - USB serial port 1(MIB510)
Micaz#5(Injecter) - USB serial port 2(MiB510)
----------------------------------------------------------------------
It seems they only send/receive VECTOR/DATA. So I looked at the source code
DipLogicP.nc in /opt/tinyos-2.x/tos/lib/net/dip, and I can see
--------------------------
dbg("DipLogicP", "D=%u, E=%u, L=%u, V=%u, C=%u\n", D, E, L, V, C);
if((D - E) < (L / (C * V))) {
return ID_DIP_SUMMARY;
}
return ID_DIP_VECTOR;
--------------------------
So I can come up to two ideas.
1. SerialForwarder can't listen only the SUMMARY packet in my
environment(???)
2. The routine doesn't send SUMMARY at all. In reality, it doesn't return
ID_DIP_SUMMARY.
Can you help me how I can see SUMMARY packet? Any idea is welcome!!
Just in case, I included a part of simulation log with only 2 Micaz.
Thank you,
Seungweon
Simulation log.txt
----------------------------
DEBUG (0): Key registration complete!
DEBUG (0): Key 1
DEBUG (0): Key 2
DEBUG (0): Key 3
DEBUG (0): Key 4
DEBUG (0): Key 5
DEBUG (0): Key 6
DEBUG (0): Key 7
DEBUG (0): Key 8
DEBUG (0): Real Total: 8, Dip Total: 8
DEBUG (0): Real Total: 8, DIP New Total: 8
DEBUG (0): DATA_ESTIMATE initialized to 3
DEBUG (0): MAX_ESTIMATE initialized to 3
DEBUG (0): VECT_ESTIMATE initialized to 2
DEBUG (0): DIP ready
DEBUG (0): Booted at 0:0:0.000000200
DEBUG (0): ActiveMessageC started!
DEBUG (0): Updating data items
DEBUG (0): App notified key 5 is new
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 5 to index 4
DEBUG (0): App notified key 7 is new
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Converting key 7 to index 6
DEBUG (0): App notified key 6 is new
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Converting key 6 to index 5
DEBUG (0): App notified key 1 is new
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-3
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-3
DEBUG (0): Index-5 Estimate-3
DEBUG (0): Index-6 Estimate-3
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to DATA
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Data sent with key 1 and version 00010000
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-2
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-3
DEBUG (0): Index-5 Estimate-3
DEBUG (0): Index-6 Estimate-3
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to DATA
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Data sent with key 5 and version 00010000
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-2
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-2
DEBUG (0): Index-5 Estimate-3
DEBUG (0): Index-6 Estimate-3
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to DATA
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Data sent with key 6 and version 00010000
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-2
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-2
DEBUG (0): Index-5 Estimate-2
DEBUG (0): Index-6 Estimate-3
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to DATA
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Data sent with key 7 and version 00010000
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-2
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-2
DEBUG (0): Index-5 Estimate-2
DEBUG (0): Index-6 Estimate-2
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to VECTOR
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-1
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-2
DEBUG (0): Index-5 Estimate-1
DEBUG (0): Index-6 Estimate-2
DEBUG (0): Index-7 Estimate-0
DEBUG (0): Decision to VECTOR
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-1
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-1
DEBUG (0): Index-5 Estimate-1
DEBUG (0): Index-6 Estimate-1
DEBUG (0): Index-7 Estimate-0
DEBUG (0): D=3, E=1, L=4, V=2, C=1
DEBUG (0): Decision to VECTOR
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 1 to index 0
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Converting key 6 to index 5
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 1024
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-0
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-1
DEBUG (0): Index-5 Estimate-0
DEBUG (0): Index-6 Estimate-1
DEBUG (0): Index-7 Estimate-0
DEBUG (0): D=3, E=1, L=4, V=2, C=1
DEBUG (0): Decision to VECTOR
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 5 to index 4
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Converting key 7 to index 6
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 2048
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-0
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-0
DEBUG (0): Index-5 Estimate-0
DEBUG (0): Index-6 Estimate-0
DEBUG (0): Index-7 Estimate-0
DEBUG (0): D=3, E=0, L=8, V=2, C=1
DEBUG (0): Decision to SUMMARY
DEBUG (0): Highest key at 0 with estimate 0 and thus len 8
DEBUG (0): First range: 0, 8 = 0
DEBUG (0): Iterating from 0 to 8
DEBUG (0): Found range 0, 8
DEBUG (0): Hash Entry: 00000008 e7075cc0 b0283040
DEBUG (0): Highest key at 0 with estimate 0 and thus len 8
DEBUG (0): First range: 0, 8 = 0
DEBUG (0): Iterating from 0 to 8
DEBUG (0): Found range 0, 8
DEBUG (0): Hash Entry: 00000008 e7075cc0 b0283040
DEBUG (0): Attempting to send data in the air
DEBUG (0): Data send successfully in the air
DEBUG (0): Window size requested, give 4096
DEBUG (0): Firing Trickle Event Timer
DEBUG (0): Trickle Timer fired!
DEBUG (0): Index-0 Estimate-0
DEBUG (0): Index-1 Estimate-0
DEBUG (0): Index-2 Estimate-0
DEBUG (0): Index-3 Estimate-0
DEBUG (0): Index-4 Estimate-0
DEBUG (0): Index-5 Estimate-0
DEBUG (0): Index-6 Estimate-0
DEBUG (0): Index-7 Estimate-0
DEBUG (0): D=3, E=0, L=8, V=2, C=1
DEBUG (0): Decision to SUMMARY
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help