PDA

View Full Version : iPad IO Control




dataustin
Apr 11, 2011, 09:45 PM
Let me first say that I have little programing experience. That being said, I would like to use an iPad to control an external device. My first thought is to have a UI of a series of buttons similar to a phone keypad that when pressed, send serial commands over the bluetooth interface to an external device. Can the forum advise as to where I might start this effort (software to create the UI and pass the commands thru the bluetooth port, etc) and what roadblocks lie ahead?

Thanks in advance for your expertise.



robbieduncan
Apr 12, 2011, 04:57 AM
The first roadblock will be that you don't have access to the bluetooth stack so the entire thing will be impossible (at least on a non-jailbroken iPad).

dataustin
Apr 12, 2011, 08:57 AM
Say I remove that roadblock, would it be intuitive to a UI programmer as to how to send the IO commands thru the stack and if so, is it as simple as locating a programmer to create the "keypad" UI?

robbieduncan
Apr 12, 2011, 09:04 AM
Say I remove that roadblock, would it be intuitive to a UI programmer as to how to send the IO commands thru the stack and if so, is it as simple as locating a programmer to create the "keypad" UI?

I have no idea: I have no interest in Jailbraking so have no idea. If it's anything like the Mac OSX bluetooth stack then it depends on what you mean by "UI Programmer". Any decent programmer with a good grasp of Object Oriented Programming, Objective-C and pure C who could probably work it out, although as there is little documentation it'd be much harder than on the Mac OSX side. If by "UI Programmer" you mean someone who uses drag-and-drop tools to layout components for a UI then it'd be impossible without learning the skills I previously mentioned.

balamw
Apr 12, 2011, 09:12 AM
What are the actual requirements for the data link between the iPad and the external device?

Is it bidirectional? Could you consider IR instead of BlueTooth? How about WiFi? ...

B

dataustin
Apr 12, 2011, 11:21 AM
Robbieduncan, that answers that. Even if I did go down that path I don't have access to that level of expertise.

Balamw, the application is uni-directional out to the device (stepper motor controller) with no plans to provide feedback back to the iPad. I would prefer WiFi but somehow got hung up on the bluetooth path because I found a bluetooth/RS-232 converter for the target.

Would I be facing similar issues if we were to use the iPad's WiFi interface?

Thanks again.

robbieduncan
Apr 12, 2011, 11:22 AM
Would I be facing similar issues if we were to use the iPad's WiFi interface?

You'd not need to jailbrake the iPad but you'd need a similar skillset.

firewood
Apr 12, 2011, 12:50 PM
If you use wifi, it's fairly easy. You could even do a simple web app and have a server echo the commands to the device.

Using Bluetooth is pretty much impossible on stock iOS devices unless you are a large company with manufacturing and legal departments.

balamw
Apr 12, 2011, 12:55 PM
OP: You might want to read through this thread and the ones linked from it.

http://forums.macrumors.com/showthread.php?t=1121294

If you have a real cheap BT/RS-232 adapter you could always build one into the diode circuit from the headphone jacks as well. :p

B