How to send/receive data through audio jack in iOS [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We are looking for the ways to handle data transfer using audio jack in iOS.
We searched a lot to see whether it is possible to have this two way data communication through iPhone's audio jack, but had no luck yet. As per mentioned in some forums its possible, but again ended up with kind of vague answers which are more of theoretical-
Receiving Data Through Audio Jack
Force iPhone to read in data through headphone jack
http://hackaday.com/2010/02/01/android-audio-serial-connection/
So far we understand the app needs to be able to perform below things:
Check whether audio jack is ready to transfer the data with cable is already inserted into it
Sending Data : Data on your iPhone should be converted into analogue signals as you are going to transfer it using audio connector.
Receiving Data : Data will be received as analogue signals which should be converted to digital to read it back.
Please correct me or add up if anything is missing. Also wanted to ensure whether direct communication is possible. Ex. If I want to transfer data from my iPhone to Mac machine. Do we need to have dependency over any middleware hardware which then handles the signal conversion.
It would be really great if anyone is aware of any available 'libraries / APIs / well-defined process' which can be good enough to make a start..
Any help in this regard will be greatly appreciated!
Thanks.

Related

How can live video be streamed from an iOS device to a server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to be able to stream live video from an iOS device to a server. I tried to use an AVCaptureOutput that captures each frame as a CMSampleBuffer and appends it using an AVAssetWriter, but I don't know when or how to take the input from the file and send it to the server. How should it be formatted? How do I know when to send it?
Though i am not sharing any code with you, I am sharing my logic with you what i have done in one of my app.
First way(The easy one): There are lots of low cost third party library available for your use.
Second way(The hard one): Create small chunk of video for example 2sec or less, keep them in queue and upload it on the server(don't use afnetworking or http method it will slow down the process use some chat server like node.js or other). And keep one text file or db entry where you keep the track of the chunk file and its sequence. And once your first chunk is uploaded you can use ffmpg to make a video from the actual chunk, the more chunk you got add them in the main video file, and if you play the actual video on the device you don't have to do any more modification it will automatically fetch the new part once it is changed on the server.
Thank You. Hope it helps you.

Can we make an app that uses the camera and make a call at the same time? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I know I can't record a video while I'm on my phone in general and that if the capability existed or could exist that it would be a feature/option.
Are there apps that do this and if it can be done can someone help me get started code wise?
EDIT
Because there seems to be some confusion as to what I'm asking, I will clarify:
Are we able to launch phone calls using the iPhone regular calling feature and use the iPhone regular movie creating feature (the video camera) at the same time in an APP - as we know it can't be done generally.
Yes and no. You can't use Apple's built-in camera and phone to do it. But, obviously there are many apps (i.e. Skype and others) that use both camera and voice features in their VoIP implementations. So, it would take a custom camera and VoIP to accomplish this.

What is in BLE Advertising data? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to implement Bluetooth low energy in one of my projects, using an iPhone and a HM-0 BLE module.
My question: is it possible to read service UUIDs (or even their characteristics) after scanning, without having to actually connect to the peripheral?
The point is whether or not it is possible to put the list of Service UUIDs and the value of their characteristics on the advertising data.
The way to achieve what you want is to add the available services to the advert report. This functionality is module-dependent and there are many modules that do not allow you to do that. I had a quick look at the AT commands of the HM-10 and it seems that this module is one of them.
Please note that with BLE you can add whatever you want to the advert report, and program your iPhone to read the data accordingly. However, If you want full-fledged BLE communication (i.e. reading characteristic values, etc) then your best option is to connect to the device.
For more information, take a look at these useful links:
http://letsmakerobots.com/node/38009
http://letsmakerobots.com/node/39795
http://www.jnhuamao.cn/download_rom_en.asp?id=66
I hope that this helps.

How to design network quality indicator like Viber? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Here's the link to the app...
http://www.gadgetlite.com/2011/01/25/viber-app-hits-version-1-1-network/
I've looked around and mostly suggest private api or networkactivityindicator (which is not what im looking for)
Would appreciate any hint on how I could start
The network quality of the Viber app refers to the data connection.
Set a start time at NSURLConnectionDataDelegate's connection:didReceiveResponse:, then transmit something and count the bytes at connection:didReceiveData:. At connectionDidFinishLoading: set the finish time, calculate the time interval and match that against your arbitrary thresholds.
I have the feeling a default iOS framework would have that information (look at networking libraries in iOS). If not, you could possibly look at ping times (ping a URL in the background and look at the delay amount, make sure you're using a server that's available and quick at all times. ping google.com maybe?)
So I looked around, having read the very useful answer that Ege Akpinar gave earlier, and stumbled upon this article. They use the Apple's own Class, which can be used on Mac OSX and iOS:
Get ping latency from host
The link to Apple's Sample is available through the above link, but for the sake of efficiency and speed, here is its direct link:
https://developer.apple.com/library/mac/samplecode/SimplePing/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000716-Intro-DontLinkElementID_2
I also found another post that shows how to implement the class using Swift. I thought I might include it, in case you are using Swift:
Using Simple Ping in swift (iOS)
I hope this will be of some use.

How can one offer free ringtones on your web site? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I've been asked to come up with options to offer free ringtone downloads on a website. These would be actual free ringtone downloads, not "Sure, we've got free ringtones, but wouldn't you rather have these much cooler ringtones over here for $1.99?", but actual free-to-download ringtones. Is there a way to provide this in a relatively global manner? Is it as simple as providing a low-quality, 30-second MP3 that the user can convert themselves? Is there a service out there that provides this functionality? We're looking for options. Thanks.
There's different methods of starting downloads based on which carrier/phone you're using
Sprint - GCD(generic content descriptor)
Verizon you have to send an MMS
ATT - depends on the phone
Nokia phones need a DD(download descriptor)
The list goes on and on and on
Not really a simple problem to solve
ringtones vary by phone; some require MIDI ringtone, for example, but for most modern phones a direct download of a short mp3 file is sufficient

Resources