[Smac-users] Segment faultRe: smac energy
Wei Ye
weiye at ISI.EDU
Thu Aug 11 11:44:34 PDT 2005
You may want to try to use the entire snapshot rather than updating some
individual files.
-Wei
On Wed, 2005-08-10 at 23:52 -0500, Li Liu wrote:
> Hi All,
>
> I replaced the following files: smac.h/cc, wireless-phy.h/cc,
> energy-model.h/cc, cmu-trace.h/cc in ns-2 with those from the latest
> snapshot of ns-2 and tried to test the new energy model for smac by
> using the script file from the smac website, but I got a segment
> fault(of course, I rebuilt the ns2). Did I miss something for the
> testing? I would highly appreciate any help from you.
>
> Best regards,
> Li
>
> BTW, The message shown on the screen:
>
> num_nodes is set 2
> warning: Please use -channel....
> INITIALIZE.....
> Starting Simulation....
>
> NOTE: SMAC is running with sleep-wakeup cycles.....
>
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> Segmentation fault (core dumped)
>
>
>
> On 8/5/05, Wei Ye <weiye at isi.edu> wrote:
> > The new energy model already supports the radio energy breakdown in each
> > state in the trace file. Take a look at ns-2/tcl/test/test-output-
> > energy/brdcast0.Z for an example.
> >
> > Regards,
> > Wei
> >
> > On Tue, 2005-08-02 at 21:15 +0100, salehma at aston.ac.uk wrote:
> > > Following the update by Vijay Kakadia (extending the energy model) I
> > > obtained a snapshot of the new ns-2.
> > >
> > > I also tried the example script MyTest.tcl, on running i've obtained the
> > > trace file and can see the energy decreasing(nice), I also tried putting
> > > my own value's to see, so far so good.
> > >
> > > My question is if i want the trace file to show as:
> > >
> > > [energy 979.917000 ei 20.074 es 0.000 et 0.003 er 0.006] instead of what I
> > > get as which is just the energy total.
> > >
> > > s 1.000000000 _0_ AGT --- 0 cbr 512 [0.00 0 0] [energy 999.000000]
> > > ------- [0:0 1:0 32 0] [0] 0 0
> > > r 1.000000000 _0_ RTR --- 0 cbr 512 [0.00 0 0] [energy 999.000000]
> > > ------- [0:0 1:0 32 0] [0] 0 0
> > > s 1.000000000 _0_ RTR --- 0 cbr 512 [0.00 0 0] [energy 999.000000]
> > > ------- [0:0 1:0 32 0] [0] 0 0
> > >
> > > what do I need to change ? I've tried looking at NS-2 traces from this
> > > website= > http://k-lug.org/~griswold/NS2/ns2-trace-formats.html
> > >
> > > I'm also wondering if the updated snapshot really worked or not.
> > >
> > > Another thing is would i be able to visualize nam for this simulation ?
> > >
> > > please respond
> > >
> > > much appreciated
> > >
> > > Muhaned Saleh
> > > Internet Technology MSc
> > > ASTON UNIV.
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Smac-users mailing list
> > > Smac-users at mailman.isi.edu
> > > http://mailman.isi.edu/mailman/listinfo/smac-users
> >
> > _______________________________________________
> > Smac-users mailing list
> > Smac-users at mailman.isi.edu
> > http://mailman.isi.edu/mailman/listinfo/smac-users
> >
More information about the Smac-users
mailing list