如何用viens发送信标 [英] How to send beacon with viens

查看:66
本文介绍了如何用viens发送信标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何将汽车 a 的消息发送到汽车 b 或 rsu.但我需要发送信标.发送消息和发送信标有什么不同.我看不到任何 sendBeacon().我应该如何发送?

I know How to send a message for car a to car b or rsu. but I need to send beacons. what is different between sending a message and sending beacons. I cant see any sendBeacon(). How should I send one?

推荐答案

从根本上说,信标只是一个重复的广播消息,它携带一些在发送者附近普遍感兴趣的信息.您可以在 Veins 中通过让您的应用程序每隔一段时间调用其 sendDown 方法来实现这一点.

Fundamentally, a beacon is simply a repeated broadcast message that carries some information of general interest in the vicinity of the sender. You can achieve this in Veins by having your application call its sendDown method every once in a while.

您可以在 https://github.com/sommer/veins/blob/veins-4.5/src/veins/modules/application/ieee80211p/BaseWaveApplLayer.cc#L242

这篇关于如何用viens发送信标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆