Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Square Reader (squareup) device work via earphone jack in Android?

Tags:

android

https://squareup.com/reader describes a hardware card reader that plugs into earphone jack on Android (and iPhone) too.

I wonder how the Square app reads the data from the earphone jack. Is it possible to send custom data via the earphone jack, or is it just some kind of audio decoding (like how dial-up modem works)?

like image 455
Randy Sugianto 'Yuku' Avatar asked Mar 08 '12 04:03

Randy Sugianto 'Yuku'


People also ask

How does Square use headphone jack?

These devices include a Lightning to 3.5mm headphone jack adapter, which you can connect to the Square Magstripe Reader. You can purchase a Samsung USB Type-C to 3.5mm headphone jack adapter from our retail partners such as JB Hi-Fi or Harvey Norman.

Does Square work with headphone adapter?

Is my mobile device compatible with the magstripe reader? Apple devices running iOS 12 or above, and most Android devices running the latest version of Android OS are supported — as long as they also have a 3.5mm headphone jack or Lightning connector and location services.

Does the Square card reader work with Android phone?

The Square contactless and chip reader works with most Android devices, as long as you're running Google Android 4.0 or higher, have location services enabled, and have access to Google Play.

Can you use Square without headphone jack?

Take contactless and chip card payments.Square Reader for contactless and chip connects by Bluetooth LE so you don't have to worry about not having a headset jack or messing around with adapters.


1 Answers

According to a teardown, the Square reader is a magnetometer, similar to that found in a common cassette tape player, that connects to the ground tip and mic ring of the headphone jack. The magnetometer converts the magnetic fields in the credit card into an analog electrical signal to send the data read from the card over the microphone input to the app to decode and interpret the analog signal into usable data.

like image 116
reukiodo Avatar answered Oct 21 '22 16:10

reukiodo