Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-devel] Low Power mode in bluez
@ 2007-04-26 11:07 Sumeet VERMA
  2007-04-26 14:19 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Sumeet VERMA @ 2007-04-26 11:07 UTC (permalink / raw)
  To: Bluez devel

Hi
Is there any plan to implement low power modes in bluez? I am using a device which using a USB to UART driver (prolific).

If no, then can you give me some pointers about the implementation? Where should I start from and some links from where I can get some help.

Regards,
Sumeet 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bluez-devel] Low Power mode in bluez
  2007-04-26 11:07 [Bluez-devel] Low Power mode in bluez Sumeet VERMA
@ 2007-04-26 14:19 ` Marcel Holtmann
  2007-04-30  5:09   ` Sumeet VERMA
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2007-04-26 14:19 UTC (permalink / raw)
  To: BlueZ development

Hi Sumeet,

> Is there any plan to implement low power modes in bluez? I am using a device which using a USB to UART driver (prolific).
> 
> If no, then can you give me some pointers about the implementation? Where should I start from and some links from where I can get some help.

the sniff mode support has been implemented. All other modes are
useless.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bluez-devel] Low Power mode in bluez
  2007-04-26 14:19 ` Marcel Holtmann
@ 2007-04-30  5:09   ` Sumeet VERMA
       [not found]     ` <4f436aae0704300204s36b603faia97cb5c6452e425c@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Sumeet VERMA @ 2007-04-30  5:09 UTC (permalink / raw)
  To: 'BlueZ development'

Hi Marcel,

I meant deep sleep modes by low power modes. I think I would need some
support in bluetooth transport layer for that. 

Regards,
Sumeet 
-----Original Message-----
From: bluez-devel-bounces@lists.sourceforge.net
[mailto:bluez-devel-bounces@lists.sourceforge.net] On Behalf Of Marcel
Holtmann
Sent: Thursday, April 26, 2007 7:50 PM
To: BlueZ development
Subject: Re: [Bluez-devel] Low Power mode in bluez

Hi Sumeet,

> Is there any plan to implement low power modes in bluez? I am using a
device which using a USB to UART driver (prolific).
> 
> If no, then can you give me some pointers about the implementation? Where
should I start from and some links from where I can get some help.

the sniff mode support has been implemented. All other modes are useless.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the
FREE version of DB2 express and take control of your XML. No limits. Just
data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bluez-devel] Low Power mode in bluez
       [not found]     ` <4f436aae0704300204s36b603faia97cb5c6452e425c@mail.gmail.com>
@ 2007-04-30 10:24       ` Ohad Ben-Cohen
  2007-05-04 11:27         ` Sumeet VERMA
  0 siblings, 1 reply; 6+ messages in thread
From: Ohad Ben-Cohen @ 2007-04-30 10:24 UTC (permalink / raw)
  To: Sumeet VERMA; +Cc: bluez-devel

Hi Sumeet,

> From: Sumeet VERMA <sumeet.verma@st.com>
>
> I meant deep sleep modes by low power modes. I think I would need some
> support in bluetooth transport layer for that.

I'm not so sure what is it that you need, but it sounds like the kernel patch
I sent earlier today might be of interest to you; The patch implements
deep sleep
modes via transport layer manipulations (the patch is actually a new
HCI line discipline protocol).

These deep sleep modes are part of TI's HCILL runtime power management
UART protocol.

BR,
Ohad.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bluez-devel] Low Power mode in bluez
  2007-04-30 10:24       ` Ohad Ben-Cohen
@ 2007-05-04 11:27         ` Sumeet VERMA
  2007-05-04 13:31           ` Ohad Ben-Cohen
  0 siblings, 1 reply; 6+ messages in thread
From: Sumeet VERMA @ 2007-05-04 11:27 UTC (permalink / raw)
  To: 'Ohad Ben-Cohen'; +Cc: bluez-devel

Hi Ohad
I saw the patch you sent. In the application hciattach, I see that you read
the commands from a script file and send it to the controller. If you see a
deep sleep command you stop the execution of the script and return.
My question is how does the device wake up and how do you put the device in
deep sleep mode after the initialization is done. I mean do you check for
any activity on the bluetooth link and if there is no activity (say for 10
sec) you send the command to put your device in deep sleep mode.Is this done
in the uart driver?

With the code you send I think once the hciattach is started, the device may
go into deep sleep mode. But if it wakes up, it will not go into deep sleep
mode again (atleast not from the application/stack). 

Regards,
Sumeet 
-----Original Message-----
From: Ohad Ben-Cohen [mailto:ohad@bencohen.org] 
Sent: Monday, April 30, 2007 3:54 PM
To: Sumeet VERMA
Cc: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Low Power mode in bluez

Hi Sumeet,

> From: Sumeet VERMA <sumeet.verma@st.com>
>
> I meant deep sleep modes by low power modes. I think I would need some 
> support in bluetooth transport layer for that.

I'm not so sure what is it that you need, but it sounds like the kernel
patch I sent earlier today might be of interest to you; The patch implements
deep sleep modes via transport layer manipulations (the patch is actually a
new HCI line discipline protocol).

These deep sleep modes are part of TI's HCILL runtime power management UART
protocol.

BR,
Ohad.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bluez-devel] Low Power mode in bluez
  2007-05-04 11:27         ` Sumeet VERMA
@ 2007-05-04 13:31           ` Ohad Ben-Cohen
  0 siblings, 0 replies; 6+ messages in thread
From: Ohad Ben-Cohen @ 2007-05-04 13:31 UTC (permalink / raw)
  To: Sumeet VERMA; +Cc: bluez-devel

Hi Sumeet,

On 5/4/07, Sumeet VERMA <sumeet.verma@st.com> wrote:
> I saw the patch you sent. In the application hciattach, I see that you read
> the commands from a script file and send it to the controller. If you see a
> deep sleep command you stop the execution of the script and return.

This command is just a configuration command; it let's the device know
it can begin initiating deep sleeps. I don't stop the execution of the script,
I just postpone it - I want hciattach to first set HCILL protocol in the kernel
before I continue.

> My question is how does the device wake up and how do you put the device in
> deep sleep mode after the initialization is done.

This is all up to the device.
Once it is permitted to initiate deep sleeps, the device may request it anytime
it wants (it has some inactivity timers for that).

The HCILL protocol's duty is to allow the device to deep sleep anytime
it wants. Later, when data is to be sent to the device, the HCILL protocol
make sure it is awake. If not, it awakes the device, and only then send
the pending data.

> I mean do you check for
> any activity on the bluetooth link and if there is no activity (say for 10
> sec) you send the command to put your device in deep sleep mode.

No, this is all up to the device. Only the device can initiate deep sleeps.

> Is this done in the uart driver?

Everything is done in the HCI Line Discipline.
No change to the uart driver.

>
> With the code you send I think once the hciattach is started, the device may
> go into deep sleep mode. But if it wakes up, it will not go into deep sleep
> mode again (atleast not from the application/stack).

hciattach only turn on the device's deep sleep mode; it doesn't ask the device
to sleep. Once this mode is turned on, the device can start asking to sleep.
The host can only grant its request, and wake it up in a later time. The host
cannot request the device to sleep (it is not needed, because the device
sense inactivities and immediately requests to deep sleep).

This whole solution relies on the hardware to be able to request deep sleeps.
It is tailored to TI's BRF chips, which can initiate deep sleeps and
spontaneously
awake if needed.
If you are looking for pure software solution it's not enough, sorry.
I guess it can be tweaked to allow software initiations, too, but there are
subtle races you should seriously think about when/if doing it.

BR,
Ohad.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-04 13:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 11:07 [Bluez-devel] Low Power mode in bluez Sumeet VERMA
2007-04-26 14:19 ` Marcel Holtmann
2007-04-30  5:09   ` Sumeet VERMA
     [not found]     ` <4f436aae0704300204s36b603faia97cb5c6452e425c@mail.gmail.com>
2007-04-30 10:24       ` Ohad Ben-Cohen
2007-05-04 11:27         ` Sumeet VERMA
2007-05-04 13:31           ` Ohad Ben-Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox