]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: dump response payload at higher log levels
authorGerhard Sittig <redacted>
Sun, 19 Mar 2023 15:09:18 +0000 (16:09 +0100)
committerGerhard Sittig <redacted>
Sun, 19 Mar 2023 21:40:08 +0000 (22:40 +0100)
commit1dfda32f8498680fdcb27027a21de9ea50cc2a4b
tree96b535117842c2722b6744c729b9ecec4f7cedbe
parent37b689533bc9655600c23773d06307a4ab63bb3b
rdtech-tc: dump response payload at higher log levels

The request is sent as is, responses are AES encrypted. Which voids the
point of transport layer dumps. Extend the rdtech-tc device driver, dump
the response content at spew levels after successful AES decryption and
validity checks. Pick a bytes per line count which matches the 64 bytes
chunked layout, yet reduces the number of created log output lines.
src/hardware/rdtech-tc/protocol.c