CtpInfo.getEtx() was returning 0 because of a bug. It was returning the ETX from the current parent to the root. Your network was probably a single hop network so all the nodes had the root as their parent. Etx from the root would be 0 so it was returning 0.
I have fixed this so that it returns etx(parent to the root) + etx (link to the parent). The change has been committed to the CVS. - om_p ---------- Date: Fri, 26 Oct 2007 19:23:10 +0200 (MEST) From: [EMAIL PROTECTED] Subject: [Tinyos-help] CTPInfo interface(T2) To: tinyos-help@millennium.berkeley.edu Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Hi all, I've modified multihopOscilloscope application which uses CTP, and I've installed this application on 5 nodes,where the node with id 0 is the root. Actually I try to get the ETX for each node by calling CtpInfo.getEtx, it returns Success but it puts zero for all the ETX values for all the nodes. I even try to place the nodes in far distances but there is no change. I've also tried to check the other commands of the CTP info like CtpInfo.numNeighbors() which returns the correct value i.e in this case 4. I know that zero is the best ETX value.But I don't think it's noprmal Any ideas? RGDS, B. _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help