Read external input from iPad [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
For my current project, I need to read the status of a digital ON/OFF input (0Volt or 5 Volt) from iPad.
I need to do this by bluetooth becouse the iPad needs the 3G connection to contact some web services in internet and this prevent me to use a WIFI module.
I read that exists some module like
RN42 ( https://www.sparkfun.com/products/retired/10253 )
or Bluegiga ( http://www.bluegiga.com/ )
but I can't find some example in internet to do what I need.
I need an help to understand what is the best and cheaper hardware that I must buy, and, most of all, I need of some example of code (xCode) for connect my iOS program to the bluetooth module for get the status of my external digital input.

You have a number of options for doing this.
Join the MFI program and either read the input via a physical connector or via Bluetooth.
Use Wi-Fi. Probably easiest in terms of programming but requires more expensive hardware (and maybe more complicated installation)
Use BLE (Bluetooth Low Energy) and CoreBluetooth. Cheap, easy to use.
As you have already suggested, BLE is an easy way to go that doesn't require joining an expensive program. The Bluegiga chips are excellent in talking with an iOS device (I have personally tried the BLE112 device) and they are easy to program, comes with their own microcontroller etc.
To start on the iOS side, you need to read up on CoreBluetooth. Apple has in general excellent documentation about this framework.
I would recommend starting out with the examples, for example the Heart Rate monitor sample project. Also consider buying a dev kit from Bluegiga, it has among other things, a Heart rate device sample that works with iOS.

Related

iOS app to listen to a port all the time [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to create an app that listen to a custom port all the time & when the client try to connect through that port I want to handle that event.
I searched a lot in the internet about it but I couldn't get any good resources for my requirement.
I want to know if I build that app somehow, will Apple Store approve my app? because the app always listen to a port. They might think it's a security issue.
Can anyone give me an answer to that question, as well as please provide me relevant resources for that.
Thanks
Apple has some examples, both with Core Foundation and POSIX sockets in the network programming guide - but there is still a lot of work to be done beyond the code provided.
Because the use cases for mobile devices are typically client-style rather than server-style there isn't the same degree of development and examples available.
If the "other end" of your connection is also iOS, perhaps the multi peer connectivity framework could be an option.
Try this out: Cocoa Asynch sockets by Robbie Hanson. You can listen on a port and send/receive data on it.
Http is the standard mode of communication in iOS and all requests are handled by port 80, however should you find the need to use specific ports or go a bit lower level than HTTP and communicate using TCP sockets to your own custom server it's very much possible.
The advantages of doing this are several:
You can send just the exact data you need to send – making your protocol lean and efficient.
You can send connected clients data whenever you want, rather than requiring the clients to poll.
You can write socket servers without a dependency of a web server, and can write in the language of your choice.
Here's a tutorial that might get you started.
http://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server

Programming Language that capable of reading card swiping [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Basically i have 0 experience in doing this.
I would like to ask for some basic stuffs for creating a system that could read card swiping.
What should i bear in mind and what should i prepare for?
Some simple card readers (such as the ones used at libraries) just appear as a keyboard to the computer. You can find tutorials in any language for reading from the keyboard.
You should probably look into what kind of card reader you want. After that, look for bindings in your favorite language for a library that can read from it.
There are three main types of card readers:
Keyboard EmulationThese card readers take the main track and send keypresses to the host (usually over USB, or PS/2 port for old-style readers). For these readers, you don't typically have to write any special code... just capture the card info as it is "typed". Note that some card readers will send a header keystroke, like a function key or something. Most can be configured.
Serial PortSerial port (or emulated serial port in the case of USB) readers just require you to open the port like you would to a modem or other serial device. You will have to interpret the protocol yourself. Usually this protocol is very simple, and in some cases identical to the keyboard emulation. Read the documentation for the card reader for more information.
USB HIDHID card readers do not require drivers (as they use the standard HID protocol). You can use a tool like USB Snoopy to see the input from these. I prefer these types of card readers as they simplify a lot of things. However, they are more difficult to program with. You will need to access whatever HID API is available from the OS. These are very common.

Can I disable specific iOS features with my app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is it possible to prevent use of iOS features with my app? For example, preventing use of the camera or prohibiting phone calls or texts during academic class hours.
If the devices are yours, you can enable Guided Access. Then you can prevent the user from leaving the app or doing anything else with it. But if the devices are somebody else's, there's no way for you to put these kinds of restrictions on them from an app.
Apps run inside of a sandbox, where they can only access certain information, and can only do certain things that Apple specifically allows them to do. You can't, for example, prevent normal phone functionality thru your app. You also can't access certain things such as contacts without the user granting permission first, because apps might have legitimate reasons for doing so but shouldn't just be allowed this without the user's consent.
There's really no way to accomplish what you want short of being the supplier of the devices during class. And students could still use their own devices to text and such if they wanted anyway.
Not without jailbreaking. But you can enable Kiosk Mode that doesn't allow leaving a certain app without a password:
Settings -> General -> Accessibility -> Guided Access
No.
iOS does not allow an app to alter any system functionality.

Most used iOS versions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I find it hard to locate some kind of information source which will give me a breakdown of the most used iOS versions as of today. I am working on my app and trying to decide on my "Deployment Target". I want to choose iOS 5.0 but not sure how many iOS 4.x users are out there. Does anyone know of a good place to get this information?
You can have a look here for iOS usage statistics.
As for me, it's ok just concerning about iOS 5, 6 and 7.
Forget about using third party sources for this kind of information.
You only care about marketshare for your specific app which will almost always we wildly different to the global average across all apps.
The only real option is to have some kind of tracking in your app, where it sends the OS version to the server once per week for similar for each user.
For a new app, you should support as many version back as you can with a reasonable amount of development effort. Then use actual statistics gathered from your app to decide when to drop old OS versions.
Accoring to this and this, iOS7 has over 50% usage.

Streaming live video from ios [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a need to stream video from the iPhone/iPad camera to a server. It looks like this will need to be done with AVCaptureSession but I don't know how to best architect this.
I found this post:
streaming video FROM an iPhone
But it doesn't handle the "live" part, latency needs to be 2 or 3 seconds at most. Devices can be constrained to 4 or 4S capability if needed, and there is no requirement for HD, VGA is probably what we'll end up with. I assume any solution would use ffmpeg, I haven't found any more appropriate library.
How is this best accomplished?
According to Apple, if you send large amounts of data from an iPhone app you're going to have to use HTTP Live Streaming.
HTTP Live Streaming Overview
It's possible, here's an App that does it called Livu
Try working with ffmpeg for iPhone and the segmenter from Carson Macdonald's excellent Ion Cannon site which has a lot of useful information on HTTP Live Streaming. He's a user here too and can offer invaluable advice.

Resources