omnet++ - Error in module (Mac1609_4) Model error: ASSERT: condition useSCH false in function handleUpperMsg -


i use veins-4a2 , have modified scenario of demo example. have added new wsm ack when node reveives message, sends ack message source node. have add line in ondata() function:

sendwsm(preparewsm("ack", acklengthbits, type_sch, ackpriority, sourcenode.idnode, 2));

and changed preparewsm , handlelowermsg() functions in basewaveappllayer.cc, when execute simulation, crashes after 10 seconds. error message:

error in module (mac1609_4) rsuexamplescenario.node[2].nic.mac1609_4 (id=240) @ event #1196, t=9.210177776741: model error: assert: condition usesch false in function handleuppermsg, veins/modules/mac/ieee80211p/mac1609_4.cc line 259.

is not have right reuse sch channel ack message? how can correct problem please?

the 1609.4 mac layer of veins 4a2 can used in 1 of 2 operation modes: single channel , multi channel. behavior can configured setting parameter of .ned file:

// cycle between sch , cch (or stay on cch time) bool useservicechannel = default(true); 

from error message posting appears have set parameter false, meaning want radio stay on control channel (cch). @ same time, code posted requests message transmitted on service channel (sch).

you requesting mutually exclusive behavior.

veins correctly identified , aborted simulation.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -