I use a device driver that captures the input signal from the reader (RFID) and sends it to the keyboard buffer (keyboard wedge). Captured data can (and should) be transformed using a java script.
This javascript is processed in the driver context - unfortunately, javascript receives the captured "binary" data in a DATA variable of type string.
You can imagine what javascript does: it interprets the input as unicode and thus does not allow you to specify bytes bytes inside the string - it varies arbitrarily between 1 ... 4 bytes depending on the value.
I just need to convert the binary string to its readable string format: xf9268970 should read "f9268970". Whatever I try so far.
Thanks for any feedback!
Klaus source
share