メイン Scenario Setup & Configuration configファイルのPHY802.15.4について | 投稿するにはまず登録を |
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
te-ueda | 投稿日時: 2016/6/29 13:31 |
半人前 登録日: 2016/4/18 居住地: 投稿: 38 |
Re: configファイルのPHY802.15.4について energy_model.cppの変更箇所を記載します。
-------------------------- thisPhy->curLoad->powStats.totalTxDuration = (clocktype) 0; (263) thisPhy->curLoad->powStats.iduration = 0; // by ueda PowerCosts* loadTable = (PowerCosts*) -------------------------- GUI_CUMULATIVE_METRIC); } (572) node->energyamount = 0; // by ueda node->energypermit = 0; --------------------------- thisPhy = node->phyData[phyIndex]; (644) printf( // Debug by ueda (645) "[ueda]ENERGT_PrintStats - eType: %d energyStats:%d.\n", thisPhy->eType, thisPhy->energyStats); // Debug by ueda if ((thisPhy->eType != NO_ENERGY_MODEL )&& --------------------------- volt = thisPhy->powerConsmpTable->voltage; (652) printf( // Debug by ueda (653) "[ueda]ENERGT_PrintStats output OK.\n"); // Debug by ueda sprintf(buf, "Energy consumed (in mWh)in Transmit mode = %.6f", --------------------------- IO_PrintStat( node, "Physical", "Energy Model", ANY_DEST, phyIndex, buf); (699) thisPhy->curLoad->powStats.iduration++; // by ueda now = (double) ((double)getSimTime(node)/(double)SECOND); -------------------------- ((double)thisPhy->curLoad->powStats.totalTxDuration / (double)SECOND); (707) printf("iduration=%d, powStats.totalTxDuration=%d\n", thisPhy->curLoad->powStats.iduration, thisPhy->curLoad->powStats.totalTxDuration); // by ueda sprintf(buf, "Percentage of time in Transmit mode = %f", -------------------------- duration = (double) ((double)thisPhy->curLoad->powStats.totalRxDuration / (double)SECOND); (722) printf("iduration=%d, powStats.totalRxDuration=%d\n", thisPhy->curLoad->powStats.iduration, thisPhy->curLoad->powStats.totalRxDuration); // by ueda sprintf(buf, "Percentage of time in Receive mode = %f", -------------------------- duration = (double) ((double)thisPhy->curLoad->powStats.totalIdleDuration / (double)SECOND); (737) printf("iduration=%d, powStats.totalIdleDuration=%d\n", thisPhy->curLoad->powStats.iduration, thisPhy->curLoad->powStats.totalIdleDuration); // by ueda sprintf(buf, "Percentage of time in Idle mode = %f", -------------------------- ((double)thisPhy->curLoad->powStats.totalSleepDuration / (double)SECOND); (752) printf("iduration=%d, powStats.totalSleepDuration=%d\n", thisPhy->curLoad->powStats.iduration, thisPhy->curLoad->powStats.totalSleepDuration); // by ueda sprintf(buf, "Percentage of time in Sleep mode = %f", ------------------------- 以上になります。 |
フラット表示 | 前のトピック | 次のトピック |