<div class="gmail_quote">On Fri, Sep 3, 2010 at 11:11 AM, jmk <span dir="ltr">&lt;<a href="mailto:jmk@foofus.net">jmk@foofus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Are there any tricks to hexdump? &quot;hexdump /dev/hidraw5&quot; for two presses<br>
of &quot;5&quot; returns:<br>
<br>
0000000 0100 0000 001e 0000 0000 0100 0000 0000<br>
0000010 0000 0000 1300 0052 0001 1e00 0000 0000<br>
<br>
It appears to not be printing the entire code, only 16 bytes at a time.<br>
Some of the byte pairs are also flipped and some are shuffled in a<br>
nonsensical manner. For example, &quot;0001&quot; vs &quot;0100&quot; at the start of the<br>
two responses for the &quot;5&quot; key (Perl method vs. hexdump).<br></blockquote><div><br></div><div>The 00 01 vs 0100 is because you are on a little-endian box. If you want hexdump to output in a different than default format, try &quot;man hexdump&quot;.</div>
<div><br></div><div>I think the hexdump -C format is more likely what you&#39;d want to see.</div><div><br></div></div>