Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending Data through Headphone jack in Android phones

I'm currently dealing with a new project and I have to send data through headphone jack with specific voltage, then i can work on that voltage.

so here i need to program the specific voltage depends on my data. is it possible that i can access the output voltage of headphones in android and then create a application to control that voltage?

like image 482
Payam Mohajeri Avatar asked Apr 20 '12 14:04

Payam Mohajeri


People also ask

Can I transfer data through headphone jack?

Unfortunately in the case of the audio jack, data transfer is not possible. The only transferable “data” would be the electrical wave forms which move from the device to the speaker/earphone or the microphone to the device.

Can 3.5 mm transfer data?

You can connect your iPod Shuffle to any tablet, desktop or laptop computer to charge and transfer data at the same time - simply connect the 3.5mm connector to your Shuffle and the USB plug into your Mac, PC or laptop.

Can you transfer data with an AUX cord?

The main difference between a USB (Universal Serial Bus) connection and an auxiliary input is that USB cords send digital information while aux cables send analog signals. USB cords transfer data as you would to a computer, while aux cables transmit audio as you would to an amplifier or pair of headphones.


1 Answers

Here is a HackADay article dealing with this issue. http://hackaday.com/2010/02/01/android-audio-serial-connection/ It offers working code which was quite a bit simpler than I thought it would be.

Although, like others have suggested, including this very similar SO post, you might have an easier time using the USB port.

like image 194
davehale23 Avatar answered Oct 14 '22 03:10

davehale23