dwire-debug icon indicating copy to clipboard operation
dwire-debug copied to clipboard

Reduce wait time in dwReadBytes to boost transfer rate from 160Bps to 487Bps

Open DeqingSun opened this issue 6 years ago • 1 comments

There used to be a 30ms interval between 2 debugWIRE access.

screen shot 2018-11-06 at 1 14 11 pm

It seems dwReadBytes wait 23ms after receiving the last byte.

dwreadbytestakes23mstoexit

So I added a test in dwReadBytes, if the coming byte is not the 1st one, it will only wait for about 1 Byte's time.

dwreadbytestakesabout1bytetoexit

At this moment, the interval between 2 debugWIRE access reduced to 6ms.

DeqingSun avatar Nov 06 '18 22:11 DeqingSun

Now the branch has been both tested in OSX 10.13 and Win7

DeqingSun avatar Nov 12 '18 07:11 DeqingSun