[Smac-users] About the smac and new energy model
weiye at ISI.EDU
Fri Aug 5 10:42:41 PDT 2005
While Yuan Li (cc'ed) might give you more details of the multi-hop
simulation, I just want to quickly check with you.
1) Are you using the latest ns-2 snapshot? The new energy model is not
in the 2.28 release.
2) To check if the problem is related to the new energy model, you can
run your simulation with the ns-2.28 release version and see if the same
P.S., I cc'ed the mail to S-MAC users in case other people had the same
On Fri, 2005-08-05 at 00:02 +0800, XinNie wrote:
> Dear Mr.Ye:
> I am a phd candidate of buaa,Beijing,China.I am using the smac
> and new energy model for the simulation of WSN. when using it in my
> tcl, I find there is a problem. When the interval of cbr data source
> is set less than 15,the simualtion ends and a error happens,
> ns: mac/smac.cc:1067: Assertion `radioState_ == 0' failed.
> The tcl I used is the same as test-suite-smac-multihop.tcl provided by
> ns-2.28, I just add some parameters supported by the new energy model
> to it,e.g,
> set opt(receivepower) 0.5 ;# Receiving Power
> set opt(transmitpower) 0.5 ;# Transmitting Power
> set opt(idlepower) 0.05 ;# Idle Power
> set opt(transitiontime) 0.005 ;# transitionTime
> set opt(transitionpower) 0.2 ;# transitionpower
> I have checked my tcl and found no mistakes. Did you experience
> similar problems when running the code? The tcl is attached. The cbr
> interval is set in line 251. Could you please give me some help or
> advice? Thank you very much in advance!
More information about the Smac-users