Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-05-2012, 07:39 AM   #1
LQ Newbie
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Activating Sleep Cycles in SMAC disables sending data

Hello everyone! I am a researcher and I am new to using ns2.35 for my simulations. For my current research, I am trying to simulate energy harvesting in SMAC during the sleep periods of the nodes. I have implemented a simple energy harvesting algorithm in the energy module of ns2.

My TCL file can be found here:

My problem is that every time I set the syncFlag_ of SMAC in the TCL file to 1 (which activates periodic sleep):

Mac/SMAC set syncFlag_ 1
Mac/SMAC set dutyCycle 10

..the nodes do not send data. Network throughput is ZERO.

But when I turn periodic sleep off (Mac/SMAC set syncFlag_ 0, without changing other parameters in the TCL file), data delivery ratio is 100%. So, basically, whenever I activate sleep periods, I get my energy harvesting algorithm to work BUT no data delivered. When I turn off periodic sleep,my energy harvesting algorithm won't work BUT data delivery is 100%.

Can you guys tell me what's happening here? I need both energy harvesting/periodic sleep and data delivery to work.

My TCL file can be found here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending data to server? Mr.mick-duck Linux - Server 4 07-08-2009 10:29 AM
Sending data to a command using C gregorian Programming 24 06-30-2007 09:07 AM
Laptop keeps sending data every second? mikegorb Linux - Newbie 6 11-16-2004 06:54 AM
Sending data from one server to the other ganninu Linux - General 6 12-10-2003 07:06 AM
Sending data over ppp shibdas Linux - Networking 0 06-26-2003 01:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration