Decoding sound from a credit card reader

I have a credit card reader that plugs into the microphone jack from my bank, and they provide Android and MacOS apps to receive payments this way. I do not have any of these systems and there is no need to accept payments, but I am interested in this device. I can record sound on my laptop. So: is there a Linux program that can decode this signal?

+4
source share
2 answers

Thanks to other answers, I found the right words for the search and found mslib through the authors blog and after some settings , I got it to read data from my reader.

The library has a small test program that can read files created by:

  arecord -c 1 -N -r48000 -f S16_LE -i -v 
+3
source

This probably does the same thing as square devices for reading based on audio data ; using the equivalent of a tape to read information as audio. Someone wrote code that is available for GitHub to decode this data.

+2
source

Source: https://habr.com/ru/post/1447370/


All Articles