txPower在静脉信标中的作用4.7.1

时间:2018-09-03 14:51:24

标签: omnet++ veins

我对静脉碰撞的产生有疑问。我正在运行示例场景,仅发送信标,没有RSU,也没有阴影。我重复仿真,改变信标间隔(从每秒1个信标(1秒)到每秒30个信标(0.033秒))和传输功率(从5 mW到40 mW),以查看冲突的影响。我所期望的是,使用更少的txPower发生很少的冲突,如果txPower值更大,则会发生更多的冲突。但是我得到了一些不同的碰撞值,例如,这是我所做的一些模拟的输出:

[*] beaconInterval: 0.5 txPower: 5     Collisions: 0    Total Losts: 0  Received: 114723
[*] beaconInterval: 0.5 txPower: 6     Collisions: 0    Total Losts: 0  Received: 128635
[*] beaconInterval: 0.5 txPower: 7     Collisions: 3    Total Losts: 3  Received: 135691
[*] beaconInterval: 0.5 txPower: 8     Collisions: 0    Total Losts: 0  Received: 142921
[*] beaconInterval: 0.5 txPower: 9     Collisions: 0    Total Losts: 0  Received: 153000
[*] beaconInterval: 0.5 txPower: 10     Collisions: 0   Total Losts: 0  Received: 158094
[*] beaconInterval: 0.5 txPower: 11     Collisions: 0   Total Losts: 0  Received: 166895
[*] beaconInterval: 0.5 txPower: 12     Collisions: 0   Total Losts: 0  Received: 172933
[*] beaconInterval: 0.5 txPower: 13     Collisions: 13  Total Losts: 13 Received: 178446
[*] beaconInterval: 0.5 txPower: 14     Collisions: 745 Total Losts: 1683   Received: 182008
[*] beaconInterval: 0.5 txPower: 15     Collisions: 0   Total Losts: 0  Received: 192333
[*] beaconInterval: 0.5 txPower: 16     Collisions: 0   Total Losts: 0  Received: 196579
[*] beaconInterval: 0.5 txPower: 17     Collisions: 0   Total Losts: 0  Received: 203119

(例如)用2个信标秒数和14 mW的txPower进行745次冲突,并以相同的间隔和更大的txPower进行0次冲突是正常的吗?这些结果如何解释?

[附加信息:代码]

  • 这是veins (4.7.1)的代码,我只是省略了场景中的RSU和阴影,并获得了碰撞的静态信息。该应用程序基于 MyVeinsApp ,仅在收到信标时打印,仅此而已。
  • 这是Python code,用于运行各种模拟 beaconInterval txPower (运行脚本 sensibilityOfChanges.py )。

在文件 resultados.txt 中,您可以看到我得到的部分结果。在此文件和代码中,我将Ftx称为信标速率(beaconInterval由1 / Ftx获得),将Ptx称为txPower。

0 个答案:

没有答案