* [Bluez-devel] Host to Host Controller flow control
@ 2005-03-24 17:04 Catalin Drula
2005-03-25 9:11 ` [Bluez-devel] " Catalin Drula
0 siblings, 1 reply; 5+ messages in thread
From: Catalin Drula @ 2005-03-24 17:04 UTC (permalink / raw)
To: bluez-devel
Hi Marcel,
I was succesful in writing a patch for handling the Hardware Error event. I have
an iPAQ h5550 with a buggy Bluetooth module from RTX Telecom. I have done some
tests after applying the patch and everything seems to be going smooth (whenever
the HW error event occurs, the application sees a "connection abort" and
synchronization is automatically regained). I will post it tomorrow along with
more detailed explanation.
I wanted to take a shot at implementing host-to-controller flow control for
Bluez. Before I start, it'd be great to have your thoughts on this.
Thanks,
Catalin
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bluez-devel] Re: Host to Host Controller flow control
2005-03-24 17:04 [Bluez-devel] Host to Host Controller flow control Catalin Drula
@ 2005-03-25 9:11 ` Catalin Drula
2005-03-25 11:48 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Catalin Drula @ 2005-03-25 9:11 UTC (permalink / raw)
To: bluez-devel
Catalin Drula <catalin.drula <at> imag.fr> writes:
> I wanted to take a shot at implementing host-to-controller flow control for
> Bluez. Before I start, it'd be great to have your thoughts on this.
Hi Marcel,
I've been looking over the code in hci_core.c and hci_event.c, in particular,
hci_tx_task, hci_sched_acl, hci_sched_sco, hci_low_sent and
hci_num_comp_pkts_evt.
It seems like we're already doing host to host controller flow control,
as far as I could tell. At the very least, we're correctly keeping track
of the number of free slots in the controller's buffers and we're never
overflowing it. Also hci_low_sent always selects the connection with the
most completed packets so there seems to be some balancing done there.
Could you point out what is missing (the reason this item is on the TODO list)?
Thanks,
Catalin
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Re: Host to Host Controller flow control
2005-03-25 9:11 ` [Bluez-devel] " Catalin Drula
@ 2005-03-25 11:48 ` Marcel Holtmann
2005-03-25 12:01 ` Catalin Drula
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2005-03-25 11:48 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Catalin,
> I've been looking over the code in hci_core.c and hci_event.c, in particular,
> hci_tx_task, hci_sched_acl, hci_sched_sco, hci_low_sent and
> hci_num_comp_pkts_evt.
>
> It seems like we're already doing host to host controller flow control,
> as far as I could tell. At the very least, we're correctly keeping track
> of the number of free slots in the controller's buffers and we're never
> overflowing it. Also hci_low_sent always selects the connection with the
> most completed packets so there seems to be some balancing done there.
> Could you point out what is missing (the reason this item is on the TODO list)?
the host to host controller flow control means that we tell the chip to
use flow control. This is the other way around and we don't support it
at the moment, because it is easy for us to handle big packets. If you
enable host to host controller flow control you need to tell the chip
when you are ready to receive more packets.
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bluez-devel] Re: Host to Host Controller flow control
2005-03-25 11:48 ` Marcel Holtmann
@ 2005-03-25 12:01 ` Catalin Drula
2005-03-25 12:27 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Catalin Drula @ 2005-03-25 12:01 UTC (permalink / raw)
To: bluez-devel
Hi Marcel,
Marcel Holtmann <marcel <at> holtmann.org> writes:
> the host to host controller flow control means that we tell the chip to
> use flow control. This is the other way around and we don't support it
> at the moment, because it is easy for us to handle big packets. If you
> enable host to host controller flow control you need to tell the chip
> when you are ready to receive more packets.
Ok, but I think what we are missing then is called "host controller to host flow
control" or as in the specification "flow control... in the direction from the
Host Controller to the Host". Even the command that enables this is called
Set_Host_Controller_To_Host_Flow_Control.
Correct me if I am wrong, but I think you should update the TODO list to say
* Host Controller to Host flow control
Catalin
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Re: Host to Host Controller flow control
2005-03-25 12:01 ` Catalin Drula
@ 2005-03-25 12:27 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-03-25 12:27 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Catalin,
> > the host to host controller flow control means that we tell the chip to
> > use flow control. This is the other way around and we don't support it
> > at the moment, because it is easy for us to handle big packets. If you
> > enable host to host controller flow control you need to tell the chip
> > when you are ready to receive more packets.
>
> Ok, but I think what we are missing then is called "host controller to host flow
> control" or as in the specification "flow control... in the direction from the
> Host Controller to the Host". Even the command that enables this is called
> Set_Host_Controller_To_Host_Flow_Control.
>
> Correct me if I am wrong, but I think you should update the TODO list to say
I looked it up in the Bluetooth 2.0 specification and it is now called
Set_Controller_To_Host_Flow_Control and this means that the todo list
should talk about "Host Flow Control", because this is what is missing.
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-25 12:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24 17:04 [Bluez-devel] Host to Host Controller flow control Catalin Drula
2005-03-25 9:11 ` [Bluez-devel] " Catalin Drula
2005-03-25 11:48 ` Marcel Holtmann
2005-03-25 12:01 ` Catalin Drula
2005-03-25 12:27 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox