Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a small device which connects to a battery powered monitor. When I turn the wheel on the device, the monitor displays information such as when you started turning the wheel and how fast the wheel is turning. I believe the device is sending some sort of magnetic pulse or something through the 3.5 mm audio jack.

Instead of connecting the device to its original monitor, I want to connect it to my iPhone and read in the same data. The cord has a 3.5 mm audio jack at the end and fits in the iPhone normally like a headphone.

I have looked into projects like HiJack but am unsure of how to use the data I receive (or where the data is actually coming from when I do receive it), or if I can even use it in this circumstance.

Can I read data in (to the iPhone) from an external device through the iPhone's audio jack?

If yes, what frameworks/libraries do you suggest I look into?

I have looked into AurioTouch by Apple, but it seems rather complicated and isn't very straightforward.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
511 views
Welcome To Ask or Share your Answers For Others

1 Answer

Yes, it is possible to use the iPhone 3.5 mm (1/8") headphone/mic jack as a data input, as has been demonstrated by the HiJack project - which also powers the input device.

The key, as Dominik Selbold has pointed out, is that the incoming data must be modulated at frequencies within the passband of the iPhone microphone input. Although many have suggested that this limits the data rate, in fact 19 kHz audio is a very wideband signal, capable of dozens of kilobits per second.

For example, in 2008, Jonti Olds demonstrated how using Quadrature Amplitude Modulation at audio frequencies could stream TV sound and picture between two computers,using their audio cards. What would be needed on the iPhone would be to develop a QAM demodulator for the audio input - using the FFT library - to demodulate QAM audio modulated video back into digital video - like H.264 - probably at 1/4 VGA resolution. NTSC Composite video is already QAM, but at a much higher bandwidth; about 5 MHz.

If you search the web for JQAM, you can find Mr. Olds project and code. IMHO, this would be a very cool project to tackle on iPhone or Android.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...