Professional Documents
Culture Documents
Jia Hao
Jiechang Wu
network model
in
the
OPNET
Modeler
simulation
designed
to
implement
collision
detection
and
non
area
network;
OPNET;
modeling;
I.
INTRODUCTION
II.
A.
OPNET
577
III.
A.
B.
Start
Figure 1.
Figure 2.
B.
Figure 3.
578
num node=
op_topo_object_count(OPC_OBJTYPE_NODE]IX);
op_ima_obLattret(own_node_objid,"can_llc.can_identifi
er",&my_node_can_id);
for(i = 0; i<num_node;i++)
Figure 4.
can_mac
node_objid =
op_topo_child(sub_objid,OPC_OBJTYPE_NODE]IX,i);
op_ima_obLattret(node_objid,"can_mac.tran_id",&tran
_status);
if(tran_status == 1)
op_ima_obLattret(node_objid,"can_llc.can_identi
fier",&other_node_can_id);
if(other_node_can_id < my_node_can_id)
number _high=number_high+ 1;
Figure 5.
579
Figure 7.
D.
Figure 6.
2)
TErrorActive
TErrorPassi ve
-x
Ttxdelay
(12 + 8)
(1)
X
(20 + 8)
Ix
-xpk1enbit
(2)
Vtx
vtx
-
deference
580
IV.
Figure 9.
TABLE!.
Node
PRI
Packet
Length
Ibit
master
slave I
slave 2
slave 3
slave 4
0
I
2
3
4
44-108
scenario2
scenario3
20
80
V.
CONCLUSION
Figure 8.
581
[I]
[2]
[3]
Jiping TAO, Wenyan XU, Genke YANG, and Hao WANG, "A
Simulation Method of Petri Nets Based on Stateflow," COMPUTER
SIMULATION. vol.23, Dec. 2006, pp.96-113.
[4]
Xin LI, Ming YE, and Wenhua HAO, "Network Modeling and
Simulation with OPNET Modeler," XIDIAN UNIVERSITY
press.2006,pp. l -9.
[5]
Xiaoting LI, Fan DING, and Huagang XIONG, "CAN modeling and
simulation based on OPNET," Journal of Beijing University of
Aeronautics and Astronautics, vo1.35, Mar. 2009, pp.284-287.
[6]
[7]