Problem with send information from each node to the sink (MixiM and Ieee802154Narrow)

81 views
Skip to first unread message

Amene Deljoo

unread,
Sep 2, 2014, 11:58:23 AM9/2/14
to omn...@googlegroups.com
Hi all
I am using the Ieee802154narrow as my base network. I modified this sample. My problem is when I add more nodes to the config part and set the destination address, it dose not work properly.  I want all the node send the data to the sink node but they donot. please see the code. I am wondering if anybody can help me. This code works fine with two nodes.
in ini file I adjust these lines
*.node[2].netwl.destination = 0
*.node[1].netwl.destination = 0
*.node[3].netwl.destination = 0
*.node[4].netwl.destination = 0
should I change
in other part of code?



Thomas Menzel

unread,
Sep 3, 2014, 4:31:29 AM9/3/14
to omn...@googlegroups.com
Hi,

where did you put the line with the wildcard, i.e. *.node[*].netwl.destination ?

The order in the ini-file is important. Check the subsection "Precendence" of Section  "Using Wildcard Patterns" of the Omnet Manual.

Best
Thomas


Amene Deljoo

unread,
Sep 3, 2014, 4:57:04 AM9/3/14
to omn...@googlegroups.com
Thanks, I put them in .ini file. I'll check it thanks.

Amene Deljoo

unread,
Sep 3, 2014, 5:57:25 AM9/3/14
to omn...@googlegroups.com
[Config Test2-C]
extends = Test2-A
description
= "one sending host stationary in range of sink (hidden station), \
               one host moving towards sink and stationary sender,\
               with mac ACKS"

*.numHosts = 4
**.netwl.packetsPerPacketTime = 0.125
*.node[2].mobility.initialX = 480m
*.node[2].mobility.initialY = 250m
*.node[2].netwl.burstSize = 1
*.node[1].netwl.destination=0
*.node[*].netwl.destination=0

this is the config part in omnet.ini I got the same result.
217    1.511806907384    node[1] --> node[0]    TRAFFIC->TO    id=200  kind=22003 length=3125 bytes
#217    1.511806907384    node[1] --> node[3]    TRAFFIC->TO    id=199  kind=22003 length=3125 bytes
#241    1.611998907384    node[0] --> node[1]    CSMA-Ack    id=222  kind=22003 length=11 bytes
#241    1.611998907384    node[0] --> node[2]    CSMA-Ack    id=224  kind=22003 length=11 bytes
#241    1.611998907384    node[0] --> node[3]    CSMA-Ack    id=221  kind=22003 length=11 bytes
#279    1.919442754824    node[1] --> node[0]    TRAFFIC->TO    id=252  kind=22003 length=3125 bytes
#279    1.919442754824    node[1] --> node[3]    TRAFFIC->TO    id=251  kind=22003 length=3125 bytes
#316    2.019634754824    node[0] --> node[1]    CSMA-Ack    id=278  kind=22003 length=11 bytes
#316    2.019634754824    node[0] --> node[2]    CSMA-Ack    id=280  kind=22003 length=11 bytes
#316    2.019634754824    node[0] --> node[3]    CSMA-Ack    id=277  kind=22003 length=11 bytes
#358    2.42584134984    node[2] --> node[0]    TRAFFIC->TO    id=308  kind=22003 length=3125 bytes
#358    2.42584134984    node[2] --> node[3]    TRAFFIC->TO    id=307  kind=22003 length=3125 bytes
#395    2.52603334984    node[0] --> node[1]    CSMA-Ack    id=334  kind=22003 length=11 bytes
#395    2.52603334984    node[0] --> node[2]    CSMA-Ack    id=336  kind=22003 length=11 bytes
#395    2.52603334984    node[0] --> node[3]    CSMA-Ack    id=333  kind=22003 length=11 bytes
#437    2.905901471448    node[1] --> node[0]    TRAFFIC->TO    id=364  kind=22003 length=3125 bytes
#437    2.905901471448    node[1] --> node[3]    TRAFFIC->TO    id=363  kind=22003 length=3125 bytes
#461    3.006093471448    node[0] --> node[1]    CSMA-Ack    id=386  kind=22003 length=11 bytes
#461    3.006093471448    node[0] --> node[2]    CSMA-Ack    id=388  kind=22003 length=11 bytes
#461    3.006093471448    node[0] --> node[3]    CSMA-Ack    id=385  kind=22003 length=11 bytes
#487    3.03795114828    node[3] --> node[0]    TRAFFIC->TO    id=416  kind=22003 length=3125 bytes
#487    3.03795114828    node[3] --> node[1]    TRAFFIC->TO    id=418  kind=22003 length=3125 bytes
#487    3.03795114828    node[3] --> node[2]    TRAFFIC->TO    id=415  kind=22003 length=3125 bytes


as you see each node will send the information to the other node which they are in the same range.
please help me I do not know how to figure out it.
thanks

Amene Deljoo

unread,
Sep 3, 2014, 11:12:37 AM9/3/14
to omn...@googlegroups.com
Any suggestion?

Michael Kirsche

unread,
Sep 3, 2014, 5:38:09 PM9/3/14
to omn...@googlegroups.com
Are all your nodes within range of the actual sink?
If they are not, then they cannot send their messages to the sink. Can't know for sure with the ini fragment that you've given.

Amene Deljoo

unread,
Sep 8, 2014, 3:19:34 AM9/8/14
to omn...@googlegroups.com
Actually I do not know all nodes within range of sink or not. How can I check it?

Amene Deljoo

unread,
Sep 8, 2014, 4:18:25 AM9/8/14
to omn...@googlegroups.com

Dear Michael
I enabled the  r¨ tag in .ned file. I think they are in the same transmission range. please have a look at the picture.
the other thing is that, node(0) is sending the ACK to the other nodes.
Any help will be highly appreciated.

Michael Kirsche

unread,
Sep 8, 2014, 5:12:55 AM9/8/14
to omn...@googlegroups.com
Sorry but I can't see anything in that screen shot.
The resolution is just to low to make out any of the node names... make sure that you either take a separate screen shot of just the OMNeT window or post-process your original screen shot so that only the OMNeT window is larger and visible.

Thomas Menzel

unread,
Sep 8, 2014, 5:14:37 AM9/8/14
to omn...@googlegroups.com
In your log (sent on Sept. 3rd), node 0 is sending acks to nodes 1,2,3. Thus, what are you missing?

Best
Thomas

Amene Deljoo

unread,
Sep 8, 2014, 5:40:12 AM9/8/14
to omn...@googlegroups.com
Thanks, I would like to connect each node directly to node 0.

Thomas Menzel

unread,
Sep 8, 2014, 5:45:03 AM9/8/14
to omn...@googlegroups.com
But isn't this happening?

Amene Deljoo

unread,
Sep 8, 2014, 6:46:12 AM9/8/14
to omn...@googlegroups.com

 NO.

Amene Deljoo

unread,
Sep 15, 2014, 8:08:53 AM9/15/14
to omn...@googlegroups.com
I also added this line in the Test2-c config in omnet.ini but it dose not work. Any help will be appreciated
*.node[*].netwl.destination = 0
.
Reply all
Reply to author
Forward
0 new messages