--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
To post to this group, send email to btsta...@googlegroups.com.
Visit this group at https://groups.google.com/group/btstack-dev.
For more options, visit https://groups.google.com/d/optout.
<Report_L2CAP_2016_01_17_00_35_49.zip>
<RTL8761AT_Datasheet.pdf>
<BTStack-Pairing-issue.txt>
<bt-stack-androidPairing-2.TXT>
![]()
This message is eligible for Automatic Cleanup! (matthias...@gmail.com) Add cleanup rule | More info
Hi againYour logs improve. Where do the additional newlines come from? Could you try to fix it so that an HCI packet is printed on a single line? tools/tools/create_packet_log.py can then convert it and I can have a look at it without decoding individual hex bytes.Yes, the logging of an HCI event could cause the next packet to go unnoticed without RTS and buffers.bestmatthias
On 18.01.2016, at 14:55, Lakshmi Kant <laxmi...@gmail.com> wrote:
--<bt-stack-androidPairing-2.TXT>
You received this message because you are subscribed to a topic in the Google Groups "btstack-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/btstack-dev/mUfoJLUwzfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to btstack-dev...@googlegroups.com.
<ghd.TXT>
--
You received this message because you are subscribed to a topic in the Google Groups "btstack-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/btstack-dev/mUfoJLUwzfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to btstack-dev...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "btstack-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/btstack-dev/mUfoJLUwzfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to btstack-dev...@googlegroups.com.
![]()
This message is eligible for Automatic Cleanup! (matthias...@gmail.com) Add cleanup rule | More info
Hello Lakshmikanth
The Num_Cmd_Packets is part of the Host to Controller Flow control. Whenever a HCI Command is sent, it is reduced by one. It is increased by Command Complete or Command Status Events. So, it mainly blocks sending of a new command until the initial processing of the HCI Command is over by the Controller. (e.g. a create connection command will not stop sending commands until the connection is made, only up to the point where the connection has been initiate).
Given your RTS-free setup, the most likely cause is that the Controller sends two events and you miss the second one completely and the second one is a Command Complete or a Command Status.
I see two options here:
a) implement H5 as it does not require RTS. (Well, it's on my list rather high, but I didn't start on it yet either)
b) place a ring buffer between BTstacks H4 Transport and your module. So an IRQ/DMA driver would just put all bytes from UART in a ring buffer and the H4 Transport would take them out of the ring buffer. If this buffer is large enough, e.g. 1 kB, it should be large enough to buffer all incoming events while the Controller to Host Flow control takes care of the heavy (ACL data) stuff.
Best
MatthiasOn 29.01.2016, at 08:06, Lakshmikanth <laxmi...@gmail.com> wrote:
<SDP_BREAKpOINT_LOG.txt>
![]()
This message is eligible for Automatic Cleanup! (matthias...@gmail.com) Add cleanup rule | More info
Hi LakshmikanthThe logs are from SDP queries and not from discovery. Did you ask about discovery (receiving an inquiry response so the device shows up on the device screen),or from the pairing and subsequent SDP queries?I don't see anything wrong in the packets below. The full log still has additional newlines and cannot be converted using tools/create_packet_log.pyThe most obvious reason for an Android device to re-send the l2cap connection request would be if it did not received the connection request from BTstack.Could you try to get a packet log on Android? I think there's something called BTSnoop or so. Or try on a Mac with Packet Logger. Or on Linux with hci_dump.Maybe the log on the other side has some indication about what's going wrong.bestmatthias
On 04.02.2016, at 15:58, Lakshmikanth <laxmi...@gmail.com> wrote:
<SDP_BREAKpOINT_LOG.txt>