Sending Data through Headphone jack in Android phones

北慕城南 提交于 2019-12-02 17:18:50
davehale23

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.

the simplest way to catch input data from audio jack in android or iphone is through recording http://developer.android.com/reference/android/media/AudioRecord.html

think something similar like playing a linear pcm audio file , I have n't tried but I believe it should work

I believe you will have to dive deep into Assembly type language, however, why the headphone jack? As I understand it, only reverberations and sound are transmittable through the headphone jack. I believe it would be more feasiable to output voltage through the Mini-USB port.

I think this site may be of some help regarding my method:

http://pinouts.ru/Slots/USB_pinout.shtml

you could maybe try turning your data into binary for example when your listening to music your head phone jack changes +- vibrating to make a sound so you could make +- = 0 and -+ = 1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!