iPhone耳机插孔 - 在数据读取? [英] iPhone headphone jack - read in data?

查看:142
本文介绍了iPhone耳机插孔 - 在数据读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个连接到电池供电的显示器的一个小装置。当我转动轮子在设备上,显示器显示的信息,例如,当你开始转动轮和车轮的速度转动。我相信,该设备是通过 3.5&NBSP发送某种磁脉冲或东西;毫米音频插孔

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.

而不是将设备连接到其原来的显示器,我想将它连接到我的 iPhone 并在同一个阅读数据。该线具有3.5 毫米音频插孔末,并在iPhone通常适合像耳机

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.

我通过iPhone的音频插孔读取外部设备数据(到iPhone)?

如果有,是什么框架/库,你建议我看看?

我看着<一个href=\"http://developer.apple.com/library/ios/#sample$c$c/aurioTouch/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007770\">AurioTouch由苹果,但它似乎相当复杂,不是很直接。

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

推荐答案

是的,这是可以使用iPhone3.5毫米(1/8),耳机/麦克风插孔,作为数据输入,如已被劫持证明项目 - 这也是权力输入设备

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.

的关键,因为多米尼克Selbold所指出的,是该进入数据必须在频率在iPhone麦克风输入的通带内被调制。尽管许多人认为,这限制了数据速率,实际上19 kHz的音频是一种非常宽带信号,能够几十千比特每秒的。

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.

例如,2008年,奥兹Jonti演示了如何使用正交调幅在音频流可以在两台计算机之间电视声音和画面,使用他们的声卡。需要怎么做才能在iPhone上是开发用于音频输入QAM解调器 - 使用FFT库 - 解调QAM调制的音频视频回数字视频 - H.264一样 - 可能在1/4 VGA分辨率。 NTSC复合视频已经QAM,但在更高的带宽;大约5兆赫。

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.

如果您搜索JQAM网页,你可以找到奥兹先生项目,code。恕我直言,这将是一个非常酷的项目,以解决在iPhone或Android。

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.

这篇关于iPhone耳机插孔 - 在数据读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆