Hello everybody!
I have a doubt about the trace file. I need the *coordinates* (x,y) of nodes
appear on the trace output.
I added these lines of tcl script code:
...
*Simulator set MovementTrace_ ON*
...
-agentTrace ON \
-routerTrace OFF \
-*movementTrace ON* \
-macTrace OFF \
-phyTrace ON
...
At this moment I obtain this:
*M* 0.00000 0 (0.03, 55.59, 0.00), (44.12, 8.81), 0.07
*M* 0.00000 1 (79.92, 31.30, 0.00), (63.89, 23.46), 4.08
*M* 0.00000 2 (30.91, 83.63, 0.00), (64.01, 4.28), 0.82
*M* 0.00000 3 (11.38, 85.97, 0.00), (9.41, 17.48), 2.12
*M* 0.00000 4 (80.70, 34.87, 0.00), (51.86, 40.87), 1.29
*M* 0.00000 5 (46.61, 69.23, 0.00), (21.72, 83.98), 4.31
*M* 0.00000 6 (24.12, 85.11, 0.00), (90.49, 76.22), 3.39
*M* 0.00000 7 (40.55, 10.92, 0.00), (88.74, 18.74), 2.02
...
s 0.020000000 _0_ PHY --- 13 PBC 233 ------- [0:0 -1:0 32 0]
D 0.020000278 _4_ PHY PND 13 PBC 233 ------- [0:0 -1:0 32 0]
D 0.020000278 _1_ PHY PND 13 PBC 233 ------- [0:0 -1:0 32 0]
r 0.020649108 _3_ AGT --- 13 PBC 233 [0 ffffffff 0 0] ------- [0:0 -1:0 32
0]
r 0.020649127 _6_ AGT --- 13 PBC 233 [0 ffffffff 0 0] ------- [0:0 -1:0 32
0]
r 0.020649139 _2_ AGT --- 13 PBC 233 [0 ffffffff 0 0] ------- [0:0 -1:0 32
0]
r 0.020649162 _5_ AGT --- 13 PBC 233 [0 ffffffff 0 0] ------- [0:0 -1:0 32
0]
r 0.020649201 _7_ AGT --- 13 PBC 233 [0 ffffffff 0 0] ------- [0:0 -1:0 32
0]
...
I have only obtained the visualisation of the coordinates every 30 seconds.
*(first)*
*M 0.00000 0 (0.03, 55.59, 0.00), (44.12, 8.81), 0.07*
M 0.00000 1 (79.92, 31.30, 0.00), (63.89, 23.46), 4.08
M 0.00000 2 (30.91, 83.63, 0.00), (64.01, 4.28), 0.82
M 0.00000 3 (11.38, 85.97, 0.00), (9.41, 17.48), 2.12
M 0.00000 4 (80.70, 34.87, 0.00), (51.86, 40.87), 1.29
M 0.00000 5 (46.61, 69.23, 0.00), (21.72, 83.98), 4.31
M 0.00000 6 (24.12, 85.11, 0.00), (90.49, 76.22), 3.39
M 0.00000 7 (40.55, 10.92, 0.00), (88.74, 18.74), 2.02
...
*(second)*
*M 30.00000 0 (1.50, 54.04, 0.00), (75.16, 23.40), 1.11*
M 30.00000 1 (63.89, 23.46, 0.00), (47.27, 33.68), 3.82
M 30.00000 2 (40.39, 60.91, 0.00), (31.04, 29.51), 0.23
M 30.00000 3 (9.56, 22.45, 0.00), (2.09, 47.31), 4.47
M 30.00000 4 (51.86, 40.87, 0.00), (86.93, 9.86), 1.53
M 30.00000 5 (21.72, 83.98, 0.00), (63.26, 76.95), 4.03
M 30.00000 6 (90.49, 76.22, 0.00), (52.62, 42.00), 4.94
M 30.00000 7 (88.74, 18.74, 0.00), (83.84, 0.78), 3.13
...
Instead I would like to display *on each line* the information of the
position of the node that tx or rx.
I need to put it on each line, maintaining the current format -> s
0.020000000 _0_ PHY --- 13 PBC 233 ------- [0:0 -1:0 32 0] + *
(coordinates)*
Thanks you very much for all the help!!!
Agus