通过Android手机的耳机插孔发送数据 [英] 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.
所以在这里我需要编写特定的电压取决于我的数据。是有可能,我可以访问Android的耳机的输出电压,然后创建一个应用程序来控制电压?
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?
推荐答案
下面是一个HackADay文章处理这一问题。 http://hackaday.com/2010/02/01/android-音频串行连接/ 酒店提供工作code,比我想象的要简单一些。
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.
尽管像其他人所说,包括这个的非常相似,所以交的,你可能有一个更简单的时间使用USB端口。
Although, like others have suggested, including this very similar SO post, you might have an easier time using the USB port.
这篇关于通过Android手机的耳机插孔发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!