Hello all .. Thanks a lot for your help .. At last i successfully wired Reset Interface .. i its working now..
I am giving the procedure as below .. it might help someone like me .. If you found that in Interfaces , ResetC is not available .. go to below given site .. http://smote.cs.berkeley.edu:8000/tracenv/browser/code/b6lowpan/trunk/apps/IPBaseStation/ResetC.nc 1)Here you will find three files. ResetC.nc (component) , Reset.nc (Interface) , Reset.h (Header) . Download them and keep in ur program folder. 2)Now in Component file of particular application which require use on software Reset. Include ResetC interface , and wire Reset interface of ResetC with ur application. ( Reset.h file is included in ResetC so no need to include it again . (if u include it .. i generates error!! ) ) 3) In module file , include Reset interface , and wherever reset is required call Reset.reset(); ----------------------------------------------------- Actually .. ResetC defines command reset() . after execution of it , ResetC calls a function which is declared in Reset.h , that function makes WDTCTL=0 (in case of telosb) . In this way we can make telosb to reset. Thanks a lot to all who helped. Himanshu Barve
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
