views:

1278

answers:

1

Can anyone tell me how to program USB devices with Objective-C as an iPhone application?

I want to access USB device contents through iPhone

+7  A: 

You can't. While it is possible to build USB based accessories for iPhone if you join the Made for iPhone program using the ExternalAccessory framework, you cannot access arbitrary USB devices. The SDK gives you access to devices that use a custom interface on top of USB, the exact details of which you get after signing up for the program and singing some more NDAs.

Louis Gerbarg
Dude...I want to make an application, which loads all details on iPhone screen, when attached to USB cable...
MobiHunterz
consider that USB port of iPhone is being pushed with lots of data, and i want to just display those data on screen,so, iPhone screen will be like a terminal from MATRIX - the movie
MobiHunterz
Read his answer. You don't have low-level access to the USB port on a non-jailbroken iPhone. The only officially supported way of communicating with a USB device is through the ExternalAccessory framework, and only then with a Made for iPod device.
Brad Larson
Yes, I understood what you were asking the first time, you can't do it. The iPhone security architecture does not allow applications direct access to the USB port. If you have actually have a product you want to build you can join the Made for iPhone program (as I described above), but you depending on the exact details your USB device will need a new firmware or a redesign. If you just want to ditz around with a USB device you are out of luck.
Louis Gerbarg
hello,Sorry for the delay but....I'm trying to make an application on iPhone/Android/Blackberry devices which detects any USB plug action, i.e. if wire is plugged to USB, application must read all data pushed to the device...
MobiHunterz
Restating what you are trying to do won't change the answer. Barring a security hole in the OS or jailbreaking the phone you can't do it, and if you do either of those your app will not be approved for the app store.
Louis Gerbarg
Thank you very much..! But I just wanna know if you understood my problem and what I'm trying to develop. But no problem, if you get any help or news regarding this topic, please forward me and let me know..!Again Thank You..!
MobiHunterz