I have interfaced a HID bar-code scanner with LPC2468. It is sending data when i scan a bar-code, it sends a lot of bytes when i make a scan, how can i know out of these bytes which are the bytes corresponding to the scanned bar-code.
For eg:If i scan a bar-code having value 2M12264185 it send following data
1: Input Report:
2: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
3: Input Report: 0, 0, 1F, 0, 0, 0, 0, 0,
4: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
5: Input Report: 2, 0, 0, 0, 0, 0, 0, 0,
6: Input Report: 2, 0, 10, 0, 0, 0, 0, 0,
7: Input Report: 2, 0, 0, 0, 0, 0, 0, 0,
8: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
9: Input Report: 0, 0, 1E, 0, 0, 0, 0, 0,
10: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
11: Input Report: 0, 0, 1F, 0, 0, 0, 0, 0,
12: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
13: Input Report: 0, 0, 1F, 0, 0, 0, 0, 0,
14: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
15: Input Report: 0, 0, 23, 0, 0, 0, 0, 0,
16: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
17: Input Report: 0, 0, 21, 0, 0, 0, 0, 0,
18: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
19: Input Report: 0, 0, 1E, 0, 0, 0, 0, 0,
20: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
21: Input Report: 0, 0, 25, 0, 0, 0, 0, 0,
22: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
23: Input Report: 0, 0, 22, 0, 0, 0, 0, 0,
24: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
25: Input Report: 0, 0, 28, 0, 0, 0, 0, 0,
26: Input Report: 0, 0, 0, 0, 0, 0, 0, 0,
How to distinguish data bytes from other bytes.