On Mon, 9 Jan 2017, Rogan Dawes wrote: > > This raises the question of how many of the values in the report are > > real. In your first example, for instance, there must have been 64 > > values but only 4 of them were real. How are you going to tell where > > the real data ends in each report? > > I use the first byte as a length indicator, and the remaining 63 bytes as > data. Really? The first example you posted was this: > $ echo "foo" > /dev/hidg1 > 00000000 02 00 00 ff 66 00 00 00 02 00 00 ff 6f 00 00 00 |....f.......o...| > 00000010 02 00 00 ff 6f 00 00 00 02 00 00 ff 0a 00 00 00 |....o...........| > 00000020 02 00 00 ff 00 00 00 00 02 00 00 ff 00 00 00 00 |................| > * There's no length indicator; the first data value is the 'f' of "foo". Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html