create new tag
, view all tags

Working on and Debugging the Packet Radio Assignments without a Monash Packet Radio

It is really simple (this is the power of OMNeT++): Just connect the output gate of the MAC layer to its input and remove the SmartPacketRadio module from the NED file, and every message you send will be received back. With this trick you can easily continue working on your code.

For example, if you do the following changes in the SourceSink.ned of Sending and Receiving Packets experiment

network SourceSink
        source: Source {
        sink: Sink {
//        radio: SmartPacketRadio { // Comment out the radio module
//            @display("p=72,37");
//        }
//        source.out --> radio.in; // Comment out the connections to the radio module
//        radio.out --> sink.in; 
          source.out --> sink.in   // Instead, directly connect the source to sink
Then every packet generated by the source will be received locally by the sink and displayed. An interesting exercise worthwhile trying is to see the effects of adding delay or even bit errors into the link, like this:
         source.out --> { delay = 100ms; } --> sink.in
Please have a look at the Channels section of OMNeT++ User Manual for further details on communication channel modeling.
Topic revision: r2 - 2013-08-25 - AhmetSekercioglu
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback