]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: grab receive data in larger chunks
authorGerhard Sittig <redacted>
Thu, 16 Mar 2023 03:28:50 +0000 (04:28 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commit8817bd6f5d9a92fcc582e3b51ea4cda3abc13b2a
tree31537ae7d64fabad2da2736895a340ecf052cbc9
parent861fa81fdd0e2031e798e6a637b66c6abe2df2d8
rdtech-tc: grab receive data in larger chunks

The previous implementation used to read each of the 192 bytes in
individual calls into the serial layer. This implementation grabs
receive data in larger chunks, and accepts data to be in flight
between main loop callbacks.

USB CDC appears to reliably deliver 64 byte chunks (unsurprisingly).
BLE communication is yet to get tested, isn't operational with current
mainline BT support because MTU exchange is not implemented.

(Re-)synchronization to the stream of packets after hiccups remains
an option which this implementation does not provide, neither did
the previous implementation.
src/hardware/rdtech-tc/protocol.c