linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* l2cap - packet handled event
@ 2010-01-11 15:41 lukasz
  0 siblings, 0 replies; 4+ messages in thread
From: lukasz @ 2010-01-11 15:41 UTC (permalink / raw)
  To: linux-bluetooth

I'm sorry if I write this msg in wrong place or wrong format.

I'm using bluez 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) ?


best regards,
sorry for my English


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

* l2cap - packet handled event
@ 2010-01-11 15:56 lukasz
  2010-01-11 16:41 ` Gustavo F. Padovan
  0 siblings, 1 reply; 4+ messages in thread
From: lukasz @ 2010-01-11 15:56 UTC (permalink / raw)
  To: linux-bluetooth


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) ?


best regards,
sorry for my English

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

* Re: l2cap - packet handled event
  2010-01-11 15:56 lukasz
@ 2010-01-11 16:41 ` Gustavo F. Padovan
  2010-01-11 16:42   ` Gustavo F. Padovan
  0 siblings, 1 reply; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-01-11 16:41 UTC (permalink / raw)
  To: lukasz; +Cc: linux-bluetooth

Hi,

On Mon, Jan 11, 2010 at 1:56 PM, lukasz <ru-dy@o2.pl> 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.

>
>
> 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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi

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

* Re: l2cap - packet handled event
  2010-01-11 16:41 ` Gustavo F. Padovan
@ 2010-01-11 16:42   ` Gustavo F. Padovan
  0 siblings, 0 replies; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-01-11 16:42 UTC (permalink / raw)
  To: lukasz; +Cc: linux-bluetooth

On Mon, Jan 11, 2010 at 2:41 PM, Gustavo F. Padovan
<padovan@profusion.mobi> wrote:
> Hi,
>
> On Mon, Jan 11, 2010 at 1:56 PM, lukasz <ru-dy@o2.pl> 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@vger.kernel.org
>> 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

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

end of thread, other threads:[~2010-01-11 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 15:41 l2cap - packet handled event lukasz
  -- strict thread matches above, loose matches on Subject: below --
2010-01-11 15:56 lukasz
2010-01-11 16:41 ` Gustavo F. Padovan
2010-01-11 16:42   ` Gustavo F. Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).