Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omnetpp-l] ieee802154 - two parallel tramsmitters



Hi,

all what I want to do in my simulation is to have 3 hosts, two of them start transmit in same simulation time and receiver will receive this packets - and will count SNR.  (both transmitters are in same distance away of receiver). But I cant find out how to do it.

This is the output that i took a look and tried to debugged it.

** Event #1  T=0  sim.host[0].nic.radio (SingleChannelRadioAccNoise3, id=15), on selfmsg `SwitchTimer' (cMessage, id=1)
** Event #2  T=0  sim.host[1].nic.radio (SingleChannelRadioAccNoise3, id=25), on selfmsg `SwitchTimer' (cMessage, id=7)
** Event #3  T=0  sim.host[2].nic.radio (SingleChannelRadioAccNoise3, id=35), on selfmsg `SwitchTimer' (cMessage, id=13)

** Event #4  T=0.00108  sim.host[0].nic.radio (SingleChannelRadioAccNoise3, id=15), on selfmsg `SwitchTimer' (cMessage, id=1)
** Event #5  T=0.00108  sim.host[1].nic.radio (SingleChannelRadioAccNoise3, id=25), on selfmsg `SwitchTimer' (cMessage, id=7)
** Event #6  T=0.00108  sim.host[2].nic.radio (SingleChannelRadioAccNoise3, id=35), on selfmsg `SwitchTimer' (cMessage, id=13)

** Event #7  T=0.5  sim.host[0].net (WiseRoute, id=11), on selfmsg `route-flood-timer' (cMessage, id=18)
** Event #8  T=0.5  sim.host[0].nic.mac (csma, id=16), on `route-flood' (WiseRoutePkt, id=24)
CSMA received a message from upper layer, name is route-flood, CInfo removed, mac addr=2147483647
Adding a new parent to the map of Sequence numbers:2147483647


I cant understand this output, the first event is showing that sim.host[0].nic.radio is generating self message. But when I take a look in the code of "SingleChannelRadioAccNoise3.cc" there isn't any line "to generate self message". There is only method handleMessage(), so who is sending message to sim.host[0].nic.radio?

Type of the message (message->getKind()) after selfmsg is for host[0] = Tx, and for both host[1] and host[2] = Rx - cant figure out what set that message types. My last question is who send message to radio as selfmsg, and how can i set that message->kind() for host[1] to be Tx, and finally have two parallel transmitters.

Thanks for help.

Best regards,
Patrick
_______________________________________________
Omnetpp-l mailing list
Omnetpp-l at xxx
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l

Home | Main Index | Thread Index