* HCI Le time out
@ 2011-03-01 14:15 Marco Sinigaglia
2011-03-01 15:20 ` Anderson Briglia
0 siblings, 1 reply; 2+ messages in thread
From: Marco Sinigaglia @ 2011-03-01 14:15 UTC (permalink / raw)
To: linux-bluetooth
Hi All,
I am using CSR 8505 A06 and, using LE, I have some timeout problems
raised on hci.c.
The following LE functions use a 100ms for the hci_send_req cmd.
- hci_le_set_scan_parameters
- hci_le_set_advertise_enable
- hci_le_set_scan_enable
The 100ms is not enough becouse the chip can be in deep sleep.
Indeed, increasing it to 1000 the problem is fixed.
Would be possible to check in this modifications?
Cheers
Marco Sinigaglia
@@ -2646,7 +2645,7 @@
rq.rparam = &status;
rq.rlen = 1;
- if (hci_send_req(dd, &rq, 100) < 0)
+ if (hci_send_req(dd, &rq, 1000) < 0)
return -1;
if (status) {
@@ -2680,7 +2679,7 @@
rq.rparam = &status;
rq.rlen = 1;
- if (hci_send_req(dd, &rq, 100) < 0)
+ if (hci_send_req(dd, &rq, 1000) < 0)
return -1;
if (status) {
@@ -2708,7 +2707,7 @@
rq.rparam = &status;
rq.rlen = 1;
- if (hci_send_req(dd, &rq, 100) < 0)
+ if (hci_send_req(dd, &rq, 1000) < 0)
return -1;
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: HCI Le time out
2011-03-01 14:15 HCI Le time out Marco Sinigaglia
@ 2011-03-01 15:20 ` Anderson Briglia
0 siblings, 0 replies; 2+ messages in thread
From: Anderson Briglia @ 2011-03-01 15:20 UTC (permalink / raw)
To: Marco Sinigaglia; +Cc: linux-bluetooth
Hi Marco,
On Tue, Mar 1, 2011 at 10:15 AM, Marco Sinigaglia
<marco.sinigaglia@csr.com> wrote:
> Hi All,
>
> I am using CSR 8505 A06 and, using LE, I have some timeout problems raised
> on hci.c.
> The following LE functions use a 100ms for the hci_send_req cmd.
> - hci_le_set_scan_parameters
> - hci_le_set_advertise_enable
> - hci_le_set_scan_enable
>
> The 100ms is not enough becouse the chip can be in deep sleep.
> Indeed, increasing it to 1000 the problem is fixed.
>
> Would be possible to check in this modifications?
I would suggest you to follow the patch submission guidelines [1]
before send modifications to this list. And if you are just starting
in bluez development, should read this:
http://www.bluez.org/development/
Regards,
Anderson Briglia
[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/SubmittingPatches;hb=HEAD
>
> Cheers
> Marco Sinigaglia
>
>
> @@ -2646,7 +2645,7 @@
> rq.rparam = &status;
> rq.rlen = 1;
>
> - if (hci_send_req(dd, &rq, 100) < 0)
> + if (hci_send_req(dd, &rq, 1000) < 0)
> return -1;
>
> if (status) {
> @@ -2680,7 +2679,7 @@
> rq.rparam = &status;
> rq.rlen = 1;
>
> - if (hci_send_req(dd, &rq, 100) < 0)
> + if (hci_send_req(dd, &rq, 1000) < 0)
> return -1;
>
> if (status) {
> @@ -2708,7 +2707,7 @@
> rq.rparam = &status;
> rq.rlen = 1;
>
> - if (hci_send_req(dd, &rq, 100) < 0)
> + if (hci_send_req(dd, &rq, 1000) < 0)
> return -1;
>
>
>
> Member of the CSR plc group of companies. CSR plc registered in England and
> Wales, registered number 4187346, registered office Churchill House,
> Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
INdT - Instituto Nokia de tecnologia
+55 2126 1122
http://techblog.briglia.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-01 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 14:15 HCI Le time out Marco Sinigaglia
2011-03-01 15:20 ` Anderson Briglia
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.