On 10/20/2010 10:57 PM, Paul Boniol wrote:
I am pretty sure the CR in inserted by our scanner (and likely yours
as well).  This is a configuration option in the two different
scanners setup programs that I have seen (bar code and mag stripe).
This is for ease of use, like submitting data or going to the next
line.

The /(\x00|xC0)\x02\xN/ is not part of the data in the stripe and is
not seen at higher levels in Windows (at least not displayed in the
config program's test display).

It could be something pertaining to the "serial" config of a USB
device?  It's been ages since I've seen a raw serial stream and I
never saw much even back then.  Wikipedia says Xon/Xoff is \x11 and
\x13 respectively so it's not Xon/Xoff.

Reading from a /dev/hidraw*, device though, you are likely getting the
raw data stream from the device.  This will include other data.  (If
you have a USB keyboard, pipe the raw output to a file, type some
characters and use hexdump on the file.  You will probably have far
more characters than the letters you typed.)

I am now wondering if the pattern I saw was a standard of some sort or
if every device has it's own unique way... Devices not adhering to a
standard would be most confusing but is the way a lot of hardware
companies operate.

Paul


It's been a long time since I've worked with card readers (Back when serial was standard) but I believe I've seen similar (but different) stuff. You may be able to switch it with either a dip switch or sending the appropriate commands over the serial interface.

Rich

--
*Richard Thomas Consulting*
301 Murrel St
Dickson, TN 37055
http://www.rtcons.com

--
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to