Changing WSM(WAVE Short Message) packet size in Veins

后端 未结 2 1184
我寻月下人不归
我寻月下人不归 2020-12-11 09:45

Does setting length of WSM via setWsmLength or adding a large payload via setWsmData makes any difference during simulation? I am trying to simulat

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 10:08

    I know it is decades later, but maybe it can help some new vanets lovers like me.

    In omnet++5.4.1 and Veins 4.7.1, in the function

    populateWSM()

    defined in BaseWaveApplLayer.cc (veins/modules/application/ieee80211p), you can set the bit length with the

    wsm->setBitLength()

    method and it changes the size of the wsm packet. By default, it has the length of the header

    wsm->setBitLength(headerLength)

    I have played with this and could obtain different packet sizes.

    Hope this is useful.

提交回复
热议问题