From 09ef13ff35f1b69ddd3d1b4a84b827f180b48eac Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Wed, 18 Sep 2024 07:11:05 +0100 Subject: [PATCH] Add test case for ambiguous isochronous transactions. Includes isochronous traffic, but no descriptor requests. --- tests/iso-ambiguous/capture.pcap | Bin 0 -> 5646 bytes tests/iso-ambiguous/reference.txt | 14 ++++++++++++++ tests/tests.txt | 1 + 3 files changed, 15 insertions(+) create mode 100644 tests/iso-ambiguous/capture.pcap create mode 100644 tests/iso-ambiguous/reference.txt diff --git a/tests/iso-ambiguous/capture.pcap b/tests/iso-ambiguous/capture.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4d7d8d9ec7f541874679f54b1b2a6dfeab6b2301 GIT binary patch literal 5646 zcmeaZ*|d;}frSAE{{LrSP+(+W-~tMqx#6zN45UFgb9N+1DE6tl@?jti!$9WH1=SBh zUYaKvj_%7QwQyx;pcDv$d`c16e*t8ROjH`WEql|_hFe&6&MHOsrPT7$;pR(?+b!t6 zJoUU~xcRbGdJ4KP)ikCIH(#2@EJpWbbH?J~=F3HMHlh2nZRMun=1Zr$2hn}`_~pUj z=F9c67twv`pmlM$`O+`$0lF_gWIY&ezT7kKJ-RP_R=*!^zKp*A5AMr{kapzaH~)s4 zFAEnjsW1audLRsKEeow@QUSFeVHn69x&YEz)=}Vt`w|+LDY|^a&6iG(1>wGg#^vSr zg2T<128pt8Uqa(jB~Ny^`O-~A5$;Q9Ts}8Y9B#g3T%-f{B{VKA*6R#6Uy7$1z^1^4o;pWSmDN%4=LgP}gC~7$Q5&$F#(~kfE literal 0 HcmV?d00001 diff --git a/tests/iso-ambiguous/reference.txt b/tests/iso-ambiguous/reference.txt new file mode 100644 index 00000000..c77f6c26 --- /dev/null +++ b/tests/iso-ambiguous/reference.txt @@ -0,0 +1,14 @@ +18 ambiguous transactions on endpoint 27.3 IN + IN transaction on 27.3 with 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... + IN packet on 27.3, CRC 0B + DATA0 packet with CRC E17B and 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... + IN transaction on 27.3 with 64 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] + IN packet on 27.3, CRC 0B + DATA0 packet with CRC D0BF and 64 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] + 16 times: IN transaction on 27.3 with 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... + IN packet on 27.3, CRC 0B + DATA0 packet with CRC E17B and 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... +7 ambiguous transactions on endpoint 27.3 OUT + 7 times: OUT transaction on 27.3 with 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... + OUT packet on 27.3, CRC 0B + DATA0 packet with CRC E17B and 192 data bytes: [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00]... diff --git a/tests/tests.txt b/tests/tests.txt index 1d6a50e1..1c846a67 100644 --- a/tests/tests.txt +++ b/tests/tests.txt @@ -4,6 +4,7 @@ emf2022-badge hackrf-connect hackrf-dfu-enum hackrf-restart-failure +iso-ambiguous iso-unambiguous ksolti-core-enum mouse