<html><head></head><body><div dir="auto">I wonder... Is this actually be counting and using an 8 bit register that overflows? So writing 255 actually would reduce the number of credits? Have you tried asking for, say 100, count, and then ask for the next 100 when you are out of credits based on your count?<br><br></div>
<div dir="auto">/D<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->-- <!-- tmjah_g_1299e --><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->From my phone<!-- tmjah_g_1299e --></div>
<div  style="font-size:10.0pt;font-family:"Tahoma","sans-serif";padding:3.0pt 0in 0in 0in">
<hr style="border:none;border-top:solid #E1E1E1 1.0pt">
<b>From:</b> Jan Mulder <jlmulder@xs4all.nl><br>
<b>Sent:</b> Wed Jul 05 11:01:25 PDT 2017<br>
<b>To:</b> Linus Torvalds <torvalds@linux-foundation.org>, Matthias Heinrichs <matthias.heinrichs@heinrichsweikamp.com><br>
<b>Cc:</b> Dirk Hohndel <dirk@hohndel.org>, Subsurface Mailing List <subsurface@subsurface-divelog.org><br>
<b>Subject:</b> Re: OSTC over BLE experiences and questions<br>
</subsurface@subsurface-divelog.org></dirk@hohndel.org></matthias.heinrichs@heinrichsweikamp.com></torvalds@linux-foundation.org></jlmulder@xs4all.nl></div>
<br>
<pre class="blue">On 05-07-17 18:23, Linus Torvalds wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Wed, Jul 5, 2017 at 8:57 AM, Matthias Heinrichs<br> <matthias.heinrichs@heinrichsweikamp.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><br> Theoretically, this should happen through the flow control lines from the<br> Bluetooth Chipset to our applications processor. When using BLE (Due to the<br> much lower end-to-end baud rate), the flow control already is very active<br> and controlling the bytes from the OSTC to the Bluetooth chipset. When<br> looking at the snoop file, it shouldn't hurt to reset this credit counter<br> from time to time to 255. Or try a higher number like 65536? Specification<br> says 255 but have you tried higher values?<br></blockquote> <br> It says it's only a single byte, so 255 is the max..<br> <br>                   Linus<br> <br></blockquote><br>I made some progress by sending new credits, but it seems a bit more <br>complex that just sending a new 255 credits from time to time, but I'm <br>sure it going to work. I already had about 800 packets incoming during <br>my testing, but things seems very fragile. So too much WIP to push <br>anything out.<br><br>This all said, I really appreciate that you (Matthias and Linus) give <br>input to this subject.<br><br>--jan<br></pre></body></html>