l2cap - packet handled event
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
Hi,
Quoted 12 lines · lukasz
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.
Quoted 9 lines
best regards,
sorry for my English
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Gustavo F. Padovan ProFUSION embedded systems - http://profusion.mobi
Quoted 16 lines · Gustavo F. Padovan
Hi,
Quoted 12 lines · lukasz
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) ?
Quoted 7 lines
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.
Quoted 17 lines
Quoted 10 lines
best regards,
sorry for my English
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi
Signature · 2 lines
Gustavo F. Padovan ProFUSION embedded systems - http://profusion.mobi