Does the iPhone SDK allow for serial port connections?
Does the iPhone SDK allow for serial port connections? Can I use RX and TX serial lines over the dock connector? I do not want to distribute the application over the app store, I want this to be a tightly controlled distribution.
So bottom line:
Can I use the dock for serial connections with the official SDK?
Can I create a program and choose to distribute it on my own? (This may even be small enough quantities that I can literally connect each iPhone to my computer)
So bottom line:
Can I use the dock for serial connections with the official SDK?
Can I create a program and choose to distribute it on my own? (This may even be small enough quantities that I can literally connect each iPhone to my computer)
4
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi,
There are many people that would like to use the SDK to use the serial port. Here is a rumor I heard of how to access it:
*use the fopen call
*The device parameter is /dev/ttyS0 (or /dev/ttys000 or /dev/ttys001)
*Then, use fread and fwrite on the descriptor returned
An open question is how one would change the serial port parameters.
I don't know for sure if this works. But, if enough people are trying out some different methods to access it, I believe one of us will succeed. Then it will be great, as so many applications could nicely utilize the serial port!!!
Ben Tabatowski-Bush
ECYPH LLC
www.pcables.com -
Inappropriate?presumably, one could also use screen(1) in conjunction with a 30pin-to-DB9 cable (google for "iphone serial cable") and have a nice portable serial console for UNIX boxes (something like "screen /dev/ttyS0"). I used to do this on a Treo (and before that on a Palm III and a Handspring Visor), but I'm not sure yet whether it will "Just Work" on an iPhone. I'm about to buy a cable and find out though. :)
-
Inappropriate?cable has arrived, "screen /dev/tty.iap" does not currently DTRT. Will post a follow-up here when I have something to add.
-
Inappropriate?Apparently you can get a Dock Connector -> Serial cable for around $35. Google it on eBay. I might be interested in developing an app if I could get enough of these cables.
I’m confident
-
Inappropriate?The cable will need special hardware (an Authentication chip.) I will look into building a cable with the right hardware.
Ben
sales@pcables.com -
Inappropriate?I already have a functional 30-pin to DB-9 cable I picked up a few months ago. My problem is apparently that the requisite TTY either didn't exist or isn't implemented as it is on a standard UN*X. It would be nice if one didn't have to jailbreak to get a decent local command line with a standard UN*X toolset, but I guess that's too much to hope for. :)
Loading Profile...





