I'm working on a project that ask the iPhone to receive data through headphone jack. I know it is doable, when I plug in the iPhone headphone it automatically change the input from the mac built in microphone to external microphone (I'm running the code on simulator) to record data. However, when I cut the headphone up and attach it to my signal generator, it seems that my mac cannot detect the external microphone anymore. Does anyone know how to manually set the headphone jack as the iPhone's input? I've searched on this topic, like link iPhone headphone jack - read in data? and hiJack project. But it seems that, once they plug in the headphone or other connecting line, the phone would automatically regard the headphone jack as the input... So I'm stuck on this problem, can anyone help? Thanks very much!
Asked
Active
Viewed 836 times
2
-
Are you certain that you are using the correct pinout on your connector. There are 4 contacts inside the headphone jack - ground, mic input, left & right headphone output. There is no switching between output and input - both are available all the time (assuming something is connected). – Mark Willsher Jan 24 '14 at 22:29
-
Yes, I connected the ground and mic with the generator, and nothing detected. Also I cut the headphone up, and later I just reconnect the wires respectively according to their colors. It is strange that the mac cannot detect the headphone anymore! I'm really confused about this... – Magic Jan 24 '14 at 22:46