|
Hi All, Is there anybody that once studies the VigilNet source codes on TinyOS. I got the codes from TinyOS 1.x contrib folder. I am really confused by one point in the codes. Does SentryPM module work for Sentry node or Non-sentry node? It seems that this module is the power management for Sentry node, since it is related to tracking feature which is in the working scope of Sentry node not Non-sentry node. However, in the command of SentryPm.enable, there is a condition "!isSentry" which means non-sentry node. In other words, power management is only enable for non-sentry node. I am so confused here. Please let me know your opinion! Also, it is claimed that the version 1.1 of VigilNet is for public (I think the version in TinyOS 1.x release is 1.0), but the download page has problem. If you have this version of VigilNet, please share it to me. Thank you so much!!! command result_t SentryPm.enable() { isSentry=(call SentrySelection.isSentry()); if(!isSentry) { if(pm_state == PM_DISABLE || pm_state == PM_TEMPORARY_DISABLE){ pm_state = PM_ENABLE; dbg(DBG_USR1,"$$$PowerEnabled\n"); #if (defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT)) call PowerEnable(); #endif signal SentryPm.sleep(); } } return SUCCESS; } Best Regards Yu |
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
