No, it is sufficient to calculate the additive path energy metric by
extracting the information from the energy metric container in RPL, and
adding the local energy cost. The outgoing energy metric container from
a node will thus contain an energy value that is the sum of incoming
energy value from the best parent and the local energy value.
Calculating the local energy value is probably easiest to do by using
energest information (sys/energest.h).
Nicolas
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Contiki-developers mailing list
Contiki-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers
static void neighbor_link_callback(rpl_parent_t *p, int status, int numtx){uint16_t recorded_etx = p->link_metric;uint16_t packet_etx = numtx * RPL_DAG_MC_ETX_DIVISOR;uint16_t new_etx;/* Do not penalize the ETX when collisions or transmission errors occur. */if(status == MAC_TX_OK || status == MAC_TX_NOACK) {if(status == MAC_TX_NOACK) {packet_etx = MAX_LINK_METRIC * RPL_DAG_MC_ETX_DIVISOR;}new_etx = ((uint32_t)recorded_etx * ETX_ALPHA +(uint32_t)packet_etx * (ETX_SCALE - ETX_ALPHA)) / ETX_SCALE;PRINTF("RPL: ETX changed from %u to %u (packet ETX = %u)\n",(unsigned)(recorded_etx / RPL_DAG_MC_ETX_DIVISOR),(unsigned)(new_etx / RPL_DAG_MC_ETX_DIVISOR),(unsigned)(packet_etx / RPL_DAG_MC_ETX_DIVISOR));p->link_metric = new_etx;}}Kindly let me know your views on the same.Thanks and regards,Libin Jose.
Dear Libin Jose?
How can I add/enable the Dag metric's on DIO sending on contiki/6lbr
I have tried using flags resided on rpl-con.h and rpl-private.h file but I could not make it.please help me out on this issue.
With regards
A.Ganesh