Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transfer data through audio jack cable over two Android devices

I'm researching on transferring text data over male-to-male audio jack cable.

I'm testing this on HTC one V and on PC, which supports male-to-male audio jack for data transfer as mentioned in this Wikipedia article. It says:

The first, which places the return signal on the second ring and the microphone on the sleeve, is used by Apple's iPhone line, HTC devices, latest Samsung, Nokia and Sony phones, among others.

You can see my code here.

Problems I face during transfer: if I generate tone by entering any value from 0-31 at sender side, receiver will get actual value in 2-3 try due to the wrong type of FSK modulation/demodulation. Would you suggest the best error correction code that will help me out for correcting the input received from another Android device?

If anyone has done this type of data transfer before, please suggest a code reference or some basic guidance regarding technical aspects, so I can complete this and make it open source for everyone.

like image 654
Dipali Avatar asked Mar 06 '13 04:03

Dipali


People also ask

How do I transfer files between two Android devices?

Tap the Share icon and then select Nearby Share. At the Nearby Share screen, wait for any nearby devices to appear, then tap the name of the device to which you want to share the file. Any nearby device that has Nearby Share activated displays a notification prompting the user to make their device visible.

Can I transfer data through headphone jack?

Unfortunately in the case of the audio jack, data transfer is not possible. The only transferable “data” would be the electrical wave forms which move from the device to the speaker/earphone or the microphone to the device.

Can I connect 2 Android phones using USB?

Connect the USB Data Cable to the other Android device. Now, connect the USB Data Cable to OTG USB Adapter, on connecting both the cables, you will notice the USB Connectivity option appears on the screen of second Android device with USB Data Cable.


1 Answers

I'm looking for the same, I got one awesome explination about Transfering data using audio signal in android by Sudar , go through once that may be helpful to you.

like image 98
LOG_TAG Avatar answered Sep 24 '22 09:09

LOG_TAG