Why sensor nodes didnt receive pkts from phenom nodes in ns-2 while
simulating WSN the pkts received only at physical layer and not ass towards
uper lyer.

Is there any issue at physical layer of the sensor nodes or something else.


Regardz

M.A.Khattak

On Tue, Jun 2, 2009 at 5:22 PM, muazzam ali <[email protected]>wrote:

>
>
> ---------- Forwarded message ----------
> From: muazzam ali <[email protected]>
> Date: Tue, Jun 2, 2009 at 11:50 AM
> Subject: Re: Ns-users Digest, Vol 66, Issue 1
> To: [email protected]
>
>
> hello every body.
>
> i want to simulate sensor networks in ns-2 but the the sensor nodes in
> the network  receive data packet from phenom nodes at physical layer
> but it do not pass it towards the network layer. The phenom nodes
> receive packets from phenom nodes.
>
> is there any one to help me whats the problem.
>
> On 6/2/09, [email protected] <[email protected]> wrote:
> > Send Ns-users mailing list submissions to
> >       [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >       http://mailman.isi.edu/mailman/listinfo/ns-users
> > or, via email, send a message with subject or body 'help' to
> >       [email protected]
> >
> > You can reach the person managing the list at
> >       [email protected]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Ns-users digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Questions about Gpsr code for ns2! (??)
> >    2. Re: error node movement in infrastructure mode (Thavouth Khoun)
> >    3. saodv code for ns-2 (lets go ok)
> >    4. make cbr traffic from mobile node to wired node in
> >       infrastructure mode (Thavouth Khoun)
> >    5. OLSR by Naval Research Laboratory (alberto de barros)
> >    6. regarding recompilation of aodv.cc (umang singh)
> >    7. help with assigning cbr connections (Mathiew Moussa)
> >    8. Problem in installing DYMOUM 0.3 patch in NS2 (Imran khan)
> >    9. Packet::copy() issue with ns2.33 (Swaroop Shere)
> >   10. Re: Problem in installing DYMOUM 0.3 patch in NS2
> >       (Francisco Javier Ros Munoz)
> >   11. S-MAC and 802.15.4 ->HELP ME PLEASE!!! (Caio Marziale)
> >   12. Re: Packet::copy() issue with ns2.33 (Swaroop Shere)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Mon, 1 Jun 2009 08:38:02 +0800 (CST)
> > From: ?? <[email protected]>
> > Subject: [ns] Questions about Gpsr code for ns2!
> > To: [email protected]
> > Cc: [email protected]
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=utf-8
> >
> > Hello dears:
> > I am beginner in ns2. Recently i used gpsr patch of
> > GPSR_KeLiu_SUNY_Binghamton.
> > When i measure the performance of gpsr, i find the data packets loss
> ratio
> > is very high with 70~80%. why is it?
> > ?
> > My scenarios?are 1000*1000m,?(50,100)nodes?combined
> > with?(10,20,30,40m/s)velocities?respectively with 30 CBR .
> > See details:
> > for?cbr.tcl:??????????? nodes: 50/100, max conn: 30, send rate: 0.5,
> seed: 1
> > for scen.tcl:???????? nodes: 50/100, pause: 0.00, max speed:
> 10/20/30/40.00,
> > max x: 1000.00, max y: 1000.00
> > ?
> > What's more,?in the given cbr traffic file"cbr100.tcl" 2 nodes is
> selected
> > to startSink as followed:
> > $ns_ at 11.0 "$ragent_(0) startSink 10.0"
> > $ns_ at 10.5 "$ragent_(99) startSink 10.0"
> > ?
> > In my cbr file, i did this for every node:
> > ?
> > for {set i 37} {$i < 40} {incr i} {
> > ??? $ns_ at 10.5 "$ragent_($i) startSink 10.0"
> > }
> > then,when i type??????"$ ns wireless-gpsr.tcl"
> > i got info:
> >
> > num_nodes is set 50
> > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> > GPSR configuration file
> > INITIALIZE THE LIST xListHead
> > Loading connection pattern...
> > Loading scenario file...
> > Load complete...
> > Starting Simulation...
> > channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> > highestAntennaZ_ = 1.5,? distCST_ = 550.0
> > SORTING LISTS ...DONE!
> > Wrong the other node
> >
> > the last "Wrong the other node" means what?is it because that some node
> send
> > data, meanwhile startSink to receive data? is there something to do with
> the
> > abnormally data loss?
> > ?
> > Then, what should i do when i get my own cbr file? manually edit it or
> any
> > easy ways to ensure that some nodes only send and some only startSink to
> > receive???
> > ?
> > Also, what 's the location service is adopted? GLS? i'm puzzled! Pls
> guide
> > me!
> > and in gpsr, this is no store and foward schem? when packets lost,
> > retransmission occured?
> > ?
> > thanks in advance! thank u for your time!
> > best wishes! Look forward to your letter!
> >
> >
> >       ___________________________________________________________
> >   ?????????????????
> > http://card.mail.cn.yahoo.com/
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 1 Jun 2009 09:07:43 +0700
> > From: Thavouth Khoun <[email protected]>
> > Subject: Re: [ns] error node movement in infrastructure mode
> > To: Lu?s Barreto <[email protected]>
> > Cc: NS <[email protected]>
> > Message-ID:
> >       <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi Luis,
> >
> > Thanks for you reply, but there are no asterisks (*) in my code.
> > It is just *$ns at 10.0 "$node_(4) setdest 500.0 350.0 3.0"
> >
> > *I don't know if it appears to have them in email.
> >
> > Regards,
> >
> > Thavouth K.
> > Dept. of Telecom. Science
> > Assumption University
> >
> >
> > 2009/5/29 Lu?s Barreto <[email protected]>
> >
> >> Hi,
> >>
> >> You have
> >>
> >> *$ns at 10.0 "$node_(4) setdest 500.0 350.0 3.0" *
> >>
> >> Why are you using *, you must not use * there, just delete them and I
> >> think
> >> your problem is solved!
> >>
> >> Regards,
> >>
> >> Lu?s
> >>
> >>
> >> On Fri, May 29, 2009 at 6:33 AM, Thavouth Khoun
> >> <[email protected]>wrote:
> >>
> >>>
> >>> Hi all,
> >>>
> >>> I'm a new ns user.
> >>> I'm working on my master thesis and trying to simulate wlan with
> >>> infrastructure mode
> >>> and I'm facing a problem when I set node movement using *setdest* I got
> >>> error as follows:
> >>>
> >>> *ns: _o99 setdest 500.0 350.0 3.0:
> >>>    (_o99 cmd line 1)
> >>>    invoked from within
> >>> "_o99 cmd setdest 500.0 350.0 3.0"
> >>>    invoked from within
> >>> "catch "$self cmd $args" ret"
> >>>    invoked from within
> >>> "if [catch "$self cmd $args" ret] {
> >>> set cls [$self info class]
> >>> global errorInfo
> >>> set savedInfo $errorInfo
> >>> error "error when calling class $cls: $args" $..."
> >>>    (procedure "_o99" line 2)
> >>>    (SplitObject unknown line 2)
> >>>    invoked from within
> >>> "_o99 setdest 500.0 350.0 3.0"*
> >>>
> >>>
> >>> --------------------------------------------------------------
> >>> My TCL code is in the following:
> >>> --------------------------------------------------------------
> >>>
> >>> # Define Options
> >>> set val(chan)           Channel/WirelessChannel    ;# channel type
> >>> set val(prop)           Propagation/TwoRayGround   ;# radio-propagation
> >>> model
> >>> set val(netif)          Phy/WirelessPhy            ;# network interface
> >>> type
> >>>
> >>> set val(mac)            Mac/802_11                 ;# MAC type
> >>> set val(ifq)            Queue/DropTail/PriQueue    ;# interface queue
> >>> type
> >>> set val(ll)             LL                         ;# link layer type
> >>> set val(ant)            Antenna/OmniAntenna        ;# antenna model
> >>> set val(ifqlen)        50               ;# max packet in ifq
> >>> set val(nn)               7               ;# number of mobile nodes
> >>> set val(rp)            DumbAgent           ;# routing protocol
> >>> set val(x)              600                   ;# X dimension of
> >>> topography
> >>> set val(y)            600                   ;# Y dimension of
> topography
> >>> set val(stop)           50               ;# time of simulation end
> >>>
> >>>
> >>> #DSSS (IEEE802.11b)
> >>>   Mac/802_11 set SlotTime_          0.000020        ;# 20us
> >>>   Mac/802_11 set SIFS_              0.000010        ;# 10us
> >>>   Mac/802_11 set PreambleLength_    144             ;# 144 bit
> >>>   Mac/802_11 set PLCPHeaderLength_  48              ;# 48 bits
> >>>   Mac/802_11 set PLCPDataRate_      1.0e6           ;# 1Mbps
> >>>   Mac/802_11 set dataRate_          11.0e6          ;# 11Mbps
> >>>   Mac/802_11 set basicRate_         1.0e6           ;# 1Mbps
> >>>   Mac/802_11 set RTSThreshold_      3000         ;# Disable RTS/CTS
> >>> # frequency is 2.4 GHz
> >>>   Phy/WirelessPhy set freq_          2.4e+9
> >>>
> >>> # Main Program
> >>> set ns [new Simulator]
> >>> set tracefile [open Roaming-out.tr w]
> >>> set namtrace [open Roaming-out.nam w]
> >>>
> >>> $ns trace-all $tracefile
> >>> $ns namtrace-all-wireless $namtrace $val(x) $val(y)
> >>>
> >>> $ns color 1 Blue
> >>>
> >>> # Set up topography object
> >>> set topo [new Topography]
> >>> $topo load_flatgrid $val(x) $val(y)
> >>>
> >>> # Create god (node)
> >>> create-god $val(nn)
> >>>
> >>> # Create channel
> >>> set chan_1_ [new $val(chan)]
> >>>
> >>> # Configure the wireless nodes
> >>>    $ns node-config -adhocRouting $val(rp) \
> >>>            -llType $val(ll) \
> >>>            -macType $val(mac) \
> >>>            -ifqType $val(ifq) \
> >>>            -ifqLen $val(ifqlen) \
> >>>            -antType $val(ant) \
> >>>            -propType $val(prop) \
> >>>            -phyType $val(netif) \
> >>>            -topoInstance $topo \
> >>>            -agentTrace OFF \
> >>>            -routerTrace OFF \
> >>>            -macTrace ON \
> >>>            -movementTrace ON \
> >>>            -channel $chan_1_
> >>>
> >>> for {set i 0} {$i < $val(nn)} {incr i} {
> >>>    set node_($i) [$ns node]
> >>>    $node_($i) random-motion 0              ;# disable random motion
> >>>      set node_($i) [$node_($i) getMac 0]
> >>> }
> >>>
> >>> #Set node_(0) and node_(1) as the APs
> >>>
> >>> set AP_ADDR1 [$node_(0) id]
> >>> $node_(0) ap $AP_ADDR1
> >>> $node_(0) ScanType PASSIVE
> >>> #$node_(0) set BeaconInterval_ 0.2
> >>> $node_(0) set X_ 100.0
> >>> $node_(0) set Y_ 300.0
> >>> $node_(0) set Z_ 0.0
> >>>
> >>>
> >>> set AP_ADDR2 [$node_(1) id]
> >>> $node_(1) ap $AP_ADDR2
> >>> $node_(1) ScanType PASSIVE
> >>> #$node_(1) set BeaconInterval_ 0.2
> >>> $node_(1) set X_ 500.0
> >>> $node_(1) set Y_ 300.0
> >>> $node_(1) set Z_ 0.0
> >>>
> >>> $ns at 0.5 "$node_(2) ScanType ACTIVE"
> >>> $ns at 1.0 "$node_(3) ScanType ACTIVE"
> >>> $ns at 1.5 "$node_(4) ScanType ACTIVE"
> >>> $ns at 2.0 "$node_(5) ScanType ACTIVE"
> >>> $ns at 2.5 "$node_(6) ScanType ACTIVE"
> >>>
> >>> $node_(2) set X_ 120.0
> >>> $node_(2) set Y_ 190.0
> >>> $node_(2) set Z_ 0.0
> >>> $node_(3) set X_ 210.0
> >>> $node_(3) set Y_ 210.0
> >>> $node_(3) set Z_ 0.0
> >>> $node_(4) set X_ 150.0
> >>> $node_(4) set Y_ 350.0
> >>> $node_(4) set Z_ 0.0
> >>> $node_(5) set X_ 80.0
> >>> $node_(5) set Y_ 450.0
> >>> $node_(5) set Z_ 0.0
> >>> $node_(6) set X_ 40.0
> >>> $node_(6) set Y_ 200.0
> >>> $node_(6) set Z_ 0.0
> >>>
> >>> # Set a UDP connection between mobilenodes
> >>> #set udp [new Agent/UDP]
> >>> #set null [new Agent/Null]
> >>>
> >>> #$ns attach-agent $node_(2) $udp
> >>> #$ns attach-agent $node_(4) $null
> >>> #$ns connect $udp $null
> >>> #$udp set fid_ 1
> >>>
> >>> #set cbr_0 [new Application/Traffic/CBR]
> >>> #$cbr_0 set rate_ 64k
> >>> #$cbr_0 set packetsize_ 200
> >>> #$cbr_0 set burst_time_ 10ms
> >>> #$cbr_0 set idle_time_ 20ms
> >>> #$cbr_0 attach-agent $udp
> >>> #$ns at 5.0 "$cbr_0 start"
> >>>
> >>>
> >>> # Define node initial position in nam
> >>> for {set i 0} {$i < $val(nn)} {incr i} {
> >>>    # 1 defines the node size for name
> >>>    $ns initial_node_pos $node_($i) 20
> >>> }
> >>>
> >>> # Generation of movements
> >>> *$ns at 10.0 "$node_(4) setdest 500.0 350.0 3.0" *
> >>>
> >>> # Telling nodes when the simulation ends
> >>> for {set i 0} {$i < $val(nn)} {incr i} {
> >>>    $ns at $val(stop) "$node_($i) reset";
> >>> }
> >>>
> >>> # ending nam and the simulation
> >>> $ns at $val(stop) "$ns nam-end-wireless $val(stop)"
> >>> $ns at $val(stop) "stop"
> >>> $ns at 50.1 "puts \"end simulation\" ; $ns halt"
> >>> proc stop {} {
> >>>    global ns tracefile namtrace
> >>>    $ns flush-trace
> >>>    close $tracefile
> >>>    close $namtrace
> >>>    exec nam Roaming-out.nam &
> >>> }
> >>>
> >>> # informative headers for CMUTracefile
> >>> puts $tracefile "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(rp)"
> >>> puts $tracefile "M 0.0 prop $val(prop) ant $val(ant)"
> >>>
> >>> puts "Starting Simulation..."
> >>> $ns run
> >>>
> >>>
> >>> *******************************************************************
> >>> I would very appreciated for any help.
> >>>
> >>> Thanks,
> >>>
> >>> Thavouth K.
> >>> Dept. of Telecom. Science
> >>> Assumption University
> >>>
> >>
> >>
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Sun, 31 May 2009 22:38:03 -0700 (PDT)
> > From: lets go ok <[email protected]>
> > Subject: [ns] saodv code for ns-2
> > To: [email protected]
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=us-ascii
> >
> > hi everybody,i need saodv codes implementation in ns-2. i would
> appreciate
> > if anybody would send it to me.thanksfahim
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Mon, 1 Jun 2009 16:19:44 +0700
> > From: Thavouth Khoun <[email protected]>
> > Subject: [ns] make cbr traffic from mobile node to wired node in
> >       infrastructure mode
> > To: NS <[email protected]>
> > Message-ID:
> >       <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi all,
> >
> > I am simulating wlan roaming between to APs in infrastructure mode
> > and I want to know how to make cbr traffic from mobile node to wired
> node.
> >
> > I  would very appreciated with any help.
> >
> > Regards,
> >
> > Thavouth K.
> > Dept. of Telecom. Science
> > Assumption University
> >
> >
> > ------------------------------
> >
> > Message: 5
> > Date: Mon, 1 Jun 2009 11:07:40 +0000 (GMT)
> > From: alberto de barros <[email protected]>
> > Subject: [ns] OLSR by Naval Research Laboratory
> > To: ns ns-users <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=iso-8859-1
> >
> > Hello all,
> > ?I try to run OLSR from Naval Resaerch Laboratory. For this, I am
> supposed
> > to install Protolib ( http://cs.itd.nrl.navy.mil/work/protolib/index.php)?
> > and OLSR ( http://cs.itd.nrl.navy.mil/work/olsr/index.php ), I try this
> over
> > ns2.33 but I felt.
> > ?Can someone help me.
> > ?Regards
> >
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 6
> > Date: Mon, 1 Jun 2009 16:53:24 +0530
> > From: umang singh <[email protected]>
> > Subject: [ns] regarding recompilation of aodv.cc
> > To: ns-users <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset="Windows-1252"
> >
> >
> > hi,
> >
> > I did some modification in aodv.cc .please tell me how to recompile
> > it.please tell me it in steps as i m beginner.
> >
> > regards,
> >
> > umang
> >
> >
> >
> > _________________________________________________________________
> > Drag n? drop?Get easy photo sharing with Windows Live? Photos.
> >
> > http://www.microsoft.com/india/windows/windowslive/photos.aspx
> >
> > ------------------------------
> >
> > Message: 7
> > Date: Mon, 01 Jun 2009 17:26:32 +0300
> > From: Mathiew Moussa <[email protected]>
> > Subject: [ns] help with assigning cbr connections
> > To: [email protected]
> > Message-ID: <[email protected]>
> > Content-Type: text/plain;     charset=ISO-8859-1;     DelSp="Yes";
> >       format="flowed"
> >
> > Hi All,
> >
> > I am implementing a clustering algorithm for WSNs and I'm constructing
> > the clusters in C++.
> >
> > The clustering phase is done in the beginning of the simulation for
> > about 3seconds after which i need to assign connections between the
> > cluster members and cluster heads based on the results of the cluster
> > algorithm, therefore assign the necessary cbr connections only.
> >
> > How can i do this dynamically, therefore how can i tell the nodes in a
> > cluster to open a cbr connection with only their cluster head
> > (considering the nodes already know the cluster head they need to bind
> > too in C++).
> >
> > Can this be done in TCL.
> >
> > Your Help is greatly appreciated.
> > Thanks.
> >
> > Mathiew
> >
> >
> >
> > ------------------------------
> >
> > Message: 8
> > Date: Mon, 1 Jun 2009 19:36:02 +0500
> > From: Imran khan <[email protected]>
> > Subject: [ns] Problem in installing DYMOUM 0.3 patch in NS2
> > To: "Francisco J. Ros" <[email protected]>, ns mailing list
> >       <[email protected]>
> > Message-ID:
> >       <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > hi,
> >
> > I managed to use the info in DYMOUM patch for Ns2.29 to use it for NS2.33
> > But after all the work the "make" command gives the following error
> >
> > make: *** No rule to make target `dymoum/libdymoum.a', needed by `ns'.
> > Stop.
> >
> >
> > libdymoum.a is required.... but its not given with the patch
> >
> > Any help will be appreciated.
> >
> > --
> > "Talent does what it can; genius does what it must."
> > --
> > Best Regards,
> >
> > Imran Khan
> > MS Multimedia & Communications
> > Muhammad Ali Jinnah University
> > Islamabad, Pakistan
> > +92300-5397149
> >
> >
> > ------------------------------
> >
> > Message: 9
> > Date: Mon, 1 Jun 2009 20:43:24 +0530 (IST)
> > From: Swaroop Shere <[email protected]>
> > Subject: [ns] Packet::copy() issue with ns2.33
> > To: ns-users <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=iso-8859-1
> >
> >
> > From: [email protected] <[email protected]>
> > Subject: Packet::copy() issue with ns2.33
> > To: "ns-users" <[email protected]>
> > Date: Monday, 1 June, 2009, 1:22 PM
> >
> > Hi,
> > ??? I am writing a new protocol in NS2 and using application level data
> > packets by extending AppData. So I have class ABC:: public AppData and
> class
> > PQR::public ABC. I have defined the size() and copy() methods for both,
> and
> > also defined the constants in packet.h in enum AppDataType.
> >
> > Now, when I run the simulation, I get an error that says...
> > -----------------------------------------------------------------------
> > pure virtual method called
> > terminate called without an active exception
> > -----------------------------------------------------------------------
> > Upon debugging, I found out that this error comes when it executes
> > Packet::copy(), specifically the statement
> > p->data_ = data_-> copy()
> >
> > here, data_->copy() happens to be a pure virtual function, which is why I
> am
> >  getting the error, but I am wondering what is the cause.. I have defined
> > the proper copy() functions for new AppData types...
> >
> > It would be great if someone points me out my mistake.. If someone wants
> > more information about my code, I would be happy to share it ...
> >
> > thank you,
> >
> > regards,
> > Swaroop
> >
> >
> >
> >
> >
> >        Explore your hobbies and interests. Click here to begin.
> >
> >
> >       Explore and discover exciting holidays and getaways with Yahoo!
> India
> > Travel http://in.travel.yahoo.com/
> >
> > ------------------------------
> >
> > Message: 10
> > Date: Mon, 1 Jun 2009 18:05:59 +0200
> > From: Francisco Javier Ros Munoz <[email protected]>
> > Subject: Re: [ns] Problem in installing DYMOUM 0.3 patch in NS2
> > To: Imran khan <[email protected]>
> > Cc: ns mailing list <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> >
> > Hello Imran,
> >
> > You must be skipping some of the modifications that must be done to
> > Makefile.in. Please look again to the patch file and make sure you
> > are doing all the needed changes into your Makefile.in.
> >
> > Regards,
> > fran
> >
> > On Jun 1, 2009, at 4:36 PM, Imran khan wrote:
> >
> >> hi,
> >>
> >> I managed to use the info in DYMOUM patch for Ns2.29 to use it for
> >> NS2.33
> >> But after all the work the "make" command gives the following error
> >>
> >> make: *** No rule to make target `dymoum/libdymoum.a', needed by
> >> `ns'.  Stop.
> >>
> >>
> >> libdymoum.a is required.... but its not given with the patch
> >>
> >> Any help will be appreciated.
> >>
> >> --
> >> "Talent does what it can; genius does what it must."
> >> --
> >> Best Regards,
> >>
> >> Imran Khan
> >> MS Multimedia & Communications
> >> Muhammad Ali Jinnah University
> >> Islamabad, Pakistan
> >> +92300-5397149
> >
> > --
> > Francisco J. Ros, Ph.D. Student
> > Dept. of Information and Communications Engineering
> > University of Murcia, Murcia (Spain)
> >
> > http://masimum.inf.um.es/fjrm/
> >
> >
> >
> > ------------------------------
> >
> > Message: 11
> > Date: Mon, 1 Jun 2009 17:31:39 -0300
> > From: Caio Marziale <[email protected]>
> > Subject: [ns] S-MAC and 802.15.4 ->HELP ME PLEASE!!!
> > To: [email protected]
> > Message-ID:
> >       <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi,
> >
> > Can anyone clarify what is the difference between S-MAC and 802.15.4?
> >
> > S-MAC is Simple MAC? See the following text:
> >
> > "Freescale's Simple MAC (SMAC) provides a simple and cost effective
> solution
> > for wireless networking.  Based on the 802.15.4 PHY, it provides command
> to
> > create simple point-to-point and star networks.  The small codes size
> allows
> > the use of a low cost MCU combined with the MC13201 RF transceiver,
> creating
> > the ideal platform for applications looking to "cut the cord".  In
> addition,
> > features such as repeaters and over-the-air updates help create a feature
> > rich protocol in a small package."
> >
> > In my application I need to use mesh network and a energy model with
> sleep
> > and wake functions. Does NS2 s-mac fit to my application?
> >
> > Have anyone some reference text?
> >
> > Thanks in advance.
> > Caio
> >
> >
> > ------------------------------
> >
> > Message: 12
> > Date: Tue, 2 Jun 2009 04:55:51 +0530 (IST)
> > From: Swaroop Shere <[email protected]>
> > Subject: Re: [ns] Packet::copy() issue with ns2.33
> > To: ns-users <[email protected]>
> > Message-ID: <[email protected]>
> > Content-Type: text/plain; charset=iso-8859-1
> >
> > Hi guys,
> > ????? I found the solution to the problem. While debugging further, I
> found
> > out that the virtual destructor ~AppData() was being called. Then I
> realized
> > that I was instantiating the object of class PQR as follows:
> > PQR pkt(arguments);
> > whereas, the instantiation should have been
> > PQR* pkt = new PQR(arguments);
> > The former method resulted in pkt variable going out of scope at the end
> of
> > the instantiating function, whereas, it does not happen in the latter
> > method.
> >
> > regards,
> > Swaroop
> >
> > --- On Mon, 1/6/09, Swaroop Shere <[email protected]> wrote:
> >
> > From: Swaroop Shere <[email protected]>
> > Subject: [ns] Packet::copy() issue with ns2.33
> > To: "ns-users" <[email protected]>
> > Date: Monday, 1 June, 2009, 8:43 PM
> >
> >
> >
> > From: [email protected] <[email protected]>
> > Subject: Packet::copy() issue with ns2.33
> > To: "ns-users" <[email protected]>
> > Date: Monday, 1 June, 2009, 1:22 PM
> >
> > Hi,
> > ??? I am writing a new protocol in NS2 and using application level data
> > packets by extending AppData. So I have class ABC:: public AppData and
> class
> > PQR::public ABC. I have defined the size() and copy() methods for both,
> and
> > also defined the constants in packet.h in enum AppDataType.
> >
> > Now, when I run the simulation, I get an error that says...
> > -----------------------------------------------------------------------
> > pure virtual method called
> > terminate called without an active exception
> > -----------------------------------------------------------------------
> > Upon debugging, I found out that this error comes when it executes
> > Packet::copy(), specifically the statement
> > p->data_ = data_-> copy()
> >
> > here, data_->copy() happens to be a pure virtual function, which is why I
> am
> >  getting the error, but I am wondering what is the cause.. I have defined
> > the proper copy() functions for new AppData types...
> >
> > It would be great if someone points me out my mistake.. If someone wants
> > more information about my code, I would be happy to share it ...
> >
> > thank you,
> >
> > regards,
> > Swaroop
> >
> >
> >
> >
> >
> > ? ? ???Explore your hobbies and interests. Click here to begin.
> >
> >
> > ? ? ? Explore and discover exciting holidays and getaways with Yahoo!
> India
> > Travel http://in.travel.yahoo.com/
> >
> >
> >
> >       Explore and discover exciting holidays and getaways with Yahoo!
> India
> > Travel http://in.travel.yahoo.com/
> >
> > ------------------------------
> >
> > _______________________________________________
> > Ns-users mailing list
> > [email protected]
> > http://mailman.isi.edu/mailman/listinfo/ns-users
> >
> >
> > End of Ns-users Digest, Vol 66, Issue 1
> > ***************************************
> >
>
>

Reply via email to