我正在实施由RSU发送的ACK功能,我试图在frameID
类中获得BaseWaveApplLayer
。它有cMessage
个对象,但我无法获得正确的freamID
我尝试使用messageId
,但它与从节点发送的不同。还对getEncapsulationId()
进行了测试,但这也是不同的。如何让发件人发送frameId
?
void BaseWaveApplLayer::handleLowerMsg(cMessage* msg) {
WaveShortMessage* wsm = dynamic_cast<WaveShortMessage*>(msg);
ASSERT(wsm);
if (BasicSafetyMessage* bsm = dynamic_cast<BasicSafetyMessage*>(wsm)) {
receivedBSMs++;
onBSM(bsm);
}
}