Silly Computer Engineer.
Lin~Jing~Sen
Something as small as the flutter of the butterfly's wing
can ultimately cause a typoon half way around the world

Group Blog
 
All Blogs
 
NS2 ตอน Energy Log และ Initial Energy ให้กับโหนด

Energy Log ของทุกโหนดไม่มี function ที่ทำโดยตรง แต่ฟังก์ชั่น UpdateIdleEnergy ของ wireless-phy.cc สามารถให้ข้อมูลนี้ได้เช่นกัน แต่ต้องปรับ interval จากค่า default คือ log ทุกๆ 10 วินาที

ส่วน format ที่จะให้ log energy ก็ไปแก้ที่ mobilenode.cc ที่ฟังก์ชั่น log-energy




การ initial energy ให้กับแต่ละโหนด ก็ไปแก้ function ที่ชื่อ command ใน moblienode.cc เช่นกัน โดยการสร้างเงื่อนไขใหม่ ( argv[3] ) ขึ้นมา และก็เรียกฟังก์ชั่นใน energymodel ที่สร้างไว้แล้ว


555555 สำเร็จ
ขอบคุณ คุณชาย ที่เอื้อเฟื้อ perl script ให้เป็นตัวอย่างในการวิเคราะห์ trace file คร๊าบบบ

ทีนี่ก็เหลือเขียน perl script ให้สมบูรณ์ และเขียน shell script ในการ simulate ก็เรียบร้อย กรู้ววววว


Create Date : 01 กรกฎาคม 2548
Last Update : 1 กรกฎาคม 2548 1:28:43 น. 2 comments
Counter : 492 Pageviews.

 
อยากสอบถามวิธีการ simulate ใน ns2 ตอนนี้กำลังทำวิจัยด้านพลังงานใน adhoc อ่ะค่ะ
รบกวนเมลกลับได้ไหมคะ lovelybooboo@gmail.com
ขอบคุณมากค่ะ


โดย: โบ IP: 118.172.23.247 วันที่: 12 ธันวาคม 2551 เวลา:22:37:27 น.  

 
hi,

how can i measure the remaining energy of a mobile node in ns2?


โดย: meeta IP: 210.4.77.158 วันที่: 20 เมษายน 2552 เวลา:17:47:29 น.  

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 

nmapxp
Location :
กรุงเทพ Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed

ผู้ติดตามบล็อก : 1 คน [?]





Friends' blogs
[Add nmapxp's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.