Ann
Ann

Reputation: 13

a question about omnet++ wireless node's source code

I want to see the source code for sending data packets wirelessly,but I try a lot ,such as refer to tutorials ,but I still can not find it.Who can help me that? very thanks!!

Upvotes: 1

Views: 115

Answers (2)

Hanqing Guo
Hanqing Guo

Reputation: 51

I am also new to the OMNET++ and inet. I have exactly same problem as yours. When I search the "wlan" node, I found it was used as submodules in /inet/node/base/LinkLayerNodeBase.ned. The type of "wlan" in default is Ieee80211Interface, which source code is under "/inet/linklayer/ieee80211/ieee80211Interface.ned". I suppose we are using same tutorial, then the omnetpp.ini has claimed that the "wlan" type is AckingWirelessInterface in this sentence *.host*.wlan[0].typename = "AckingWirelessInterface". And this AckingWirelessInterface is actually another compound module "/inet/linklayer/acking/AckingWirelessInterface" that implement "IWirelessInterface". To find how it handle the packages, you should go to his submodules:submodules. More specifically, you can check "inet/linklayer/acking/AckingMac.cc" and "inet/physicallayer/unitdisk/UnitDiskRadio.cc" to find module and module.

Upvotes: 0

Jerzy D.
Jerzy D.

Reputation: 7002

First of all I suggest doing the basic tutorial for OMNeT++ available in TicToc Tutorial.

The NED definitions as well as C++ source files of link layer are in src/inet/linklayer, for example src/inet/linklayer/ieee80211. Moreover, take a look at INET User's Guide.

Upvotes: 1

Related Questions