usb_packet: Add a test-case.
authorUwe Hermann <uwe@hermann-uwe.de>
Fri, 3 Apr 2015 22:53:52 +0000 (00:53 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 3 Apr 2015 22:53:52 +0000 (00:53 +0200)
decoder/test/usb_packet/logitech_rx250_leftclick.output [new file with mode: 0644]
decoder/test/usb_packet/test.conf [new file with mode: 0644]

diff --git a/decoder/test/usb_packet/logitech_rx250_leftclick.output b/decoder/test/usb_packet/logitech_rx250_leftclick.output
new file mode 100644 (file)
index 0000000..349a021
--- /dev/null
@@ -0,0 +1,99 @@
+692485-693018 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+693018-693551 usb_packet: pid: "PID: IN" "IN" "I"
+693552-694018 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+694018-694284 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+694285-694618 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+692485-694818 usb_packet: packet-in: "IN ADDR 67 EP 1"
+695095-695628 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+695628-696161 usb_packet: pid: "PID: NAK" "NAK" "N"
+695095-696361 usb_packet: packet-nak: "NAK"
+1492485-1493018 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+1493018-1493551 usb_packet: pid: "PID: IN" "IN" "I"
+1493552-1494018 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+1494018-1494284 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+1494285-1494618 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+1492485-1494818 usb_packet: packet-in: "IN ADDR 67 EP 1"
+1495091-1495624 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+1495624-1496157 usb_packet: pid: "PID: NAK" "NAK" "N"
+1495091-1496357 usb_packet: packet-nak: "NAK"
+2292509-2293042 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+2293042-2293575 usb_packet: pid: "PID: IN" "IN" "I"
+2293576-2294042 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+2294042-2294308 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+2294309-2294642 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+2292509-2294842 usb_packet: packet-in: "IN ADDR 67 EP 1"
+2295113-2295646 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+2295646-2296179 usb_packet: pid: "PID: NAK" "NAK" "N"
+2295113-2296379 usb_packet: packet-nak: "NAK"
+3092501-3093034 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+3093034-3093567 usb_packet: pid: "PID: IN" "IN" "I"
+3093568-3094034 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+3094034-3094300 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+3094301-3094634 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+3092501-3094834 usb_packet: packet-in: "IN ADDR 67 EP 1"
+3095109-3095642 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+3095642-3096175 usb_packet: pid: "PID: NAK" "NAK" "N"
+3095109-3096375 usb_packet: packet-nak: "NAK"
+3892517-3893050 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+3893050-3893583 usb_packet: pid: "PID: IN" "IN" "I"
+3893584-3894050 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+3894050-3894316 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+3894317-3894650 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+3892517-3894850 usb_packet: packet-in: "IN ADDR 67 EP 1"
+3895120-3895653 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+3895653-3896186 usb_packet: pid: "PID: NAK" "NAK" "N"
+3895120-3896386 usb_packet: packet-nak: "NAK"
+4692516-4693049 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+4693049-4693582 usb_packet: pid: "PID: IN" "IN" "I"
+4693583-4694049 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+4694049-4694315 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+4694316-4694649 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+4692516-4694849 usb_packet: packet-in: "IN ADDR 67 EP 1"
+4695124-4695657 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+4695657-4696190 usb_packet: pid: "PID: NAK" "NAK" "N"
+4695124-4696390 usb_packet: packet-nak: "NAK"
+5492533-5493066 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+5493066-5493599 usb_packet: pid: "PID: IN" "IN" "I"
+5493600-5494066 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+5494066-5494332 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+5494333-5494666 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+5492533-5494866 usb_packet: packet-in: "IN ADDR 67 EP 1"
+5495135-5495668 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+5495668-5496201 usb_packet: pid: "PID: DATA0" "DATA0" "D"
+5496202-5496734 usb_packet: data: "Databyte: 00" "Data: 00" "DB: 00" "00"
+5496735-5497268 usb_packet: data: "Databyte: 00" "Data: 00" "DB: 00" "00"
+5497268-5497801 usb_packet: data: "Databyte: 00" "Data: 00" "DB: 00" "00"
+5497802-5498334 usb_packet: data: "Databyte: 00" "Data: 00" "DB: 00" "00"
+5498335-5498868 usb_packet: data: "Databyte: 00" "Data: 00" "DB: 00" "00"
+5498868-5500001 usb_packet: crc16-ok: "CRC16: 0xFFDB" "CRC16" "C"
+5495135-5500201 usb_packet: packet-data0: "DATA0 [ 00 00 00 00 00 ]"
+5500749-5501282 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+5501282-5501815 usb_packet: pid: "PID: ACK" "ACK" "A"
+5500749-5502015 usb_packet: packet-ack: "ACK"
+6292532-6293065 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+6293065-6293598 usb_packet: pid: "PID: IN" "IN" "I"
+6293599-6294065 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+6294065-6294331 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+6294332-6294665 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+6292532-6294865 usb_packet: packet-in: "IN ADDR 67 EP 1"
+6295140-6295673 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+6295673-6296206 usb_packet: pid: "PID: NAK" "NAK" "N"
+6295140-6296406 usb_packet: packet-nak: "NAK"
+7092540-7093073 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+7093073-7093606 usb_packet: pid: "PID: IN" "IN" "I"
+7093607-7094073 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+7094073-7094339 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+7094340-7094673 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+7092540-7094873 usb_packet: packet-in: "IN ADDR 67 EP 1"
+7095144-7095677 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+7095677-7096210 usb_packet: pid: "PID: NAK" "NAK" "N"
+7095144-7096410 usb_packet: packet-nak: "NAK"
+7892548-7893081 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+7893081-7893614 usb_packet: pid: "PID: IN" "IN" "I"
+7893615-7894081 usb_packet: addr: "Address: 67" "Addr: 67" "Addr" "A"
+7894081-7894347 usb_packet: ep: "Endpoint: 1" "EP: 1" "EP" "E"
+7894348-7894681 usb_packet: crc5-ok: "CRC5: 0x17" "CRC5" "C"
+7892548-7894881 usb_packet: packet-in: "IN ADDR 67 EP 1"
+7895156-7895689 usb_packet: sync-ok: "SYNC: 00000001" "SYNC" "S"
+7895689-7896222 usb_packet: pid: "PID: NAK" "NAK" "N"
+7895156-7896422 usb_packet: packet-nak: "NAK"
diff --git a/decoder/test/usb_packet/test.conf b/decoder/test/usb_packet/test.conf
new file mode 100644 (file)
index 0000000..2d4d6e1
--- /dev/null
@@ -0,0 +1,5 @@
+test logitech_rx250_leftclick
+       protocol-decoder usb_signalling channel dp=0 channel dm=1 option signalling=low-speed
+       protocol-decoder usb_packet option signalling=low-speed
+       input usb/hid/mouse/logitech_rx250/logitech_rx250_leftclick.sr
+       output usb_packet annotation match logitech_rx250_leftclick.output