Re: l2cap - packet handled event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 11, 2010 at 2:41 PM, Gustavo F. Padovan
<padovan@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> On Mon, Jan 11, 2010 at 1:56 PM, lukasz <ru-dy@xxxxx> wrote:
>>
>> I'm sorry if I write this msg in wrong place or wrong format.
>>
>> I'm using bluez (l2cap connection) and all my operations are using
>> socket API. I have problem with latencies and I would like to know,
>> when my packet was sent. Is there any possibility to subscribe with
>> function handler or get "packet handled" event from the stack ? In my
>> case I don't want to send next packet, if the previous one is not sent
>> ( I don't want buffer them, throughput can be limited, I need minimal
>> latencies). Is there any possibility to limit socket buffer size (2nd
>> write to socket will block, when I will try to write 2nd packet, before
>> 1st is not sent) ?
>
> l2cap actually doesn't send the packets, it calls the hci layer to
> queue the packets for sending. The hci layer eventually will send the
> packet.
>
> You can try to use the L2CAP Enhanced Retransmission Mode with
> txWindow = 1. So, you will need to wait the ack from the remote side
> to send the next packet.

But keep in mind that Enhanced Retransmission Mode is still experimental.

>
>>
>>
>> best regards,
>> sorry for my English
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
>
> --
> Gustavo F. Padovan
> ProFUSION embedded systems - http://profusion.mobi
>



-- 
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux