riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
203 stars 129 forks source link

Messages not being received when obstacles added eventhough there is line of sight #236

Closed rdn123 closed 2 years ago

rdn123 commented 2 years ago

Hello,

I am currently testing an example of my creation in Artery, I have a RSU and an OBU in a car. First, I tested the scenario without obstacles and the messages were exchanged perfectly but when I introduced the obstacles no messages were received. There is direct line of sight between them in a part of the trajectory, I have tried solving it but I am unable and any help would be appreciated.

Thank you.

riebl commented 2 years ago

You need to give a little bit more details about your configuration:

Without more information, it is almost impossible to give any sensible advice.

rdn123 commented 2 years ago

Hello, I am using INET radio layer with Ieee80211ScalarRadioMedium Radio propagation model: ConstantSpeedPropagation PathLossType: FreeSpacePathLoss ObstacleLossType: IdealObstacleLoss analogModel:ScalarAnalogModel backgroundNoiseType:IsotropicScalarBackgroundNoise Both RSU and OBU have VanetNic The RSU and the OBU are transmitting 200mW

The same configuration without the obstacles works fine.

Thank you very much for the quick response,

riebl commented 2 years ago

I have not used IdealObstacleLoss yet. However, I suggest setting a breakpoint in IdealObstacleLoss::isObstacle at line 58, which is hit if an obstacle is found between transmitter and receiver. Identifying the blocking object may help to explain the observed behaviour. Also, be aware that the coordinates of PhysicalEnvironment objects belong to the INET coordinate system, which is different to the SUMO coordinate system.

rdn123 commented 2 years ago

I have done as you suggested. I put the the breakpoint in IdealObstacleLoss::isObstacle at line 58 and apparently there was an obstacle between the transmitter and the receiver even though I could not see that obstacle (I am using PhysicalEnvironmentVisualizer ). Anyway, I took the nearby obstacles away and now there is not any obstacle between them (isObstacle is 0 at line 56) but I still can not receive anything. The obstacles seem to be well located as I can see visually. I don´t know what I can be missing.

riebl commented 2 years ago

Maybe the INET community can help you because the radio layer is mostly plain INET; Artery just adds some wrapping code ("radio driver") to make it accessible in our architecture.

rdn123 commented 2 years ago

Ok, thank you!