views:

366

answers:

3

Hello,

I have to develope a software that connect to an external device. The problem is the connection.

Is there a way to connect without Apple's special chip?

Any way is possible: Bluetooth, Wifi, or USB.

Thank You

+2  A: 

This is far too open a question. Yes is the only answer; yes, you can connect to another device (provided it has the ability to process the connection request) via WiFi or Bluetooth.

If you're wanting to connect via WiFi, you're going to need to manage that yourself (perhaps via HTTP requests or similar to the hardware in question).

If you want to connect to a device via bluetooth, to avoid needing to use the 30-pin dock connector, take a look at the External Accessory Framework (EAAccessory Class Reference) in the xcode documentation.

h4xxr
Thank you for your reply. Is it possible with a device that is not "Made for iPod and Works with iPhone"???
Meir
Yes I believe so for Bluetooth
h4xxr
No unless the other device is another iPhone OS device you have to communicate with a "Made for iPod and Works with iPhone" even over BlueTooth. (handsfree, and A2DP not included). The EAAccessory class and related documentation doesn't specify any BT level protocols so you have no way of knowing how to implement your BT accessory's stack so that it can talk to the iPhone.
jamone
A: 

Hello, Thank you all for the answers. I came up with a solution, please let me know if this will work and if apple will accept it:

The solution is simly to use a device with an ip (ie:101.98.13.27). The device will be connected trughe the wifi. I will send a URL request to that address and will recive the information from the device.

Meir
A: 

If you are going to try and use an ip address like you suggest you cannot hard code it. Even if it is in a private non-routable address block that address might still be used on the wifi subnet the phone is connected to. If not there is no guarantee that the connection will work depending on the permissiveness of the network devices involved.

Do you have anyway to configure the external device? If so my preferred solution would be to put both the external device and the iPhone on the same wifi network and then use mDNS (bonjour or rendezvous same thing) to have the two devices discover each other on the network.

I had a similar situation that would have been easily solved if the iPhone just supported the Bluetooth serial profile, but it doesn't. This is basically what I had planned to do but the external device was not able to support this approach.

Ukko
Thant you for the response. I have two options: 1. to have two versions of the device with two different ip's that will be printed on the box, or to use your suggestion. The different is the price. I need a chip solution and a switch, for example, will complicta things.The other question I'v asked is this solution accepted by Apple?
Meir