Hi Hristijan,

You are correct that those commands should be sufficient. If you look at
RovingNetworksP.nc (
http://code.google.com/p/tinyos-main/source/browse/trunk/tos/platforms/shimmer/chips/bluetooth/RovingNetworksP.nc)
you will see that the BT module is powered on in Init.init() and powered
off in StdControl.stop().

Mike



On Mon, Jun 4, 2012 at 3:21 PM, Hristijan Gjoreski <
[email protected]> wrote:

>  Hello,
>
> I have a question about the Bluetooth functionality inside a shimmer
> device.
> In my application I need to have the functionality to turn the Bluetooth
> On and OFF.
>
> To turn the BT Off, I send a command to the shimmer. To turn back On I am
> waiting for the dock event.
> I already have managed to implement this, but I am not completely sure if
> the following commands are all I need.
>
> *To turn ON:*
>     call BluetoothInit.init();
>     call BTStdControl.start();
>
> *To turn Off:*
>     call BTStdControl.stop();
>
> *Note:*
> interface StdControl as BTStdControl;
> interface Init as BluetoothInit;
>
> I tested my application, and the battery drainage time doesn't correspond.
> The time for working with BT Off is the same as the BT is always ON.
>
> Are the commands mentioned before enough to turn the BT On and Off?
>
> Thanks,
> Hristijan
>
> _______________________________________________
> Shimmer-users mailing list
> [email protected]
> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
>
>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to