[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/handhelds/tos/interfaces Bluetooth.nc, 1.4, 1.5

steve ayer ayer1 at users.sourceforge.net
Mon Jun 30 07:23:50 PDT 2008


Update of /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/tos/interfaces
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13969

Modified Files:
	Bluetooth.nc 
Log Message:

valuable code update from adrian burns, quoted here:

the interface was updated to support power-saving changed that adrian
made to the RovingNetworksM module.

"Added setPagingTime() and setInquiryTime() commands to save power when
Bluetooth module is NOT connected. SNIFF mode saves power when
connected.

Old default idle current was ~25ma (SI,0200 & SJ,0200) , the new
optimised default idle current is ~9ma (SI,0040 & SJ,0080)."


Index: Bluetooth.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/tos/interfaces/Bluetooth.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Bluetooth.nc	19 Nov 2007 18:59:22 -0000	1.4
--- Bluetooth.nc	30 Jun 2008 14:23:48 -0000	1.5
***************
*** 68,71 ****
--- 68,75 ----
     command void disableRemoteConfig(bool disableConfig);
     command void setBaudrate(char * rate_factor);      // max 4 chars, must be integer
+    /* save power by minimising time Inquiry/Page scanning, call these commands from */
+    /* your StdControl.init() - module reset necessary for changes to take effect */
+    command void setPagingTime(char * hexval_time); // max 4 chars (hex word)
+    command void setInquiryTime(char * hexval_time); // max 4 chars (hex word)
     command void resetDefaults();
  



More information about the Tinyos-contrib-commits mailing list