Quote Originally Posted by iugmoh View Post
oky for testing my code I insert ID card with this number "120063718" and the barcode give me a sound that the scanning completed , then if the scanning stage I pressed the button to display the data collected from this barcode reader the data output as follows
counter=96
data bits=
10100001001111100010000011111100111110001000000111 0100101101011000000111010000011111100 ...........
I want to know how to decode this data to display this ID number 120063718
For one thing, we don't know which barcode scanner you're using (not that it would matter much).
Second thing, how does your scanner encode the information that it outputs?
Obviously you've got data there. Whether it's good data or not is another story.
What do the dots mean? Do they mean that there is more data to follow or are those the end of the string?
Is this some sort of ASCII encoded data? BCD? Grey code? Otherwise? 8 bit data chunks? 12 bit? 4 bit repeated/inverted?