Omnetpp无线主机发送有用的信息

发布于 2025-02-08 07:10:50 字数 388 浏览 2 评论 0 原文

I am new to Omnetpp, and I am trying to send messages from one node to another wirelessly.
Basically, I would like to do something as in the tictoc example of Omnetpp (https://docs.omnetpp.org/tutorials/tictoc/) but then wirelessly.
I have installed INET already, and I have seen the wireless example, which uses the UdpBasicAPP. However, I do not know how to change the data of the message send while using the UdPBasicAPP. In my case, what I am sending (i.e. the data) is very important because it is part of a bigger project. Eventually, the idea is to use the 802.11p standard (which exists in VEINS) and multiple nodes, but I thought this was a good place to start.

I hope someone can help me out.

Kind regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玉环 2025-02-15 07:10:50
  1. 只是要注意:802.11p也直接支持INET。只需在网络接口上设置 opmode 参数即可。
  2. 您将需要创建自己的应用程序模块。查看/复制 UDPBASICAPP 并根据您的需求进行修改。检查 sendpacket()函数,该功能创建 applicationpacket ApplicationPacket 仅包含一个序列编号,但是您可以创建自己的应用程序级别数据结构并将其用于发送。
  1. just to be aware: 802.11p is also supported directly in INET. Just set the opMode parameter on the network interface.
  2. You will need to create your own application module. Take a look/copy UdpBasicApp and modify it according to your needs. Check the sendPacket() function which creates an ApplicationPacket. ApplicationPacket contains only a single sequence number, but you can create your own application level data structure and use that for sending.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文